Jürg Lehni
d33fff31b8
Always access "global" constructors on window object now.
2016-01-26 20:33:19 +01:00
Jürg Lehni
d292e08ed2
Various renaming and introduction of additional methods in Matrix
...
- Rename Matrix#concatenate() to #append() and #preConcatenate() to #prepend().
- Over #invert() as alternative to #inverted(), directly modifying the matrix.
- Make Matrix#_shiftless() and internal function.
- Introduce versions that return copies instead, named #appended(). (previously #chain()) and #prepended().
- Rename internal Path#_getPenPadding() to #_getStrokePadding().
2016-01-17 19:30:47 +01:00
Jürg Lehni
406d26e884
Unify the way item parents and projects as parents of top-level layers are handled as owners.
...
This automatically adds support for named children on project.layers, closing #491 .
2016-01-12 00:54:04 +01:00
Jürg Lehni
3280b5700c
Get things up to speed again with JSHint.
2016-01-08 18:16:29 +01:00
Jürg Lehni
85f08825d7
Implement support for CSS blend-modes in SVGExport.
2015-12-30 21:55:20 +01:00
Jürg Lehni
a7a07fb6d5
Update JSDoc and do some documentation spring-cleaning.
...
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
3dd0f1fc1b
Introduce new option in SVGExport to not embed images.
...
Closes #696
2015-08-20 19:34:38 +02:00
Jürg Lehni
f8314f927e
Various changes on #isLinear(), #hasHandles() & co
...
Relates to #652
- Implement #hasHandles() on Path, Segment and Curve
- Remove Path#isPolygon()
- Define #isLinear() consistently across Path, Segment and Curve.
- Introduce new Segment#isStraight()
2015-08-17 14:31:23 +02:00
Jürg Lehni
97ca1f6ff8
Fix negation in previous commit.
2015-08-17 14:19:31 +02:00
Jürg Lehni
65f085cc98
Have option.matchShapes control conversion to SVG polygon elements as well.
...
Closes #753
2015-08-17 14:18:22 +02:00
Jürg Lehni
10fb616665
Fixed leaked globals.
...
Detected using QUnit's "Check for Globals" feature!
2015-07-27 12:36:45 +02:00
Jürg Lehni
5625563ed7
Merge pull request #643 from alexburner/patch-1
...
Fixing PlacedSymbol overflow
2015-02-28 19:08:05 +01:00
Alex Burner
9e95b8788a
Fixing PlacedSymbol overflow
...
Initial value for `overflow` of svg elements is `visible`, but for elements that establish new viewports the value is overridden to `hidden`. A hidden overflow causes clipping of thick strokes, and may have additional consequences (I'm here because I was having trouble with my strokes).
As detailed in this issue: https://github.com/paperjs/paper.js/issues/642
2015-02-24 22:15:04 -08:00
Jan
1d8c662c98
Update SVGExport.js
...
Check for `'null'` before setting custom paper data attribute, because `JSON.stringify()` returns `"null"` (as a String object) if the argument is null.
2015-02-13 12:10:47 +01:00
Jan
c5ced798e8
Update SVGExport.js
2015-02-13 11:59:05 +01:00
Jürg Lehni
f193acf31b
Fix transformation sequence to correctly handle combined rotate and scale commands.
...
Closes #583
2014-12-02 22:31:20 -08:00
Jürg Lehni
48cb05a181
Replace tabs with 4 white-spaces.
2014-08-16 19:24:54 +02:00
Jürg Lehni
15d79bbefb
Introduce isRoot argument in SVGExport code as well, to make sure that top-most node holds all the style information.
...
Relates to #509
2014-08-16 17:32:24 +02:00
Jürg Lehni
98f2e08775
Fix SVG export when view is zoomed.
2014-05-15 16:26:19 +02:00
Jürg Lehni
f38d3ee674
Handle view size and transformation correctly when exporting SVG.
...
Closes #277 .
2014-05-14 13:29:20 +02:00
Jürg Lehni
a4f922cf26
Fix newly introduced error in SVG export.
2014-05-13 13:52:20 +02:00
Jürg Lehni
846c806034
Implement non-scaling strokes through Style#strokeScaling.
...
Closes #418 .
2014-05-13 13:38:51 +02:00
Jürg Lehni
4464950301
Correctly take Item#matrix into account in #getPathData().
2014-05-13 13:21:59 +02:00
Jürg Lehni
94bc6427c2
Export SVG transforms for path items correctly.
...
Needed when Item#applyMatrix = false
2014-05-13 12:53:58 +02:00
Jürg Lehni
2412942d04
Fix SVG export for Item#visible, and import display
attributes correctly.
...
Closes #471 .
2014-05-07 16:59:57 +01: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
495e10e408
Exclude empty Item#data objects in SVG export.
...
Closes #363 .
2014-04-07 11:24:38 +02:00
Jürg Lehni
f002c633a7
Remove trailing white spaces and ensure newlines at the end.
2014-04-06 13:48:03 +02:00
Jürg Lehni
e998083156
Rename Shape#shape to Shape#type.
2014-03-18 12:47:54 +01:00
Jürg Lehni
833d71f7ea
Remove Item#type and replace it with Item#className, the non-hyphenated version of #type.
2014-03-18 11:42:38 +01:00
Jürg Lehni
0aa73d90c5
Change the way context dependent font sizes are handled by delegating handling to view.
...
Closes #425
2014-03-17 16:41:57 +01:00
Jürg Lehni
e22fa3a664
Update copyright notice.
2014-01-04 01:47:16 +01:00
Jürg Lehni
541ac6acce
Shorten code a bit.
2014-01-02 21:47:20 +01:00
Jürg Lehni
e12ab846bd
Fix decomposed transformation sequence.
2013-12-07 05:23:39 +01:00
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
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
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
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
2241329321
Fix id clash in SVGExport.
2013-06-18 17:29:00 -07:00