//>>built define("dojox/gfx/svg",["dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/_base/declare","dojo/_base/array","dojo/dom-geometry","dojo/dom-attr","dojo/_base/Color","./_base","./shape","./path"],function(_1,_2,_3,_4,_5,_6,_7,_8,g,gs,_9){ var _a=g.svg={}; _a.useSvgWeb=(typeof window.svgweb!="undefined"); var _b=navigator.userAgent.toLowerCase(),_c=_b.search("iphone")>-1||_b.search("ipad")>-1||_b.search("ipod")>-1; function _d(ns,_e){ if(_2.doc.createElementNS){ return _2.doc.createElementNS(ns,_e); }else{ return _2.doc.createElement(_e); } }; function _f(_10,ns,_11,_12){ if(_10.setAttributeNS){ return _10.setAttributeNS(ns,_11,_12); }else{ return _10.setAttribute(_11,_12); } }; function _13(_14){ if(_a.useSvgWeb){ return _2.doc.createTextNode(_14,true); }else{ return _2.doc.createTextNode(_14); } }; function _15(){ if(_a.useSvgWeb){ return _2.doc.createDocumentFragment(true); }else{ return _2.doc.createDocumentFragment(); } }; _a.xmlns={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}; _a.getRef=function(_16){ if(!_16||_16=="none"){ return null; } if(_16.match(/^url\(#.+\)$/)){ return _3.byId(_16.slice(5,-1)); } if(_16.match(/^#dojoUnique\d+$/)){ return _3.byId(_16.slice(1)); } return null; }; _a.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]}; var _17=0; _a.Shape=_4("dojox.gfx.svg.Shape",gs.Shape,{destroy:function(){ if(this.fillStyle&&"type" in this.fillStyle){ var _18=this.rawNode.getAttribute("fill"),ref=_a.getRef(_18); if(ref){ ref.parentNode.removeChild(ref); } } if(this.clip){ var _19=this.rawNode.getAttribute("clip-path"); if(_19){ var _1a=_3.byId(_19.match(/gfx_clip[\d]+/)[0]); _1a&&_1a.parentNode.removeChild(_1a); } } this.rawNode=null; gs.Shape.prototype.destroy.apply(this,arguments); },setFill:function(_1b){ if(!_1b){ this.fillStyle=null; this.rawNode.setAttribute("fill","none"); this.rawNode.setAttribute("fill-opacity",0); return this; } var f; var _1c=function(x){ this.setAttribute(x,f[x].toFixed(8)); }; if(typeof (_1b)=="object"&&"type" in _1b){ switch(_1b.type){ case "linear": f=g.makeParameters(g.defaultLinearGradient,_1b); var _1d=this._setFillObject(f,"linearGradient"); _5.forEach(["x1","y1","x2","y2"],_1c,_1d); break; case "radial": f=g.makeParameters(g.defaultRadialGradient,_1b); var _1e=this._setFillObject(f,"radialGradient"); _5.forEach(["cx","cy","r"],_1c,_1e); break; case "pattern": f=g.makeParameters(g.defaultPattern,_1b); var _1f=this._setFillObject(f,"pattern"); _5.forEach(["x","y","width","height"],_1c,_1f); break; } this.fillStyle=f; return this; } f=g.normalizeColor(_1b); 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(_20){ var rn=this.rawNode; if(!_20){ this.strokeStyle=null; rn.setAttribute("stroke","none"); rn.setAttribute("stroke-opacity",0); return this; } if(typeof _20=="string"||_1.isArray(_20)||_20 instanceof _8){ _20={color:_20}; } var s=this.strokeStyle=g.makeParameters(g.defaultStroke,_20); 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 _a.dasharray){ da=_a.dasharray[da]; } if(da instanceof Array){ da=_1._toArray(da); for(var i=0;i