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 |
|
Jürg Lehni
|
e93b3d5c97
|
Fix spelling mistake.
|
2011-06-28 09:20:42 +02:00 |
|
Jürg Lehni
|
b0156c0e8b
|
Replace @type function with @type Function.
|
2011-06-27 15:34:32 +02:00 |
|
Jürg Lehni
|
3f8e8fcc1f
|
Fix Documentation.
|
2011-06-27 15:27:32 +02:00 |
|
Jürg Lehni
|
fa3019a947
|
Rename View#artworkToView(), #viewToArtwork() -> #projectToView(), #viewToProject().
|
2011-06-27 15:15:29 +02:00 |
|
Jürg Lehni
|
6d9ec033fe
|
Improve View documentation.
|
2011-06-27 15:13:24 +02:00 |
|
Jürg Lehni
|
f18b5df99d
|
Rename 'Window' in DomElement to 'Viewport', and have getViewportSize return the size of the viewport the passed element is contained in.
|
2011-06-26 10:14:26 +02:00 |
|
Jürg Lehni
|
d4b6d14f36
|
Make sure we're removing the right canvas offset from the available viewport size.
|
2011-06-26 10:06:19 +02:00 |
|
Jürg Lehni
|
4a344c8fad
|
Clean up forgotten @lends statements.
|
2011-06-22 23:58:50 +01:00 |
|
Jürg Lehni
|
7cd749e63d
|
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
|
2011-06-22 23:56:05 +01:00 |
|
Jürg Lehni
|
a1196c9f74
|
Change focusing behavior: Try getting the view from the current event target in mousemove event, and temporarily focus views so keyboard events are handled too.
|
2011-06-22 08:29:53 +01:00 |
|
Jürg Lehni
|
725499dc2e
|
Only change focus if none is set or if the current view is invisible.
|
2011-06-22 08:10:54 +01:00 |
|
Jürg Lehni
|
8cb6169249
|
Produce ids for View canvases without one and link to views by id.
|
2011-06-22 08:10:17 +01:00 |
|
Jürg Lehni
|
b3e1fa68b8
|
Always stop events when they are handled by our View, removing the need to specifically handle touch events on iOS.
|
2011-06-22 08:09:22 +01:00 |
|
Jürg Lehni
|
c2244be53b
|
Remove View#viewBounds in favour of #viewSize, and have View always occupy the full canvas.
|
2011-06-22 07:56:16 +01:00 |
|
Jürg Lehni
|
1d9bad5d01
|
Define view.updateFocus(), to loop through all scopes and their views and set the focus on the first active one, and call it whenever the browser is scrolled.
|
2011-06-21 21:49:36 +01:00 |
|
Jürg Lehni
|
fc32a6757a
|
Always use View.focused in handlers without caching view locally, as it can be modified elsewhere.
|
2011-06-21 01:00:37 +01:00 |
|
Jürg Lehni
|
8a285a7baa
|
Handle mouse events that go outside the view / canvas, by only installing mousedown events on view and all others on document.
|
2011-06-21 00:38:11 +01:00 |
|
Jürg Lehni
|
f6fdbd349d
|
Define DomEvent.stop() as a shortcut to stopPropagation() / preventDefault().
|
2011-06-21 00:37:03 +01:00 |
|
Jürg Lehni
|
0fecbe50bc
|
Define View#isVisible() and use it to only handle key events if the focused view is not hidden.
|
2011-06-20 22:51:39 +01:00 |
|
Jürg Lehni
|
c8a1bf4fce
|
Have views redrawn in keyboard handlers if content has changed.
|
2011-06-19 23:17:55 +01:00 |
|
Jürg Lehni
|
6f816e1151
|
Fix _redrawNotified mechanism.
|
2011-06-19 23:14:36 +01:00 |
|
Jürg Lehni
|
bf73369423
|
Pass true for checkRedraw in View#draw() everywhere.
|
2011-06-19 23:05:39 +01:00 |
|
Jürg Lehni
|
596cc8f83b
|
Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance.
|
2011-06-19 23:03:18 +01:00 |
|
Jürg Lehni
|
2bf070415d
|
Have Tool#onHandleEvent() report back if a callback was called or not, and use that to decide if View#draw() should be called, passing true as the to be implemented checkRedraw parameter.
|
2011-06-19 23:02:02 +01:00 |
|
Jürg Lehni
|
3226147e00
|
Use a version of Bootstrap that always produces beans and remove all beans: true instructions.
|
2011-06-17 18:42:29 +01:00 |
|
Jürg Lehni
|
bcff3932b6
|
Have ToolEvent extend Event and move #modifiers documentation there.
|
2011-06-16 21:20:30 +01:00 |
|
Jürg Lehni
|
bac579d85b
|
Use a different strategy to determine canvas size for invisible canvases.
|
2011-06-14 00:20:58 +01:00 |
|
Jonathan Puckey
|
d2c031aa4e
|
Documentation: improve View#onFrame example.
|
2011-06-10 14:21:27 +02:00 |
|
Jonathan Puckey
|
9b1812f7d8
|
Documentation: fix type of View#bounds.
|
2011-06-10 14:13:55 +02:00 |
|
Jürg Lehni
|
4cc3ef87cd
|
Add View#canvas.
|
2011-06-04 15:15:35 +01:00 |
|
Jonathan Puckey
|
4455b1c33c
|
Documentation: fix Key.isDown example.
|
2011-06-02 14:48:21 +02:00 |
|
Jonathan Puckey
|
5e9c64d9c8
|
View#onFrame docs: use code tags in description.
|
2011-06-02 14:17:02 +02:00 |
|
Jürg Lehni
|
29967153c3
|
Clean up TODO comments...
|
2011-06-01 10:49:43 +01:00 |
|
Jonathan Puckey
|
33cc1b47b8
|
View: Move onResize below onFrame and document both of them.
|
2011-05-31 14:24:13 +02:00 |
|
Jonathan Puckey
|
17fcb923ff
|
Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits.
|
2011-05-30 19:42:17 +02:00 |
|
Jürg Lehni
|
9d00541987
|
Clean up PORT comments.
|
2011-05-29 19:20:10 +01:00 |
|
Jonathan Puckey
|
1520cad144
|
Documentation: capitalize basic types in @ tags.
|
2011-05-27 21:21:49 +02:00 |
|
Jonathan Puckey
|
8e84c79aa6
|
Documentation: capitalize 'string' and 'number' types.
|
2011-05-27 20:15:15 +02:00 |
|
Jonathan Puckey
|
4015b022ad
|
Docs: use @true tag in boolean return descriptions and add Key.isDown param options.
|
2011-05-27 18:43:27 +02:00 |
|
Jonathan Puckey
|
fb36a275ac
|
Edits to KeyEvent documentation
|
2011-05-26 16:56:03 +02:00 |
|
Jonathan Puckey
|
b39d1c0695
|
Add View documentation.
|
2011-05-23 20:10:25 +02:00 |
|
Jonathan Puckey
|
0a27879a23
|
Add KeyEvent documentation.
|
2011-05-23 19:56:18 +02:00 |
|
Jonathan Puckey
|
65ee63546d
|
Add Key documentation.
|
2011-05-23 18:02:46 +02:00 |
|
Jürg Lehni
|
fc52944ee8
|
Change method sequence a bit.
|
2011-05-17 13:43:45 +01:00 |
|
Jürg Lehni
|
160f3d55c7
|
Make View#transform() private.
|
2011-05-17 13:43:10 +01:00 |
|
Jürg Lehni
|
f3f5515763
|
Add comment about potential renaming of artworkToView -> projectToView?
|
2011-05-17 13:42:45 +01:00 |
|
Jürg Lehni
|
ac364014da
|
Actually use matrix when drawing view.
|
2011-05-17 13:42:20 +01:00 |
|
Jürg Lehni
|
2f63127b02
|
Simplify and fix View#setZoom().
|
2011-05-17 13:41:42 +01:00 |
|
Jürg Lehni
|
26269d394a
|
Rename project/ProjectView -> ui/View.
|
2011-05-17 13:29:07 +01:00 |
|
Jürg Lehni
|
cfe968d30e
|
Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document.
|
2011-05-16 13:33:15 +01:00 |
|
Jürg Lehni
|
78a9f9afe9
|
Let Keyboard handlers know which view should receive keyboard focus.
|
2011-05-16 00:17:37 +01:00 |
|
Jürg Lehni
|
e79d890432
|
Add #toString() to Event#modifiers.
|
2011-05-08 15:50:17 +01:00 |
|
Jürg Lehni
|
af8fd22ae2
|
Remove hyphen from event types, to go with the naming of the browser world more.
|
2011-05-08 15:35:10 +01:00 |
|
Jürg Lehni
|
04ff593adc
|
Have Events print modifiers correctly in #toString().
|
2011-05-08 15:33:00 +01:00 |
|
Jürg Lehni
|
5a9dc3dece
|
Have Event#modifiers exposed as a bean.
|
2011-05-08 15:28:56 +01:00 |
|
Jürg Lehni
|
6593c07127
|
Fix more key handling bugs and make Key.isDown() work again.
|
2011-05-08 15:28:35 +01:00 |
|
Jürg Lehni
|
450fadfcbf
|
Fix issues with keys that fire both keydown and keypress events, such as space.
|
2011-05-08 15:23:32 +01:00 |
|
Jürg Lehni
|
742c9da822
|
More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key.
|
2011-05-08 15:16:41 +01:00 |
|
Jürg Lehni
|
37f982e53f
|
Remove unused lookup table.
|
2011-05-08 13:46:31 +01:00 |
|
Jürg Lehni
|
b26caee702
|
Improve key event handling, work in progress.
|
2011-05-08 13:43:52 +01:00 |
|
Jürg Lehni
|
4e6e855461
|
Change '// TODO: Port' comments to '// PORT:'.
|
2011-05-07 14:18:27 +01:00 |
|
Jonathan Puckey
|
41120cf4d9
|
Various small code cleanups.
|
2011-05-02 12:23:42 +02:00 |
|
Jürg Lehni
|
4d999d57e2
|
Replace all type converting string compares with ===, !==.
|
2011-04-28 13:23:17 +01:00 |
|
Jürg Lehni
|
6468732d96
|
Some changes to Key code, rename alt to option to go with Scriptographer, and check for paper.toolt to exist since it caused errors when reloading a page.
|
2011-04-28 08:49:56 +01:00 |
|
Jürg Lehni
|
ccbdb2abe3
|
Make preventDefault() work on IE too.
|
2011-04-27 12:41:52 +01:00 |
|
Jürg Lehni
|
77ad25ffba
|
Clean up port comments.
|
2011-04-26 17:47:30 +01:00 |
|
Jonathan Puckey
|
e52ed9ae36
|
Key handlers: allow the user to prevent the default behaviour of key events.
|
2011-04-25 18:11:01 +02:00 |
|
Jonathan Puckey
|
1efb69e46f
|
Key: small change to a todo comment.
|
2011-04-25 17:42:37 +02:00 |
|
Jonathan Puckey
|
778997ec18
|
Simplify Key further and fix ToolEvent#getModifiers.
|
2011-04-25 17:38:40 +02:00 |
|
Jonathan Puckey
|
404bbac3a5
|
Key: remove logging statement.
|
2011-04-25 17:30:24 +02:00 |
|
Jonathan Puckey
|
5d15c3dfef
|
Simplify ToolEvent#getModifiers() & small cleanup in Key.
|
2011-04-25 17:26:58 +02:00 |
|
Jonathan Puckey
|
a96bb326f4
|
Some more simplifications in Key.
|
2011-04-25 17:16:45 +02:00 |
|
Jonathan Puckey
|
95bfebf64b
|
Simplify Key a bit.
|
2011-04-25 17:08:08 +02:00 |
|
Jonathan Puckey
|
2e43fb0997
|
Key: add type to the key event.
|
2011-04-25 14:57:06 +02:00 |
|
Jonathan Puckey
|
05a138bc7b
|
Implement onKeyDown / onKeyUp & Key#isDown(key).
|
2011-04-25 14:52:45 +02:00 |
|
Jonathan Puckey
|
1e4ae9afb4
|
Simplify ToolEvent#modifiers.
|
2011-04-25 12:05:18 +02:00 |
|
Jonathan Puckey
|
22bc08501e
|
Implement ToolEvent#modifiers.
|
2011-04-25 11:52:52 +02:00 |
|