You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.5 KiB
2 lines
1.5 KiB
3 months ago
|
/**/_jsload2&&_jsload2('drawbysvg', 'function Rg(a){this.M=a;this.JF="http://www.w3.org/2000/svg";this.tT={strokeweight:"stroke-width",strokecolor:"stroke",fillcolor:"fill",strokeopacity:"stroke-opacity",fillopacity:"fill-opacity",strokestyle:"stroke-dasharray"};this.bf=this.Zy();this.Mb="svg"}Rg.prototype=new D.ny;var Sg=Rg.prototype; Sg.Zy=function(){var a=this.bf=O("svg",{},this.JF);a.setAttribute("version","1.1");a.setAttribute("type","system");a.style.position="absolute";this.zE();this.M.Mf().Ps.appendChild(a);z.V(a,I()?"touchstart":"mousedown",Db);return a}; Sg.zE=function(){if(this.bf){var a=this.bf,b=this.M,c=b.U.uw,e=b.width+2*c,f=b.height+2*c,g=-b.offsetX-c,b=-b.offsetY-c;this.setAttribute(a,"x",e+"px");this.setAttribute(a,"y",f+"px");this.setAttribute(a,"viewBox",g+" "+b+" "+e+" "+f);a=a.style;a.top=b+"px";a.left=g+"px";a.width=e+"px";a.height=f+"px"}};Sg.N2=x("bf");Sg.setAttribute=function(a,b,c,e){if(a)return"strokestyle"==b&&(c="solid"==c?0:2*e),a.setAttributeNS(s,this.pq(b),c||"none"),a};Sg.pq=function(a){return this.tT[a]||a}; Sg.Yn=function(){var a=O("path",{},this.JF);this.setAttribute(a,"stroke-linejoin","round");this.setAttribute(a,"stroke-linecap","round");this.setAttribute(a,"fill-rule","evenodd");this.bf.appendChild(a);return a};Sg.je=function(a,b){var c=this.vz(b)||"M -9999,-9999";this.setAttribute(a,"d",c)};Sg.vz=function(a){if(0==a.length)return"";var b=[];z.lc.Nb(a,function(a){if(!(2>a.length)){b.push("M "+a[0].x+" "+a[0].y+" L");for(var e=1,f=a.length;e<f;e++)b.push(a[e].x),b.push(a[e].y)}});return b.join(" ")}; D.NO=Rg; ');
|