Commit graph

564 commits

Author SHA1 Message Date
Jürg Lehni
5df30c4a7a Clean up FutureSplash code a bit. 2015-03-07 11:05:57 +01:00
Jürg Lehni
c847dd2cc0 Merge pull request #600 from Patak123/patch-1
Update FutureSplash.html
2015-03-06 09:29:13 +01:00
Jürg Lehni
da53bfe5a0 Simplify boolean operations example code a bit. 2015-01-04 22:00:40 +01:00
Jürg Lehni
8ae8855b81 Visually center JSON tiger example. 2015-01-02 14:39:13 +01:00
Jürg Lehni
3c31c0e482 Have SVGImport respect the current PaperScope's applyMatrix setting. 2015-01-02 14:19:17 +01:00
Jürg Lehni
54d959df1f Load CSS in all examples. 2014-12-30 00:29:20 +01:00
Jürg Lehni
a07dc98046 Clean up and simplify code from pull request #580 and fix CSS in examples accordingly. 2014-12-30 00:16:51 +01:00
Patak123
abde29523a Update FutureSplash.html 2014-12-16 16:23:52 +01:00
Jürg Lehni
99ef521af4 Switch from inline @option tags to real doc tags. 2014-10-20 23:33:28 +02:00
Jürg Lehni
5006a0557f Remove calls to DomEvent as that's not exposed any longer. 2014-10-08 18:27:48 +02:00
Jürg Lehni
0d360a6c0c Remove Palette example. 2014-10-08 18:15:45 +02:00
Jürg Lehni
0d7fe5e5a0 Clear project before importing new SVG content. 2014-09-27 22:59:45 +02:00
Jürg Lehni
ead2e8e49b Clean up Node.js Raster example. 2014-09-27 22:09:43 +02:00
Jürg Lehni
35a02f3dd8 Switch to different mp3 location due to CORS issues. 2014-09-27 13:10:08 +02:00
Jürg Lehni
88c035eb95 Minor comment change. 2014-08-20 16:54:01 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
2057a359c7 Change canvas size in SVG Gradient example. 2014-08-16 18:29:39 +02:00
Jürg Lehni
c9e7832728 Minor change in stroke scaling example for simple toggling. 2014-07-08 15:43:17 +02:00
Jürg Lehni
0060f629ae Simplify SVG export examples. 2014-05-14 13:34:36 +02:00
Jürg Lehni
846c806034 Implement non-scaling strokes through Style#strokeScaling.
Closes #418.
2014-05-13 13:38:51 +02:00
Jürg Lehni
f4fbf3549e Fix display: none; in Boolean Operations example. 2014-05-07 17:35:17 +01:00
Jürg Lehni
a775d1eca4 Fix SVG examples that make use of display: none; 2014-05-07 17:32:49 +01:00
Jürg Lehni
41c0d8f759 Implement onImport / onExport callbacks for SVG Import / export.
... and illustrate its functionality by importing Inkscape's transform-center attributes to pivots and exporting them again.
2014-05-05 20:48:30 +02:00
Jürg Lehni
07563fb694 BooleanOperations example: Make the ring using subtraction instead of creating a CompoundPath manually. 2014-04-29 20:50:55 +02:00
Jonathan Puckey
690514e2c9 More work on animated boolean operations example.
Allows for mouse interaction with shapes. Uses a ring shape instead of a circle to show of compound path intersections. Now performs path operations of both square on ring and ring on square.
2014-04-29 12:17:46 +02:00
Jonathan Puckey
083cd7a057 Add animated example of the different boolean path operations. 2014-04-28 20:23:45 +02:00
Jürg Lehni
8edcf3b219 Have IE9 display SVG inlined in SVG export examples. 2014-04-07 12:01:56 +02:00
Jürg Lehni
b8f1cfea9f Support linked gradients.
Closes #441.
2014-04-07 01:18:17 +02:00
Jürg Lehni
b34313833d Remove accidentally committed files. 2014-04-06 13:48:44 +02:00
Jürg Lehni
fe064e9cc3 Switch from dist/paper.js to dist/paper-full.js and explain the different versions in the README.
Closes #422.
2014-04-06 13:44:19 +02:00
Jonathan Puckey
e0b3361f01 Improve Tadpoles example.
Removed a bunch of unnecessary optimisations, added path smoothing again, use Item#rotation for rotating the heads.
2014-03-18 18:36:14 +01:00
Jürg Lehni
dfac101bfc Revert previous behavior of tadpoles to get them follow their path correctly again. 2014-03-18 10:55:24 +01:00
Jonathan Puckey
a4bfa981f4 Rename Wine Gums example to Candy Crash. 2014-03-13 18:10:38 +01:00
Jonathan Puckey
4751fc6dc8 WineGums example: rename function. 2014-03-13 13:35:40 +01:00
Jürg Lehni
3c257dcae0 Merge branch 'refs/heads/master' into apply-matrix 2014-03-13 00:54:05 +01:00
Jürg Lehni
bff04685f7 Include an SVG arc example. 2014-03-12 23:01:26 +01:00
Jürg Lehni
5f00c02e67 Clean up white-space. 2014-03-12 13:16:50 +01:00
Jürg Lehni
3dd2d8e8ff WinGums: Some more code clean-up. 2014-03-12 10:55:19 +01:00
Jürg Lehni
46bd6c9b3f WineGum example: Untangle the offset calculation code a bit. 2014-03-12 10:51:09 +01:00
Jürg Lehni
e23948f90d WineGum example: Some more style changes. 2014-03-12 10:50:50 +01:00
Jürg Lehni
71f6d53c70 Some more simplifications and style changes. 2014-03-12 10:47:18 +01:00
Jürg Lehni
cd985d8fb3 Convert to cleaner OOP style. 2014-03-12 10:46:45 +01:00
Jürg Lehni
76c0f7dd12 Precalculate side points again for better performance. 2014-03-12 10:40:07 +01:00
Jonathan Puckey
fb005ee63a Optimise WineGums example. 2014-03-11 19:22:16 +01:00
Jonathan Puckey
c5ee8ffb73 Change title of WineGums example. 2014-03-11 19:09:32 +01:00
Jonathan Puckey
3b3f86ae2d Optimise WineGums example. 2014-03-11 19:08:19 +01:00
Jonathan Puckey
9d5e5632df Add WineGums example by kynd.info. 2014-03-11 19:06:30 +01:00
Jürg Lehni
80a725d08a Rename Item#transformContent to the more correct Item#applyMatrix 2014-03-02 16:04:17 +01:00
Jürg Lehni
3219b36c3d Some code cleanup in examples. 2014-03-01 22:52:20 +01:00
Squ34k3rZ
6de15b64a3 Update Shapes.html
Changed title from 'resize' to 'Shapes'
2014-01-05 15:20:53 -06:00
Jürg Lehni
2973fef6bd Update PathStructure example to code from website. 2014-01-05 19:01:05 +01:00
Jürg Lehni
413e4efce4 Fix small error in PathStructure example. 2014-01-05 18:57:52 +01:00
Jürg Lehni
57f1763abe Merge branch 'refs/heads/paperscript-refactoring'
Conflicts:
	src/core/PaperScope.js
