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
jaroles
b2c4d1b6d7
Update examples/ExportSVGTests/Transform Test 1.html
2012-09-30 22:14:07 -03:00
jaroles
834a646608
Update examples/ExportSVGTests/Rect and Attribute Testing.html
2012-09-30 22:13:48 -03:00
jaroles
db6e712203
Update examples/ExportSVGTests/Line Testing.html
2012-09-30 22:13:09 -03:00
jaroles
333b6bb0ed
Update examples/ExportSVGTests/Empty Path Testing.html
2012-09-30 22:12:42 -03:00
jaroles
e0617b3c21
Update examples/ExportSVGTests/Circle Testing.html
2012-09-30 22:12:17 -03:00
Andrew
c6c460519e
Merging all the magic
2012-09-30 17:51:50 -04:00
skierons
6c1c6bc2d5
Created an SVGRect.html to test exporting and modified SVGCircles.html for
...
easier testing.
2012-09-17 19:34:46 -04:00
jnighlight
f43abe2f32
Mostly more Experimenting, commiting it for practicing across computers.
...
Noticed that curveto and quadratic bezier curveto can be differentiated by
format of the handleIn/handleOut variables in each segment (we think) If
either handleIn.x and handleOut.x = 0 OR handleIn.y and handleOut.y = 0,
then that means the curve is a simple curveTo tag in SVG. If handleIn.x =
-handleOut.x AND handleIn.y = -handleOut.y, then you have a quadriatic
Bezier Curveto in SVG (using the Q tag). We *HOPE* and think that that
curveTo(through, to) (a method creating an arc that passes through the
"through" point and ends at the "to" point) simply creates 2 segments,
each with a handleIn and Out, which can be read and put into SVG
seperately, making our lives a lot easier. Created more SVG test files.
Made RGBConverter more efficient with another method to help reduce copied
lines of code.
2012-09-16 15:38:22 -04:00
Justin Ridgewell
76303bb756
Merge branch 'ImportSVG'
2012-09-16 01:15:37 -04:00
Justin Ridgewell
0b8e940798
Create an example page for ImportSVG
2012-09-16 01:02:40 -04:00
skierons
2f5dcce61d
Jacob and I added a bit to the exportPath class. The initialize function
...
was not working correctly and JT said he would fix that. So we initialized
svgObj in the function for the meantime. We added svgRect and svgPoint
objects for testing purposes to figure out the xml svg format. Recovered
points, strokecolor, fillcolor, and stroke width from the input path. The
last thing we need to do for extracting path data is to find the point
definitions for each point in the path. Waiting on response from head
coders to find out what type of path is passed in for simple conversions
(such as: Rectangle path, Circle path, etc.). We added a method called
RGBConverter to covnert colors into hexadecimal format for xml.
2012-09-16 00:13:14 -04:00
Jonathan Puckey
3634e7b866
Add example demonstrating onResize and Item#fitBounds.
2012-03-01 14:30:14 +01:00
Jürg Lehni
f427f369a1
Make PhyllotaxisRaster example work with new #matrix code.
2011-12-27 20:40:59 +01:00
Jürg Lehni
597a59e90c
Increase font size.
2011-12-27 20:40:22 +01:00
Jonathan Puckey
d631288dc7
Fire resize event directly after evaluation, so we don't need to call onResize ourselves from PaperScript.
2011-11-12 16:31:22 +01:00
Jürg Lehni
42d0e722db
Rename RGBColor -> RgbColor, to avoid clash with native constructor, and follow same naming convention for HsbColor and HslColor, but keep references to old names for PaperScript scopes for now.
2011-11-10 19:16:34 +01:00
Jonathan Puckey
a28b20dac8
Merge branch 'master' of https://github.com/paperjs/paper.js
2011-08-20 15:55:48 +02:00
Jonathan Puckey
c67b8acd4e
Clean up Node.js tadpoles example.
2011-08-20 15:50:25 +02:00
Jonathan Puckey
88ceffcd87
Add Node.js PaperScript Tadpoles example.
2011-08-13 19:11:21 +02:00
Jonathan Puckey
0154464fb3
Paperoids example: remove css dependency.
2011-08-11 20:30:50 +02:00
Jonathan Puckey
5611ce0793
Paperoids example: fix dependencies and embed css.
2011-08-11 20:29:43 +02:00
Jonathan Puckey
6455bf5e98
Add Paperoids example.
2011-08-11 20:24:04 +02:00
Jonathan Puckey
0f7406f7f4
Add Node.js example.
2011-08-10 21:04:01 +02:00
Jonathan Puckey
6808dc4b1c
PathEditing example: add black stroke to paths.
2011-07-17 18:16:47 +02:00
Jonathan Puckey
61fa298780
Add PathEditing example, which shows of hit-testing of paths.
2011-07-17 17:57:44 +02:00
Jonathan Puckey
7772bfc2c9
HSLColor example: change the background color to black.
2011-07-09 16:21:02 +02:00
Jonathan Puckey
984af9c93b
Use radial gradients in HSLColor example.
2011-07-09 16:19:15 +02:00
Jonathan Puckey
b667a04cb6
Improve and simplify HSLColor example.
2011-07-08 14:47:34 +02:00
Jürg Lehni
5655981f6d
Clean up white spaces.
2011-07-07 16:09:02 +02:00
Jürg Lehni
f357eb4a21
Merge pull request #20 from gka/hsl-color
...
added support for HSL colors
2011-07-06 14:37:19 -07:00
Jürg Lehni
b13c7622c8
Rename Curve#getParameter(length) -> Curve#getParameterAt(offset)
2011-07-06 23:13:38 +02:00
Jonathan Puckey
d83c76227d
Add Spiral Raster example.
2011-07-05 18:35:57 +02:00
Jonathan Puckey
458b03ff43
Move Raster related examples to examples/Rasters
2011-07-05 18:28:21 +02:00
gka
0e37d9e93d
added support for HSL colors
...
new class HSLColor, new test script HSLColor.html
2011-07-05 15:38:32 +02:00
Jürg Lehni
189e15b1e8
Remove console logging.
2011-07-01 12:56:30 +02:00
Jürg Lehni
9fa51a0457
Implement Item#controlBounds and Path#controlBounds, and test it in StrokeBounds example. This is a first step towards fast hit-testing.
2011-07-01 12:51:18 +02:00
Jürg Lehni
93518c07dc
Merge branch 'master' of github.com:paperjs/paper.js
2011-07-01 11:04:53 +02:00
Jürg Lehni
81dd35d3fb
Merge pull request #11 from rdworth/examples_title
...
Examples: Added more descriptive titles to each example html page
2011-07-01 01:59:03 -07:00
Jürg Lehni
0a719d909a
Merge pull request #15 from rdworth/example_strokebounds_semicolons
...
Example: Stroke Bounds: Added two missing semicolons, example is broken w
2011-07-01 01:56:59 -07:00
Richard D. Worth
10e36f98ee
Examples: Uncommented out doctype in a few example html files to avoid quirks mode
2011-06-30 21:20:09 -04:00
Richard D. Worth
7085eeae51
Example: Stroke Bounds: Added two missing semicolons, example is broken without them.
2011-06-30 21:04:16 -04:00
Richard D. Worth
b47d988fb3
Examples: Renamed a few html files to correct one typo and fix inconsistency with spaces in filenames
2011-06-30 10:07:05 -04:00
Richard D. Worth
45f8c7cd1a
Examples: Added more descriptive titles to each example html page
2011-06-30 09:57:17 -04:00
Jonathan Puckey
7ee7895d57
Clean up Future Splash example a bit.
2011-06-30 14:01:18 +02:00
Jonathan Puckey
d8f54b1c9b
Add FutureSplash example.
2011-06-30 13:55:35 +02:00
Jonathan Puckey
3ddf2b40ca
Clean up PathStructure example.
2011-06-30 10:49:54 +02:00
Richard D. Worth
1ab78ba594
Examples: Path Structure: refactored to handle resize as well as to display label for first point (number 0 as text content is falsy)
2011-06-29 16:12:51 -04:00
Jonathan Puckey
a26a292783
Don't use keepAlive option in examples.
2011-06-29 13:44:06 +02:00
Jonathan Puckey
c622d1419a
Improve RadialRainbows example.
2011-06-29 13:30:04 +02:00
Jonathan Puckey
2010f1b8d5
Clean up Tadpoles example.
2011-06-28 12:20:29 +02:00
Jonathan Puckey
b7ba11c9b8
Cleanup StrokeBounds example.
2011-06-28 12:13:13 +02:00
Jürg Lehni
8d2cee16c5
Flock Example: Rename to Tadpoles.
2011-06-24 19:47:13 +01:00
Jürg Lehni
b910d9ee61
Flock Example: Remove Stats.
2011-06-24 19:46:16 +01:00
Jonathan Puckey
52175da3e9
Improve RoundedRectangles example.
2011-06-21 20:10:23 +02:00
Jonathan Puckey
531e0bb203
Add Space example.
2011-06-21 14:54:29 +02:00
Jürg Lehni
909bb6310f
Shorten RadialRainbows.
2011-06-20 22:54:45 +01:00
Jonathan Puckey
ac310ecc04
Fix RadialRainbows example.
2011-06-20 23:20:39 +02:00
Jürg Lehni
23a0db603f
No need to set text fillColor to black anymore, as it's the default now.
2011-06-20 20:25:19 +01:00
Jürg Lehni
318ed69ad2
Remove use of characterStyle / paragraphStyle where not necessary.
2011-06-20 18:53:36 +01:00
Jürg Lehni
8fb97a973a
Remove stats for now since it is not included in built library.
2011-06-20 18:36:03 +01:00
Jonathan Puckey
a2a8939d5d
Path# rename #pointsToCurves to #simplify and #curvesToPoints to #flatten.
2011-06-20 19:17:07 +02:00
Jürg Lehni
322a427208
Flock: Use Symbol#place() instead.
2011-06-20 17:52:46 +01:00
Jürg Lehni
02408fc47e
Flock example: Reuse prepared symbol definition.
2011-06-20 17:51:39 +01:00
Jonathan Puckey
f6fbccb7a2
Examples: Convert Path#selected to Path#fullySelected where needed.
2011-06-20 17:16:27 +02:00
Jürg Lehni
ed5484e770
StrokeBounds example: Fix arcTo() direction.
2011-06-20 15:36:27 +01:00
Jürg Lehni
07d3cbb807
Remove dashes from Flock.
2011-06-20 15:32:53 +01:00
Jonathan Puckey
ce2ef52f60
Merge remote branch 'origin/master'
2011-06-20 15:59:19 +02:00
Jonathan Puckey
8cacbfe791
Examples: Replace DrawCurves with PointsToCurves.
2011-06-20 15:58:13 +02:00
Jürg Lehni
811f39f30e
Remove redraw() command.
2011-06-20 14:16:59 +01:00
Jonathan Puckey
c167920480
Examples: replace use of deprecated functions.
2011-06-19 17:37:43 +02:00
Jonathan Puckey
e77caf610b
Update BouncingBalls example to the version on Paperjs.org
2011-06-19 17:34:32 +02:00
Jonathan Puckey
26f326e32d
Add Fitting example to scripts.
2011-06-19 16:45:29 +02:00
Jonathan Puckey
57e23950c2
Change image used in DivisionRaster example.
2011-06-19 15:18:17 +02:00
Jonathan Puckey
fcb7a74610
Clean up DivisionRaster example.
2011-06-19 15:01:53 +02:00
Jonathan Puckey
faf9b453d1
Clean up the PhyllotaxisRaster example and use Item#fitBounds instead of stretching the image.
2011-06-19 03:43:47 +02:00
Jonathan Puckey
a0dbf3eb45
Add DivisionRaster example.
2011-06-19 03:32:07 +02:00
Jürg Lehni
6d771dd5da
Clean up.
2011-06-16 22:59:59 +01:00
Jürg Lehni
1b0dca0ea4
Use #fullySelected instead of #selected.
2011-06-16 22:51:18 +01:00
Jürg Lehni
8454709559
Improve Vektor example.
2011-06-16 22:50:27 +01:00
Jürg Lehni
4d12cb87fc
Switch from "out" folder for built library to "dist".
2011-06-12 19:03:18 +01:00
Jürg Lehni
5e4192198b
Change all examples to load the latest compiled library from out/paper.js.
2011-06-12 18:42:12 +01:00
Jürg Lehni
3d06f215c8
Add DrawCurves example, to test new Path#pointsToCurves() feature.
2011-06-05 22:10:26 +01:00
Jürg Lehni
25541b6c6c
Add a switch to CurveTimeParametrization example that allows the use of #curvesToPoints() instead of #getParameter().
2011-06-05 13:22:06 +01:00
Jonathan Puckey
43f92dd70a
Examples: close html tag.
2011-05-31 00:27:39 +02:00
christophknoth
87409c5268
</html> missing
2011-05-30 15:13:25 -07:00
Jürg Lehni
b52abbfbc1
Replace removed 'hidden' property with 'visible'.
2011-05-19 21:55:51 +01:00
Jonathan Puckey
a7fc55c998
Small update to Phyllotaxis Raster.
2011-05-19 18:42:03 +02:00
Jonathan Puckey
9c9b498e4a
Simplify Extruded example.
2011-05-19 17:16:19 +02:00
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
Jürg Lehni
e49b02b8c1
Just use layer.position to (re-)position all stars.
2011-05-18 21:32:34 +01:00
Jonathan Puckey
7e85c06b13
Add Phyllotaxis Raster example to Scripts.
2011-05-18 16:03:25 +02:00
Jonathan Puckey
3f3f6dc575
Add Vektor example to Tools.
2011-05-16 17:57:58 +02:00
Jürg Lehni
b65ec49207
Merge remote-tracking branch 'origin/master'
2011-05-16 14:26:48 +01:00
Jonathan Puckey
06f738d4db
Add PathStructure example to Scripts.
2011-05-16 15:26:07 +02:00
Jürg Lehni
378952666a
Clean ups.
2011-05-16 13:42:23 +01: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
074e121f47
Switch to onResize event. Needs more work on view bounds to work nicely.
2011-05-16 01:30:09 +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
Jonathan Puckey
4ecf6d2715
Raster example: remove unnecessary document.redraw call.
2011-05-15 15:37:33 +02: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
2fd1873b1a
Update Raster example to use onFrame event.delta / event.time for raster transformations.
2011-05-11 23:02:36 +02:00
Jonathan Puckey
b7f28140e7
Rework Smoothing example.
2011-05-08 19:14:22 +01:00
Jonathan Puckey
5ddb8e22d3
Merge remote branch 'origin/master'
2011-05-08 17:33:42 +01:00
Jürg Lehni
4d6ca5c8c6
Prevent default when handling space key.
2011-05-08 17:26:35 +01:00
Jonathan Puckey
9b295ab649
Rework RotationRaster example.
2011-05-08 17:20:23 +01:00
Jonathan Puckey
b0e91c0173
Merge remote branch 'origin/master'
2011-05-08 16:47:32 +01:00
Jonathan Puckey
822047cde0
Rework Bouncing Balls example.
2011-05-08 15:44:19 +01:00
Jürg Lehni
742c9da822
More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key.
2011-05-08 15:16:41 +01:00
Jürg Lehni
b26caee702
Improve key event handling, work in progress.
2011-05-08 13:43:52 +01:00
Jürg Lehni
926fffee4a
Rename Event -> DomEvent and Element -> DomElement, to be more specific and not clash with other classes, e.g. a future base class for ToolEvent and KeyEvent.
2011-05-08 10:16:11 +01:00
Jonathan Puckey
d2de9c29d7
RadialRainbows.html example: use onFrame instead of setInterval and fix a bug in the window resizing code.
2011-05-07 13:58:22 +01:00
Jürg Lehni
1e1a58e540
Correct case on example files.
2011-05-07 13:44:38 +01:00
Jonathan Puckey
314619e0a3
Simplify Worm Farm example.
2011-05-06 17:38:01 +01:00
Jonathan Puckey
020ab4e8bb
Some work on the Worm Farm example.
2011-05-06 17:11:46 +01:00
Jonathan Puckey
c05eb9bfde
Rework the Clouds example a bit.
2011-05-06 15:54:36 +01:00
Jonathan Puckey
1587ac857d
Simplify Circles example.
2011-05-06 15:51:26 +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
Jürg Lehni
8f7deef61c
Simplify code.
2011-05-06 00:19:24 +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
1311acea82
BezierTool: wrap explanation text in a paragraph tag.
2011-05-05 18:44:03 +01:00
Jonathan Puckey
49510f78fc
Adjust examples to work nicely when the browser window is resized.
2011-05-05 18:40:10 +01:00
Jonathan Puckey
077dc58222
Make all examples resize to the size of the browser window.
2011-05-05 16:25:17 +01:00
Jonathan Puckey
ae699ff20f
Flock example: use Element.getScrollBounds() to define Document#size, move css into the head and simplify the construction of heartPath.
2011-05-05 13:31:36 +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
Jonathan Puckey
24e817fd01
Flock example: smooth segments.
2011-05-04 18:36:44 +01:00
Jürg Lehni
e0edddd5f6
Clean up code ('){' -> ') {')).
2011-05-03 08:57:09 +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
Jonathan Puckey
511eef50f6
Flock example: move the onresize function to the top, and resize the document before creating the boids.
2011-04-28 21:23:30 +02:00
Jonathan Puckey
be7ccdbe17
Flock example: fix small bug.
2011-04-28 21:18:10 +02:00
Jonathan Puckey
c0febab6c1
Flock example: remove unused variable.
2011-04-28 21:16:05 +02:00
Jonathan Puckey
3751dd0a38
Small change to Flock example.
2011-04-28 21:13:51 +02:00
Jonathan Puckey
de466edc23
Flock example: space bar toggles selection state of items in the document.
2011-04-28 20:57:04 +02:00
Jonathan Puckey
1781b53b55
Flock example: resize the document whenever the browser window is resized.
2011-04-28 20:46:24 +02:00
Jürg Lehni
b5d1662b58
Shorten definition of heart shape.
2011-04-27 23:19:33 +01:00
Jürg Lehni
6a483fa8be
Rename CurveLocation related functions to *At(offset), and add optional isParameter argument that defines whether offset is a length or a description of curve index / curve parameter.
2011-04-27 21:40:52 +01:00
Jürg Lehni
5200434a07
Move lines.html to Animated folder.
2011-04-27 20:55:28 +01:00
Jonathan Puckey
e2bc249dd8
Add Stars example.
2011-04-26 16:46:36 +02:00
Jonathan Puckey
5ab38268fc
Add Extruded example.
2011-04-26 16:04:55 +02:00
Jonathan Puckey
2184fa144b
Some minor changes to the Flock example.
2011-04-26 16:01:41 +02:00
Jonathan Puckey
b73afe3fc0
Select paths in smoothing example.
2011-04-26 15:53:38 +02:00
Jonathan Puckey
8f3e6f44a7
Update lines example to use onFrame.
2011-04-26 15:51:56 +02:00
Jonathan Puckey
520e540da7
Update Raster example to use onFrame.
2011-04-26 15:43:01 +02:00
Jürg Lehni
7c51369426
Clean up Curve Time Parametrization example.
2011-04-26 12:31:35 +01:00
Jonathan Puckey
38a1ce0b6a
Update Circles example.
2011-04-23 16:30:29 +02:00
Jonathan Puckey
29e27c932e
Update Smoothing example.
2011-04-23 16:23:31 +02:00
Jonathan Puckey
36ba812f39
Add path smoothing example.
2011-04-23 15:47:28 +02:00
Jonathan Puckey
ff3d5aca17
Flock example: remove red connection paths.
2011-04-23 14:35:54 +02:00
Jonathan Puckey
c9538e8b53
Merge remote branch 'origin/master'
2011-04-22 18:43:21 +02:00
Jonathan Puckey
ffc5c6d981
Fix BezierTool to work with new segment selection code.
2011-04-22 18:42:32 +02:00
Jürg Lehni
28c9254695
Rename onFrameLoop to onFrame.
2011-04-22 16:31:46 +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
877e9f324c
Add port of Metaball script by Hiroyuki Sato to Examples.
2011-04-20 15:41:09 +02:00
Jonathan Puckey
357e6f2db8
Some more work on the Flock example.
2011-04-20 13:07:40 +02:00
Jonathan Puckey
d8b933957a
Add Chain example.
2011-04-19 23:32:45 +02:00
Jonathan Puckey
63f1c66be3
Flock: credits & small changes.
2011-04-19 23:32:34 +02:00
Jonathan Puckey
4d6687fd8d
Flock: simplify grouping.
2011-04-19 21:38:06 +02:00
Jonathan Puckey
3acb954350
Add Flock example.
2011-04-19 21:27:59 +02:00
Jonathan Puckey
0bc1a9aac6
Simplify BezierTool example.
2011-04-18 18:12:00 +02:00
Jonathan Puckey
d67953c1da
RoundedRectangles: use onFrameLoop and other small changes.
2011-04-18 17:48:48 +02:00
Jonathan Puckey
114c058fc6
BezierTool: check segment.point first.
2011-04-18 17:31:05 +02:00
Jonathan Puckey
25b7219536
BezierTool example: small adjustment to instructions.
2011-04-18 15:42:41 +02:00
Jonathan Puckey
8da6e7b883
BezierTool example: click and drag segment handles and points to move them and close the path when clicking on the first segment.
2011-04-18 15:29:18 +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
Jonathan Puckey
277cf541de
Small simplification in RadialRainbows example.
2011-04-07 17:05:25 +02:00
Jonathan Puckey
c875953198
Merge remote branch 'origin/master'
2011-04-07 17:03:33 +02:00
Jonathan Puckey
e76b6db5c0
Update RadialRainbows example to use the new changes in Gradient.
2011-04-07 17:02:46 +02:00
Jürg Lehni
306c22e00c
Remove TODO about bug that was fixed in the meantime.
2011-03-25 19:57:49 +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
Jürg Lehni
1267f41559
Add beginning of ObservedRectangle support and test it in animatedStar example.
2011-03-16 23:32:46 +01:00
Jürg Lehni
2fcca38a9c
Add support for onFrameLoop() callback to PaperScript.
2011-03-14 22:34:09 +01:00
Jürg Lehni
7e46eeabc4
Use the experimental Event.requestAnimationFrame() rather than setInterval().
2011-03-14 22:21:27 +01:00
Jürg Lehni
4ec8847859
Use the experimental Event.requestAnimationFrame() rather than setInterval().
2011-03-14 22:20:04 +01: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
1bb9a262d9
Add VoronoiTool to examples (work in progress).
2011-03-09 19:40:34 +01:00
Jonathan Puckey
1ae89049ed
Make the RadialRainbows example interaction smoother.
2011-03-09 17:08:20 +01:00
Jonathan Puckey
81f48e2168
Add SquareRounded.html example.
2011-03-09 16:15:01 +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
Jonathan Puckey
8bfa4e6073
Update RadialRainbows example to use Color#hue.
2011-03-07 16:07:30 +01: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
4cda395ab3
Add Rotation Raster to Examples.
2011-03-06 15:11:18 +01:00
Jonathan Puckey
0faab51a9f
Add missing CanvasProvider.js dependency to Examples.
2011-03-06 15:10:35 +01:00
Jonathan Puckey
a6fdaf85d8
Add Raster example.
2011-03-06 13:08:24 +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
95e39bcf30
Set a strokeColor, as the default seems to be invisible?
2011-03-05 00:02:46 +00:00
Jürg Lehni
3e4c49cb44
Make sure Events.js gets loaded in all examples.
2011-03-05 00:02:25 +00:00
Jürg Lehni
20f3460222
Update BezierTool to work wtihout full Bootstrap.
2011-03-04 23:33:48 +00:00
Jürg Lehni
551b28e27c
Update tool scripts to load Events object.
2011-03-04 23:33:16 +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
7bc56d4c39
Convert MultiLines examples to PaperScript.
2011-03-04 01:05:41 +00: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
Jürg Lehni
e9881c02fc
Merge remote-tracking branch 'origin/master'
2011-03-03 16:33:01 +00:00
Jürg Lehni
d088dc629e
Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping.
2011-03-03 16:21:17 +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
b03ad9b090
Some small changes BezierTool example.
2011-02-27 17:42:30 +01:00
Jonathan Puckey
196f89d9a7
Examples: Add simple BezierTool example.
2011-02-27 17:16:42 +01: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
a41a762237
Add example of radial gradients.
2011-02-19 22:52:27 +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
52b69817a0
Clean up animatedStar.html example.
2011-02-16 22:44:05 +01:00
Jonathan Puckey
7e5cb1cc81
Examples: clean up scripts list and add PathStyle.js.
2011-02-16 22:35:17 +01:00
Jonathan Puckey
f92da1297b
RoundedRectangles Example: use onMouseDrag for now.
2011-02-15 00:08:11 +01:00
Jonathan Puckey
4e0bf98035
Tools Examples: no need to set the document anymore.
2011-02-15 00:07:02 +01:00
Jonathan Puckey
4395caf41f
Tool: add support for Tool#onMouseMove(event) and add RoundedRectangles example
2011-02-14 22:43:14 +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