Jürg Lehni
|
b04f852667
|
Rename convertStringTo() to convertValue(), and add missing break statement.
|
2012-11-08 09:38:42 -08:00 |
|
Jonathan Puckey
|
126a631200
|
SVG Importer: remove handling of default value for path fill color for now.
|
2012-11-08 18:27:35 +01:00 |
|
Jonathan Puckey
|
56c90839ab
|
SVG Importer: fillcolor of path items should default to black.
|
2012-11-08 18:02:38 +01:00 |
|
Jonathan Puckey
|
485bc83b65
|
SVG Importer: ignore viewBox for svg element for now.
|
2012-11-08 17:48:21 +01:00 |
|
Jonathan Puckey
|
a1e38ee52e
|
SVG Importer: implement initial support for viewBox attributes.
|
2012-11-08 17:32:07 +01:00 |
|
Jonathan Puckey
|
24ecf7840e
|
SVG Importer: move string conversion code into seperate convertStringTo function for reuse.
|
2012-11-08 17:31:23 +01:00 |
|
Jonathan Puckey
|
f92e842644
|
SVG Importer: more work on Symbol importing.
|
2012-11-08 17:22:32 +01:00 |
|
Jonathan Puckey
|
2cc56c767e
|
SVG Importer: remove todo.
|
2012-11-08 15:55:50 +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
|
b7c50a16d1
|
SvgImporter: Various cleanups and improvements.
|
2012-11-08 14:32:09 +01:00 |
|
Jonathan Puckey
|
494874ec8f
|
Svg Importer: Fix handling of getDefinition for color values.
|
2012-11-08 14:29:48 +01:00 |
|
Jonathan Puckey
|
6bbc78eaef
|
SVG Importer: initial support for gradients and gradient examples.
|
2012-11-07 19:32:35 +01:00 |
|
Jürg Lehni
|
2e25dc82c6
|
Ignore .DS_Store files.
|
2012-11-07 09:37:55 -08:00 |
|
Jürg Lehni
|
6347c338ad
|
Remove .DS_Store files.
|
2012-11-07 09:36:57 -08:00 |
|
Jonathan Puckey
|
b7486a7e4d
|
SvgImport: Fix typo.
|
2012-11-07 17:28:09 +01:00 |
|
Jonathan Puckey
|
9e00a6282f
|
SVG Importer: Add support for 'use' element.
|
2012-11-07 17:21: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
|
d5a9a48db3
|
Also expose space bar state through Event#modifiers.
|
2012-11-07 01:02:48 -08:00 |
|
Jürg Lehni
|
0e22430993
|
Only set opacity and visibility when they differ from the defaults.
|
2012-11-07 01:02:28 -08:00 |
|
Jürg Lehni
|
01342fa073
|
Implement onActivate() onDeactivate() handlers on Tool, and remove onSelect() / onDeselect() which never worked.
|
2012-11-07 01:02:09 -08:00 |
|
Jürg Lehni
|
e9a9066d7f
|
Use group creation without explicit array declaration, as that's been supported all along.
|
2012-11-06 20:37:50 -08:00 |
|
Jürg Lehni
|
b1c24e2762
|
Improve importGroup() code a bit by directly filling an Item instead of an array first.
|
2012-11-06 20:28:20 -08:00 |
|
Jürg Lehni
|
1cb6a7fc3c
|
Clean up Path#smooth() code a bit.
|
2012-11-06 20:18:59 -08:00 |
|
Jürg Lehni
|
e0fa8e00b1
|
Fix example title.
|
2012-11-06 20:14:40 -08:00 |
|
Jürg Lehni
|
f110038104
|
Improve clipping mask drawing, and remove some unneeded ctx.save() / ctx.restore() calls.
|
2012-11-06 20:14:21 -08:00 |
|
Jürg Lehni
|
1581d44c06
|
Have newly created group parent in applyAttribute() propagate back up.
|
2012-11-06 20:13:29 -08:00 |
|
Jürg Lehni
|
b6ca26092f
|
SvgImporter: Do not add defs to the DOM.
|
2012-11-06 20:12:25 -08:00 |
|
Jürg Lehni
|
6d69c86962
|
Unbox CompoundPaths first when adding to clipping CompoundPaths, as CompoundPaths cannot be nested.
|
2012-11-06 18:38:09 -08:00 |
|
Jürg Lehni
|
53a8099403
|
Avoid division with almost zero.
|
2012-11-06 14:02:07 -08:00 |
|
Jürg Lehni
|
4b6207bdb6
|
Do not allow adding of items other than paths to CompoundPath.
|
2012-11-06 14:01:52 -08:00 |
|
Jürg Lehni
|
c505b53de7
|
Make clipping example work with new exporter functions.
|
2012-11-06 13:47:29 -08:00 |
|
Jürg Lehni
|
4e1db6a1d1
|
Fix a row of documentation issues.
|
2012-11-06 13:35:50 -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 |
|
Jürg Lehni
|
7a0752eb11
|
No need for private exportItem() / exportProject() functions.
|
2012-11-06 13:14:39 -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 |
|
Jürg Lehni
|
b6c0f261ee
|
Fix paper.project access in tests.
|
2012-11-06 12:52:16 -08:00 |
|
Jürg Lehni
|
88e6ac09d7
|
Add methods to Item and Project to directly use SvgImporter / Exporter functionality.
|
2012-11-06 12:49:12 -08:00 |
|
Jürg Lehni
|
c70948c762
|
Return the inserted item in #addChild() & co, instead of true / false.
|
2012-11-06 12:44:02 -08:00 |
|
Jürg Lehni
|
28642bd1c8
|
Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval().
|
2012-11-06 11:37:00 -08:00 |
|
Jürg Lehni
|
e26197cf1f
|
Optimise loops.
|
2012-11-06 11:28:50 -08:00 |
|
Jürg Lehni
|
16de863aa5
|
SvgExporter: Some more work on determineAngle().
|
2012-11-06 11:26:00 -08:00 |
|
Jürg Lehni
|
4c463eb1f1
|
SvgExporter: Some more code shortening.
|
2012-11-06 11:19:54 -08:00 |
|
Jürg Lehni
|
cd924f066e
|
SvgImporter: Reverse parameter sequence.
|
2012-11-06 11:14:08 -08:00 |
|
Jürg Lehni
|
eb0fb99b12
|
SvgExporter: Fix matrix conversion to rotate() command.
|
2012-11-06 11:06:53 -08:00 |
|
Jürg Lehni
|
00f710b599
|
SvgExporter: Rearrange code sequence.
|
2012-11-06 11:00:58 -08:00 |
|
Jürg Lehni
|
b24ee0de66
|
Document isColinear() and isArc().
|
2012-11-06 10:55:53 -08:00 |
|
Jürg Lehni
|
7dc453b58b
|
No need to escape ) inside [] in regular expressions.
|
2012-11-06 10:52:03 -08:00 |
|