Commit graph

7104 commits

Author SHA1 Message Date
Jürg Lehni
921eb17ac0 More work on CHANGELOG for release of 0.11.6 2018-10-13 19:58:12 +02:00
Samuel Asensi
54b20c0268 Improve global matrix cache invalidation performance (#1563) 2018-10-13 19:53:45 +02:00
Jürg Lehni
70e58162f0 PaperScript: Better deal with compile exceptions 2018-10-13 18:49:54 +02:00
Jürg Lehni
d6d5accd1a Allow PaperScripts to export from their code
Supporting `export default`, named exports, as well as `module.exports`
2018-10-13 18:44:25 +02:00
Jürg Lehni
c41509479f Use separate ChangeFlag for matrix changes
See https://github.com/paperjs/paper.js/pull/1552#issuecomment-429547010
2018-10-13 16:44:35 +02:00
Jürg Lehni
c5b822da79 Improve validity check for cached global matrix
Relates to #1552, #1448
2018-10-13 16:32:53 +02:00
Samuel Asensi
8bef865892 Fix children global matrices are not cleared (#1552)
Between a parent transformation and next view update, children global
matrix was invalid, leading to wrong global coordinates calculation.
Closes #1448
2018-10-13 16:28:20 +02:00
Samuel Asensi
60f9d868a6 Fix Path#arcTo() do not pass by through point (#1543)
Closes #1477
2018-10-13 15:33:21 +02:00
sapics
3e19a96c46 Update CHANGELOG.md for next version (#1537) 2018-10-13 14:43:17 +02:00
Samuel Asensi
5cd1ca13c5 Fix item global matrix error (#1562)
Bug happen when item is drawn after an empty symbol that should be drawn
in a separate canvas context (partial opacity or special blend mode).
As bounds are empty, symbol drawing process is interrupted but its
global matrix is not removed from the stack.
Closes #1561
2018-10-13 14:41:38 +02:00
Jürg Lehni
5245436e36 Do not polute global scope with paper object
Closes #1544
2018-10-10 23:10:51 +02:00
Jürg Lehni
4c035ada36 Minor fixes in comments and tests. 2018-10-10 23:03:57 +02:00
Samuel Asensi
76d07892d1 Add Item#locked to documentation (#1556)
Closes #1436
2018-10-09 22:05:22 +02:00
Samuel Asensi
bca5480640 Fix first mouse drag event is emitted twice (#1553)
Closes #1447
2018-10-09 22:04:18 +02:00
Samuel Asensi
dfe4397a96 Improve hit test point documentation (#1559)
Specifies that hit test point should be provided in global coordinates
system.
Closes #1430
2018-10-09 21:44:04 +02:00
Samuel Asensi
c0abbe1459 Fix raster shadow is not drawn (#1555)
Closes #1437
2018-10-09 11:38:52 +02:00
Jürg Lehni
fd1a517e84 Improve hex Color parser
Addresses changes in #1469
2018-10-06 21:57:30 +02:00
Jürg Lehni
fb47244787
Travis: Remove Node 4 and add Node 9 (#1548) 2018-10-06 17:16:55 +02:00
sasensi
f7ce43a9e9 Fix item selected position with matrix not applied
Make sure selected position is drawn in global coordinates system
whether item is in a group or not and whether matrix is applied or not.
Correct a bug introduced in 34679614c0.
2018-10-06 13:15:27 +02:00
PeterLazar
a8f78859cb Add hexadecimal with alpha color parsing
Closes #1468
2018-10-05 20:14:20 +02:00
sasensi
a36c1bac75 Fix typo in pull request template 2018-10-05 11:45:14 +02:00
Jürg Lehni
f5366fb3cb Some minor adjustments for #1530 2018-10-05 10:01:51 +02:00
Samuel Asensi
c235d6a917 Implement Curve#getTimesWithTangent()
and Path#getOffsetsWithTangent()
2018-10-05 09:44:42 +02:00
Jürg Lehni
47af603173 Support alpha channel in named CSS colors
Closes #1539
2018-10-04 17:26:48 +02:00
Jürg Lehni
28dec90a88 Wrap up Raster#smoothing feature 2018-10-03 19:01:02 +02:00
Jürg Lehni
1c4e5cd84b Update JSDoc 2018-10-03 18:38:40 +02:00
Jürg Lehni
144370169e
Merge pull request #1529 from sasensi/Fix_#1521_adding_raster.smoothing_property
Fix #1521 adding Raster.smoothing property
2018-10-03 18:38:01 +02:00
Jürg Lehni
6a278c040a Minor clean-ups for the past few PRs 2018-10-03 18:21:26 +02:00
Jürg Lehni
959ccc83c2
Merge pull request #1531 from sasensi/Fix_#1503_Item#position_caching_issue
Fix #1503 Item#position caching issue
2018-10-03 17:33:24 +02:00
Jürg Lehni
27b92a6007 Improve handling of push() with lots of items
Improves fix for #1493, should pass CI again
2018-10-03 16:45:38 +02:00
Jürg Lehni
da3a36230f Color: Improve CSS string parser and docs 2018-10-03 15:56:15 +02:00
Jürg Lehni
e41ed5e723 Increase test:phantom timeout 2018-10-03 11:37:46 +02:00
Jürg Lehni
9201ea973e
Merge pull request #1533 from sasensi/Fix_#1501_errors_with_event_listeners_on_mobile
Fix #1501 errors with event listeners on mobile
2018-10-03 10:22:49 +02:00
Jürg Lehni
a148e61129
Merge pull request #1534 from sasensi/Fix_#1493_Path#add_crashes_whith_1000000_segments
Fix #1493 Path#add crashes whith 1000000 segments
2018-10-03 10:18:15 +02:00
Jürg Lehni
f032dcbf06
Merge pull request #1535 from sasensi/Fix_selected_position_is_wrongly_placed_when_item_is_in_a_group_with_matrix_not_applied
Fix: selected position is wrongly placed when item is in a group with matrix not applied
2018-10-03 10:16:59 +02:00
sasensi
34679614c0 Fix: selected position is wrongly placed when item is in a group with matrix not applied 2018-10-03 09:43:40 +02:00
sasensi
d12b99e252 Improve Path#add performance with big arrays 2018-10-03 08:59:36 +02:00
Jürg Lehni
5b0a3d2384
Merge pull request #1532 from sapics/fix-svg-import-apply-attributes
Fix:SvgImport apply attributes to item
2018-10-02 21:11:40 +02:00
sasensi
f673542640 Refactor code to fit style rules 2018-10-02 19:28:35 +02:00
sasensi
c034ebf554 Refactor code to fit style rules 2018-10-02 19:20:12 +02:00
sasensi
fc5bb4b10e Fix #1493 Path#add crashes whith 1000000 segments 2018-10-02 14:09:34 +02:00
sasensi
54e1a0c1ef Fix: calling event.preventDefault() on not cancelable events produces errors 2018-10-02 10:31:49 +02:00
sasensi
cb9fbd7789 Fix #1501 document touchstart/touchmove events are passive by default in chrome and event.preventDefault() calls are ignored 2018-10-02 10:29:39 +02:00
sapics
cce5b24e9a Fix:SvgImport apply attributes to item #1416 2018-10-02 16:35:32 +09:00
sasensi
704d37be2f Fix #1503 Item#position caching issue 2018-10-01 19:25:04 +02:00
sasensi
07ae09a76a Fix #1521 adding raster.smoothing property 2018-09-30 18:46:02 +02:00
Jürg Lehni
53897d7498 Simplify code from #1528 2018-09-29 16:26:47 +02:00
Jürg Lehni
990cf02879
Merge pull request #1528 from paperjs/fsih-svg-translate-optional-arguments
SVGImport: Support optional arguments in SVG translate and rotate
2018-09-29 16:25:22 +02:00
DD
bf63bf223c Add rotate case as well 2018-09-29 16:19:32 +02:00
DD
8d0fecbb1b For SVG import, If second argument is missing in translate, assume that it's zero. Currently it assumes that y matches x if y is missing. 2018-09-29 16:19:09 +02:00