Commit graph

4723 commits

Author SHA1 Message Date
Jürg Lehni
da9e1f8de7 Define Project#isEmpty() 2013-11-24 22:53:41 +01:00
hkrish
d64df44a78 Correct tolrance check (±EPSILON) in numerical solving methods. 2013-11-24 21:40:22 +01:00
Jürg Lehni
ea62b570f3 Handle _dontFire for all component types. 2013-11-24 16:43:07 +01:00
msand
22a918190d Fix indent. 2013-11-24 17:36:35 +02:00
msand
3b22f185ce Fix to make sure that attribute methods exists before calling. Check of hidpi attribute in canvas was crashing in Node.js, as the getAttribute method is undefined in node-canvas. 2013-11-24 17:26:09 +02:00
Jürg Lehni
af4410953f Various clean-ups regarding the handling of activeLayer, JSON deserialization, DOM insertion and and layer reusing.
JSON deserialization does no longer insert items into DOM twice now, and should therefore be faster.
2013-11-24 16:25:13 +01:00
msand
900cea3123 Fix async loading of PaperScript to use correct scope. 2013-11-24 17:19:45 +02:00
Jürg Lehni
42ec121c0a Optimize Base#merge() to not use Base#each() 2013-11-24 15:03:51 +01:00
hkrish
274f1a4b55 Sort sub-paths before 'reorienting' during boolean calculations 2013-11-24 13:32:01 +01:00
Jürg Lehni
f7a473a598 Make sure color objects are passed to change events also on color components. 2013-11-24 00:53:12 +01:00
Jürg Lehni
8f66f8ac61 Add support for color components. 2013-11-24 00:46:04 +01:00
Jürg Lehni
d56e5552b0 Handle RGB alpha correctly. 2013-11-24 00:29:13 +01:00
Jürg Lehni
b8b02417a0 Implement proper parsing of rgb / rgba CSS strings. 2013-11-24 00:23:32 +01:00
Jürg Lehni
829e878243 Add failing test for creating colors from RGBA. 2013-11-24 00:02:13 +01:00
Jürg Lehni
847529eca7 Add support for hex output to Color#toCSS() 2013-11-23 23:51:59 +01:00
Jürg Lehni
baa022237c Expose Palette#components and #values. 2013-11-23 23:00:19 +01:00
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
hkrish
551b49805c Add special case to examples. 2013-11-11 21:21:41 +01:00
hkrish
492e78df7d Handle intersection special case, when two curves' start and end points overlap 2013-11-11 21:20:32 +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