Commit graph

4505 commits

Author SHA1 Message Date
Jürg Lehni
3da3161a33 Bump version to v0.9.12 2013-11-14 14:46:54 +01:00
Jürg Lehni
8f4b70a7d3 Minor clean up. 2013-11-14 14:42:28 +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
5439f6ba45 We need to take pixel ratio into account when directly blitting blend-modes onto canvas. 2013-11-06 13:11:54 +01:00
Jürg Lehni
4dcb0d66a9 Update most examples to HiDPI. 2013-11-06 12:53:50 +01:00
Jürg Lehni
1049214126 Remove ctx.currentPath caching again, since it has the current affine transformation factored in and is thus useless to us. 2013-11-06 12:53:10 +01:00
Jürg Lehni
8d7fc43de2 Implement proper support for HiDPI screens.
For performance reason optional for now, activated by setting the hidpi attribute on the canvas element.
2013-11-06 11:54:05 +01:00
Jürg Lehni
b514d04f58 Export Http so the separate PaperScript scope can reach it. 2013-11-06 02:22:24 +01:00
Jürg Lehni
5630b7e415 Implement caching of drawn Canvas Path objects for better performance.
Already supported on recent Chrome and Safari.
2013-11-04 11:46:20 +01:00
Jürg Lehni
f07f4ac977 Fix example titles. 2013-11-04 11:43:27 +01:00
Jürg Lehni
d6be004ee6 Setting a matrix on an item with #transformContent = true should immediately apply it. 2013-11-04 11:43:17 +01:00
Jürg Lehni
73fe0899ae Improve exception when passing an invalid canvas. 2013-11-04 11:42:41 +01:00
Jürg Lehni
67d969ba56 Fix issue with displaying Stats. 2013-11-04 11:42:25 +01:00
Jürg Lehni
dba5a8a9e7 Deactivate Hi-DPI support for now. 2013-11-03 13:29:13 +01:00
Jürg Lehni
5ddcfe25b9 Clean up white-space. 2013-11-03 13:22:34 +01:00
Jürg Lehni
893f8fb2cc Fix issues with importing full SVG documents where default styles would not be detected. 2013-11-03 13:20:51 +01:00
Jürg Lehni
1301aea47d Fix issues with importing Ghostscript Tiger. 2013-11-03 12:52:00 +01:00
Jürg Lehni
4320ef76ff Merge #document handling code into importGroup() 2013-11-03 12:36:43 +01:00
Jürg Lehni
7430c3f159 Fix #document importing for all browsers.
Safari doesn't know document.children...
2013-11-03 12:30:49 +01:00
Jürg Lehni
aec4c70b9a Update Butterfly example. 2013-11-03 12:23:31 +01:00
Jürg Lehni
c5262e02bd Make importing SVG documents work for documents with doctypes and comments in the beginning. 2013-11-03 12:23:20 +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
1637a31ad7 Allow #importSVG() to import from File objects too. 2013-11-03 12:10:19 +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
20253e58a7 Avoid multiple onLoad calls when remote SVG cannot be loaded. 2013-11-03 00:00:46 +01:00
Jürg Lehni
5bb3482073 Bump version to v0.9.11 2013-11-02 21:29:09 +01:00
Jürg Lehni
af1c6830e0 Small variable name change. 2013-11-02 21:26:32 +01:00
Jürg Lehni
056dcceacc Implement #importSVG() from external URL. 2013-11-02 21:17:11 +01:00
Jürg Lehni
b8ab0f36f9 Remove unused local variable and comment. 2013-11-02 20:37:23 +01:00
Jürg Lehni
c797f2f0ad Keep the native animation loop running as long as there are unprocessed callbacks. 2013-11-02 20:26:06 +01:00
Jürg Lehni
a6c175c82c Improve DomEvent.requestAnimationFrame() code to only handle canvases that are actually visible. 2013-11-02 20:10:35 +01:00
Jürg Lehni
7e660b05e3 Avoid using the wrong PaperScope in keyboard events. 2013-11-02 14:36:44 +01:00
Jürg Lehni
4f32cc2eea No need for RegExp group in match statement. 2013-11-02 13:25:03 +01:00
Jürg Lehni
7b1f118aed Use same command sequence as in switch statement. 2013-11-02 09:45:11 +01:00
Jürg Lehni
97a29e6ada Improve SVG path data parser. 2013-11-02 09:30:40 +01:00
Jürg Lehni
c99d13178b Consider a Point or Size null if one of the components is null. 2013-11-01 19:25:41 +01:00
Jürg Lehni
4b97d3a6e0 Make sure that the default SVG settings are not lost on import. 2013-11-01 19:00:37 +01:00
Jürg Lehni
9b75362f3e Always respect options.asString 2013-11-01 18:27:20 +01:00
Jürg Lehni
29c00584be Fix SVG parsing issues with multiple concatenated coordinate values
e.g. "1.5.5", is to be read as "1.5" and ".5"
2013-11-01 17:56:16 +01:00
Jürg Lehni
ac862f9bc4 Some minor code clean up and variable renaming. 2013-11-01 17:55:06 +01:00
Jürg Lehni
132f54d362 Define Item#clear() as an alias for Item#removeChildren(), or Path#removeSegments() for paths. 2013-11-01 17:52:27 +01:00
Jürg Lehni
df80eb2f23 Define PaperScope#paper as a reference to the local scope.
And use it to fix Raster JSON example.
2013-11-01 11:46:31 +01:00
Jürg Lehni
c76dae5b06 Implement a new strategy for importing JSON, where it is imported into the item itself, not its children list, if the class match. 2013-11-01 11:26:11 +01:00
Jürg Lehni
70ae7486e9 Clean up white-space. 2013-10-31 12:17:34 +01:00
Jürg Lehni
e8919174f8 Use matchShapes option in an example. 2013-10-30 16:19:10 +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
5d7c7a2409 Improve documentation of #hitTest() 2013-10-30 16:18:15 +01:00
Jürg Lehni
dc732da8d8 Clean up documentation for event handler functions on View and Tool. 2013-10-30 15:38:08 +01:00
Jürg Lehni
0ded3ae0ba Implement PathItem#cubicCurveBy() and #quadraticCurveBy()
Closes #284.
2013-10-30 01:43:55 +01:00
Jürg Lehni
71a7781bdd Fix comment. 2013-10-30 01:27:07 +01:00