Commit graph

1157 commits

Author SHA1 Message Date
Jonathan Puckey
3f3f6dc575 Add Vektor example to Tools. 2011-05-16 17:57:58 +02:00
Jonathan Puckey
4ebb6985d6 CharacterStyle: Use 'sans-serif' as default font. 2011-05-16 15:58:10 +02:00
Jonathan Puckey
6dbecffd85 Merge remote branch 'origin/master' 2011-05-16 15:46:35 +02:00
Jonathan Puckey
2be70ae73f Gradient#setStops: improve checking for array. 2011-05-16 15:46:25 +02:00
Jürg Lehni
b65ec49207 Merge remote-tracking branch 'origin/master' 2011-05-16 14:26:48 +01:00
Jürg Lehni
c30565fb7b Remove files forgotten in recent renaming. 2011-05-16 14:26:16 +01:00
Jonathan Puckey
06f738d4db Add PathStructure example to Scripts. 2011-05-16 15:26:07 +02:00
Jonathan Puckey
979ab18e9a Implement basic version of TextItem, PointText, CharacterStyle & ParagraphStyle. 2011-05-16 15:15:47 +02:00
Jonathan Puckey
4ad47ed3aa Fix accidental internal bean access to #fillColor and #strokeColor in Path#_transform. 2011-05-16 15:11:13 +02:00
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