Jürg Lehni
e36319b71a
Give PathItem#getIntersections() a way to filter found intersections right away.
...
And use it in #getCrossings()
2015-09-21 10:41:59 -04:00
Jürg Lehni
ae93652b56
Clean up getIntersection() methods.
...
Now that they filter the results on the fly.
2015-09-18 17:31:23 +02:00
Jürg Lehni
71a7cc37e6
Many documentation clean-ups.
2015-09-06 17:20:01 +02:00
Jürg Lehni
b52d343527
Use same notation for all injection scopes.
2015-09-06 16:48:23 +02:00
Jürg Lehni
cf813faa75
Remove all mention of points and square points as units.
...
And some other doc clean-ups.
2015-09-06 16:37:10 +02:00
Jürg Lehni
31771aa01d
Insert results of boolean operations above whichever of the two paths appear further up in the stack.
2015-08-30 14:47:46 +02:00
Jürg Lehni
fd1f2e56f8
Optimize Item#intersects() by only checking to see if there are at least one intersection.
2015-08-25 11:45:28 +02:00
Jürg Lehni
af24af8916
Merge pull request #730 from sapics/raster.toDataURL
...
add param to raster.todataurl
2015-08-21 17:41:32 +02:00
Jürg Lehni
13b5e6ce22
Help JS minification.
2015-08-21 15:15:06 +02:00
Jürg Lehni
4cdc572824
Merge pull request #729 from sapics/item-matrix
...
setMatrix of item makes more useful
2015-08-21 15:11:49 +02:00
Jürg Lehni
3dd0f1fc1b
Introduce new option in SVGExport to not embed images.
...
Closes #696
2015-08-20 19:34:38 +02:00
Jürg Lehni
650bf5d616
Implement CORS support on Raster.
...
Closes #754
2015-08-20 19:14:33 +02:00
Jürg Lehni
2366e03265
Implement getItems(function() {}).
...
As requested in #751 .
2015-08-19 01:04:47 +02:00
Jürg Lehni
39ea409684
Fix issue with param.overlapping in #getItems()
...
Consider items fully contained inside the rectangle as overlapping as well.
Closes #751 .
2015-08-19 00:55:44 +02:00
Jürg Lehni
98edddc5ac
Include _pivot in cloning.
...
Closes #747
2015-08-17 14:47:56 +02:00
Jürg Lehni
65f085cc98
Have option.matchShapes control conversion to SVG polygon elements as well.
...
Closes #753
2015-08-17 14:18:22 +02:00
Jürg Lehni
ffb3ea8d15
Fix wrong URL in documentation.
2015-07-27 12:15:01 +02:00
Jürg Lehni
59b7da0ed5
Fall back to pixelRatio 1 when none is defined.
...
Required in Item#rasterize() for non-native blend modes. This broke phantomjs tests.
2015-07-27 09:56:37 +02:00
Jürg Lehni
cce42bc6f2
Filter out project
key in object literal constructor.
...
It was causing issues when running test suites in phantomjs.
2015-07-26 14:01:00 +02:00
sapics
d99b2be49a
add param to raster.todataurl
2015-07-14 10:17:20 +09:00
sapics
da2caa999e
item.setMatrix useful
2015-07-11 18:31:03 +09:00
sapics
d7a4dd2780
rect -> rectangle
2015-07-03 10:00:57 +09:00
Jürg Lehni
708e8d7834
Include documentation about importSVG() onLoad callbacks.
...
See #715 .
2015-06-23 09:40:11 +02:00
Jürg Lehni
4fde7ab37d
Add applyMatrix option to importSVG()
2015-06-16 17:52:34 +02:00
Jürg Lehni
b541088c6f
A whole lot of documentation clean-up.
2015-06-16 17:50:37 +02:00
Jürg Lehni
2cf6cd7a14
Correctly clone all attributes in Shape#toPath() and Path#toShape()
...
Also write documentation for both methods.
Closes #622 .
2015-06-16 14:30:40 +02:00
Jürg Lehni
ba12eec7f5
Some documentation clean-up.
...
- Prefer @return over @returns
- Place @see at the end, before @example
2015-06-16 14:08:34 +02:00
Jürg Lehni
c7281ee619
Properly handle bounds caching when items are empty first.
...
Closes #676 .
2015-06-15 19:04:15 +02:00
Jürg Lehni
6ec34fbb60
Replace Lenna with Marilyn.
2015-05-31 10:50:04 +02:00
Jürg Lehni
27bb8a356f
Implement unique ids, and fix issue with Base.deserialize()
...
Gradient and Symbol were overriding each other in the dictionary, and dictionary entries could not contain references to other dictionary entries.
Closes #690
2015-05-11 19:39:39 +02:00
Jürg Lehni
8e7829db5e
Remove obsolete comment about hitTest options merge
2015-04-12 15:07:26 +02:00
Jürg Lehni
48bc34b21f
Filter out deserialized dictionary in Base.deserialize()
...
Closes #637
2015-02-28 19:03:03 +01:00
Jürg Lehni
3b47d7ee89
Only draw Raster items when they're fully loaded.
...
Closes #645 .
2015-02-28 18:30:23 +01:00
Jürg Lehni
7c2492ac2a
Docs: Improve Item#applyMatrix.
2015-02-26 13:38:29 +01:00
Jürg Lehni
3c31c0e482
Have SVGImport respect the current PaperScope's applyMatrix setting.
2015-01-02 14:19:17 +01:00
Jürg Lehni
66c67fbe94
Improve insertion handling for Item and Layer so insertAbove() / insertBelow() works for Layers too.
...
Closes #603
2014-12-29 23:16:13 +01:00
Jürg Lehni
16105067bf
Correctly handle Item#insertChild(null)
2014-12-28 18:29:20 +01:00
Jürg Lehni
a307bc4d14
Implement recursively
parameter in Matrix#apply(), so matrices can be backed in recursively in children too.
2014-12-28 18:29:04 +01:00
Jürg Lehni
80e64ad0a9
Implement setters for Raster#width and #height, and properly handle these values being set in constructors, along with #size.
...
Closes #557 .
2014-12-28 18:27:32 +01:00
Jürg Lehni
c48f4d772e
Expose #className on all classes that define #_class
...
Closes #576
2014-11-30 11:13:51 -08:00
Jürg Lehni
19a9976939
Return emitter in #on(), #off(), #once(), so calls can be chained.
2014-11-18 14:56:55 -08:00
Jürg Lehni
0fb7e49248
Return a LinkedPoint from Item#scaling.
...
Closes #544 ,
2014-11-09 07:46:45 -08:00
Jürg Lehni
a39eea64e9
Improve docs sequence a bit.
2014-10-20 23:55:24 +02:00
Jürg Lehni
6e9ff38c15
Fix spelling mistakes in docs.
2014-10-20 23:45:33 +02:00
Jürg Lehni
e7707cd354
Implement match.inside and match.overlapping in #getItems(match).
...
Closes #275
2014-10-20 23:35:47 +02:00
Jürg Lehni
99ef521af4
Switch from inline @option tags to real doc tags.
2014-10-20 23:33:28 +02:00
Jürg Lehni
c25548031b
Clean up documentation for Project#getItems() / Item#getItems().
2014-10-20 22:44:15 +02:00
Jürg Lehni
82b988327d
Update docs to use the newly introduced {@option} tag to docuemnt option-style objects.
2014-10-20 22:41:45 +02:00
Jürg Lehni
782bde238c
Find a more general implementation for Item#intersects(item).
2014-10-20 18:00:07 +02:00
Jürg Lehni
5ddbc5b07f
Implement Item#intersects(item)
2014-10-20 17:00:18 +02:00