Commit graph

154 commits

Author SHA1 Message Date
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
d5a9a48db3 Also expose space bar state through Event#modifiers. 2012-11-07 01:02:48 -08:00
Jürg Lehni
4e1db6a1d1 Fix a row of documentation issues. 2012-11-06 13:35:50 -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
Jürg Lehni
59a55f7574 Merge branch 'master' of github.com:paperjs/paper.js 2012-09-30 14:08:44 -07:00
Jürg Lehni
93ba19f7e2 Define key-code for tab key. 2012-09-30 14:05:51 -07:00
Jonathan Puckey
772174cedc Documentation for Tool and View event handling. 2012-02-02 11:45:02 +01:00
Jürg Lehni
2280c0cb94 Fix drawing of selected items in zoomed views. 2011-12-27 16:40:49 +01:00
Jürg Lehni
7b03dbedb9 Move stats update to onFrame handler. 2011-12-27 16:06:47 +01:00
Jürg Lehni
010209c70f Pass on view matrix to Project#draw.
So selection drawing is not zoomed.
2011-12-20 11:41:23 +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
Jonathan Puckey
1414500f45 First version of documentation of Item event handlers and MouseEvent. 2011-12-01 11:57:10 +01:00
Jürg Lehni
b5e46971f0 Replace new Size(x, y) calls with internal Size.create(x, y). 2011-11-29 17:11:15 +01:00
Jürg Lehni
b9f6c99dcd Add comments and clean up code. 2011-11-17 19:28:05 +01:00
Jürg Lehni
427cc21b3a Fix a comment. 2011-11-17 00:06:21 +01:00
Jürg Lehni
1b484a2f7b Implement MouseEvent#delta for Item#onMouseDrag and #onMouseMove. 2011-11-17 00:04:30 +01:00
Jürg Lehni
cf54b1a7c1 Change parameter sequence in mouse event code. 2011-11-16 23:47:51 +01:00
Jürg Lehni
9061daa935 Simplify event handling code. 2011-11-16 23:41:47 +01:00
Jürg Lehni
80d3763c39 Implement Item#onMouseDrag evnets, and have them silence #onMouseMove events if both are present. 2011-11-16 23:30:14 +01:00
Jürg Lehni
d066ad775d Implement Item#onClick and #onDoubleClick. 2011-11-16 23:18:27 +01:00
Jürg Lehni
b3bf57c8e9 Implement Item#onMouseEnter / #onMouseLeave. 2011-11-16 22:59:39 +01:00
Jürg Lehni
c0e6d5b2ee Remove unused injection scopes. 2011-11-16 22:54:03 +01: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
18d44689fa Fix white-space in code example. 2011-11-12 23:56:25 +01:00
Jürg Lehni
c33998c140 Remove support for Tool#eventInterval. 2011-11-12 18:26:03 +01:00
Jürg Lehni
d9ba90ea2d Remove white space. 2011-11-12 17:15:04 +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
78d1ce1540 Make new events work properly for key handlers. 2011-11-11 20:12: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
a2358a0fc0 Also fire key events for modifier keys. Closes #52. 2011-09-18 12:51:03 +02:00
Ben Ogle
7ebd4a17bd Adds other keycodes for command keys in different browsers.
- 224 for firefox
 - 93 for the right command key in WebKit browsers.
2011-08-25 18:53:30 -07: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