Commit graph

4300 commits

Author SHA1 Message Date
Jürg Lehni
1ee6bb7e79 Use isZero() when checking for straight curves in Curve.getLength() 2013-09-23 08:13:32 -07:00
Jürg Lehni
123b6b680d Start implementing TypeScript declaration file. Work in progress. 2013-09-22 18:06:47 -07:00
Jürg Lehni
139d17033a Update JSDoc. 2013-09-22 18:06:29 -07:00
Jürg Lehni
5f8c00fe8d Start implementing Item#globalToLocal() and #localToGlobal() 2013-09-22 18:04:27 -07:00
Jürg Lehni
5a45260740 Docs: Fix shadow example. 2013-09-12 15:30:07 -07:00
Jürg Lehni
cc29cab671 Fix issue with importing SVG document nodes.
Closes #276.
2013-08-26 16:35:15 -07:00
Jürg Lehni
19c7788617 Fix documentation irregularities. 2013-08-23 19:45:28 -07:00
Jürg Lehni
cd74aaf5a3 Remove caching of inverse transform.
View#matrix can be directly modified, and we don't have change tracking on matrices yet.
2013-08-23 19:29:28 -07:00
Jürg Lehni
19f50be897 No need to pass false for allowNull as it's the default. 2013-08-16 19:20:35 -07:00
Jürg Lehni
6d751fc466 Add mouse hovering to StrokeBounds example. 2013-08-16 16:40:26 -07:00
Jürg Lehni
40f2547e5f Correctly detect image size on all browsers.
Closes #268.
2013-08-15 11:32:47 -07:00
Jürg Lehni
cb6833176c Use named module AMD syntax for defining paper.
Closes #261.
2013-08-14 14:26:23 -07:00
Jürg Lehni
590c89840c Merge Raster#setImage() and #setCanvas(). 2013-08-14 12:29:56 -07:00
Jürg Lehni
cc565b3fe2 Rename Raster#getSubImage() to #getSubCanvas(), and use insert: false combined with #insertAbove() to correctly insert newly created rasters. 2013-08-14 12:21:47 -07:00
Jürg Lehni
5981ddf89f Implement Raster#getSubRaster() and document both #getSubImage() and #getSubRaster(). 2013-08-14 12:14:28 -07:00
Jürg Lehni
1a1c2674fd Take Item#matrix into account when drawing gradients.
Closes #267.
2013-08-14 11:27:04 -07:00
Jürg Lehni
720dd1b35d Do not apply operator overloading in situations where UpdateExpressions happen inside other contexts that would cause a change of behavior, e.g. array[i++], or if (i++ < 1).
Closes #260.
2013-08-09 10:58:29 -07:00
Jürg Lehni
1120b6012c Merge pull request #262 from huochunpeng/fix_typo_in_matrix
fix typo "Concatentates".
2013-08-08 17:24:40 -07:00
Jürg Lehni
46f6261d38 Merge pull request #265 from duckmaestro/master
Fix to #263: _children undefined inside call to myShape.isEmpty().
2013-08-08 17:24:10 -07:00
Jürg Lehni
6b19f25f4b Fix typos in comments. 2013-08-08 15:21:35 -07:00
Clifford Champion
2d3200c8d7 Fix to #263: _children undefined inside call to myShape.isEmpty(). 2013-07-27 23:47:49 -07:00
Chunpeng Huo
4904a1df1f fix typo "Concatentates". 2013-07-26 15:22:37 +10:00
Jürg Lehni
5e8ec2066b Clean up comment. 2013-07-21 16:52:18 -07:00
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