2014-01-03 12:34:07 +01:00
Jürg Lehni
469aa18f1a HitTesting example: Fix dragging of paths and segments. 2014-01-02 10:55:34 +01:00
Jürg Lehni
a26d1ed0fc Instead of creating the actual canvas we can also just provide a size. 2013-12-29 16:41:57 +01:00
Jürg Lehni
f97056e4b7 Change the way PaperScripts are executed in Node.js
Requiring a PaperScript returns an initialize method which receives the Canvas argument.
2013-12-29 16:36:23 +01:00
Jürg Lehni
99d7b5cfdb Merge branch 'refs/heads/fatline' 2013-12-17 22:07:34 +01:00
Jürg Lehni
a59a42376a Clean up coding style a bit. 2013-12-16 21:40:40 +01:00
Christoph Knoth
39c1e76d4c Typo Paelette -> Palette 2013-12-16 02:27:07 +01:00
Jürg Lehni
a51f8d4ee8 Rename Item#anchor -> Item#pivot 2013-12-13 20:50:58 +01:00
Jürg Lehni
a678c51555 Some minor changes in Satie example. 2013-12-11 17:51:58 +01:00
Jürg Lehni
78a2685324 Rename Item#registration to Item#anchor 2013-12-11 14:59:51 +01:00
Jürg Lehni
9e7fe2aa4e No need to run Radial Rainbows in HiDPI mode. 2013-12-11 12:05:14 +01:00
Jürg Lehni
37d5458322 Include Satie Sound Analysis Example. 2013-12-11 02:15:51 +01:00
Jürg Lehni
7278ee4374 Make JSON serialization work for Shapes. 2013-12-09 17:27:41 +01:00
Jürg Lehni
6e5d8939d5 Rename View#draw() -> View#update() and remove checkRedraw argument.
We always check for changes, since change propagation should work reliably.
2013-12-08 19:15:58 +01:00
Jürg Lehni
31e2c37e0d Clean up Tadpoles code further. 2013-12-08 11:14:36 +01:00
Jürg Lehni
e269ba7cc6 Optimize Tadpoles example.
- Shape instead Symbol
- Directly modify segments instead of copying points
2013-12-08 10:58:19 +01:00
Jürg Lehni
7c5d377133 Improve Space examples. 2013-12-06 22:28:13 +01:00
Jürg Lehni
ece14f0151 Fix Tadpoles example. 2013-12-06 03:16:33 +01:00
Jürg Lehni
fc02c58ddb Implement asynchronously loading Rasters from disk and remote locations for Node.js
Closes #328.
2013-12-03 23:07:54 +01:00
hkrish
b625ec5b6d Merge branch 'master' into bool-fix
* master: (127 commits)
  Fix edge cases in Curve._getWinding()
  Copy over parent style in Item#reduce().
  Fire key-up events for all currently pressed keys.
  Improve and streamline key-handling logic.
  Use renamed __options object in build script too.
  Correctly apply matrices to Raster items in #importSVG()
  Support passing DOM element IDs in calls to #importSVG()
  Update to latest Prepro.js and switch from global options object to __options, to avoid name clashes.
  Make directly setting view.onFrame work again.
  Update to latest Straps.js and remove unnecessary isArray argument in Base.each()
  Add missing DOCS comments.
  Fix issue where exceptions in onFrame handlers block future animations.
  Fix issue with JSON import.
  Add Node JSONtoPDF example.
  Implement Item#data cloning.
  Remove unnecessary Color#clone() since it's doing the same as Base#clone() now.
  Remove Base.merge() and use a new Straps.js feature instead.
  Improve build script to include dist file in paperjs.org website.
  Bump version to v0.9.14
  Fix setting #radius on Shape.Circle.
  ...
