Jürg Lehni
|
378952666a
|
Clean ups.
|
2011-05-16 13:42:23 +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
|
edd36e7df8
|
Remove Document#bounds and #size, since this will be on Page.
|
2011-05-16 13:10:18 +01:00 |
|
Jürg Lehni
|
fa0b664312
|
Fix error in mousedown handler when using eventInterval.
|
2011-05-16 13:08:22 +01:00 |
|
Jürg Lehni
|
a19f2020fb
|
Use that instead of this, since we're in an unbound callback.
|
2011-05-16 13:06:26 +01:00 |
|
Jürg Lehni
|
1747118ed4
|
Have onResize() call onFrame() if it's defined.
|
2011-05-16 13:03:02 +01:00 |
|
Jürg Lehni
|
08c03192b6
|
Fix examples to use view.bounds/size/center instead of document.bounds/size.
|
2011-05-16 12:51:20 +01:00 |
|
Jürg Lehni
|
0504b99af8
|
Redraw DocumentView in #setViewBounds().
|
2011-05-16 12:45:49 +01:00 |
|
Jürg Lehni
|
671d790068
|
Fix bug caused by recent commit.
|
2011-05-16 12:43:51 +01:00 |
|
Jürg Lehni
|
6051fe3fda
|
Add / fix DocumentView#viewBounds, #center, #bounds, #size.
|
2011-05-16 12:37:02 +01:00 |
|
Jürg Lehni
|
6e4334ee29
|
Fix Size#toString().
|
2011-05-16 12:36:17 +01:00 |
|
Jürg Lehni
|
f545805786
|
Move Rectangle#transformCornerCoordinates() to Matrix#_transformCorners().
|
2011-05-16 12:29:52 +01:00 |
|
Jürg Lehni
|
fc547793fa
|
Remove redundant Rectangle#transformBounds() and merge its code with less optimised Matrix#transformBounds().
|
2011-05-16 12:25:18 +01:00 |
|
Jürg Lehni
|
aaceeb4f54
|
Add Rectangle#transformBounds().
|
2011-05-16 11:32:33 +01:00 |
|
Jürg Lehni
|
fc776f03eb
|
Add Rectangle#transformCornerCoordinates() and use it in Item.drawSelectedBounds().
|
2011-05-16 11:25:39 +01:00 |
|
Jürg Lehni
|
9f34042bae
|
Fix comment.
|
2011-05-16 11:19:47 +01:00 |
|
Jürg Lehni
|
42e7fc910f
|
Simplify GradientColor#transform(), using new _transformPoint() parameters.
|
2011-05-16 11:19:40 +01:00 |
|
Jürg Lehni
|
f0b29e0e4d
|
Make Item#position a LinkedPoint and change the way it's transformed in #transform().
|
2011-05-16 11:19:19 +01:00 |
|
Jürg Lehni
|
f92434ab54
|
Add dontNotify parameter to _transformPoint(), required sometimes for LinkedPoints.
|
2011-05-16 11:18:53 +01:00 |
|
Jürg Lehni
|
9384fb4fb5
|
Add an optinonal dest parameter to Matrix#_transformPoint().
|
2011-05-16 11:07:39 +01:00 |
|
Jürg Lehni
|
71bf4fdbca
|
Two forms of scoping are required when evaluating PaperScripts: with(){} and a function scope, so local vars are not trying to override properties on the scope through with(){} (e.g. var view = ...).
|
2011-05-16 11:00:33 +01:00 |
|
Jürg Lehni
|
2773ef693a
|
Add PaperScope#view and #layer as shortcuts to #document.activeView / activeLayer.
|
2011-05-16 10:59:45 +01:00 |
|
Jürg Lehni
|
a601cfdd6d
|
Clear the indices and path references of the removed segments.
|
2011-05-16 01:37:31 +01:00 |
|
Jürg Lehni
|
074e121f47
|
Switch to onResize event. Needs more work on view bounds to work nicely.
|
2011-05-16 01:30:09 +01:00 |
|
Jürg Lehni
|
98a59a3011
|
Rename PaperScript#run() to #evaluate() and add it to PaperScope too.
|
2011-05-16 01:22:06 +01:00 |
|
Jürg Lehni
|
c403dccea3
|
Expose capability to run PaperScripts from script tags.
|
2011-05-16 00:57:13 +01:00 |
|
Jürg Lehni
|
30e3359d1d
|
Split PaperScope#remove() into #clear() and #remove(), so scopes can be reused.
|
2011-05-16 00:56:47 +01:00 |
|
Jürg Lehni
|
593813660a
|
Associate PaperScope objects with the script tag that produced them through an assigned unique id.
|
2011-05-16 00:29:29 +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
|
3e71278b78
|
Make sure the frame handler stops when a view is removed.
|
2011-05-16 00:05:11 +01:00 |
|
Jürg Lehni
|
abcba7deb4
|
Remove all views in Document#remove().
|
2011-05-16 00:05:03 +01:00 |
|
Jürg Lehni
|
3a15360efc
|
Rename ChangeFlags.PATH to GEOMETRY.
|
2011-05-16 00:01:06 +01:00 |
|
Jürg Lehni
|
690a79722f
|
Add alternative code for setting handler on tool that does not rely on eval(), commented out for now.
|
2011-05-15 23:56:41 +01:00 |
|
Jürg Lehni
|
5bc2889f1c
|
Add documentation and remove dontSwitch parameter, since it will also receive the time as defined for requestAnimationFrame() callback.
|
2011-05-15 23:50:53 +01:00 |
|
Jürg Lehni
|
535e5fc5fc
|
Add support for onResize handler.
|
2011-05-15 23:46:34 +01:00 |
|
Jürg Lehni
|
3bd4db802c
|
Simplify onFrame handling.
|
2011-05-15 23:41:24 +01:00 |
|
Jürg Lehni
|
c1dc823706
|
Move onFrame handler to DocumentView.
|
2011-05-15 23:37:40 +01:00 |
|
Jürg Lehni
|
f69b0a404a
|
Remove unused #document from Tool.
|
2011-05-15 22:45:15 +01:00 |
|
Jürg Lehni
|
824870196e
|
Clean up mouseup handler.
|
2011-05-15 22:43:30 +01:00 |
|
Jürg Lehni
|
83373576f2
|
Fix various refactoring errors.
|
2011-05-15 22:41:56 +01:00 |
|
Jürg Lehni
|
e8033730c8
|
Move event handling from Tool to DocumentView.
|
2011-05-15 22:25:46 +01:00 |
|
Jürg Lehni
|
f0e8c54008
|
Step one of transition to proper separation of view and document, regarding canvas drawing, mouse interaction, resizing, frame handling, etc. Work in progress.
|
2011-05-15 21:56:43 +01:00 |
|
Jürg Lehni
|
0dc2241a9c
|
No need to set _index to null since Base.splice() handles that for us.
|
2011-05-15 21:42:31 +01:00 |
|
Jürg Lehni
|
9c97e44207
|
Have Base.splice() delete the indices of removed items.
|
2011-05-15 21:37:01 +01:00 |
|
Jürg Lehni
|
31be916c4f
|
Add dontModify parameter to #set() method in Linked* classes, and rename #_set to #_setter.
|
2011-05-15 20:34:22 +01:00 |
|
Jürg Lehni
|
a2dc2c7dd8
|
Fix comment.
|
2011-05-15 20:27:12 +01:00 |
|
Jürg Lehni
|
818c847d73
|
Add LinkedSize and use it in Rectangle#getSize().
|
2011-05-15 20:26:56 +01:00 |
|
Jürg Lehni
|
10d56f318f
|
Add Size#isZero().
|
2011-05-15 20:26:37 +01:00 |
|
Jürg Lehni
|
638d768406
|
Move Point#equals() to other test methods.
|
2011-05-15 20:26:20 +01:00 |
|
Jürg Lehni
|
217a2e6ecb
|
Remove dirty rectangle test code for now.
|
2011-05-15 20:09:50 +01:00 |
|