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
0dc51c2239
Include BooleanOperations example from website
2019-12-14 20:32:00 +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
4e764613d3
Update resemblejs+canvas
2019-11-09 10:29:06 -05:00
adroitwhiz
e0009020ed
Don't apply undefined styles in exportSVG
2019-11-08 21:32:56 -05:00
adroitwhiz
fbd0de1925
Merge paper.js 0.12.3
2019-11-08 21:16:48 -05:00
Samuel Asensi
43bbb249ab
Allow paper core import in TypeScript ( #1716 )
...
* Allow paper core import in TypeScript
Typings were missing when importing paper core version with:
`import * as paper from 'paper/dist/paper-core'` syntax.
This changes the generated TypeScript definition so that it exports two
modules: `paper` and `paper/dist/paper-core`. In the same logic,
`paper-core.d.ts` file is added to make sure that the corresponding
definition is automatically loaded.
This also takes care of the fact that `PaperScript` class is not
available in paper core version, by removing it from the corresponding
TypeScript definition.
Finally, this also simplifies existing definition by directly exporting
a `PaperScope` instance as the module instead of duplicating all
`PaperScope` properties and methods on the module itself.
Closes #1713
2019-11-07 12:12:14 +01: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
Samuel Asensi
aa9dc86e7b
Fix issue template typo ( #1704 )
2019-08-12 16:24:29 +02:00
DD Liu
bd2252651b
Merge pull request #26 from fsih/fixPaintTspans
...
Test for getAttribute before calling
2019-07-29 11:21:04 -04: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
3e5d4fa1c6
Remove Bower instructions and clean up README
2019-07-12 12:41:15 +02: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
Jürg Lehni
c9a8d54623
Update JSDoc for #1677
2019-07-12 11:57:33 +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
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
b51a4bed57
Change winding quality handling when on starting point
2019-06-23 04:48:05 +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
15e00e0b99
Introduce Numerical.isMachineZero()
...
Used in places requiring smaller epsilons for zero comparisons
2019-06-22 23:05:50 +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
3ff5560c0c
Improve CurveLocation.isCrossing()
...
Better handles edge cases in offsetting tests
2019-06-22 17:31:36 +02:00
Jürg Lehni
f66c73e534
Fix regression in curve-intersections code
...
Closes #1638
2019-06-22 15:27:25 +02:00
Jürg Lehni
a5a13f541a
Update JSDoc to fix regression in link rendering
2019-06-22 15:18:40 +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
b485724f83
Switch back to load.js versions on develop branch.
2019-06-22 14:43:53 +02:00
Jürg Lehni
f89934e331
Release version 0.12.3
2019-06-22 14:40:54 +02:00
Jürg Lehni
68ea63d99e
Fix JSDoc warning message
2019-06-22 14:16:49 +02:00
Jürg Lehni
fd4cd90a19
Revert built dist files
...
See https://github.com/paperjs/paper.js/pull/1669#issuecomment-504659166
2019-06-22 13:51:35 +02:00
Samuel Asensi
b24e9b3835
Fix typescript definition issues ( #1669 )
...
Closes #1667
Closes #1664
Closes #1663
Closes #1659
2019-06-22 13:46:05 +02:00
Jürg Lehni
e5d7bafd39
Update JSDoc and add some minor doc changes
2019-06-22 13:41:05 +02:00
Jürg Lehni
0b806e52db
Another attempt at fixing publish task
...
I guess we'll find out shortly if it works
2019-06-22 13:14:16 +02:00
Jürg Lehni
6c6982b563
Update CHANGELOG
2019-06-22 13:01:22 +02:00