From 6c1c6bc2d5e5d9085981ada7073be37ed9cccb85 Mon Sep 17 00:00:00 2001 From: skierons Date: Mon, 17 Sep 2012 19:34:46 -0400 Subject: [PATCH] Created an SVGRect.html to test exporting and modified SVGCircles.html for easier testing. --- examples/Tools/.SVGCircles.html.swp | Bin 0 -> 12288 bytes examples/Tools/.SVGRect.html.swp | Bin 0 -> 12288 bytes examples/Tools/SVGCircles.html | 33 ++++++++++++++++++++++------ examples/Tools/SVGRect.html | 32 +++++++++++++++++++++++++++ src/path/.Path.Constructors.js.swp | Bin 0 -> 16384 bytes 5 files changed, 58 insertions(+), 7 deletions(-) create mode 100644 examples/Tools/.SVGCircles.html.swp create mode 100644 examples/Tools/.SVGRect.html.swp create mode 100644 examples/Tools/SVGRect.html create mode 100644 src/path/.Path.Constructors.js.swp diff --git a/examples/Tools/.SVGCircles.html.swp b/examples/Tools/.SVGCircles.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..56100d522b699739475fdbbd8ad66a657478d5f1 GIT binary patch literal 12288 zcmeI2Pj4GV7>6g^0<<7{<1}4V;tG4$aT8inJ5uCS1wj>~xRDSS#_QMiCgYuDX4Xks z;J_!~!e7BB-~e|{aNrAYg$oBHZb)$AK>5wC?Ica56mg4Yl}Fypyz}lm&v^EbOs~H4 z+8us9yvA@n%b5Ohr{iwr3S--`vex}_#UL|L_8DO;UW@J;(k3brN14b-hr1@C z12N7dnW(FjMDNb+cA{f6gd;naXJz&M-hemocm^)AYmMdl3&CZ6>AAa)H^fJI1Kxl) z;0<^K-hemY4R{0Iz_~GCvjz45vv~r%3>K!~!(ZNjH{cC;1Kxl);0<^K-hemY4R{0I zfH!bX42V8suRO`vm8UQv{Quwm4d9Pw82cUk3cdm#f;Yhh@WVyMJ^}=8gO|W1@b?AA z{sMo3-@uRHd+;^52i^f2;CZkB82IUF#=ZsLfDgbM;C1jKxB?!arhmXM;Aik1_yT+m zJ_DbEPr%3EJ#Zi7U>Eej+h7&cKrz2_vSxl7-hemY4R{0IfH&X`cmw~-Kr?d3OxIa6 z>ZxP*kG@s?!*#aUj72&Th9~`2P~HYylS%H;dNV2;kgrz+BM*tb8x)yXCz-|V;^O-^ znfqAGgdK&N#%e-a>82LL%2o8ZYu4Kcg^s(bVpY~rNouRy>YNZY58y4H(mwAXRYlUk z7GW-pi5QpNMK8)$&o)L}>16=&G*D zUKMFyQsYE?y~=B=t6`&YV>*RLjCg238NM>FWIo3eaq~LdtfOcw_L6kSHwrazah{k9 z%LR`~TalzZb0$hhu}Y1S6iPL$n8{G(_E>FY10IE&kPb4XZDHE2+{v(MIk$=!oMLuM z>53`V*pQ^yQXfHX{f>HOlW<>z^4xQUCY0K+D6q=4=qI^3_N1}_!*p#nR;xW~E2;DvU+PH_?=2M_gG9<%^ZqEY zv{ZHNnO3`)MHuH=qr`1{C<%oW1w;|IBQnHI(TY$U@3skESk6@+1g zAKXS*#b~}lIDH;q$Cjc0DOEo))51>WkV(3S`N&pKm@p$E8}N~)K~YC+OjLA)xC`7v zZDJ*@A02ydMr8}S#$*K_S)0}9-8`AJg0@O6%-6cm0~zISQ%~+Sc9X{=p$*wqZU?m+ Z$lokqKh5b&?(*hVyZct>7P7jR-oLlv#(e+) literal 0 HcmV?d00001 diff --git a/examples/Tools/.SVGRect.html.swp b/examples/Tools/.SVGRect.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..0e8ea1331f14726d24e8667d7e0c64bc6dbbb5b0 GIT binary patch literal 12288 zcmeI2J#W)M7{{+n1f)_?Ay(H6O{>ICTUDUu1wmR>9jZnot;B>J=aM*ae8zW4Ur+~z zegRlm5E2psAz0Y>0DJ)W2yBRjjS>E5r>&q!EfXSoto-8h-E(K(Prb)#d-dGb+PZPw zT3|RP82j{StD=i<))=e0LMeT5%26$E)N0vE`IIo`F4>!sN79Z5wnHc6k=2nl-*I}O z&!t@x!bj`Y>K*PXtF3zeX+u&w86X2^HZZ=qFh7^OW=fDDiU zGC&5%02vq!11cP2KQNVZUfDDiUGC&5%02v?yWMD)LI1R>L zpJ%L|!i4bufBiRrZlLWN># zKR;{ZlyXHNh0iTtw9<0W5`8t3*YyJ@GLmbfs0$X~2}PtTj%ueveEkxIkbrL+D{%<6 zUZ#^)9XD*!{VcsB(+OHWPlv(_R7OAU@i=kaVYqHj&*yR(a2%pL3?r&2rWbRW#iaQG zp4pyl_5)XWA~1SRmmlA4293#QKc3sanKK{oKv@m39aR1>``@QFhq(hfk%Is3ryyRi zdPN?sM-i-xzU0f1(@MwdKrcz1Vswhg<2O9yBYdT#ibR)}g)gEdW4i7;Zg*POH$C4! ztle&Vice=yt#1)VqN6u@yZtD_`l_m3A1MO4E=hHU+6{TpRD4Gzd&QG#(@1jUQS#K; z@nnyVgB%;DOw*8&TQn`p#s@_kDbYU4ci4b#BJU=le>GIYlfwr)F^2C2UF3AXXi7aP z+2&lCMmyro_&HoD?YO~0$<#Mhp7MEVxbwYWCzq)2apf3orNS(~-}eSZvn&DySJ@ie tz(jI2l%(G?dBbfxk>sk_SIz7V3|>gyAcf&uXli+*T)SIY!KnJJ^b>)_^o;-j literal 0 HcmV?d00001 diff --git a/examples/Tools/SVGCircles.html b/examples/Tools/SVGCircles.html index 1878f18a..9468bed8 100644 --- a/examples/Tools/SVGCircles.html +++ b/examples/Tools/SVGCircles.html @@ -2,7 +2,7 @@ - Circles + SVGCircles @@ -15,15 +15,34 @@ }; var path; - function onMouseDrag(event) { - // The radius is the distance between the position - // where the user clicked and the current position - // of the mouse. - var radius = (event.downPoint - event.point).length; - path = new Path.Circle(event.downPoint, radius); + function onMouseDown(event) + { + var radius = 100; + path = new Path.Circle(event.point, radius); + path.selected = true; var svg = new ExportSVG(); var svgout = svg.exportPath(path); console.log(svgout); + + //making A new circle at a certain point + leftPoint = new Point(44,107); + + var leftToTopHandle = new Point(0,55.22847); + var leftToTopHandle2 = new Point(0, -55.228); + + rightPoint = new Point(244,107); + + bottomPoint = new Point(144,207); + + topPoint = new Point(144,7); + + path2 = new Path(leftPoint); + path2.arcTo(topPoint, true); + + + + + path.removeOnDrag(); }; diff --git a/examples/Tools/SVGRect.html b/examples/Tools/SVGRect.html new file mode 100644 index 00000000..becba17d --- /dev/null +++ b/examples/Tools/SVGRect.html @@ -0,0 +1,32 @@ + + + + + SVGRect + + + + + + + + + diff --git a/src/path/.Path.Constructors.js.swp b/src/path/.Path.Constructors.js.swp new file mode 100644 index 0000000000000000000000000000000000000000..f5c885e4cb553ac42c8aea2854fec711af57b665 GIT binary patch literal 16384 zcmeI2ZHOdC8OQrBFJ?TAAqi1DF?A;KW_I^_Ue?PU8`s-qbH-bCi^-B&8&7lMl-w1vXMea*f40uS8n0z@2h;M;FAj0V(sE9HCpQ`Gf zo_)F9J2q&v2Yxf%)%DcNQ%^nhR87}Qr%ueWBj%`q&n<@W^5<(+x@=DyM$Pu4h;Fv| z)TTZ@H+QHywM{m|9xI*P!#|I-=3>+dp*%it3D4)`QE4i195!Jlq6jGusKz%mHI zJU9(b0TbK+t_PRiX&65OUjQe;UEogeey|t(^Bsoq8}Jf12hM`iU_bctKAbmz--2hr zIpBd=@BpZQz2MT@4dXfRb?{a2W$-2N1h^j@1NVS^;4eAk1wRAl!5Odw#=t)C+D(S> z3ius313m_B1be`%Z!?TR@GbB;&;u*rL*RYj-QXWL7{-g>7vRU> zNg%)^xD{N!9(@JB1W$vr;BjDqNiYQVgG)Gwxd6TbT)@FB7zane5l{wy#dux@7r|5D z5#WMPfun%N`!=xICzoSGY}pblbROeuoOyhO)o__Fmr5fHUxoXOBv0TwUZgWs>3T!1 z3I3?n30y8^l;DKmQCE0ujo$d^v8c_d5_gr^f?E-9FnS$CXALZ2b=Vp;pr=|y*=5uG zrW6%^*K0t?_JxPnO9tg0;&xN9m%0%wH^io7T_LmN1LWzt=rgs5orrjctvI+^ zSGEcH;?R(RpWX<*a=IhbUQ$YqF3g8**ALO4afTOJxJ+M=I?LsxE_tiNp(v>?Q*}8n zoK`y;VRgK6<97-LDr?)!kslNavKd=vb$JuT?mTDQ09mZ+jn!!6=VgQFJ|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