Commit graph

834 commits

Author SHA1 Message Date
adroitwhiz
16d5ff0267
Merge pull request #40 from adroitwhiz/fix-gradient-stroke-scaling
Properly render gradients when strokeScaling = false
2020-07-28 15:52:11 -04:00
adroitwhiz
b25ce1958c Add test for strokeScaling gradients 2020-06-09 13:46:06 -04:00
adroitwhiz
3e4927f6be Add test for numeric SVG ID import 2020-06-03 16:23:56 -04:00
adroitwhiz
c3c51d29f6 Merge commit '7bb34e4' into merge-latest-paper 2020-05-29 12:26:53 -04:00
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
Jürg Lehni
af509f6431 Clamp opacity values to [0, 1]
Closes #1814
2020-05-23 15:41:18 +02:00
Samuel Asensi
8d67d14e98
Fix: closed Path with blend mode throw error (#1763)
Closes #1755
2020-05-23 14:54:51 +02:00
Jürg Lehni
5631279f99 Support SVG strings with leading line-breaks
Closes #1813
2020-05-23 13:40:27 +02:00
adroitwhiz
1352e3d3d2 Fix raster smoothing test 2020-05-16 04:56:53 -04:00
DD Liu
eab98477cb
Revert "Merge paper.js 0.12.3" 2020-04-30 11:43:22 -04:00
waruyama
1efa0edb50
Fix #1769 and add additional test case (#1772) 2020-02-10 23:49:50 +01:00
Jürg Lehni
efcdd7bda8 Handle CurveLocation on path with only one segment 2020-01-15 09:40:49 +01:00
Samuel Asensi
2b62eb5cfa Fix shape bounds when passing position in constructor (#1708)
In some special circumstances, when position was passed in constructor
and when position key was before size key, bounds were wrongly
calculated.
This ensure that when size is set, even the first time, bounds are
properly recalculated.
Closes #1686
2019-12-15 14:31:31 +01:00
Jürg Lehni
c82e5d41f7 Improve fix for nested group matrix reset
Closes #1711
2019-12-14 19:40:00 +01:00
sapics
871531b46a Fix parsing of rgb color string with percentages 2019-12-06 13:22:56 +01:00
adroitwhiz
7dad1a495d Fix handling of negative Shape sizes (#1733) 2019-11-09 18:17:26 +01:00
adroitwhiz
fbd0de1925 Merge paper.js 0.12.3 2019-11-08 21:16:48 -05:00
sasensi
f84199c83d Fix: nested group matrix should not be reset
When a group had `applyMatrix` set to `false`, when its parent's matrix
was applied, its matrix was applied to its children then it was reset.
This makes sure that in this case, parent matrix is only added to child
matrix but not applied to child's children and that child's matrix is
not reset.
Closes #1711
2019-11-05 23:11:13 +01:00
Samuel Asensi
aec1c2c138 Fix SymbolItem#hitTestAll()
Closes #1680
2019-07-12 12:06:26 +02:00
Jürg Lehni
652574115c Implement unit test for #1255
This appears to have been fixed in the meantime.
Closes #1255
2019-06-23 10:30:56 +02:00
Jürg Lehni
bba70907e7 Fix PathItem#isCrossing() to not return overlaps
Closes #1409
2019-06-23 10:27:31 +02:00
Jürg Lehni
7f496408b5 Crossing detection: Revert boundary checks
Adjust ambiguous edge case test instead
2019-06-23 10:26:47 +02:00
Jürg Lehni
2ef8175cb8 Boolean: No need to actually check for fill 2019-06-23 04:47:34 +02:00
Jürg Lehni
192437dbe2 Boolean: Avoid winding edge cases
Stay clear from testing winding on actual segments.
Closes #1619
2019-06-23 04:19:20 +02:00
Jürg Lehni
14ce1dc011 Boolean: Correctly handle open filled paths
Closes #1647
2019-06-23 03:24:13 +02:00
Jürg Lehni
978cd94a9e Boolean: Add check for paths with only one segment
Closes #1351
2019-06-22 18:48:16 +02:00
Jürg Lehni
e779d24a6d Implement higher precision in getSignedDistance()
Also add unit test for overlap edge case.
Closes #1262
2019-06-22 18:42:19 +02:00
Jürg Lehni
ef8ba35911 Implement unit tests for 3ff5560c0c
Closes #1419, closes #1263
2019-06-22 18:21:47 +02:00
Jürg Lehni
f66c73e534 Fix regression in curve-intersections code
Closes #1638
2019-06-22 15:27:25 +02:00
Samuel Asensi
4172eafba0 Add/unit test for color change propagation (#1675)
Relates to #1672
2019-06-22 15:17:35 +02:00
Jürg Lehni
b5c753f23d Improve test for #1651
Move to the right place and simplify to only test against a non-invertible matrix.
2019-06-19 22:05:26 +02:00
Dan Stucky
32aff8e895 Handle non-invertible matrices in Item#contains() (#1651) 2019-06-19 21:59:41 +02:00
Samuel Asensi
c04746aa00 Fix SVG export with Symbol (#1670)
Closes #1668
2019-06-18 06:15:20 +02:00
sasensi
3177c7ac46 Fix Path#arcTo() when from/to points are equal
Closes #1613
2019-06-10 00:01:46 +02:00
Jürg Lehni
4ba406bfe3 Streamline code for #1427 2019-06-09 23:35:33 +02:00
sasensi
e3c298d3f4 Fix ignoring of clip item matrix in group internal bounds
Closes #1427
2019-06-09 23:28:30 +02:00
Jürg Lehni
4aa1bebf26 Improve handling of increment/decrement operators
Closes #1450
2019-06-09 19:29:07 +02:00
sasensi
80131f0398 Fix PaperScript#compile() with prefix operators
Closes #1611
2019-06-09 19:23:53 +02:00
Jürg Lehni
aca3059814 Move color owner handling directly to Color class
There was already Color#_owner, now there is Color#_setter too
2019-06-09 18:01:42 +02:00
sasensi
06e0c43325 Fix change propagation with colors on groups
Closes #1152
2019-06-09 17:54:18 +02:00
sasensi
25f2a0e779 Fix drawing with compound-paths as clip-items
Closes #1361
2019-06-09 16:37:38 +02:00
sasensi
0eae0b6e4d Prevent Item#importJSON() from overriding Item#insert()
Closes #1392
2019-06-09 16:28:20 +02:00
sasensi
eeb26436b0 Fix bounds error with nested empty items
Closes #1467
2019-06-09 16:10:54 +02:00
Jürg Lehni
c5b304bb78 Exclude gradients-2 test again on phantomjs
Reverting 5cb93ec46e 🤦‍♂️
The isNode() shenanigans was masking this issue
2019-06-09 14:57:02 +02:00
sasensi
5a3cf624aa Fix importSVG() linear gradient x2 default values 2019-06-09 14:42:52 +02:00
Jürg Lehni
1e2bbbdef2 Fix handling of native classes in tests again
Reverting breaking change in 10bdafa826
2019-06-09 14:34:32 +02:00
Jürg Lehni
5cb93ec46e Enable gradients-2 test in test:phantom
It doesn't seem to struggle with it anymore….
2019-06-09 14:06:35 +02:00
sasensi
4f282cec4b Fix SVG imported gradients default values
Add default values based on SVG specification document.
Closes #1632
2019-06-09 14:01:34 +02:00
Jürg Lehni
7e850d0e55 Fix resemble.js warnings during tests 2019-06-09 13:55:41 +02:00
Jürg Lehni
10bdafa826 Simplify preserving of native classes in tests 2019-06-09 13:42:20 +02:00