Commit graph

6538 commits

Author SHA1 Message Date
Jürg Lehni
e0a0cd58d5 PaperScript: Improve tool detection code.
And implement Multiple Tools example.
2016-04-13 15:21:35 -07:00
Jürg Lehni
eceb133686 Tests: Second attempt to find fitting tolerance for failing gradient SVG export. 2016-04-13 14:37:13 -07:00
Jürg Lehni
6f4738f8b2 Tests: Increate tolerance for gradient SVG export. 2016-04-13 14:08:52 -07:00
Jürg Lehni
d8d61ff160 Fix #1015: Improve handling of already inserted children in#insertChildren() 2016-04-13 13:36:26 -07:00
Jürg Lehni
99f4ef7204 CHANGELOG: Fix strange issue reference. 2016-04-08 18:37:20 -07:00
Jürg Lehni
8420f55c4d CHANGELOG: Fix CSS example 2016-04-08 18:23:08 -07:00
Jürg Lehni
b1ce8517a5 More work on the CHANGELOG for the upcoming release
Based on @bmacnaughton's great starting point.
2016-04-08 18:22:18 -07:00
Bruce MacNaughton
e3e2ab549a Update CHANGELOG through 2016-03-22, commit 3b71de9. 2016-04-06 20:48:45 -07:00
Jürg Lehni
345730f634 Merge pull request #1002 from sapics/curve-divide
Call curve._changed at curve.divideAtTime
2016-04-06 20:24:55 -07:00
Jürg Lehni
ff82e43d2f Fix GradientStop support in SVG export.
Closes #1027
2016-04-06 20:17:13 -07:00
Jürg Lehni
83a2fa0749 Implement unit test for SVG export of gradients.
Closes #1027
2016-04-06 20:05:32 -07:00
Jürg Lehni
84421abbce Set crossOrigin before src on image objects.
Reason: https://bugs.chromium.org/p/chromium/issues/detail?id=341047
2016-04-05 12:25:24 -07:00
Jürg Lehni
5a9f3dfb27 Improve handling of local paths and CORS on Node.js 2016-04-05 12:11:54 -07:00
Jürg Lehni
093227be7e Fix leaked global variable. 2016-04-04 23:38:37 -07:00
Jürg Lehni
ae9ff56260 Improve check for local URLs in paper.resolvePath() 2016-04-04 23:30:53 -07:00
Jürg Lehni
7cf844886f Add support for relative (local) URLs on Node.js 2016-04-04 23:26:43 -07:00
Jürg Lehni
f4e4e7ab9c Switch to jsdom v8.3.0, now that it includes our node-canvas PR.
See https://github.com/tmpvar/jsdom/pull/1366
2016-04-04 17:55:43 -07:00
Jürg Lehni
53c9a9530e Merge pull request #1031 from stevemao/patch-1
Fix typo
2016-04-02 09:13:41 -07:00
Steve Mao
e7d1b1cf12 Fix typo 2016-04-02 23:55:27 +11:00
Jürg Lehni
20fc3b9f0f Optimize Curve.getArea() to use less operators.
As proposed by @iconexperience in https://github.com/paperjs/paper.js/issues/994#issuecomment-189946135, rearranged for mathematical symmetry.
Closes #994
2016-03-28 08:17:27 -07:00
Jürg Lehni
fc03e042f9 Some minor code and comment cleanup. 2016-03-28 07:59:55 -07:00
Jürg Lehni
e054b760ed Fix cases where toolPoint was null. 2016-03-27 21:41:22 -07:00
Jürg Lehni
27f866df61 Implement test for #1021. 2016-03-27 13:45:55 -07:00
Jürg Lehni
1a0c15f177 Fix #1021: use Item#getStyle() to use correct parent style in CompoundPath bounds calculations. 2016-03-27 13:39:30 -07:00
Jürg Lehni
3b71de9544 Fix #980: Implement visual selection of item.position 2016-03-17 14:15:28 +01:00
Jürg Lehni
00b2102b6d More clean-up of selection handling refactoring. 2016-03-17 13:36:02 +01:00
Jürg Lehni
336bc1092e Replace Item#_boundsSelected with #_selectBounds
Plus some refactoring.
2016-03-17 13:09:02 +01:00
Jürg Lehni
f0edcd31b0 Fix #769: Implement Item#selection flags to separate selection from item and bounds. 2016-03-17 13:02:26 +01:00
Jürg Lehni
bb19fade56 Travis CI: More SVG test adjustments. 2016-03-17 11:59:41 +01:00
Jürg Lehni
beabd6bea1 Travis CI: Adjust SVG test tolerances. 2016-03-17 11:44:24 +01:00
Jürg Lehni
d6ce4705b7 Travis CI: Use Arial in all SVG tests and reduce tolerance. 2016-03-17 11:35:06 +01:00
Jürg Lehni
17555b1879 Travis CI: See if using Arial solves the failing test. 2016-03-17 11:26:21 +01:00
Jürg Lehni
f7bb96e8b9 Fix #1000: Improve calculation of length of straight curves.
Support sub-ranges now too, through Curve.subdivide()
2016-03-17 11:24:20 +01:00
Jürg Lehni
6cd36f5460 Fix #1001: Convert absolute local gradient URLs back to relative ones. 2016-03-17 09:48:43 +01:00
Jürg Lehni
d93aca6b5c Refactor GradientStop: Improve handling of optionally defined color and rampPoint.
Relates to https://github.com/paperjs/paper.js/issues/1001#issuecomment-197557990
2016-03-17 09:38:42 +01:00
Jürg Lehni
0e658da104 SVG Import: Improve style inheritance in nested <defs> 2016-03-16 20:47:57 +01:00
Jürg Lehni
ca76c1d24f Fix #1009: Make sure all name lookup structures are kept in sync for layers too. 2016-03-16 09:56:10 +01:00
Jürg Lehni
d52a6f3107 SVG Import: Add more tests.
One currently failing.
2016-03-15 19:13:16 +01:00
Jürg Lehni
84d2a2f908 SVG Import: Fix issues with viewBox. 2016-03-15 19:00:35 +01:00
Jürg Lehni
7a4794dacf Add more unit tests for SvgImport.
Some currently failing.
2016-03-15 18:52:38 +01:00
Jürg Lehni
484d696df3 Fix #1008: Remove use of ActiveXObject in Http.request() 2016-03-14 19:40:46 +01:00
Jürg Lehni
da7d0d8f75 Implement Path#splitAt(offset)
Also make sure the deprecated Path#split(offset) works as it used to. Relates to #563
2016-03-14 18:59:09 +01:00
Jürg Lehni
73002603dd jsdom v8.0.0 equires Node.js v4.0.0 or newer. 2016-03-14 18:47:05 +01:00
Jürg Lehni
af1c481523 Correctly handle trailing slashes in XML attribute namespaces.
See #984
2016-03-14 18:31:45 +01:00
sapics
60f1e78889 Call curve._changed at curve.divideAtTime 2016-03-05 12:23:02 +09:00
Jürg Lehni
7dd110f5b2 Simplify Path#getArea()
Relates to #994
2016-02-26 17:49:44 +01:00
Jürg Lehni
1db419a87b Rename SegmentSelection related internal objects and properties.
Relates to #769, #980
2016-02-26 16:31:50 +01:00
Jürg Lehni
08bf7bfe60 Fix #995: Improve handling of event propagation on View and Item. 2016-02-26 15:13:49 +01:00
Jürg Lehni
69c34707e7 fix #994: Revert commit b5af47a7b1
Revert back to correct implementation of Path#getArea() and implement unit tests for it.
2016-02-26 12:58:50 +01:00
Jürg Lehni
27badf58f3 Fix #986: Exclude node-specific packages in browser bundlers. 2016-02-23 13:54:46 +01:00