Commit graph

2715 commits

Author SHA1 Message Date
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
jaroles
981f113652 Update src/svg/ExportSVG.js 2012-09-30 22:11:00 -03:00
Andrew
a974ec8205 Mergin the branches 2012-09-30 21:01:45 -04:00
Andrew
8bafd1d73d Setting up for merge 2012-09-30 20:56:59 -04:00
skierons
19c4449165 Update dist/paper.js 2012-09-30 19:09:58 -03:00
skierons
a1bb8651a3 Update src/svg/ExportSVG.js 2012-09-30 19:05:21 -03:00
skierons
71edb9ed88 Added the Import/Export to the load script 2012-09-30 19:01:08 -03:00
Andrew
c6c460519e Merging all the magic 2012-09-30 17:51:50 -04:00
Justin Ridgewell
f46c77c699 Reset files to stubs 2012-09-30 17:24:18 -04:00
Jürg Lehni
199d19a237 Minor code clean-up. 2012-09-30 14:09:59 -07:00
Jürg Lehni
59a55f7574 Merge branch 'master' of github.com:paperjs/paper.js 2012-09-30 14:08:44 -07:00
Jürg Lehni
2c5c4ae423 Improve documentation of Rectangle#intersects. 2012-09-30 14:08:02 -07:00
Jürg Lehni
99ac617ded Inject HitResults fields as enumerable, so the default #toString works, and avoid listing getColor. 2012-09-30 14:07:27 -07:00
Jürg Lehni
9e61995282 Handle parameter matching of beginning and ends of curves separately. 2012-09-30 14:06:31 -07:00
Jürg Lehni
93ba19f7e2 Define key-code for tab key. 2012-09-30 14:05:51 -07:00
Jürg Lehni
c3f051583c Remove unnecessary return statement.
This code can never be reached.
2012-09-30 14:05:34 -07:00
Jürg Lehni
5f6842656f Define project files for sublime text. 2012-09-30 14:05:00 -07:00
Jt Whissel
350fc91c4d Update AUTHORS.md 2012-09-25 16:22:13 -03:00
AWagenheim
c6840a0dbd Tinkering with Import.svg tests 2012-09-20 21:54:23 -04:00
AWagenheim
205586bbbd Update src/svg/ImportSVG.js 2012-09-19 16:42:00 -03:00
AWagenheim
bd83a434ff Update src/svg/ImportSVG.js 2012-09-19 16:41:22 -03:00
AWagenheim
3ca96b2850 Update AUTHORS.md 2012-09-19 16:31:49 -03:00
AWagenheim
c2de6fbd05 Update test/tests/ImportSVG.js 2012-09-18 23:42:50 -03:00
AWagenheim
a0b5b4c110 Merge branch 'master' of https://github.com/Stetson-Team-Alpha/paper.js 2012-09-18 22:36:41 -04:00
AWagenheim
5f550a9f8a Added ImportSVG.js Stub 2012-09-18 22:35:48 -04:00
AWagenheim
ed6007004a Update src/svg/ImportSVG.js 2012-09-18 22:12:28 -03:00
AWagenheim
555d179978 Added comments to ImportSVG.js 2012-09-18 21:11:01 -04:00
AWagenheim
ce7e0cd349 Added comments to ImportSVG.js 2012-09-18 21:08:04 -04:00
skierons
665e9efd59 Merge branch 'master' of https://github.com/Stetson-Team-Alpha/paper.js 2012-09-17 19:37:12 -04:00
jaroles
449db5de07 Added Jacob, Justin, Scott, and Andrew 2012-09-17 20:36:37 -03: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
Jt Whissel
2750b07189 Update AUTHORS.md 2012-09-17 15:03:59 -03:00
Jt Whissel
091170cb7c Update AUTHORS.md 2012-09-17 15:03:41 -03:00
jnighlight
67f7ece09e Added comments
Code should be easier to understand.
2012-09-17 01:30:51 -04:00
jnighlight
aca3ed67a2 Cleaned up ExportSVG for general purpose.
Removed all lines written for testing purposes, saved them in a text
document for possible future reference. Code should look a lot more clean
and linear with all the stuff removed.
2012-09-17 00:34:55 -04:00
skierons
b582e96d76 Made changes to SVGCircles to be able to have an easier time reading the
data from the circle. Also, made an SVGRect html to test rectangles. No
other changes than that. Still working on telling the types of points from
Paths that we make. The curveTo's and arcTo's are giving us the most
trouble. LineTo's are points with 0 values for the handles. Jacob will
clean up the code for the walkthrough tomorrow. There we can figure out
how to solve this problem and hopefully finish up the exportPath method.
2012-09-16 23:52:09 -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
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