Jürg Lehni
|
67aacb9552
|
Implement dontLink parameters for View getters.
|
2013-05-08 20:19:22 -07:00 |
|
Jürg Lehni
|
b59a98f7ce
|
Add jQuery style aliases to Callback and use #on() in the examples rather than #attach().
|
2013-05-06 20:56:58 -07:00 |
|
Jürg Lehni
|
96b886ae8d
|
Avoid endless recursion when changing view from onFrame handler.
Closes #184.
|
2013-04-09 22:38:23 -07:00 |
|
Jürg Lehni
|
7ca22cd260
|
Clean up mouse handling code.
|
2013-03-05 14:57:41 -08:00 |
|
Jonathan Puckey
|
419d9f21af
|
View example documentation.
|
2013-03-03 18:46:34 +01:00 |
|
Jürg Lehni
|
8f80fa16d2
|
Correct comment.
|
2013-02-15 18:01:29 -08:00 |
|
Jürg Lehni
|
ace260a334
|
Determine size of Canvases that are positioned by CSS.
|
2013-02-14 22:28:50 -08:00 |
|
Jürg Lehni
|
2955b12dd7
|
Always read canvas attributes to determine view size.
Closes #96.
|
2013-02-14 20:00:47 -08:00 |
|
Jürg Lehni
|
80638372b6
|
Merge pull request #169 from a-puzo/master
Fixed bad centering when `view.center` and `view.zoom` are changed
|
2013-02-14 19:30:26 -08:00 |
|
Jürg Lehni
|
ee03ce47e4
|
Simplify fix proposed in #164.
|
2013-02-14 12:41:50 -08:00 |
|
Jürg Lehni
|
88a33200c2
|
Merge pull request #164 from ispivey/fix-svg-getview-error
Update getView to handle DOM elements without getAttribute
|
2013-02-14 12:40:53 -08:00 |
|
a-puzo
|
66547a4442
|
Correct view centering
Fixed bad centering when `view.center` and `view.zoom` are changed
|
2013-02-13 06:35:19 +04:00 |
|
Jürg Lehni
|
b10454a83c
|
Rename Matrix#createInverse() to #inverted() and #createShiftless() to #shiftless().
|
2013-02-09 12:18:40 -08:00 |
|
Ian Spivey
|
0df86550e6
|
Update getView to handle DOM elements without getAttribute, e.g. SVGDocument
|
2013-01-28 19:08:25 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
8f093f6dd7
|
Remove all PORT comments, since we won't port back features to Scriptographer.
|
2012-12-25 16:07:48 +01:00 |
|
Jürg Lehni
|
9d47bfcf0b
|
Suppress weird JSdoc warnings.
|
2012-12-24 17:20:00 +01:00 |
|
Jürg Lehni
|
1046e440e8
|
Improve documentation.
|
2012-12-23 16:01:53 +01:00 |
|
Jürg Lehni
|
92e9bb2a6a
|
Change item based onFrame handlers to have their own time and frame counters.
|
2012-12-03 10:04:10 -08:00 |
|
Jürg Lehni
|
cf5853c8cc
|
Improve handling of item based onFrame handlers, by moving functionality to View and removing handlers properly when the view is destroyed.
|
2012-12-03 09:53:47 -08:00 |
|
Jürg Lehni
|
a7320cf2e2
|
Implement new DomElement micro lib, supporting creation of elements, getting and setting of style, content, and events, in an elegant fashion.
|
2012-11-13 22:58:03 -08:00 |
|
Jürg Lehni
|
04df1a0d4a
|
Always set canvas size, to avoid zooming pixels if size is set to a percentage.
|
2012-10-31 09:49:42 -07:00 |
|
Jürg Lehni
|
96e1765e4f
|
Do not implicitly use getTool() getter since it creates tools when none exists.
|
2012-10-30 11:43:06 -07:00 |
|
Jürg Lehni
|
7096b37b2e
|
Change the way canvases get temporarily focused when there is more than one and the mouse is outside all of them.
Closes #115.
|
2012-10-22 18:03:57 -07:00 |
|
Jürg Lehni
|
20797b8cc3
|
Avoid name clash between View._handlers and Callback._handlers that keeps track of installed handlers.
Closes #109.
|
2012-10-22 17:38:40 -07:00 |
|
Jürg Lehni
|
ed9037deb1
|
Fix white-space.
|
2012-10-08 18:44:08 -07:00 |
|
Jürg Lehni
|
f75386e8fb
|
No need to check _windowHandlers, as DomEvent.remove does the right thing either way.
|
2012-10-08 18:09:41 -07:00 |
|
Jürg Lehni
|
08cb7c76ea
|
Clean up resize handlers when removing resizing views.
Closes #121.
|
2012-10-08 18:05:44 -07:00 |
|
Jonathan Puckey
|
772174cedc
|
Documentation for Tool and View event handling.
|
2012-02-02 11:45:02 +01:00 |
|
Jürg Lehni
|
7b03dbedb9
|
Move stats update to onFrame handler.
|
2011-12-27 16:06:47 +01:00 |
|
Jürg Lehni
|
4514c63ed4
|
Merge remote-tracking branch 'origin/master'
|
2011-12-18 21:30:22 +01:00 |
|
Jürg Lehni
|
b0b49d027a
|
Remove unused parameter.
|
2011-12-10 20:05:26 +01:00 |
|
Xin Wang
|
95b3bad6dc
|
Use break to avoid uncaught exception.
|
2011-12-06 09:41:40 +08:00 |
|
Jürg Lehni
|
44bf596e51
|
Finish implementing Item#onMouseMove and clean up code.
|
2011-11-16 22:48:38 +01:00 |
|
Jürg Lehni
|
8efc7ce7cd
|
Implement Item#onMouseUp events and work on #onMouseMove.
|
2011-11-16 22:41:22 +01:00 |
|
Jürg Lehni
|
57bd659023
|
Move Item base mouse handling code to CanvasView.
|
2011-11-16 13:12:41 +01:00 |
|
Jürg Lehni
|
577c884a70
|
Prepend non-public Tool methods with '_'.
|
2011-11-16 13:10:39 +01:00 |
|
Jürg Lehni
|
1eff9741a4
|
Separate Canvas related code from View into CanvasView class.
|
2011-11-14 20:18:08 +01:00 |
|
Jürg Lehni
|
c85f0326c3
|
Simplify installling of mouse handlers in View.
|
2011-11-14 13:32:03 +01:00 |
|
Jürg Lehni
|
acbebc2aa4
|
Remove #idleInterval left-overs.
|
2011-11-13 00:09:09 +01:00 |
|
Jürg Lehni
|
fcd92c4ac1
|
Fix updateFocus() documentation.
|
2011-11-13 00:05:28 +01:00 |
|
Jürg Lehni
|
e4586cfeeb
|
Commit beginning of item based mouse events. So far only onMousedown / 'mousedown' is supported.
|
2011-11-12 23:57:25 +01:00 |
|
Jürg Lehni
|
c33998c140
|
Remove support for Tool#eventInterval.
|
2011-11-12 18:26:03 +01:00 |
|
Jürg Lehni
|
719ae2315c
|
Remove global views list, link View to Project and allow projects to only have one view.
|
2011-11-12 16:56:23 +01:00 |
|
Jürg Lehni
|
24f07dccec
|
Clean up some JSDoc comments.
|
2011-11-12 13:27:29 +01:00 |
|
Jürg Lehni
|
e238dea3ac
|
More work to make new events mechanisms work for Tool too.
|
2011-11-11 19:49:31 +01:00 |
|
Jürg Lehni
|
256e48b511
|
Define Callback code for callback based event handling (#atach() / #detach() #fire()) and start implementing it in View.
|
2011-11-11 18:29:28 +01:00 |
|
Jürg Lehni
|
7a5ca5609f
|
Have View#_redraw() properly redraw the content even if nothing has changed inside.
|
2011-08-23 16:36:18 +02:00 |
|
Jürg Lehni
|
a775ddec9e
|
Remove obsolete comment.
|
2011-08-22 11:14:49 +02:00 |
|
Jürg Lehni
|
b54f9f2228
|
Introduce View#_redraw() and use it in #setViewSize() and #_transform().
|
2011-08-22 11:14:38 +02:00 |
|