Jürg Lehni
|
9b75362f3e
|
Always respect options.asString
|
2013-11-01 18:27:20 +01:00 |
|
Jürg Lehni
|
2a9fe48cc9
|
Add options.matchShapes support to #exportSVG and improve documentation of various import / export functions.
|
2013-10-30 16:18:59 +01:00 |
|
Jürg Lehni
|
71a7781bdd
|
Fix comment.
|
2013-10-30 01:27:07 +01:00 |
|
Jürg Lehni
|
cabe253dea
|
Remove unused argument.
|
2013-10-30 01:26:05 +01:00 |
|
Jürg Lehni
|
2a88042315
|
Handle importing of SVG gradients for shapes, and drawing of canvas gradients correctly.
Closes #312.
|
2013-10-30 01:25:13 +01:00 |
|
Jürg Lehni
|
dec7efc939
|
Remove unused variable center.
|
2013-10-29 22:02:29 +01:00 |
|
Jürg Lehni
|
6335393541
|
Remove unused function argument.
|
2013-10-29 22:01:49 +01:00 |
|
Jürg Lehni
|
c765e26a08
|
Implement SVGImport options support.
For now only options.expandShapes, which expands Shape items to Path items.
|
2013-10-29 16:47:02 +01:00 |
|
Jürg Lehni
|
77b142bec4
|
Allow the SVGExport code to assume that the option object is always defined.
|
2013-10-29 16:41:16 +01:00 |
|
Jürg Lehni
|
922f224cbd
|
Finally remove the _gradientMatrix hack.
|
2013-10-16 23:47:21 +02:00 |
|
Jürg Lehni
|
772f8175e4
|
Remove path to shape guess-work from SVGExport.
|
2013-10-16 23:21:29 +02:00 |
|
Jürg Lehni
|
751dfe52ea
|
SVG: Define additional orthogonal check when determining shape type.
Closes #283.
|
2013-10-16 17:06:29 +02:00 |
|
Jürg Lehni
|
be5a73a61d
|
SVG: Implement support for Shape.
|
2013-10-16 16:47:00 +02:00 |
|
Jürg Lehni
|
3c0d1f26db
|
Replace accidental semi-colon.
|
2013-10-16 16:14:37 +02:00 |
|
Jürg Lehni
|
953bba4c7b
|
SVG: Use Shape instead of Path constructors for primitive shapes.
|
2013-10-16 16:12:46 +02:00 |
|
Jürg Lehni
|
d45ba19914
|
SVG: Use new Path.Ellipse constructor.
|
2013-10-16 15:28:59 +02:00 |
|
Jürg Lehni
|
01a0920c92
|
SVG: Fix faulty parsing of matrix values.
|
2013-10-16 15:27:49 +02:00 |
|
Jürg Lehni
|
cc29cab671
|
Fix issue with importing SVG document nodes.
Closes #276.
|
2013-08-26 16:35:15 -07:00 |
|
Jürg Lehni
|
19f50be897
|
No need to pass false for allowNull as it's the default.
|
2013-08-16 19:20:35 -07:00 |
|
Jürg Lehni
|
6b19f25f4b
|
Fix typos in comments.
|
2013-08-08 15:21:35 -07:00 |
|
Jürg Lehni
|
8e153beb36
|
Implement exportSVG() options parameter.
Supporting asString and precision so far.
|
2013-06-27 18:14:35 -07:00 |
|
Jürg Lehni
|
41746d2d25
|
Docs: Write documentation for #import/export JSON/SVG, for both Item and Project.
|
2013-06-27 18:03:49 -07:00 |
|
Jürg Lehni
|
0bf19d02bd
|
Add asString parameter to exportSVG() methods.
|
2013-06-27 17:43:24 -07:00 |
|
Jürg Lehni
|
1866e4ff15
|
Remove need for all special arguments in minification, and restructure code to avoid warnings.
|
2013-06-24 10:15:54 -07:00 |
|
Jürg Lehni
|
ca0513b1b2
|
Fix namespace for images in SVGExport.
|
2013-06-19 08:22:20 -07:00 |
|
Jürg Lehni
|
4bda878f5f
|
Fix accidental code removal.
|
2013-06-18 17:35:49 -07:00 |
|
Jürg Lehni
|
2241329321
|
Fix id clash in SVGExport.
|
2013-06-18 17:29:00 -07:00 |
|
Jürg Lehni
|
742ae16de1
|
Add support for SVG mix-blend-mode attribute.
Browsers have yet to support it though.
|
2013-06-18 17:19:31 -07:00 |
|
Jürg Lehni
|
278a9771ba
|
Minor clean-ups.
|
2013-06-18 17:02:02 -07:00 |
|
Jürg Lehni
|
785381b148
|
No need to set default color anymore due to detection of CSS style changes on any level.
|
2013-06-18 16:59:47 -07:00 |
|
Jürg Lehni
|
30c96dc9c1
|
Remove access to _style since we're using getters / setters on items directly now for SVGStyles.
|
2013-06-18 16:58:28 -07:00 |
|
Jürg Lehni
|
6e91d2ac9b
|
Rearrange exporter sequence.
|
2013-06-18 16:57:09 -07:00 |
|
Jürg Lehni
|
7c1e10e35e
|
Move Item#opacity support to SVGStyles.
|
2013-06-18 16:54:48 -07:00 |
|
Jürg Lehni
|
938433c51f
|
Move Style#font support to SVGStyles.
|
2013-06-18 16:49:58 -07:00 |
|
Jürg Lehni
|
ad034fbb56
|
Allow for better minification.
|
2013-06-18 16:18:13 -07:00 |
|
Jürg Lehni
|
f48ef4d1a0
|
Move more styles to SVGStyles and make them work on export too.
SVGExport now supports text justification.
|
2013-06-18 16:14:47 -07:00 |
|
Jürg Lehni
|
177229f99f
|
Define Group#transformContent as a boolean to control #applyMatrix() behavior.
And use it for SVG Import.
|
2013-06-18 15:57:30 -07: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
|
9633384122
|
Fix issue with colliding id ranges in SVG Export.
|
2013-06-18 15:01:18 -07:00 |
|
Jürg Lehni
|
95ecab8a6f
|
Improve handling of merged CompoundPath style through #getStyle().
Only access _style directly in core code if you really know what you're doing!
|
2013-06-12 20:12:08 -07:00 |
|
Jürg Lehni
|
9977ec5c28
|
Rename #toCss() to #toCSS()
|
2013-06-12 14:04:59 -07:00 |
|
Jürg Lehni
|
f2bb5d07df
|
Let's not go too far with optimizations.
|
2013-06-11 15:10:02 -07:00 |
|
Jürg Lehni
|
875a766d19
|
Implement clipPath support in SVGExporter.
|
2013-06-11 14:50:13 -07:00 |
|
Jürg Lehni
|
d41f79598e
|
Change exportDefinitions() to create an actual <defs> container for definitions.
|
2013-06-11 14:26:04 -07:00 |
|
Jürg Lehni
|
470cfae9f1
|
Clean up export code.
|
2013-06-11 14:15:54 -07:00 |
|
Jürg Lehni
|
a1cab3592b
|
No need to explicitly set fill to 'none' anymore since comparing style with parent handles this for us automatically now.
|
2013-06-11 14:15:43 -07:00 |
|
Jürg Lehni
|
b4ff0d347e
|
Optimize SVG import for clipped groups.
|
2013-06-11 12:57:03 -07:00 |
|
Jürg Lehni
|
48651d5fb1
|
Fix regression in importing SVG viewBox.
|
2013-06-08 13:44:50 -07:00 |
|
Jürg Lehni
|
cd7db56249
|
Remove all create() constructors for basic types since new constructors are now faster.
Woop!
|
2013-05-27 23:57:31 -07:00 |
|
Jürg Lehni
|
15b1ea7af0
|
Solve issue with SVG gradients on Firefox.
|
2013-05-27 10:12:23 -07:00 |
|
Jürg Lehni
|
80f9f6061c
|
Change the way the Line class handles direction vectors and infinite lines.
The beginning of performance improvements in the Line class.
|
2013-05-26 15:44:52 -07:00 |
|
Jürg Lehni
|
7f00ef8f05
|
Fix white-spaces.
|
2013-05-24 22:25:22 -07:00 |
|
Jürg Lehni
|
2b4dddbb1f
|
Handle allowNull correctly again in SVGImport.
|
2013-05-09 16:16:48 -07:00 |
|
Jürg Lehni
|
a4e875cf29
|
Simplify SVGImport attribute parsing and correctly handle failing tests with invalid coordinates.
|
2013-05-09 16:08:38 -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
|
9e5b47c1ac
|
Implement SVG transform attribute parser, to completely remove dependency on baseVal.
|
2013-05-09 02:31:10 -07:00 |
|
Jürg Lehni
|
8cc74820a8
|
Handel issue in node-canvas where color stop offsets cannot be strings.
|
2013-05-09 01:57:07 -07:00 |
|
Jürg Lehni
|
e9fb78aa08
|
Start removing dependencies on SVG baseVal.
|
2013-05-09 01:46:13 -07:00 |
|
Jürg Lehni
|
8cd57743c8
|
Switch to handling SVG tagNames case-insensitively across the whole codebase.
Since Node's jsdom doesn't provide case-sensitive tagNames.
|
2013-05-09 01:45:38 -07:00 |
|
Jürg Lehni
|
aa757e1d7b
|
Use DOMParser to handle SVG strings.
|
2013-05-09 00:22:42 -07:00 |
|
Jürg Lehni
|
6f347c98b3
|
Fix formatting.
|
2013-05-08 20:29:37 -07:00 |
|
Jürg Lehni
|
b3d7f5aff6
|
Export view size and set svg attributes in project.exportSVG()
|
2013-05-08 20:16:53 -07:00 |
|
Jürg Lehni
|
041f3a6c4d
|
jsdom uses uppercase values for nodeName with SVG too.
|
2013-05-08 18:18:47 -07:00 |
|
Jürg Lehni
|
96d9b6730f
|
Rename Svg acronyms in API to SVG.
|
2013-04-23 07:19:08 -07:00 |
|
Jürg Lehni
|
e1807214f4
|
Large refactoring of Style handling for notable speed improvements.
|
2013-04-19 19:31:29 -07:00 |
|
Jürg Lehni
|
98f7c020bd
|
Use Item#type instead of instanceof checks for better performance.
|
2013-04-19 19:27:02 -07:00 |
|
Jürg Lehni
|
bf9acd4499
|
Correct Numerical.KAPPA value.
|
2013-04-19 18:57:31 -07:00 |
|
Jürg Lehni
|
90f2614d52
|
Export Numerical object and move KAPPA constant there.
|
2013-04-19 17:03:41 -07:00 |
|
Jürg Lehni
|
9efbc288a1
|
Merge Path.Rectangle and Path.RoundRectangle.
|
2013-04-19 12:36:49 -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
|
fbe8a558bd
|
Refactor Format literal to Formatter class that keeps precision stored.
|
2013-04-09 17:32:19 -07:00 |
|
Jürg Lehni
|
b4a99415d0
|
Merge PathStyle, CharacterStyle and ParagraphStyle into Style.
Closes #130.
|
2013-04-09 16:46:20 -07:00 |
|
Jürg Lehni
|
b9532f6a1a
|
Rename Color#hilite -> Color#highlight.
|
2013-04-09 08:51:14 -07:00 |
|
Jürg Lehni
|
da7b32a18e
|
Clean up code references to GradientColor.
|
2013-04-09 08:36:17 -07:00 |
|
Jürg Lehni
|
5209e97c8d
|
Merge GradientColor into Color.
Work in progress.
|
2013-04-09 01:21:36 -07:00 |
|
Jürg Lehni
|
9cdc4b9372
|
Switch back to only one Gradient constructor for both linear and radial Gradients.
|
2013-04-08 20:52:21 -07:00 |
|
Jürg Lehni
|
4bc3882c82
|
Do not access internal _alpha property.
|
2013-04-06 18:14:45 +02:00 |
|
Jürg Lehni
|
18ed9010a6
|
Derive Item#type from Item#_class and use that instead in code that depends on Item types.
|
2013-04-06 18:07:30 +02:00 |
|
Jürg Lehni
|
f43b322d2a
|
Rename Base#_type property to #_class.
|
2013-04-06 09:16:08 +02:00 |
|
Jürg Lehni
|
8a69fcd1e5
|
Actually use precision setting in Path#getPathData().
|
2013-03-03 16:51:31 -08:00 |
|
Jürg Lehni
|
ae14cedc7f
|
Remove SVG constants, as we don't use them anymore.
|
2013-03-02 08:11:47 -08:00 |
|
Jürg Lehni
|
a63e8ac54c
|
Avoid empty d attributes in SVG nodes, since they throw errors.
|
2013-03-01 21:29:45 -08:00 |
|
Jürg Lehni
|
58fad6ed72
|
Switch from Gradient#type to separate LinearGradient / RadialGradient classes.
But remain backward compatible through direct calls to Gradient constructor.
|
2013-03-01 17:39:36 -08:00 |
|
Jürg Lehni
|
3f5d0a6925
|
Merge constructor._name with _type and use CamelCase for Item types.
|
2013-03-01 17:13:22 -08:00 |
|
Jürg Lehni
|
1cd4d278fc
|
Fix issue with path clipping.
|
2013-03-01 15:30:57 -08:00 |
|
Jürg Lehni
|
5527ab1da8
|
Support point translations for normals defs in SvgImport.
|
2013-03-01 14:52:20 -08:00 |
|
Jürg Lehni
|
b79e32194c
|
Fix issue with SVG tests.
Should really look closer at what's going on there.
|
2013-03-01 14:17:31 -08:00 |
|
Jürg Lehni
|
b9c58d1732
|
Fix issue with text positioning.
HTML ignores white space before / after content.
|
2013-03-01 13:29:48 -08:00 |
|
Jürg Lehni
|
a38809d3e3
|
Handle viewBox correctly for normal nodes again.
|
2013-03-01 13:10:05 -08:00 |
|
Jürg Lehni
|
835ca80eff
|
SVG nodeNames are case sensitive.
|
2013-03-01 12:59:43 -08:00 |
|
Jürg Lehni
|
f1fe2575a8
|
Remove SVG clipPaths from DOM.
|
2013-03-01 12:54:27 -08:00 |
|
Jürg Lehni
|
0499dd06f4
|
Support default black fill when importing SVG.
|
2013-03-01 12:32:24 -08:00 |
|
Jürg Lehni
|
08fbf0f5b4
|
Fix Symbol clipping.
|
2013-03-01 12:14:21 -08:00 |
|
Jürg Lehni
|
1c8e3a5db1
|
Fix an error in applyTextAttribute() handling.
|
2013-03-01 12:09:01 -08:00 |
|
Jürg Lehni
|
bec61c6829
|
Implement Symbol clipping and handle positioning correctly.
Complicated stuff...
|
2013-03-01 11:19:47 -08:00 |
|
Jürg Lehni
|
2706c32924
|
Implement a way for applyAttribute() methods to query other attributes / styles.
|
2013-03-01 11:18:50 -08:00 |
|
Jürg Lehni
|
6571c28256
|
Fold applyAttribute() into applyAttributes().
|
2013-03-01 10:31:42 -08:00 |
|
Jürg Lehni
|
417cfde795
|
Simplify and clean up applyTextAttribute().
|
2013-03-01 10:27:19 -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 |
|