Commit graph

344 commits

Author SHA1 Message Date
Jonathan Puckey
841c99d6d8 Fix Paperoids example and use Path#getIntersections for collision detection. 2013-03-04 20:39:13 +01:00
Jürg Lehni
8a69fcd1e5 Actually use precision setting in Path#getPathData(). 2013-03-03 16:51:31 -08:00
Jürg Lehni
c9e337836a Move BouncingBalls example to Paper.js folder. 2013-03-03 14:38:27 -08:00
Jürg Lehni
7eb9df61b3 Update JSON for Tiger example. 2013-03-03 14:19:29 -08:00
Jonathan Puckey
bedb4001a7 Use named argument constructors in Simplify example. 2013-03-03 14:25:38 +01:00
Jonathan Puckey
3f7cc316c1 Small clean ups in Nyan Rainbow example. 2013-03-03 14:25:10 +01:00
Jonathan Puckey
9679881eef Add HitTesting example to Paperjs.org folder. 2013-03-03 14:22:46 +01:00
Jonathan Puckey
ba33fd6ebf Update MetaBalls example to be the same as that on Paperjs.org and convert to use the new notation style. 2013-03-03 13:39:15 +01:00
Jonathan Puckey
e692bf4c74 Add example of path intersections. 2013-03-03 12:50:26 +01:00
Jonathan Puckey
a8d796f787 Fix Q*bertify example. 2013-03-02 21:23:17 +01:00
Jonathan Puckey
0c125149e1 Move Tadpoles example to Paperjs.org folder. 2013-03-02 21:14:28 +01:00
Jonathan Puckey
59a2203764 Fix title of Nyan Rainbow example. 2013-03-02 21:13:45 +01:00
Jonathan Puckey
ae34f07c3a Fix Nyan Rainbow and update a few things to use the new notation. 2013-03-02 21:12:20 +01:00
Jonathan Puckey
9260717bb8 Examples: move Smoothing example to Paperjs.org folder. 2013-03-02 20:59:27 +01:00
Jonathan Puckey
3db61a3509 Examples: Move improved and simplified version of Bouncing Balls to Paperjs.org folder. 2013-03-02 20:58:56 +01:00
Jonathan Puckey
a3880bab5e Examples: add Voronoi, Q*bertify and Nyan Rainbow to Paperjs.org folder. 2013-03-02 20:58:09 +01:00
Jonathan Puckey
d13f1b88d6 Add interactive tiger example, which shows off item handlers and svg importing. 2013-03-02 20:57:09 +01:00
Jonathan Puckey
b124d23078 Move examples which are featured on paperjs.org website to Paperjs.org folder. 2013-03-02 20:54:52 +01:00
Jonathan Puckey
1346b7d4c0 Lines example: use new notation for creating paths. 2013-03-02 20:51:44 +01:00
Jonathan Puckey
e7475d5980 Update Chain example. 2013-03-02 18:35:10 +01:00
Jonathan Puckey
8ab70fd0de Update Arcs example. 2013-03-02 17:05:56 +01:00
Jonathan Puckey
2b4a1a7dc4 Update SpiralRaster example. 2013-03-02 16:42:26 +01:00
Jonathan Puckey
676a207871 Update Tadpoles example to use Project#importJson. 2013-03-02 16:06:31 +01:00
Jonathan Puckey
945a7220ee Update Animated Star example. 2013-03-02 16:02:29 +01:00
Jonathan Puckey
2eafb73912 Update extruded example to use Project#importJson. 2013-03-02 15:58:38 +01:00
Jürg Lehni
5afa1b1688 Allow direct passing of color arguments to gradient constructors as well as arrays. 2013-03-01 17:44:16 -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
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
Jürg Lehni
cef30f9dd1 Switch to #pathData for JSON serialization of Path and CompoundPath. 2013-02-28 19:41:13 -08:00
Jürg Lehni
5fbc6e939d Fix small SVG path-data parser issue. 2013-02-28 19:33:08 -08:00
Jürg Lehni
980b772cea Add Polybezier SVG example. 2013-02-28 19:14:06 -08:00
Jürg Lehni
21ee2edb60 Fix SVG example sizes. 2013-02-25 23:49:56 -08:00
Jürg Lehni
65a9795a8a Rename #from/#toJson() to #import/#exportJson() and move them to Project / Item.
To reflect naming of #import/#exportSvg().
2013-02-25 16:17:33 -08:00
Jürg Lehni
779d076f02 Merge pull request #155 from ubershmekel/patch-1
Fixed memory leak
2013-02-14 12:47:56 -08:00
Jürg Lehni
7df4338ef5 Fix linear gradient orientation when shape substitution is applied. 2013-02-12 17:22:31 -08:00
Jürg Lehni
42274bff4c Clean up examples HTML. 2013-02-12 15:08:48 -08:00
Jürg Lehni
8b4dda2fc9 Use JSON format to implement example that exports Tiger to SVG. 2013-02-12 15:01:35 -08:00
Jürg Lehni
e477c49d1e Add a couple of JSON examples.
For now just the old SVG ones ported over, but we do need better ones.
2013-02-11 19:23:21 -08:00
Jürg Lehni
e0d0eb175a Implement exporting of Gradients to SVG. 2013-02-10 19:38:35 -08:00
Jürg Lehni
09e5cc2bda Improve HTML in SVG Exporting examples. 2013-02-10 18:45:50 -08:00
Jürg Lehni
f06701055d Implement exporting of Symbols to SVG. 2013-02-10 10:23:49 -08:00
Jürg Lehni
0f846098c4 Support CompoundPath in SvgExport. 2013-02-09 13:38:22 -08:00
Jürg Lehni
15c8652747 Add support for Raster to SvgExport. 2013-02-09 09:44:25 -08:00
Jürg Lehni
1a438b8b9b Change Curve#[getPoint / getTangent / getNormal](t) to #[getPoint / getTangent / getNormal](offset, isParamter).
Keep deprecated versions around for now.
2013-01-28 16:30:28 -08:00
Yuval Greenfield
27781d44ac Fixed memory leak
The original technique isn't horrible when it happens
once per mouse move but if used once per frame it completely
destroys the browser.

To see the leak in the chrome task manager - furiously move the
mouse and see the top cpu process keep rising in memory usage.
2012-12-31 23:46:53 +02:00
Jürg Lehni
b54bdadaff Rename Item#transformContent to #applyMatrix. 2012-12-24 17:39:24 +01:00
Jürg Lehni
89b8864b13 Fix PhyllotaxisRaster example. 2012-12-24 01:13:18 +01:00
Jürg Lehni
b7d2dfb1db Add two more SvgExport examples. 2012-12-15 17:37:28 +01:00
Jürg Lehni
589d4e6e73 Handle exporting of empty paths. 2012-12-09 18:04:56 -08:00