Commit graph

4277 commits

Author SHA1 Message Date
Jürg Lehni
4e98036828 Bump version to v0.9.9 2013-07-21 16:51:52 -07:00
Jürg Lehni
98697eb003 Fix Layer#insertAbove / insertBelow test. 2013-07-21 16:44:30 -07:00
Jürg Lehni
16735e23af Simplify code for #insertAbove/Below(), by introducing a private helper.
Making overriding in Layer simpler.
2013-07-21 16:41:45 -07:00
Jürg Lehni
5e210c583a Switch to returning items instead of booleans in #insertAbove/Below() and adjust documentation accordingly. 2013-07-21 16:29:13 -07:00
Jürg Lehni
edfb3a51ab Improve documentation of insertion methods. 2013-07-21 16:26:16 -07:00
Jürg Lehni
e68563af53 Have #insertAbove/Below() return a boolean. 2013-07-21 16:26:03 -07:00
Jürg Lehni
e0809d26f2 Merge code for Item#insertAbove() / #insertBelow() and fix issue with wrong indices.
The previous code was faulty when item was not already in the children list.
2013-07-21 16:22:16 -07:00
Jürg Lehni
3ee3262f7a Use non-deprecated versions. 2013-07-21 16:13:27 -07:00
Jürg Lehni
092ea182dc Improve tests for moveAbove() / moveBelow(). 2013-07-21 16:11:09 -07:00
Jürg Lehni
949752556b Fix avoiding of name clashes in cloning. 2013-07-21 15:54:03 -07:00
Jürg Lehni
aa4d990c90 Move and unify handling of Item#_set(props) to new Item#_initialize(), and add support for props.insert = false. 2013-07-21 15:45:22 -07:00
Jürg Lehni
5e2654b490 Allow Item#_changed() to function before #_project is set. 2013-07-21 15:44:18 -07:00
Jürg Lehni
86a8f85874 Allow Base#_set() to exclude properties. 2013-07-21 15:43:20 -07:00
Jürg Lehni
93c90d0cd8 Do not insert boolean operation clones into DOM. 2013-07-19 18:46:28 -07:00
Jürg Lehni
6af59f7adf Filter out the insert parameter in _set for now, to prevent issues with cloning().
Work in progress.
2013-07-19 18:45:59 -07:00
Jürg Lehni
b7aea1e527 Use insert: false option in creation of all clones.
Still needs implementing in Item constructor.
2013-07-19 18:42:13 -07:00
Jürg Lehni
cfbd356247 Fix active layer test when calling Layer#clone(). 2013-07-19 18:29:21 -07:00
Jürg Lehni
20a17f2939 Implement insert parameter in Item#clone() to control DOM insertion.
Defaults to true. Also insert in the right place now, above the original.
2013-07-19 18:27:00 -07:00
Jürg Lehni
14888bca50 Define failing test about Item cloning hierarchy.
Cloned items should be inserted right above their originals.
2013-07-19 18:10:58 -07:00
Jürg Lehni
588abe7189 Only test for fill in Item#_hitTest() if options.fill is set. 2013-07-19 17:55:31 -07:00
Jürg Lehni
f466473bfb Add support for shadows.
Closes #36.
2013-07-19 17:48:29 -07:00
Jürg Lehni
ec121ca04c Separate requesting and handling of animation frames.
Closes #176.
2013-07-19 17:33:32 -07:00
Jürg Lehni
cd40bd2c9d Fix faulty comment about _handleFrameItems. 2013-07-19 15:49:51 -07:00
Jürg Lehni
3224876e6f Use fire('frame') instead of onFrame(), to correctly handle frame events on Node. 2013-07-19 15:49:16 -07:00
Jürg Lehni
ec4f194b84 Avoid use of 'window' for Node, and pass on reference to root scope instead. 2013-07-19 15:48:50 -07:00
Jürg Lehni
94c192495a Add support for canvas compositing modes to Item#blendMode.
Closes #159.
2013-07-19 15:23:16 -07:00
Jürg Lehni
175091a69f Allow combinations of blendMode and opacity.
Closes #259.
2013-07-19 11:46:13 -07:00
Jürg Lehni
47768779b7 Fix blurriness in Item#rasterize().
Closes #258.
2013-07-18 20:06:22 -07:00
Jürg Lehni
6e1c89234d Define PaperScope#activate()
Closes #256.
2013-07-18 19:21:57 -07:00
Jürg Lehni
ca790f9339 Add simple BooleanOperations Node example, illustrating how to serve results through a HTTP server. 2013-07-18 19:04:04 -07:00
Jürg Lehni
098f3e84cc Include Acorn / Esprima only into local PaperScript scope, and locally deactivate AMD.
Closes #255.
2013-07-18 09:49:30 -07:00
Jürg Lehni
85d7237c0f Avoid endless recursion in ToolEvent#middlePoint.
Closes #257.
2013-07-17 16:01:36 -07:00
Jürg Lehni
ef4eee1064 Pass true for isParameter in Curve#divide() calls.
Closes #252.
2013-07-04 19:39:55 -07:00
Jürg Lehni
b874a642ab Merge pull request #251 from amithalb/master
Fix importSVG
2013-07-04 11:23:06 -07:00
Jürg Lehni
affb44e0dd Prevent double execution of onLoad event on Raster. 2013-07-03 19:02:29 -07:00
Jürg Lehni
e87307af41 Fix issue with Image.onLoad() events.
naturalWidth/Height seems unreliable.
2013-07-03 18:49:05 -07:00
Jürg Lehni
8aee93b704 Have publish.sh rely on dist.sh 2013-07-03 14:05:03 -07:00
Jürg Lehni
f32d875b55 Push tags too. 2013-07-03 14:02:37 -07:00
Jürg Lehni
a9cf4a373b Bump version to v0.9.8 2013-07-03 14:00:25 -07:00
Jürg Lehni
3ebfc94e87 Update JSDoc. 2013-07-03 12:14:01 -07:00
Jürg Lehni
07627b60d0 Update JSDoc. 2013-07-02 16:05:21 -07:00
Jürg Lehni
f68f1ad518 Docs: Fix some faulty object parameters. 2013-07-02 12:22:45 -07:00
Jürg Lehni
29bdf49a0f Fix tests for deprecated Color constructors. 2013-07-02 07:53:58 -07:00
Jürg Lehni
6b575d476d Clean up package and bower files. 2013-07-01 06:50:39 -07:00
Jürg Lehni
8ee52d2983 Export legacy Color constructors. 2013-07-01 06:50:20 -07:00
Amit Halberstam
96b0603b9c correct reference to document in importSVG 2013-06-30 13:23:38 +03:00
Jürg Lehni
d369984196 Allow math operands larger than 1 when multiplying and dividing colors. 2013-06-28 07:59:33 -07:00
Jürg Lehni
e8765d18d5 Make argument reading more flexible by introducing options object for readNull and clone, and passing it on to the constructor through this.__options for additional values. 2013-06-28 07:37:03 -07:00
Jürg Lehni
2c578d0558 Start implementing math operators for Color. 2013-06-28 07:19:53 -07:00
Jürg Lehni
22df17c192 Docs: Minor cleanups. 2013-06-28 06:41:36 -07:00