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 |
|