Jürg Lehni
ace23d354d
Update BlendModes example to include SVG export.
2013-06-18 17:23:38 -07:00
Jürg Lehni
691b2f8094
Fix issues with SVG Import and matrices on groups.
2013-06-18 15:46:49 -07:00
Jürg Lehni
b133d8fe2e
Restructure BlendMode code, fix issues with color-dodge and color-burn, and create BlendModes.html example.
...
All modes should be implemented according to specs now.
2013-06-18 08:02:04 -07:00
Jürg Lehni
18383875eb
Fix global variable leakage.
2013-06-11 17:46:50 -07:00
Jürg Lehni
bd42ded79b
Include clipping example for SVG Export.
2013-06-11 15:00:18 -07:00
Jürg Lehni
7f251b78e3
Switch to HTML5 meta charset tags.
2013-06-02 13:41:10 -07:00
Jürg Lehni
7c2e57e105
Remove Item#applyMatrix boolean, go back to previous way of directly applying transformations to children in Group and Layer, and introduce new Clip class for non-transformed nested matrices.
2013-05-13 18:57:17 -07:00
Jürg Lehni
cc82bbb24d
Use correct canvas size.
2013-05-09 02:39:19 -07:00
Jürg Lehni
093f4cf7ba
Fix issue with SVG transformations not being applied to gradient fills.
2013-05-09 02:37:48 -07:00
Jürg Lehni
728be483d7
Implement SVGImport example for node, currently failing.
2013-05-09 00:23:11 -07:00
Jürg Lehni
e5ed88462c
Update package.json for new release on NPM.
2013-05-08 20:51:58 -07:00
Jürg Lehni
c5627d141e
Fix PaperScript support in node.
2013-05-08 20:38:23 -07:00
Jürg Lehni
6fd93978f8
Do not use PaperScript in node example.
2013-05-08 20:30:13 -07:00
Jürg Lehni
e2ae03d571
Update exportSVG example.
2013-05-08 20:19:49 -07:00
Jürg Lehni
219ccd2fdd
Start making exportSVG() work for node, using jsdom.
2013-05-08 01:30:14 -07:00
Jürg Lehni
fc71db458b
More work on node.js version.
2013-05-08 01:13:41 -07:00
Jürg Lehni
b59a98f7ce
Add jQuery style aliases to Callback and use #on() in the examples rather than #attach().
2013-05-06 20:56:58 -07:00
Jürg Lehni
d9e2d2a94a
Fix console logging.
2013-05-04 14:27:53 -07:00
Jürg Lehni
eb8ebca097
Run BooleanOperations.html code asynchronously for immediate feedback.
2013-05-04 14:26:29 -07:00
Jürg Lehni
ee8a79449b
Include BooleanOperations.html
2013-05-03 16:31:36 -07:00
Jürg Lehni
96d9b6730f
Rename Svg acronyms in API to SVG.
2013-04-23 07:19:08 -07:00
Jürg Lehni
cebeb11301
Rename Json acronyms in API to JSON.
2013-04-23 07:13:51 -07:00
Jürg Lehni
1cbb303941
Add SpaceUsingShapes.html, as an example for Shape.Circle()
2013-04-21 09:00:53 -07:00
Jürg Lehni
bcb10a222f
Add SvgImport example for Inkscape and fix issue with multiple SVG path commands.
...
Closes #203 .
2013-04-20 14:54:21 -07:00
Jürg Lehni
90f2614d52
Export Numerical object and move KAPPA constant there.
2013-04-19 17:03:41 -07:00
Jürg Lehni
8fc2a69136
Improve comment.
2013-04-19 13:52:17 -07:00
Jürg Lehni
fad9d8649d
Update BouncingBalls.html example.
2013-04-19 13:16:22 -07:00
Jürg Lehni
9efbc288a1
Merge Path.Rectangle and Path.RoundRectangle.
2013-04-19 12:36:49 -07:00
Jürg Lehni
e546848bcc
Adjust SpiralRaster to work with inverted gray.
2013-04-09 20:40:57 -07:00
Jürg Lehni
e9aad895ae
Import and export Item#data in SVG as well.
...
Closes #188 .
2013-04-09 17:53:26 -07:00
Jürg Lehni
7f3b9aa900
Convert Gradient creation to new notation.
2013-04-09 09:34:56 -07:00
Jürg Lehni
9d0b9dc4c6
Allow implicit Gradient declaration in Color object literals.
2013-04-09 09:27:46 -07:00
Jürg Lehni
26efbdb451
Implement argument reading for Gradient objects.
2013-04-09 09:20:32 -07:00
Jürg Lehni
b9532f6a1a
Rename Color#hilite -> Color#highlight.
2013-04-09 08:51:14 -07:00
Jürg Lehni
5209e97c8d
Merge GradientColor into Color.
...
Work in progress.
2013-04-09 01:21:36 -07:00
Jürg Lehni
9cdc4b9372
Switch back to only one Gradient constructor for both linear and radial Gradients.
2013-04-08 20:52:21 -07:00
Jürg Lehni
93437010aa
Adjust Raster example to inverted gray value.
2013-04-08 20:22:02 -07:00
Jürg Lehni
232ea221b4
First batch of large Color refactoring and simplification.
...
Work in progress.
2013-04-07 10:03:51 -07:00
Jonathan Puckey
87d8d1f36c
Remove asterisk from Q*bertify.html filename.
2013-03-16 13:20:04 +01:00
Jonathan Puckey
5172b77ab3
Remove path smoothing from Tadpoles example.
2013-03-11 00:20:02 +01:00
Jonathan Puckey
b60080d8e9
Fix tadpoles example.
2013-03-11 00:14:16 +01:00
Jonathan Puckey
03d98ecc09
Improve Lines example by cleaning up the code and make it run a little less hot.
2013-03-10 23:38:27 +01:00
Jonathan Puckey
1b57b1eb15
Fix Stars example.
2013-03-10 18:09:51 +01:00
Jonathan Puckey
bae5589409
Improve Chain example.
2013-03-10 18:04:52 +01:00
Jonathan Puckey
7a266a50dd
Fix Q*Bertify example.
2013-03-10 18:03:08 +01:00
Jonathan Puckey
581f99f345
Make Phyllotaxis Raster example run a little less hot.
2013-03-10 17:05:25 +01:00
Jonathan Puckey
981bce31cb
Improve examples.
2013-03-10 16:47:57 +01:00
Jonathan Puckey
f6cf20fa8c
Improve Paperoids example.
2013-03-10 15:58:27 +01:00
Jonathan Puckey
78200e715b
Improve Future Splash example.
2013-03-09 23:37:56 +01:00
Jonathan Puckey
ee141ca98d
Improve Division Raster example.
2013-03-09 18:51:04 +01:00
Jonathan Puckey
c9e95d2c01
Improve examples.
2013-03-09 16:28:53 +01:00
Jonathan Puckey
ace2e3e13b
Improve several examples.
2013-03-09 16:02:11 +01:00
Jonathan Puckey
2dfe491212
Improve PathStructure example.
2013-03-09 15:58:39 +01:00
Jonathan Puckey
421c3c19e3
Remove Letter example.
2013-03-09 15:26:59 +01:00
Jonathan Puckey
ba86ec8688
Remove Circle example.
...
Removing because the example doesn't really show off anything.
2013-03-09 15:01:46 +01:00
Jonathan Puckey
d4bbb84699
Fix Nyan Rainbow example.
2013-03-09 14:33:48 +01:00
Jonathan Puckey
304ca32d45
Fix Paperoids example.
2013-03-07 14:45:51 +01:00
Jürg Lehni
c0392b837c
Simplify PathIntersections example.
2013-03-05 15:09:46 -08:00
Jürg Lehni
06beb0141b
Follow same naming conventions as with other examples.
2013-03-05 15:05:39 -08:00
Jonathan Puckey
845e8cfa1b
Optimize and clean up Tadpoles example.
2013-03-05 14:34:19 +01:00
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
Jonathan Puckey
1fd3d727d2
Fix Bouncing Balls example.
2012-11-22 21:08:17 +01:00
Jonathan Puckey
3bf473924a
Remove Scripts/Fitting.
...
Scripts/Resize demonstrates the same functionality.
2012-11-22 21:01:26 +01:00
Jonathan Puckey
e1bb0a23e7
Fix RadialRainbows example.
...
The example stopped working, because we were changing values on another gradient colour object than the one used by the path: the color is cloned when passed to path.fillColor
2012-11-22 20:59:09 +01:00
Jonathan Puckey
d12c680be6
Fix bug in Tadpoles example.
...
Fixes a bug where the segments array of a path was being changed directly, which caused the bounds to not be updated.
2012-11-22 20:59:08 +01:00
Jürg Lehni
373474d088
Implement loading Rasters from external sources and notify using a 'load' callback.
2012-11-21 10:39:26 -08:00
Jürg Lehni
b334c95266
User Palette#reset() button in example.
2012-11-14 10:57:04 -08:00
Jürg Lehni
550d43ae0b
Check in first version of Scriptographer-style Palette / Component GUI code, including a basic example.
...
It kinda works already!
2012-11-14 01:35:34 -08:00
Jürg Lehni
a676d3d5c6
Revert Multiple Paths Test 1 example which I believe got accidentally modified.
2012-11-10 15:50:02 -08:00
Jonathan Puckey
661afca98f
Svg Importer: getValue: make sure the attribute exists first.
2012-11-10 15:45:11 +01:00
Jonathan Puckey
71d3cca2d8
SVG Importer: support percentage values for gradient stop offset.
2012-11-08 15:55:24 +01:00
Jonathan Puckey
328763ef90
Fix titles of SVG Import examples.
2012-11-08 15:25:26 +01:00
Jonathan Puckey
fac9b3a0e9
SVG Importer Gradients example: Use percentages in stops of first gradient.
2012-11-08 14:52:01 +01:00
Jonathan Puckey
6bbc78eaef
SVG Importer: initial support for gradients and gradient examples.
2012-11-07 19:32:35 +01:00
Jürg Lehni
6347c338ad
Remove .DS_Store files.
2012-11-07 09:36:57 -08:00
Jonathan Puckey
c704d285f2
SVG Importer: Use importGroup to import defs.
2012-11-07 17:21:02 +01:00
Jonathan Puckey
eb22e3bf95
Add Tiger SVG Import example.
2012-11-07 17:19:42 +01:00
Jürg Lehni
e9a9066d7f
Use group creation without explicit array declaration, as that's been supported all along.
2012-11-06 20:37:50 -08:00
Jürg Lehni
e0fa8e00b1
Fix example title.
2012-11-06 20:14:40 -08:00
Jürg Lehni
c505b53de7
Make clipping example work with new exporter functions.
2012-11-06 13:47:29 -08:00
Jonathan Puckey
71ed477bc4
Add example of importing of clipped svg paths, compound paths and groups.
2012-11-06 22:19:49 +01:00
Jürg Lehni
88e6ac09d7
Add methods to Item and Project to directly use SvgImporter / Exporter functionality.
2012-11-06 12:49:12 -08:00
Jürg Lehni
28642bd1c8
Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval().
2012-11-06 11:37:00 -08:00
Jürg Lehni
eb0fb99b12
SvgExporter: Fix matrix conversion to rotate() command.
2012-11-06 11:06:53 -08:00
Jürg Lehni
93447ee533
Add some transformations to Text exporting example.
2012-11-06 10:04:04 -08:00
Jürg Lehni
5d2b6d613f
Define some example for rotated primitives.
2012-11-06 08:03:28 -08:00
Jürg Lehni
c544083a4c
Clean up SVG example scripts.
2012-11-05 23:27:17 -08:00
Jürg Lehni
65f1e5c66d
Improve style handling in SvgExporter.
2012-11-05 09:05:32 -08:00
Jürg Lehni
0eaabd667c
Further clean up exporter code.
2012-11-04 00:09:44 -07:00
Jürg Lehni
f5475dda1a
Some more SVG test fixes.
2012-11-03 19:28:18 -07:00
Jürg Lehni
4cd6d6f230
Add support for conversion of text-anchor to justification.
2012-11-02 21:11:30 -07:00
Jürg Lehni
bfcc4d52b5
Cleanup SVG Markup.
2012-11-02 17:44:57 -07:00
Jürg Lehni
1ce332756e
Rename ImportSvg to SvgImporter, and ExportSvg to SvgExporter.
2012-11-02 17:40:07 -07:00
Jürg Lehni
80315e3e52
More SVG refactoring: Fix comments, documentation, and for-in loops.
2012-11-02 16:51:42 -07:00
Jürg Lehni
69dc8be629
Switch from using classes to object literals for SVG exporter / importer.
2012-11-02 16:19:45 -07:00
Jürg Lehni
d4a60fb62a
More SVG code refactoring.
...
Follow coding conventions and fix some forgotten renamings.
2012-10-22 16:31:08 -07:00
Jürg Lehni
160095d6e3
Rename SVG to Svg to follow naming convention.
2012-10-22 19:17:11 -04:00
Andrew
777e1c6275
Removed unnecessary files
2012-09-30 21:18:39 -04:00
Andrew
2508136602
Got rid of swp files
2012-09-30 21:17:02 -04:00
jaroles
644ed772d5
Update examples/ExportSVGTests/Transform Test 2.html
2012-09-30 22:15:07 -03:00
jaroles
0efcaade4b
Update examples/ExportSVGTests/Text Testing.html
2012-09-30 22:14:43 -03:00