//>>built define("dojox/gfx/svg",["dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/_base/declare","dojo/_base/array","dojo/dom-geometry","dojo/_base/Color","./_base","./shape","./path"],function(_1,_2,_3,_4,_5,_6,_7,g,gs,_8){ var _9=g.svg={}; _9.useSvgWeb=(typeof window.svgweb!="undefined"); var _a=navigator.userAgent.toLowerCase(),_b=_a.search("iphone")>-1||_a.search("ipad")>-1||_a.search("ipod")>-1; function _c(ns,_d){ if(_2.doc.createElementNS){ return _2.doc.createElementNS(ns,_d); }else{ return _2.doc.createElement(_d); } }; function _e(_f){ if(_9.useSvgWeb){ return _2.doc.createTextNode(_f,true); }else{ return _2.doc.createTextNode(_f); } }; function _10(){ if(_9.useSvgWeb){ return _2.doc.createDocumentFragment(true); }else{ return _2.doc.createDocumentFragment(); } }; _9.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}; _9.getRef=function(_11){ if(!_11||_11=="none"){ return null; } if(_11.match(/^url\(#.+\)$/)){ return _3.byId(_11.slice(5,-1)); } if(_11.match(/^#dojoUnique\d+$/)){ return _3.byId(_11.slice(1)); } return null; }; _9.dasharray={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]}; _4("dojox.gfx.svg.Shape",gs.Shape,{setFill:function(_12){ if(!_12){ this.fillStyle=null; this.rawNode.setAttribute("fill","none"); this.rawNode.setAttribute("fill-opacity",0); return this; } var f; var _13=function(x){ this.setAttribute(x,f[x].toFixed(8)); }; if(typeof (_12)=="object"&&"type" in _12){ switch(_12.type){ case "linear": f=g.makeParameters(g.defaultLinearGradient,_12); var _14=this._setFillObject(f,"linearGradient"); _5.forEach(["x1","y1","x2","y2"],_13,_14); break; case "radial": f=g.makeParameters(g.defaultRadialGradient,_12); var _15=this._setFillObject(f,"radialGradient"); _5.forEach(["cx","cy","r"],_13,_15); break; case "pattern": f=g.makeParameters(g.defaultPattern,_12); var _16=this._setFillObject(f,"pattern"); _5.forEach(["x","y","width","height"],_13,_16); break; } this.fillStyle=f; return this; } f=g.normalizeColor(_12); this.fillStyle=f; this.rawNode.setAttribute("fill",f.toCss()); this.rawNode.setAttribute("fill-opacity",f.a); this.rawNode.setAttribute("fill-rule","evenodd"); return this; },setStroke:function(_17){ var rn=this.rawNode; if(!_17){ this.strokeStyle=null; rn.setAttribute("stroke","none"); rn.setAttribute("stroke-opacity",0); return this; } if(typeof _17=="string"||_1.isArray(_17)||_17 instanceof _7){ _17={color:_17}; } var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_17); s.color=g.normalizeColor(s.color); if(s){ rn.setAttribute("stroke",s.color.toCss()); rn.setAttribute("stroke-opacity",s.color.a); rn.setAttribute("stroke-width",s.width); rn.setAttribute("stroke-linecap",s.cap); if(typeof s.join=="number"){ rn.setAttribute("stroke-linejoin","miter"); rn.setAttribute("stroke-miterlimit",s.join); }else{ rn.setAttribute("stroke-linejoin",s.join); } var da=s.style.toLowerCase(); if(da in _9.dasharray){ da=_9.dasharray[da]; } if(da instanceof Array){ da=_1._toArray(da); for(var i=0;i