2013-11-30 14:50:18 +01:00
Jürg Lehni
c08fd44101 Add Node JSONtoPDF example. 2013-11-29 12:17:59 +01:00
Jürg Lehni
dfc1b966cb Simplify SVG node example. 2013-11-26 17:33:03 +01:00
hkrish
551b49805c Add special case to examples. 2013-11-11 21:21:41 +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
4dcb0d66a9 Update most examples to HiDPI. 2013-11-06 12:53:50 +01:00
Jürg Lehni
f07f4ac977 Fix example titles. 2013-11-04 11:43:27 +01:00
Jürg Lehni
5ddcfe25b9 Clean up white-space. 2013-11-03 13:22:34 +01:00
Jürg Lehni
aec4c70b9a Update Butterfly example. 2013-11-03 12:23:31 +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
5e4bcbb5e5 Update to Ghostscript Tiger that currently causes issues with new importer code. 2013-11-03 12:09:58 +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
e8919174f8 Use matchShapes option in an example. 2013-10-30 16:19:10 +01:00
Jürg Lehni
4042d4fc2c Only fire change events if values actually change. 2013-10-29 21:52:42 +01:00
Jürg Lehni
a3ec26dace Improve handling of change events in Palette. 2013-10-29 21:34:12 +01:00
Jürg Lehni
ccfacf2484 Fix mediaelement.js path in Nyan example. 2013-10-29 17:35:57 +01:00
Jürg Lehni
2066fae47a Use option.expandShapes to restore boolean examples. 2013-10-29 16:47:27 +01:00
Jürg Lehni
5a462f42b7 Improve some comments / docs. 2013-10-29 09:42:59 +01:00
Jürg Lehni
7209b2f977 Add butterfly SVG example. 2013-10-29 09:42:59 +01:00
Jürg Lehni
782f5c8f7e Fix issue with reading selected segment points from JSON when there are no handles.
The segment short form was misunderstood by the constructor.
2013-10-18 20:58:06 +02:00
Jürg Lehni
4f27be8f12 Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
2013-10-18 14:22:59 +02:00
Jürg Lehni
9976033655 Implement serialization of selection. 2013-10-17 12:04:11 +02:00
Jürg Lehni
9956a6ff51 Implement Shape#toPath(), analogue to Path#toShape().
This way is much simpler though.
2013-10-16 23:44:50 +02:00
Jürg Lehni
c4c7a37993 Implement Path#toShape(), Segment#isColinear(), Segment#isOrthogonal() and Segment#isArc(). 2013-10-16 23:10:03 +02:00
Jürg Lehni
0129080a08 SVG: Add parallelogram to example.
We should really have a test-case in place...
2013-10-16 17:11:15 +02:00
Jürg Lehni
ba8e0b791e Fix rotated primitives example.
Only use Path shapes here.
2013-10-14 21:27:08 +02:00
Jürg Lehni
041d88c89c Clean up clipping example. 2013-10-14 21:26:43 +02:00
Jürg Lehni
2263afea59 Start implementing rounded rectangles in Shape.Rectangle. 2013-10-14 19:57:28 +02:00
Jürg Lehni
d8f7799fc4 Update rotates primitives examples. 2013-10-14 19:56:51 +02:00