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
799d7cacf1
Merge branch 'master' of git://github.com/Stetson-Team-Alpha/paper.js
2012-09-16 01:12:09 -04:00
Justin Ridgewell
0b8e940798
Create an example page for ImportSVG
2012-09-16 01:02:40 -04:00
Justin Ridgewell
64f34e6dfd
Add _importText
2012-09-16 01:02:23 -04:00
Justin Ridgewell
2952e01fc5
Change the import* functions to private
2012-09-16 01:02:00 -04:00
Justin Ridgewell
9218664a67
Remove the initialize function
...
I'm not using it for anything
2012-09-16 01:01:28 -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
Justin Ridgewell
2ce23aacc2
Implement importSVG, importGroup, and importPath
2012-09-16 00:10:14 -04:00
Justin Ridgewell
8cf70ca6e1
Rename the create* functions to import*
...
Keeps in line with the naming of the other functions
2012-09-16 00:09:39 -04:00
Justin Ridgewell
edd8f67f8d
Fix error
...
Shouldn't have two of these...
2012-09-16 00:09:02 -04:00
Justin Ridgewell
7879b4b61b
Convert from 4 spaces to tabs
...
Oops. Paper.js uses tabs…
2012-09-15 23:58:39 -04:00
Justin Ridgewell
bbef9a9594
Add a few helper functions
...
These will convert directly from SVG objects to Paper.js equivalents.
2012-09-15 22:26:43 -04:00
Justin Ridgewell
8659c6b44c
Reformat the code to match the rest of Paper.js
2012-09-15 22:25:19 -04:00
Justin Ridgewell
9f1d840ada
Todos
2012-09-15 22:17:06 -04:00
Justin Ridgewell
d978520ba3
Reformat code to match the rest of Paper.js
2012-09-15 22:16:07 -04:00
Justin Ridgewell
24f0535bb6
Convert tabs to 4 spaces
2012-09-15 19:59:53 -04:00
Justin Ridgewell
1efd36c179
Strip trailing whitespace
2012-09-15 19:58:44 -04:00
Jt Whissel
1ccd5199b5
Added the new classes to work with, that also have the method stubs inside.
2012-09-13 20:45:27 -04:00
Jonathan Puckey
7247c1a5a2
Fix Node.js support.
2012-09-01 19:27:38 +02:00
Jonathan Puckey
cbba321977
Add node_modules directory to .gitignore
2012-09-01 13:38:12 +02:00
Jonathan Puckey
2a0f322c22
Point#getLength: access to out of bounds index in arguments array prevented function from being optimized.
2012-07-25 20:02:04 +02:00
Jonathan Puckey
8cc82917c9
Update dist/paper.js build. Closes #102 .
2012-07-20 19:56:39 +02:00
Jonathan Puckey
d20fb61c7c
Cleanup code.
2012-04-25 20:47:53 +02:00
Jonathan Puckey
10ae88e90c
Merge pull request #84 from luckyvoice/merge
...
_length cache in Curve is not updated when the Path is transformed
2012-04-25 11:38:31 -07:00
Jonathan Puckey
11136af244
Merge remote-tracking branch 'origin/master'
2012-04-25 19:48:44 +02:00
Jonathan Puckey
cbf2b8b641
Add failing tests.
2012-04-25 19:48:09 +02:00
Jonathan Puckey
59ac6c582f
Merge pull request #89 from CAFxX/patch-1
...
Remove trailing comma
2012-04-09 08:18:16 -07:00
Carlo Alberto Ferraris
9e79231198
Remove trailing comma
...
Closure compiler chokes on it.
2012-04-09 10:28:09 +03:00
Oliver Beattie
63b576b9a6
Actually ensure the length is cached at first on Curves before testing
2012-03-17 19:54:18 +00:00
Oliver Beattie
457e96ac2b
Remove unused delta variable from Item.fitBounds
2012-03-17 17:09:59 +00:00
Oliver Beattie
3c7563a3bf
When a path is transformed, the _length cache of its Curves should be invalidated
2012-03-17 17:09:54 +00:00
Jonathan Puckey
c2ac3cc158
Fix tests.
2012-03-13 16:01:07 +01:00
Jonathan Puckey
08c02a66f1
Fix Item#insertAbove(item) & Item#insertBelow(item). Closes #81
2012-03-13 15:58:52 +01:00
Jonathan Puckey
f010850f0a
Add failing tests for Item#moveAbove(item) and Item#moveBelow(item)
2012-03-13 14:54:23 +01:00
Jonathan Puckey
31b5a0647e
Add change tracking to Gradient & GradientStop.
2012-03-04 19:14:13 +01:00
Jonathan Puckey
d78103339d
Make sure value exists.
2012-03-03 21:12:11 +01:00
Jonathan Puckey
ed06901fb3
Update build of /dist/paper.js. Closes #79
2012-03-02 13:14:59 +01:00
Jonathan Puckey
4d21e219c0
Merge pull request #74 from jonobr1/patch-1
...
Based on logic, I think the else if statement means to refer to c1 rathe...
2012-03-02 03:30:25 -08:00
Jonathan Puckey
b0aa54bf56
Add missing ImageData relating functions to ProxyContext and fix problem where values weren't being returned.
2012-03-02 12:23:32 +01:00
Jonathan Puckey
2fff5b4f79
Group: fix clipping. Fixes #66
2012-03-02 11:54:11 +01:00
Jonathan Puckey
c339ffca35
Close closed paths when drawing using Context#closePath(). Fixes #72
2012-03-01 23:25:00 +01:00
Jonathan Puckey
b75e75f586
Cleanup and fix ProxyContext.
2012-03-01 23:20:15 +01:00
Jonathan Puckey
507ff8bb23
Add ProxyContext helper class to assist in debugging problems relating to interactions with the canvas' 2d context.
2012-03-01 22:25:35 +01:00
Jonathan Puckey
7093b73d31
Cleanup last merged pull request.
2012-03-01 17:06:39 +01:00
Jonathan Puckey
0d53b284e3
Merge pull request #75 from abuchanan/path-reverse-segment-siblings
...
Path.reverse() should adjust segment indices
2012-03-01 08:01:20 -08:00
Jonathan Puckey
a343724094
Item#setName: Check for Item#_parent to avoid errors in removed items and top level groups. Fixes #76
2012-03-01 16:43:05 +01:00
Jonathan Puckey
55a795c285
Add failing tests for renaming a removed item and naming a top level group.
2012-03-01 16:39:00 +01:00
Jonathan Puckey
506a146cc0
Add failing test for group bounds when the group contains a group with no children.
2012-03-01 16:24:26 +01:00
Jonathan Puckey
3634e7b866
Add example demonstrating onResize and Item#fitBounds.
2012-03-01 14:30:14 +01:00