Commit graph

1094 commits

Author SHA1 Message Date
Jürg Lehni
dff0c595f0 Add simple CompoundPath example. 2011-05-15 19:14:21 +01:00
Jürg Lehni
7ba2fcad2a Allow passing of Paths to CompoundPath constructor as arguments, without an array object. 2011-05-15 19:14:09 +01:00
Jürg Lehni
e9e93abb44 Add test for #clockwise orientation in CompoundPath. 2011-05-15 19:10:12 +01:00
Jürg Lehni
0fd8c4e046 Fix CompoundPath test and add it to load.js so it actually gets tested. 2011-05-15 19:09:34 +01:00
Jürg Lehni
c9d0f982c2 Don't set _clockwise in Path#isClockwise(), as it should only be set once the use explicitely does so. 2011-05-15 19:02:50 +01:00
Jürg Lehni
441dc3641d Add additional test for #name. 2011-05-15 18:53:22 +01:00
Jürg Lehni
d12608c708 Minor clean ups. 2011-05-15 18:53:09 +01:00
Jonathan Puckey
a9fbc41e15 Clean up Item#name code. 2011-05-15 19:27:32 +02:00
Jonathan Puckey
16ab461fde Merge remote branch 'origin/master' 2011-05-15 19:14:05 +02:00
Jonathan Puckey
db06f55e3f Add tests for named access of items. 2011-05-15 19:13:55 +02:00
Jürg Lehni
1b58719202 Merge remote-tracking branch 'origin/master' 2011-05-15 18:13:00 +01:00
Jürg Lehni
cd7544c7c7 Switch examples to using event.count in onFrame(). 2011-05-15 18:12:56 +01:00
Jonathan Puckey
a90aa09bd7 Merge remote branch 'origin/master' 2011-05-15 19:12:38 +02:00
Jonathan Puckey
d998cd30f3 Add support for accessing items by name through their parent's children list. 2011-05-15 19:12:27 +02:00
Jürg Lehni
36c9286ca9 Add #count to onFrame() event. 2011-05-15 18:08:41 +01:00
Jürg Lehni
4cee442a05 Rename items parameter to paths. 2011-05-15 18:05:47 +01:00
Jürg Lehni
3d76034600 Use Path#setClockwise() in CompoundPath constructor to reverse top path so that the others appear as holes cut out from it. 2011-05-15 18:05:00 +01:00
Jürg Lehni
813b70c70b Update comment a bit to make code more clear. 2011-05-15 17:59:57 +01:00
Jürg Lehni
6e0e31480a Remove recently introduced code blocks for small conditional statements. 2011-05-15 17:59:37 +01:00
Jürg Lehni
40c988b313 Add Path#is/setClockwise(), as a way to check and define a path's orientation. 2011-05-15 17:59:06 +01:00
Jürg Lehni
6fc418b581 Fix accidentally reversed change and clean up code a bit. 2011-05-15 15:12:59 +01:00
Jürg Lehni
f150552a9c Remove test for Path#hidden which was removed already. 2011-05-15 15:10:53 +01:00
Jürg Lehni
252a3635dc Replace {@true} tags in documentation ({@true ([^}]*)} -> true $1, false otherwise.) 2011-05-15 15:06:10 +01:00
Jürg Lehni
ee8b66e19a Remove methods / fields that are hidden on Scriptographer through @jshide. 2011-05-15 15:03:33 +01:00
Jürg Lehni
2c078d8b17 Remove all code blocks and group titles from documentation since we're relying on Scriptographer code and documentation generation (through javadoc) for docs. 2011-05-15 15:01:59 +01:00
Jürg Lehni
dbef57ec8c Merge remote-tracking branch 'origin/master' 2011-05-15 14:38:18 +01:00
Jürg Lehni
c91cbe2175 Merge remote-tracking branch 'origin/master' 2011-05-15 14:37:34 +01:00
Jonathan Puckey
4ecf6d2715 Raster example: remove unnecessary document.redraw call. 2011-05-15 15:37:33 +02:00
Jürg Lehni
057b71ff4c Don't overuse variable chaining - use only were readibility does not suffer. 2011-05-15 14:29:00 +01:00
Jonathan Puckey
f8f6754068 Fix mistake in earlier commit. 2011-05-15 14:26:08 +02:00
Jonathan Puckey
3f8f539aeb Fix bugs in Raster#getAverageColor. 2011-05-15 14:13:47 +02:00
Jonathan Puckey
2c36f3a62e Fix bug in Color#read. 2011-05-15 14:11:35 +02:00
Jonathan Puckey
1a82ef4a34 Merge remote branch 'origin/master' 2011-05-15 14:09:57 +02:00
Jürg Lehni
3078e74f27 Let's not use variable chaining in examples, for clearer code. 2011-05-15 11:36:10 +01:00
Jürg Lehni
51dbd85db5 Add experimental orientation detection for Paths. 2011-05-15 11:33:09 +01:00
Jürg Lehni
06f16d0c2a Define a unique id for each PaperScript. 2011-05-15 11:32:42 +01:00
Jürg Lehni
3cb78db5f5 Fix typo. 2011-05-15 11:32:09 +01:00
Jürg Lehni
1dd0ee2533 Simplify Item#getId() 2011-05-14 22:38:27 +01:00
Jürg Lehni
0d85e0941c Add inverse matrix caching. 2011-05-14 20:20:10 +01:00
Jürg Lehni
064f3e05d3 Simplify paper scope switching code for now, as key handling code depends on paper object to always point to a valid one. This is a workaround, rethinking of how key handling should be distributed across multiple instances within one page is required. 2011-05-14 20:08:14 +01:00
Jürg Lehni
ed2ef0231f Have ctor functions be unnamed, so they don't show as 'ctor' prototypes in debugging. 2011-05-14 20:06:25 +01:00
Jonathan Puckey
fa41328804 Merge remote branch 'origin/master' 2011-05-14 20:37:25 +02:00
Jonathan Puckey
42ae3ce42e CompoundPath#draw: set param.compound to false when done drawing. 2011-05-14 20:36:58 +02:00
Jürg Lehni
2a24ec66ac Have test() method automatically create and remove a Document for reach test. 2011-05-14 18:59:04 +01:00
Jürg Lehni
df1c5cdcbb Add Document#remove(). 2011-05-14 18:58:41 +01:00
Jürg Lehni
5593eb94d0 Simplify Item#_removeFromParent(). 2011-05-14 18:11:31 +01:00
Jürg Lehni
4e059af684 Reassign Item#_index in #reverseChildren(). 2011-05-14 18:07:45 +01:00
Jürg Lehni
0bab694a01 Rename Item#children to private Item#_children and add #getChildren getter. 2011-05-14 18:07:10 +01:00
Jürg Lehni
185a7f15ac Fix newly introduced error. 2011-05-14 18:00:29 +01:00
Jürg Lehni
897e00fee5 Have Document#activate() use the internal #_index property. 2011-05-14 17:57:59 +01:00