Commit graph

5609 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
897bc1e087
Merge pull request #39 from adroitwhiz/hit-unstroked-paths
Add hitUnstrokedPaths option to hit tests
2020-07-09 18:07:00 -04:00
adroitwhiz
54d776557f Don't import SVG IDs at all 2020-06-25 16:12:41 -04:00
adroitwhiz
f6212cd47d Properly render gradients when strokeScaling=false 2020-06-09 13:46:06 -04:00
adroitwhiz
07d7f75bb4 Add hitUnstrokedPaths option to hit tests 2020-06-05 15:38:06 -04:00
adroitwhiz
d0328d4571 Don't set numeric item names in SVG import 2020-06-03 16:23:29 -04:00
adroitwhiz
c3c51d29f6 Merge commit '7bb34e4' into merge-latest-paper 2020-05-29 12:26:53 -04:00
Jürg Lehni
7bb34e4602 Release version 0.12.7 2020-05-23 23:10:15 +02:00
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
Jürg Lehni
c20ead17c8 Make moduleExports work independently from operatorOverloading 2020-05-23 22:01:12 +02:00
Jürg Lehni
65886449e1 Release version 0.12.6 2020-05-23 21:30:44 +02:00
Jürg Lehni
ab481a497b Add option to control module exports conversion 2020-05-23 20:53:04 +02:00
Jürg Lehni
c7684bb406 Release version 0.12.5 2020-05-23 16:23:20 +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
Samuel Asensi
9f249101f0
Update Raster#drawImage documentation (#1784)
Closes #1781
2020-05-23 14:48:39 +02:00
Jürg Lehni
d2f723a0fd Add option to control operator overloading 2020-05-23 14:10:18 +02:00
Jürg Lehni
5631279f99 Support SVG strings with leading line-breaks
Closes #1813
2020-05-23 13:40:27 +02:00
Jürg Lehni
ccd92acee7 Use paper- prefix in generated view ids 2020-05-23 13:40:24 +02:00
Tim Gates
9de1d4a2f3 docs: Fix simple typo, horziontal -> horizontal
There is a small typo in src/item/Item.js, src/view/View.js.

Should read `horizontal` rather than `horziontal`.
2020-04-13 14:04:42 +09:00
Jürg Lehni
c044b698c6 Fix comment 2020-02-13 17:07:06 +01:00
Jürg Lehni
18956805ef Fix typo in getCrossingSegments()
Closes #1773
2020-02-11 22:51:33 +01: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
Jürg Lehni
a2069fc73d Revert "Improve docs for isBelow() and isAbove()"
Reverts commit f00fe1cfd2, which was factually wrong
2019-12-18 14:13:15 +01:00
Filprots
c73e08a481 Fix new Raster(HTMLCanvasElement) (#1745)
Fix a typo in object.getContext (was object.getContent) accessor to properly identify a canvas
2019-12-18 11:44:45 +01:00
Jürg Lehni
f00fe1cfd2 Improve docs for isBelow() and isAbove()
Closes #1747
2019-12-18 11:23:15 +01:00
Jürg Lehni
4bc92ce132 Release version 0.12.4 2019-12-15 21:46:29 +01:00
Jürg Lehni
c7d85b663e Use minifiable reference to arguments for repeated use 2019-12-15 19:40:40 +01:00
Jürg Lehni
dacfce0498 Implement Base.readSupported() and improve argument reading in Shape 2019-12-15 14:34:46 +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
a9ebe475e0 Some more optimizations for #1740 2019-12-14 20:29:35 +01:00
Jürg Lehni
c82e5d41f7 Improve fix for nested group matrix reset
Closes #1711
2019-12-14 19:40:00 +01:00
Jürg Lehni
d63647eb06 More refactoring for #1740 2019-12-13 18:36:07 +01:00
Jürg Lehni
46f1aaeca1 Some code refactoring for #1740 2019-12-13 16:47:49 +01:00
Jürg Lehni
a183dc0c0d Fix various issues introduced in #1740 2019-12-13 16:13:56 +01:00
waruyama
1f39b1df98 First implementation of sweep and prune (#1740) 2019-12-13 14:32:31 +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
e0009020ed Don't apply undefined styles in exportSVG 2019-11-08 21:32:56 -05:00
Aditya
f0b8799c95 fix: raster extend
The extend function was not working properly (_serializeFields were affected).
2019-11-06 10:28:22 +01: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
DD Liu
134070dea3 Comment 2019-07-29 11:20:01 -04:00
DD Liu
d64edfcf8a Solve without using node.children 2019-07-25 16:57:47 -04:00
DD Liu
9b353ba41d Use children instead of childNodes to not get text 2019-07-24 17:01:59 -04:00
Jürg Lehni
0bb04fffff Simplify fix for #1685
Create `Base` objects for options, so `extend()` can be used to override properties in a fast and nondestructive manner.
2019-07-12 12:14:22 +02:00
Samuel Asensi
aec1c2c138 Fix SymbolItem#hitTestAll()
Closes #1680
2019-07-12 12:06:26 +02:00
Samuel Asensi
0c885964d3 Add support for nullable in documentation 2019-07-12 11:52:53 +02:00
Samuel Asensi
cc15696750 Fix some documentation return types (#1679) 2019-07-01 11:16:07 +02:00
Jürg Lehni
bba70907e7 Fix PathItem#isCrossing() to not return overlaps
Closes #1409
2019-06-23 10:27:31 +02:00