Commit graph

177 commits

Author SHA1 Message Date
Jonathan Puckey
958c19c572 Update Chain example. 2011-05-19 17:15:42 +02:00
Jonathan Puckey
1e18c38d35 Optimize the PhyllotaxisRaster example and use an image of a sunflower. 2011-05-19 17:00:08 +02:00
Jonathan Puckey
7e85c06b13 Add Phyllotaxis Raster example to Scripts. 2011-05-18 16:03:25 +02:00
Jonathan Puckey
06f738d4db Add PathStructure example to Scripts. 2011-05-16 15:26:07 +02:00
Jürg Lehni
cfe968d30e Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document. 2011-05-16 13:33:15 +01:00
Jürg Lehni
08c03192b6 Fix examples to use view.bounds/size/center instead of document.bounds/size. 2011-05-16 12:51:20 +01:00
Jürg Lehni
dff0c595f0 Add simple CompoundPath example. 2011-05-15 19:14:21 +01:00
Jürg Lehni
cd7544c7c7 Switch examples to using event.count in onFrame(). 2011-05-15 18:12:56 +01:00
Jürg Lehni
3078e74f27 Let's not use variable chaining in examples, for clearer code. 2011-05-15 11:36:10 +01:00
Jürg Lehni
3feb45addc Add keepalive attribute to canvas to tag that controls wether it animates in background in emulated requestAnimationFrame() function, and use it in all example files. 2011-05-14 13:04:02 +03:00
Jonathan Puckey
9b295ab649 Rework RotationRaster example. 2011-05-08 17:20:23 +01:00
Jonathan Puckey
822047cde0 Rework Bouncing Balls example. 2011-05-08 15:44:19 +01:00
Jürg Lehni
1e1a58e540 Correct case on example files. 2011-05-07 13:44:38 +01:00
Jonathan Puckey
29863b852a BouncingBalls example: use onFrame for animation and simplify some things. 2011-05-06 15:34:27 +01:00
Jonathan Puckey
3dbd6bc91b Some simplifications to the roundRectangle example. 2011-05-06 15:03:21 +01:00
Jonathan Puckey
59a776f58d Examples: resize='true' -> resize. 2011-05-05 20:08:13 +01:00
Jonathan Puckey
f5aa8d5925 Remove a few examples. 2011-05-05 18:54:38 +01:00
Jonathan Puckey
077dc58222 Make all examples resize to the size of the browser window. 2011-05-05 16:25:17 +01:00
Jürg Lehni
61a4464aae Remove uneeded sample. 2011-05-05 11:40:19 +01:00
Jürg Lehni
78ce0831e3 Remove console.log(). 2011-05-04 19:43:06 +01:00
Jürg Lehni
66465541c6 Clean up code (if() -> if ()). 2011-05-03 08:55:01 +01:00
Jürg Lehni
52a73e86ce Clean up code (for() -> for ()). 2011-05-03 08:54:13 +01:00
Jürg Lehni
5200434a07 Move lines.html to Animated folder. 2011-04-27 20:55:28 +01:00
Jonathan Puckey
8f3e6f44a7 Update lines example to use onFrame. 2011-04-26 15:51:56 +02:00
Jürg Lehni
7c51369426 Clean up Curve Time Parametrization example. 2011-04-26 12:31:35 +01:00
Jürg Lehni
4f8ffde130 Clean up Chain example a bit. 2011-04-21 12:36:46 +01:00
Jürg Lehni
d25ab05e25 Simplify vector geometry in Chain example. 2011-04-20 23:29:46 +01:00
Jonathan Puckey
d8b933957a Add Chain example. 2011-04-19 23:32:45 +02:00
Jonathan Puckey
4d5f4b32fc Letter example: select path to show how it is constructed. 2011-04-17 18:55:16 +02:00
Jonathan Puckey
f8548ca6d4 strokeBounds example: select one path, to show how it is constructed. 2011-04-17 18:49:54 +02:00
Jürg Lehni
d99d07bda0 Update curve time parametrization example. 2011-03-20 11:41:58 +00:00
Jürg Lehni
c1d70c90bb Add example for curve time parametrization testing. 2011-03-20 00:11:06 +00:00
Jonathan Puckey
38018c83f6 Lines example: use 'new Date().getTime()' instead of 'Date.now()'. 2011-03-12 15:33:09 +01:00
Jonathan Puckey
6430baa858 Some small changes to lines example. 2011-03-12 15:28:01 +01:00
Jonathan Puckey
f39895a945 Update lines.html example. 2011-03-12 15:17:08 +01:00
Jonathan Puckey
ba42884f57 Move RotationRaster.html from Animated to Scripts. 2011-03-09 13:51:54 +01:00
Jürg Lehni
34a6c7871c Clean-up loading code. 2011-03-08 01:07:26 +00:00
Jürg Lehni
4680283ce7 Simply use document.write() for script loading, as load.js seems not ready for primetime yet (it magically half-broke QUnit on Safari). 2011-03-08 00:58:47 +00:00
Jürg Lehni
798bcd709a Since Firefox does not seem to support the <base> tag for script loading, roll our own solution through the load.js calls. 2011-03-07 23:11:41 +00:00
Jürg Lehni
e32549aaf2 Switch to using load.js for loading the various parts of the library during development. 2011-03-07 18:36:42 +00:00
Jürg Lehni
9fdbd0146d Rename MathUtils to Numerical. 2011-03-07 00:21:04 +00:00
Jürg Lehni
6735218ab5 Merge remote-tracking branch 'origin/master' 2011-03-06 14:59:30 +00:00
Jürg Lehni
04a13bce19 Add strokeBounds example, and a test for stroke transformation with symbols. 2011-03-06 14:59:11 +00:00
Jonathan Puckey
22abd41aac Revert changes to BouncingBalls example. 2011-03-06 15:52:38 +01:00
Jonathan Puckey
78e6633804 Add missing BlendMode dependency to examples. 2011-03-06 15:47:55 +01:00
Jonathan Puckey
0faab51a9f Add missing CanvasProvider.js dependency to Examples. 2011-03-06 15:10:35 +01:00
Jürg Lehni
1607d744ef Implicitely call document.redraw() at the end of PaperScript execution. 2011-03-05 22:02:53 +00:00
Jürg Lehni
3e4c49cb44 Make sure Events.js gets loaded in all examples. 2011-03-05 00:02:25 +00:00
Jonathan Puckey
bb5bfe1fb1 Examples: change mouse handlers to PaperScript. 2011-03-04 12:44:02 +01:00
Jonathan Puckey
e1a6c4f3d0 Update examples to PaperScript. 2011-03-04 12:38:38 +01:00
Jürg Lehni
7e52355f93 Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype. 2011-03-03 17:23:27 +00:00
Jürg Lehni
a543801598 Rename Bootstrap.js file to lowercase bootstrap.js. 2011-03-03 16:56:31 +00:00
Jonathan Puckey
02943c4190 Add missing CanvasProvider.js dependency to Examples. 2011-03-03 17:04:14 +01:00
Jürg Lehni
07fcc000cf Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype. 2011-03-03 12:19:43 +00:00
Jonathan Puckey
acf06937f5 BouncingBalls example: remove line which was committed by accident. 2011-03-03 02:30:55 +01:00
Jonathan Puckey
83df699975 Update dependencies of examples. 2011-03-03 02:27:46 +01:00
Jürg Lehni
fd4b7b76ae Include DocumentView.js in all examples and tests. 2011-03-02 16:18:32 +00:00
Jonathan Puckey
44aa9254ea Change BouncingBalls example to use event.delta for throwing balls. 2011-02-21 15:32:59 +01:00
Jürg Lehni
86a74ca0ef Update doc-type to HTML5. 2011-02-21 14:31:26 +01:00
Jonathan Puckey
e898f0482c Revert previous commit of BouncingBalls example. 2011-02-21 03:37:35 +01:00
Jonathan Puckey
357a8af6ec Clean up white spaces. 2011-02-21 03:32:39 +01:00
Jonathan Puckey
e772038727 Update examples. 2011-02-20 23:28:38 +01:00
Jonathan Puckey
8d570d0834 Fix script paths in examples. 2011-02-19 17:56:15 +01:00
Jonathan Puckey
2e5a84b9ba Update examples to include Color dependencies. 2011-02-19 17:54:10 +01:00
Jonathan Puckey
deb1699f13 Tidy up code. 2011-02-17 16:00:03 +01:00
Jonathan Puckey
ab098ddca3 Add Path.Constructors.js to examples and tests. 2011-02-17 15:56:07 +01:00
Jonathan Puckey
66b9b28394 Add BouncingCircles.html example of Group#getBounds(). 2011-02-17 00:35:10 +01:00
Jonathan Puckey
7e5cb1cc81 Examples: clean up scripts list and add PathStyle.js. 2011-02-16 22:35:17 +01:00
Jürg Lehni
d33a2decab Examples: Close the letterPath. 2011-02-14 01:48:15 +00:00
Jürg Lehni
08d4826441 Reformating code to follow Scriptotgrapher coding conventions. 2011-02-13 16:26:24 +00:00
Jonathan Puckey
783244b393 Clean up strokeJoin example. 2011-02-12 19:12:56 +01:00
Jonathan Puckey
c0e2101c32 Clean up src directory and move Bootstrap.js into lib. 2011-02-12 17:59:39 +01:00
Jonathan Puckey
d7fc9cf481 Introduce Paper object that keeps track of documents and which documenti is active. Newly created items are automatically appended to the children list of the active document's activeLayer. 2011-02-12 16:20:10 +01:00
Jonathan Puckey
be4681fecd Remove temp.html 2011-02-12 16:16:15 +01:00
Jonathan Puckey
538bda6a09 Add Layer & Group script tags to Examples 2011-02-11 18:50:08 +01:00
Jonathan Puckey
17f7caf0b7 Use properties instead of get[Property] and set[Property] in examples 2011-02-11 14:58:53 +01:00
Jonathan Puckey
cac4bea955 Move examples into subfolders. 2011-02-08 13:16:26 +01:00