Commit graph

60 commits

Author SHA1 Message Date
Jürg Lehni
0e658da104 SVG Import: Improve style inheritance in nested <defs> 2016-03-16 20:47:57 +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
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
0e427c16a2 Fix some white-spaces in comments and HTML. 2015-12-30 21:55:20 +01:00
Jürg Lehni
4fde7ab37d Add applyMatrix option to importSVG() 2015-06-16 17:52:34 +02:00
Jürg Lehni
0d7fe5e5a0 Clear project before importing new SVG content. 2014-09-27 22:59:45 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
2057a359c7 Change canvas size in SVG Gradient example. 2014-08-16 18:29:39 +02:00
Jürg Lehni
41c0d8f759 Implement onImport / onExport callbacks for SVG Import / export.
... and illustrate its functionality by importing Inkscape's transform-center attributes to pivots and exporting them again.
2014-05-05 20:48:30 +02:00
Jürg Lehni
b8f1cfea9f Support linked gradients.
Closes #441.
2014-04-07 01:18:17 +02:00
Jürg Lehni
b34313833d Remove accidentally committed files. 2014-04-06 13:48:44 +02:00
Jürg Lehni
fe064e9cc3 Switch from dist/paper.js to dist/paper-full.js and explain the different versions in the README.
Closes #422.
2014-04-06 13:44:19 +02:00
Jürg Lehni
bff04685f7 Include an SVG arc example. 2014-03-12 23:01:26 +01:00
Jürg Lehni
1f98d72c5b Switch HiDPI on by default.
Allow deactivation by setting the hidpi attribute to "off" on the canvas.
2013-11-06 15:32:08 +01:00
Jürg Lehni
4dcb0d66a9 Update most examples to HiDPI. 2013-11-06 12:53:50 +01:00
Jürg Lehni
f07f4ac977 Fix example titles. 2013-11-04 11:43:27 +01:00
Jürg Lehni
5ddcfe25b9 Clean up white-space. 2013-11-03 13:22:34 +01:00
Jürg Lehni
aec4c70b9a Update Butterfly example. 2013-11-03 12:23:31 +01:00
Jürg Lehni
6425a01bbd Include example to illustrate loading from local files. 2013-11-03 12:10:35 +01:00
Jürg Lehni
5e4bcbb5e5 Update to Ghostscript Tiger that currently causes issues with new importer code. 2013-11-03 12:09:58 +01:00
Jürg Lehni
7209b2f977 Add butterfly SVG example. 2013-10-29 09:42:59 +01:00
Jürg Lehni
041d88c89c Clean up clipping example. 2013-10-14 21:26:43 +02:00
Jürg Lehni
691b2f8094 Fix issues with SVG Import and matrices on groups. 2013-06-18 15:46:49 -07:00
Jürg Lehni
7f251b78e3 Switch to HTML5 meta charset tags. 2013-06-02 13:41:10 -07:00
Jürg Lehni
093f4cf7ba Fix issue with SVG transformations not being applied to gradient fills. 2013-05-09 02:37:48 -07:00
Jürg Lehni
96d9b6730f Rename Svg acronyms in API to SVG. 2013-04-23 07:19:08 -07:00
Jürg Lehni
cebeb11301 Rename Json acronyms in API to JSON. 2013-04-23 07:13:51 -07:00
Jürg Lehni
bcb10a222f Add SvgImport example for Inkscape and fix issue with multiple SVG path commands.
Closes #203.
2013-04-20 14:54:21 -07:00
Jürg Lehni
e9aad895ae Import and export Item#data in SVG as well.
Closes #188.
2013-04-09 17:53:26 -07:00
Jürg Lehni
8a69fcd1e5 Actually use precision setting in Path#getPathData(). 2013-03-03 16:51:31 -08:00
Jürg Lehni
7eb9df61b3 Update JSON for Tiger example. 2013-03-03 14:19:29 -08:00
Jürg Lehni
afeb8cbe70 No need to expand CSS 'font' shorthand property, since we're now iterating all style properties. 2013-03-01 10:21:19 -08:00
Jürg Lehni
01026c0896 Fix support for viewBox when importing SVG symbols. 2013-03-01 10:08:17 -08:00
Jürg Lehni
5fbc6e939d Fix small SVG path-data parser issue. 2013-02-28 19:33:08 -08:00
Jürg Lehni
980b772cea Add Polybezier SVG example. 2013-02-28 19:14:06 -08:00
Jürg Lehni
21ee2edb60 Fix SVG example sizes. 2013-02-25 23:49:56 -08:00
Jürg Lehni
65a9795a8a Rename #from/#toJson() to #import/#exportJson() and move them to Project / Item.
To reflect naming of #import/#exportSvg().
2013-02-25 16:17:33 -08:00
Jürg Lehni
42274bff4c Clean up examples HTML. 2013-02-12 15:08:48 -08:00
Jürg Lehni
8b4dda2fc9 Use JSON format to implement example that exports Tiger to SVG. 2013-02-12 15:01:35 -08:00
Jürg Lehni
a676d3d5c6 Revert Multiple Paths Test 1 example which I believe got accidentally modified. 2012-11-10 15:50:02 -08:00
Jonathan Puckey
661afca98f Svg Importer: getValue: make sure the attribute exists first. 2012-11-10 15:45:11 +01:00
Jonathan Puckey
71d3cca2d8 SVG Importer: support percentage values for gradient stop offset. 2012-11-08 15:55:24 +01:00
Jonathan Puckey
328763ef90 Fix titles of SVG Import examples. 2012-11-08 15:25:26 +01:00
Jonathan Puckey
fac9b3a0e9 SVG Importer Gradients example: Use percentages in stops of first gradient. 2012-11-08 14:52:01 +01:00
Jonathan Puckey
6bbc78eaef SVG Importer: initial support for gradients and gradient examples. 2012-11-07 19:32:35 +01:00
Jonathan Puckey
c704d285f2 SVG Importer: Use importGroup to import defs. 2012-11-07 17:21:02 +01:00
Jonathan Puckey
eb22e3bf95 Add Tiger SVG Import example. 2012-11-07 17:19:42 +01:00
Jürg Lehni
e0fa8e00b1 Fix example title. 2012-11-06 20:14:40 -08:00
Jürg Lehni
c505b53de7 Make clipping example work with new exporter functions. 2012-11-06 13:47:29 -08:00
Jonathan Puckey
71ed477bc4 Add example of importing of clipped svg paths, compound paths and groups. 2012-11-06 22:19:49 +01:00