Commit graph

30 commits

Author SHA1 Message Date
adroitwhiz
3e4927f6be Add test for numeric SVG ID import 2020-06-03 16:23:56 -04:00
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +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
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
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
Samuel Asensi
598d9a3356 Add SVG switch support (#1597)
SVG <switch> is simply parsed as a group because conditional attributes
cannot be evaluated in paper.js context.
Relates to #1389
2019-06-07 15:06:46 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
sapics
1331554862 Fix:test replace gif to png because jsdom causes error 2018-09-29 08:55:41 +09:00
Jonathan Park
74bb49d8c0 fix issue with svg import of raster images
When importing rasters after load if the image has a matrix with any translation/skew value
the image will calculate the wrong matrix after loading.

In order to correct this we append the translation rather than prepend so
that it happens in the correct order relative to the transformation.
2018-03-02 00:19:43 +00: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
d52a6f3107 SVG Import: Add more tests.
One currently failing.
2016-03-15 19:13:16 +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
50bd5bee6f SVG: Add comments explaining IE related changes in #984 2016-02-20 00:19:36 +01:00
Jürg Lehni
dba4eb371d SvgImport: Implement options.insert to control insertion.
Also use settings.insertItems for faster import. Closes #763
2016-02-14 22:51:50 +01:00
Jürg Lehni
2025bd1a77 SvgImport: Implement onError() callback
Closes #969
2016-02-14 14:52:37 +01:00
Jürg Lehni
c0b39c4b8f Tests: Implement additional tests for SvgImport. 2016-02-11 12:51:48 +01:00
Jürg Lehni
8542eb62b4 Gulp: Add test:browser task, to solve CORS issues on Chrome. 2016-02-11 10:05:21 +01:00
Jürg Lehni
a12e99e387 Implement unit tests for SVG Importing, based on visual comparison.
For now, one test for #932
2016-02-01 20:15:37 +01:00
Jürg Lehni
af5984747f SVG: Rename 'SVG' prefix to 'Svg'
- To make it clear it's not browser-provided functionality
- To reflect how DomElement / DomEvent are already named, for the same reason
2016-02-01 12:50:22 +01:00
Jürg Lehni
96d9b6730f Rename Svg acronyms in API to SVG. 2013-04-23 07:19:08 -07:00
Jürg Lehni
9efbc288a1 Merge Path.Rectangle and Path.RoundRectangle. 2013-04-19 12:36:49 -07:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jürg Lehni
7756e90ff9 Make sure cloned items do not receive the same name when placed inside the same parent, use numbered versions instead. 2013-01-20 14:01:43 -08:00
Jürg Lehni
e7d9699999 Define failing test for cloning complex imported SVG compound paths.
Something with #clockwise goes wrong there.
2012-12-01 11:05:48 -08:00
Jürg Lehni
142bf28a70 Convert SvgExporter / SvgImporter code to function scopes that only expose functionality through methods on Item and Project. 2012-11-06 13:07:18 -08:00
Renamed from test/tests/SvgImporter.js (Browse further)