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
|
2218ca31f6
|
Fix support for double-click events.
Closes #90.
|
2012-12-17 22:22:58 +01:00 |
|
Jürg Lehni
|
14e6edb8ee
|
Fix #toString() for event objects.
|
2012-12-08 19:57:04 -08: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
|
81257a28ec
|
Have item actually nested inside table cell.
|
2012-11-14 21:16:33 -08:00 |
|
Jürg Lehni
|
61c37f0858
|
Improve component type guessing.
|
2012-11-14 18:34:27 -08:00 |
|
Jürg Lehni
|
532a94369e
|
Fix a couple of code typos.
|
2012-11-14 18:30:33 -08:00 |
|
Jürg Lehni
|
bd8dc0c3de
|
Fix bug when values do not have associated components.
|
2012-11-14 18:30:22 -08:00 |
|
Jürg Lehni
|
5097bf37ff
|
Fix small newly introduced bug.
|
2012-11-14 12:56:13 -08:00 |
|
Jürg Lehni
|
4945a45a99
|
Further simplify Palette code: Directly link values to components, without a private values list, and improve values conversion.
|
2012-11-14 12:49:03 -08:00 |
|
Jürg Lehni
|
01c936e1b9
|
Also consider palette component's initial values.
|
2012-11-14 12:30:13 -08:00 |
|
Jürg Lehni
|
74bce39184
|
Make sure private values are initialized correctly.
|
2012-11-14 12:10:39 -08:00 |
|
Jürg Lehni
|
a646f922d4
|
Convert values of numeric items to numbers.
|
2012-11-14 12:06:41 -08:00 |
|
Jürg Lehni
|
26e3090b40
|
Actually update linked palette values when input items change.
|
2012-11-14 12:06:06 -08:00 |
|
Jürg Lehni
|
3fe936addf
|
Expose Palettes through PaperScope#palettes.
|
2012-11-14 12:05:36 -08:00 |
|
Jürg Lehni
|
405198f94d
|
Implement Component#label and Palette#remove().
|
2012-11-14 12:05:12 -08:00 |
|
Jürg Lehni
|
0b919d0907
|
Rename Palette classes.
|
2012-11-14 10:56:32 -08:00 |
|
Jürg Lehni
|
b122a85512
|
Make Palette#reset() work.
|
2012-11-14 10:02:16 -08:00 |
|
Jürg Lehni
|
926e5d0b3a
|
Clean up code.
|
2012-11-14 10:02:07 -08:00 |
|
Jürg Lehni
|
550d43ae0b
|
Check in first version of Scriptographer-style Palette / Component GUI code, including a basic example.
It kinda works already!
|
2012-11-14 01:35:34 -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
|
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 |
|
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 |
|
Jürg Lehni
|
3ca165f413
|
Move #_transform() up.
|
2011-08-22 11:13:42 +02:00 |
|
Jürg Lehni
|
a081419a8b
|
Fix View#bounds for zoom levels other than 1.
|
2011-08-22 11:12:40 +02:00 |
|
Jürg Lehni
|
7c2fabd6a1
|
Remove redundant scope by sharing one between browser and server code.
|
2011-08-22 11:05:59 +02:00 |
|
Jonathan Puckey
|
0ee1e80c68
|
Node.js: add Raster support.
|
2011-08-21 16:38:06 +02:00 |
|
Jonathan Puckey
|
bec8cf967e
|
View: add documentation todos.
|
2011-08-20 15:51:54 +02:00 |
|
Jonathan Puckey
|
70dc88ca91
|
View: Clean up #exportImage() and #exportFrames().
|
2011-08-20 15:46:06 +02:00 |
|
Jonathan Puckey
|
197c2670d6
|
Implement View#exportImage(uri, param)
|
2011-08-18 11:11:24 +02:00 |
|
Jonathan Puckey
|
ebc3b3789b
|
Merge branch 'master' of https://github.com/paperjs/paper.js
|
2011-08-10 18:30:42 +02:00 |
|
Jürg Lehni
|
fe97b94340
|
Define PaperScopeItem as a private base class for all classes that have lists and references in the PaperScope (Project, View, Tool), so they can share functionality (#initialize(), #activate(), #remove()), and add support for multiple tools. Closes #27
|
2011-08-02 10:08:08 +01:00 |
|
Jonathan Puckey
|
a9780374f2
|
Remove logging statements.
|
2011-08-02 11:07:59 +02:00 |
|
Jonathan Puckey
|
94a6860f7f
|
Add back Node.js related changes to View.
|
2011-08-02 11:02:04 +02:00 |
|
Jonathan Puckey
|
30e2ba5582
|
Update View.
|
2011-08-02 10:49:40 +02:00 |
|
Jürg Lehni
|
828c3ae369
|
Doc: Improve View#initialize(canvas).
|
2011-08-01 16:21:00 +01:00 |
|
Jürg Lehni
|
9195f026d7
|
Support passing canvas ids straight to View constructor.
|
2011-08-01 16:18:17 +01:00 |
|
Jürg Lehni
|
d84f0d34cf
|
Fix errors in DomElement.getOffset() by using native #getBoundingClientRect() in DomElement.getBounds() and relying on that. Closes #29
|
2011-07-31 14:13:29 +01:00 |
|
Jonathan Puckey
|
ddec658653
|
Make Paper.js work on Node.js.
|
2011-07-30 02:16:30 +02:00 |
|
Jonathan Puckey
|
595144961d
|
Update View size before calling View#onResize.
|
2011-07-13 14:10:26 +02:00 |
|
Jürg Lehni
|
2851d8e403
|
Define Base#toString() as a mean to render Base objects as object literals, and use it for Key.modifier and onFrame() event objects, through Base.merge() conversion.
|
2011-07-07 14:10:02 +02:00 |
|
Jürg Lehni
|
d1185c5f8b
|
Implement support for properly validating 'data-paper-NAME' attribute names, along with the current 'NAME'.
|
2011-07-06 21:19:38 +02:00 |
|
Jürg Lehni
|
ee23877fd1
|
Move view redrawing from resize handler to #setViewSize().
|
2011-07-01 12:50:11 +02:00 |
|
Jürg Lehni
|
ce9700dc4d
|
Have views redrawn after resize if they do not define a onFrame handler.
|
2011-07-01 12:49:27 +02:00 |
|
Jürg Lehni
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +02:00 |
|
Richard D. Worth
|
a518b3fd19
|
Remove non-whitespace change
|
2011-06-30 11:02:49 -04:00 |
|
Richard D. Worth
|
ac39873693
|
Whitespace. Removed all trailing whitespace from .js files
|
2011-06-30 06:01:51 -04:00 |
|
Jonathan Puckey
|
0463fcc9ca
|
Fix spelling mistake.
|
2011-06-28 11:35:08 +02:00 |
|