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