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
|
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
|
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
|
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
|
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
|
5e9c64d9c8
|
View#onFrame docs: use code tags in description.
|
2011-06-02 14:17:02 +02:00 |
|
Jonathan Puckey
|
33cc1b47b8
|
View: Move onResize below onFrame and document both of them.
|
2011-05-31 14:24:13 +02:00 |
|
Jonathan Puckey
|
8e84c79aa6
|
Documentation: capitalize 'string' and 'number' types.
|
2011-05-27 20:15:15 +02:00 |
|
Jonathan Puckey
|
b39d1c0695
|
Add View documentation.
|
2011-05-23 20:10:25 +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 |
|