Commit graph

43 commits

Author SHA1 Message Date
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
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
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
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
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
a4e875cf29 Simplify SVGImport attribute parsing and correctly handle failing tests with invalid coordinates. 2013-05-09 16:08:38 -07:00
Jürg Lehni
e9fb78aa08 Start removing dependencies on SVG baseVal. 2013-05-09 01:46:13 -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
Renamed from src/svg/SvgExport.js (Browse further)