a:94:{s:9:"#provides";s:13:"dojox.gfx.svg";s:9:"#resource";s:10:"gfx/svg.js";s:9:"#requires";a:3:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.gfx._base";}i:1;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.gfx.shape";}i:2;a:2:{i:0;s:6:"common";i:1;s:14:"dojox.gfx.path";}}s:15:"dojox.gfx.Group";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:15:"dojox.gfx.Shape";}s:4:"call";a:2:{i:0;s:15:"dojox.gfx.Shape";i:1;s:29:"dojox.gfx.svg.Container._init";}}s:7:"summary";s:94:"a group shape (SVG), which can be used to logically group shapes (e.g, to propagate matricies)";s:6:"source";s:43:" dojox.gfx.svg.Container._init.call(this);";s:6:"mixins";a:1:{s:9:"prototype";a:2:{i:0;s:23:"dojox.gfx.svg.Container";i:1;s:23:"dojox.gfx.shape.Creator";}}s:9:"classlike";b:1;}s:26:"dojox.gfx.Group.setRawNode";a:5:{s:9:"prototype";s:15:"dojox.gfx.Group";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"rawNode";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:11:"an SVG node";}}s:6:"source";s:25:" this.rawNode = rawNode;";s:7:"summary";s:44:"sets a raw SVG node to be used by this shape";}s:23:"dojox.gfx.Group.rawNode";a:2:{s:8:"instance";s:15:"dojox.gfx.Group";s:7:"summary";s:0:"";}s:34:"dojox.gfx.Group.setRawNode.rawNode";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:11:"an SVG node";}s:14:"dojox.gfx.Rect";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:20:"dojox.gfx.shape.Rect";}s:4:"call";a:1:{i:0;s:20:"dojox.gfx.shape.Rect";}}s:7:"summary";s:23:"a rectangle shape (SVG)";s:9:"classlike";b:1;}s:23:"dojox.gfx.Rect.setShape";a:6:{s:9:"prototype";s:14:"dojox.gfx.Rect";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:24:"a rectangle shape object";}}s:6:"source";s:340:" this.shape = dojox.gfx.makeParameters(this.shape, newShape); this.bbox = null; for(var i in this.shape){ if(i != "type" && i != "r"){ this.rawNode.setAttribute(i, this.shape[i]); } } if(this.shape.r){ this.rawNode.setAttribute("ry", this.shape.r); this.rawNode.setAttribute("rx", this.shape.r); } return this; // self";s:7:"summary";s:35:"sets a rectangle shape object (SVG)";s:7:"returns";s:4:"self";}s:20:"dojox.gfx.Rect.shape";a:2:{s:8:"instance";s:14:"dojox.gfx.Rect";s:7:"summary";s:0:"";}s:19:"dojox.gfx.Rect.bbox";a:2:{s:8:"instance";s:14:"dojox.gfx.Rect";s:7:"summary";s:0:"";}s:18:"dojox.gfx.Polyline";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:24:"dojox.gfx.shape.Polyline";}s:4:"call";a:1:{i:0;s:24:"dojox.gfx.shape.Polyline";}}s:7:"summary";s:30:"a polyline/polygon shape (SVG)";s:9:"classlike";b:1;}s:27:"dojox.gfx.Polyline.setShape";a:6:{s:9:"prototype";s:18:"dojox.gfx.Polyline";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"points";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:31:"a polyline/polygon shape object";}s:6:"closed";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:665:" if(points && points instanceof Array){ // branch // points: Array: an array of points this.shape = dojox.gfx.makeParameters(this.shape, { points: points }); if(closed && this.shape.points.length){ this.shape.points.push(this.shape.points[0]); } }else{ this.shape = dojox.gfx.makeParameters(this.shape, points); } this.box = null; var attr = [], p = this.shape.points; for(var i = 0; i < p.length; ++i){ if(typeof p[i] == "number"){ attr.push(p[i].toFixed(8)); }else{ attr.push(p[i].x.toFixed(8)); attr.push(p[i].y.toFixed(8)); } } this.rawNode.setAttribute("points", attr.join(" ")); return this; // self";s:7:"summary";s:42:"sets a polyline/polygon shape object (SVG)";s:7:"returns";s:4:"self";}s:24:"dojox.gfx.Polyline.shape";a:2:{s:8:"instance";s:18:"dojox.gfx.Polyline";s:7:"summary";s:0:"";}s:22:"dojox.gfx.Polyline.box";a:2:{s:8:"instance";s:18:"dojox.gfx.Polyline";s:7:"summary";s:0:"";}s:15:"dojox.gfx.Image";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:21:"dojox.gfx.shape.Image";}s:4:"call";a:1:{i:0;s:21:"dojox.gfx.shape.Image";}}s:7:"summary";s:14:"an image (SVG)";s:9:"classlike";b:1;}s:24:"dojox.gfx.Image.setShape";a:6:{s:9:"prototype";s:15:"dojox.gfx.Image";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:21:"an image shape object";}}s:6:"source";s:320:" this.shape = dojox.gfx.makeParameters(this.shape, newShape); this.bbox = null; var rawNode = this.rawNode; for(var i in this.shape){ if(i != "type" && i != "src"){ rawNode.setAttribute(i, this.shape[i]); } } rawNode.setAttributeNS(dojox.gfx.svg.xmlns.xlink, "href", this.shape.src); return this; // self";s:7:"summary";s:32:"sets an image shape object (SVG)";s:7:"returns";s:4:"self";}s:21:"dojox.gfx.Image.shape";a:2:{s:8:"instance";s:15:"dojox.gfx.Image";s:7:"summary";s:0:"";}s:20:"dojox.gfx.Image.bbox";a:2:{s:8:"instance";s:15:"dojox.gfx.Image";s:7:"summary";s:0:"";}s:14:"dojox.gfx.Text";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:20:"dojox.gfx.shape.Text";}s:4:"call";a:1:{i:0;s:20:"dojox.gfx.shape.Text";}}s:7:"summary";s:22:"an anchored text (SVG)";s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:18:"dojox.gfx.svg.Font";}}s:9:"classlike";b:1;}s:23:"dojox.gfx.Text.setShape";a:6:{s:9:"prototype";s:14:"dojox.gfx.Text";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:19:"a text shape object";}}s:6:"source";s:479:" this.shape = dojox.gfx.makeParameters(this.shape, newShape); this.bbox = null; var r = this.rawNode, s = this.shape; r.setAttribute("x", s.x); r.setAttribute("y", s.y); r.setAttribute("text-anchor", s.align); r.setAttribute("text-decoration", s.decoration); r.setAttribute("rotate", s.rotated ? 90 : 0); r.setAttribute("kerning", s.kerning ? "auto" : 0); r.setAttribute("text-rendering", "optimizeLegibility"); r.textContent = s.text; return this; // self";s:7:"summary";s:30:"sets a text shape object (SVG)";s:7:"returns";s:4:"self";}s:27:"dojox.gfx.Text.getTextWidth";a:4:{s:9:"prototype";s:14:"dojox.gfx.Text";s:4:"type";s:8:"Function";s:6:"source";s:557:" var rawNode = this.rawNode, oldParent = rawNode.parentNode, _measurementNode = rawNode.cloneNode(true); _measurementNode.style.visibility = "hidden"; // solution to the "orphan issue" in FF var _width = 0, _text = _measurementNode.firstChild.nodeValue; oldParent.appendChild(_measurementNode); // solution to the "orphan issue" in Opera // (nodeValue == "" hangs firefox) if(_text!=""){ while(!_width){ _width = parseInt(_measurementNode.getBBox().width); } } oldParent.removeChild(_measurementNode); return _width;";s:7:"summary";s:28:"get the text width in pixels";}s:20:"dojox.gfx.Text.shape";a:2:{s:8:"instance";s:14:"dojox.gfx.Text";s:7:"summary";s:0:"";}s:19:"dojox.gfx.Text.bbox";a:2:{s:8:"instance";s:14:"dojox.gfx.Text";s:7:"summary";s:0:"";}s:14:"dojox.gfx.Path";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:19:"dojox.gfx.path.Path";}s:4:"call";a:1:{i:0;s:19:"dojox.gfx.path.Path";}}s:7:"summary";s:18:"a path shape (SVG)";s:9:"classlike";b:1;}s:33:"dojox.gfx.Path._updateWithSegment";a:7:{s:9:"prototype";s:14:"dojox.gfx.Path";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"segment";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:9:"a segment";}}s:6:"source";s:169:" dojox.gfx.Path.superclass._updateWithSegment.apply(this, arguments); if(typeof(this.shape.path) == "string"){ this.rawNode.setAttribute("d", this.shape.path); }";s:7:"summary";s:49:"updates the bounding box of path with new segment";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:44:"dojox.gfx.Path.superclass._updateWithSegment";}}s:7:"private";b:1;}s:23:"dojox.gfx.Path.setShape";a:7:{s:9:"prototype";s:14:"dojox.gfx.Path";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:63:"an SVG path string or a path object (see dojox.gfx.defaultPath)";}}s:6:"source";s:134:" dojox.gfx.Path.superclass.setShape.apply(this, arguments); this.rawNode.setAttribute("d", this.shape.path); return this; // self";s:7:"summary";s:32:"forms a path using a shape (SVG)";s:7:"returns";s:4:"self";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:34:"dojox.gfx.Path.superclass.setShape";}}}s:18:"dojox.gfx.TextPath";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:23:"dojox.gfx.path.TextPath";}s:4:"call";a:1:{i:0;s:23:"dojox.gfx.path.TextPath";}}s:7:"summary";s:22:"a textpath shape (SVG)";s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:18:"dojox.gfx.svg.Font";}}s:9:"classlike";b:1;}s:37:"dojox.gfx.TextPath._updateWithSegment";a:7:{s:9:"prototype";s:18:"dojox.gfx.TextPath";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"segment";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:9:"a segment";}}s:6:"source";s:93:" dojox.gfx.Path.superclass._updateWithSegment.apply(this, arguments); this._setTextPath();";s:7:"summary";s:49:"updates the bounding box of path with new segment";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:44:"dojox.gfx.Path.superclass._updateWithSegment";}}s:7:"private";b:1;}s:27:"dojox.gfx.TextPath.setShape";a:7:{s:9:"prototype";s:18:"dojox.gfx.TextPath";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:63:"an SVG path string or a path object (see dojox.gfx.defaultPath)";}}s:6:"source";s:106:" dojox.gfx.Path.superclass.setShape.apply(this, arguments); this._setTextPath(); return this; // self";s:7:"summary";s:32:"forms a path using a shape (SVG)";s:7:"returns";s:4:"self";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:34:"dojox.gfx.Path.superclass.setShape";}}}s:31:"dojox.gfx.TextPath._setTextPath";a:5:{s:9:"prototype";s:18:"dojox.gfx.TextPath";s:4:"type";s:8:"Function";s:6:"source";s:806:" if(typeof this.shape.path != "string"){ return; } var r = this.rawNode; if(!r.firstChild){ var tp = document.createElementNS(dojox.gfx.svg.xmlns.svg, "textPath"), tx = document.createTextNode(""); tp.appendChild(tx); r.appendChild(tp); } var ref = r.firstChild.getAttributeNS(dojox.gfx.svg.xmlns.xlink, "href"), path = ref && dojox.gfx.svg.getRef(ref); if(!path){ var surface = this._getParentSurface(); if(surface){ var defs = surface.defNode; path = document.createElementNS(dojox.gfx.svg.xmlns.svg, "path"); var id = dojox.gfx._base._getUniqueId(); path.setAttribute("id", id); defs.appendChild(path); r.firstChild.setAttributeNS(dojox.gfx.svg.xmlns.xlink, "href", "#" + id); } } if(path){ path.setAttribute("d", this.shape.path); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dojox.gfx.TextPath._setText";a:5:{s:9:"prototype";s:18:"dojox.gfx.TextPath";s:4:"type";s:8:"Function";s:6:"source";s:998:" var r = this.rawNode; if(!r.firstChild){ var tp = document.createElementNS(dojox.gfx.svg.xmlns.svg, "textPath"), tx = document.createTextNode(""); tp.appendChild(tx); r.appendChild(tp); } r = r.firstChild; var t = this.text; r.setAttribute("alignment-baseline", "middle"); switch(t.align){ case "middle": r.setAttribute("text-anchor", "middle"); r.setAttribute("startOffset", "50%"); break; case "end": r.setAttribute("text-anchor", "end"); r.setAttribute("startOffset", "100%"); break; default: r.setAttribute("text-anchor", "start"); r.setAttribute("startOffset", "0%"); break; } //r.parentNode.setAttribute("alignment-baseline", "central"); //r.setAttribute("dominant-baseline", "central"); r.setAttribute("baseline-shift", "0.5ex"); r.setAttribute("text-decoration", t.decoration); r.setAttribute("rotate", t.rotated ? 90 : 0); r.setAttribute("kerning", t.kerning ? "auto" : 0); r.firstChild.data = t.text;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:17:"dojox.gfx.Surface";a:6:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:23:"dojox.gfx.shape.Surface";}s:4:"call";a:2:{i:0;s:23:"dojox.gfx.shape.Surface";i:1;s:29:"dojox.gfx.svg.Container._init";}}s:7:"summary";s:46:"a surface object to be used for drawings (SVG)";s:6:"source";s:43:" dojox.gfx.svg.Container._init.call(this);";s:6:"mixins";a:1:{s:9:"prototype";a:2:{i:0;s:23:"dojox.gfx.svg.Container";i:1;s:23:"dojox.gfx.shape.Creator";}}s:9:"classlike";b:1;}s:25:"dojox.gfx.Surface.destroy";a:4:{s:9:"prototype";s:17:"dojox.gfx.Surface";s:4:"type";s:8:"Function";s:6:"source";s:85:" this.defNode = null; // release the external reference this.inherited(arguments);";s:7:"summary";s:0:"";}s:31:"dojox.gfx.Surface.setDimensions";a:6:{s:9:"prototype";s:17:"dojox.gfx.Surface";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"width";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:41:"width of surface, e.g., "100px"";}s:6:"height";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:42:"height of surface, e.g., "100px"";}}s:6:"source";s:151:" if(!this.rawNode){ return this; } this.rawNode.setAttribute("width", width); this.rawNode.setAttribute("height", height); return this; // self";s:7:"summary";s:40:"sets the width and height of the rawNode";s:7:"returns";s:4:"self";}s:31:"dojox.gfx.Surface.getDimensions";a:5:{s:9:"prototype";s:17:"dojox.gfx.Surface";s:4:"type";s:8:"Function";s:6:"source";s:130:" return this.rawNode ? {width: this.rawNode.getAttribute("width"), height: this.rawNode.getAttribute("height")} : null; // Object";s:7:"summary";s:74:"returns an object with properties "width" and "height"";s:7:"returns";s:6:"Object";}s:25:"dojox.gfx.Surface.defNode";a:2:{s:8:"instance";s:17:"dojox.gfx.Surface";s:7:"summary";s:0:"";}s:19:"dojox.gfx.svg.xmlns";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:25:"dojox.gfx.svg.xmlns.xlink";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.svg.xmlns.svg";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.svg.dasharray";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:29:"dojox.gfx.svg.dasharray.solid";a:1:{s:7:"summary";s:0:"";}s:33:"dojox.gfx.svg.dasharray.shortdash";a:1:{s:7:"summary";s:0:"";}s:32:"dojox.gfx.svg.dasharray.shortdot";a:1:{s:7:"summary";s:0:"";}s:36:"dojox.gfx.svg.dasharray.shortdashdot";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx.svg.dasharray.shortdashdotdot";a:1:{s:7:"summary";s:0:"";}s:27:"dojox.gfx.svg.dasharray.dot";a:1:{s:7:"summary";s:0:"";}s:28:"dojox.gfx.svg.dasharray.dash";a:1:{s:7:"summary";s:0:"";}s:32:"dojox.gfx.svg.dasharray.longdash";a:1:{s:7:"summary";s:0:"";}s:31:"dojox.gfx.svg.dasharray.dashdot";a:1:{s:7:"summary";s:0:"";}s:35:"dojox.gfx.svg.dasharray.longdashdot";a:1:{s:7:"summary";s:0:"";}s:38:"dojox.gfx.svg.dasharray.longdashdotdot";a:1:{s:7:"summary";s:0:"";}s:18:"dojox.gfx.svg.Font";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:27:"dojox.gfx.svg.Font._setFont";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:424:" var f = this.fontStyle; // next line doesn't work in Firefox 2 or Opera 9 //this.rawNode.setAttribute("font", dojox.gfx.makeFontString(this.fontStyle)); this.rawNode.setAttribute("font-style", f.style); this.rawNode.setAttribute("font-variant", f.variant); this.rawNode.setAttribute("font-weight", f.weight); this.rawNode.setAttribute("font-size", f.size); this.rawNode.setAttribute("font-family", f.family);";s:7:"summary";s:24:"sets a font object (SVG)";s:7:"private";b:1;}s:23:"dojox.gfx.svg.Container";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:29:"dojox.gfx.svg.Container._init";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:45:" dojox.gfx.shape.Container._init.call(this);";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:31:"dojox.gfx.shape.Container._init";}}s:7:"private";b:1;s:7:"summary";s:0:"";}s:27:"dojox.gfx.svg.Container.add";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:5:"shape";a:2:{s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:19:"an VML shape object";}}s:6:"source";s:252:" if(this != shape.getParent()){ this.rawNode.appendChild(shape.rawNode); //dojox.gfx.Group.superclass.add.apply(this, arguments); //this.inherited(arguments); dojox.gfx.shape.Container.add.apply(this, arguments); } return this; // self";s:7:"summary";s:31:"adds a shape to a group/surface";s:7:"returns";s:4:"self";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:29:"dojox.gfx.shape.Container.add";}}}s:30:"dojox.gfx.svg.Container.remove";a:6:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"shape";a:2:{s:4:"type";s:15:"dojox.gfx.Shape";s:7:"summary";s:19:"an VML shape object";}s:8:"silently";a:3:{s:4:"type";s:7:"Boolean";s:8:"optional";b:1;s:7:"summary";s:29:"if true, regenerate a picture";}}s:6:"source";s:313:" if(this == shape.getParent()){ if(this.rawNode == shape.rawNode.parentNode){ this.rawNode.removeChild(shape.rawNode); } //dojox.gfx.Group.superclass.remove.apply(this, arguments); //this.inherited(arguments); dojox.gfx.shape.Container.remove.apply(this, arguments); } return this; // self";s:7:"summary";s:35:"remove a shape from a group/surface";s:7:"returns";s:4:"self";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:32:"dojox.gfx.shape.Container.remove";}}}s:38:"dojox.gfx.svg.Container.remove.rawNode";a:2:{s:8:"instance";s:30:"dojox.gfx.svg.Container.remove";s:7:"summary";s:0:"";}s:29:"dojox.gfx.svg.Container.clear";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:309:" var r = this.rawNode; while(r.lastChild){ r.removeChild(r.lastChild); } var d = this.defNode; if(d){ while(d.lastChild){ d.removeChild(d.lastChild); } r.appendChild(d); } //return this.inherited(arguments); // self return dojox.gfx.shape.Container.clear.apply(this, arguments);";s:7:"summary";s:39:"removes all shapes from a group/surface";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:31:"dojox.gfx.shape.Container.clear";}}}s:41:"dojox.gfx.svg.Container._moveChildToFront";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:40:"dojox.gfx.svg.Container._moveChildToBack";a:2:{s:7:"private";b:1;s:7:"summary";s:0:"";}s:20:"dojox.gfx.svg.getRef";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"name";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:25:"an SVG external reference";}}s:6:"source";s:339:" if(!name || name == "none") return null; if(name.match(/^url\(#.+\)$/)){ return dojo.byId(name.slice(5, -1)); // Node } // alternative representation of a reference if(name.match(/^#dojoUnique\d+$/)){ // we assume here that a reference was generated by dojox.gfx return dojo.byId(name.slice(1)); // Node } return null; // Node";s:7:"summary";s:57:"returns a DOM Node specified by the name argument or null";s:7:"returns";s:4:"Node";}s:23:"dojox.gfx.createSurface";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:10:"parentNode";a:2:{s:4:"type";s:4:"Node";s:7:"summary";s:13:"a parent node";}s:5:"width";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:41:"width of surface, e.g., "100px"";}s:6:"height";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:42:"height of surface, e.g., "100px"";}}s:6:"source";s:430:" var s = new dojox.gfx.Surface(); s.rawNode = document.createElementNS(dojox.gfx.svg.xmlns.svg, "svg"); s.rawNode.setAttribute("width", width); s.rawNode.setAttribute("height", height); var defNode = document.createElementNS(dojox.gfx.svg.xmlns.svg, "defs"); s.rawNode.appendChild(defNode); s.defNode = defNode; s._parent = dojo.byId(parentNode); s._parent.appendChild(s.rawNode); return s; // dojox.gfx.Surface";s:7:"summary";s:23:"creates a surface (SVG)";s:7:"returns";s:17:"dojox.gfx.Surface";}s:23:"dojox.gfx.Shape.setFill";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"fill";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:125:"a fill object (see dojox.gfx.defaultLinearGradient, dojox.gfx.defaultRadialGradient, dojox.gfx.defaultPattern, or dojo.Color)";}}s:6:"source";s:1479:" if(!fill){ // don't fill this.fillStyle = null; this.rawNode.setAttribute("fill", "none"); this.rawNode.setAttribute("fill-opacity", 0); return this; } var f; // FIXME: slightly magical. We're using the outer scope's "f", but setting it later var setter = function(x){ // we assume that we're executing in the scope of the node to mutate this.setAttribute(x, f[x].toFixed(8)); }; if(typeof(fill) == "object" && "type" in fill){ // gradient switch(fill.type){ case "linear": f = dojox.gfx.makeParameters(dojox.gfx.defaultLinearGradient, fill); var gradient = this._setFillObject(f, "linearGradient"); dojo.forEach(["x1", "y1", "x2", "y2"], setter, gradient); break; case "radial": f = dojox.gfx.makeParameters(dojox.gfx.defaultRadialGradient, fill); var gradient = this._setFillObject(f, "radialGradient"); dojo.forEach(["cx", "cy", "r"], setter, gradient); break; case "pattern": f = dojox.gfx.makeParameters(dojox.gfx.defaultPattern, fill); var pattern = this._setFillObject(f, "pattern"); dojo.forEach(["x", "y", "width", "height"], setter, pattern); break; } this.fillStyle = f; return this; } // color object var f = dojox.gfx.normalizeColor(fill); this.fillStyle = f; this.rawNode.setAttribute("fill", f.toCss()); this.rawNode.setAttribute("fill-opacity", f.a); this.rawNode.setAttribute("fill-rule", "evenodd"); return this; // self";s:7:"summary";s:24:"sets a fill object (SVG)";s:7:"returns";s:4:"self";}s:25:"dojox.gfx.Shape.fillStyle";a:2:{s:8:"instance";s:15:"dojox.gfx.Shape";s:7:"summary";s:0:"";}s:25:"dojox.gfx.Shape.setStroke";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"stroke";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:45:"a stroke object (see dojox.gfx.defaultStroke)";}}s:6:"source";s:1498:" var rn = this.rawNode; if(!stroke){ // don't stroke this.strokeStyle = null; rn.setAttribute("stroke", "none"); rn.setAttribute("stroke-opacity", 0); return this; } // normalize the stroke if(typeof stroke == "string" || dojo.isArray(stroke) || stroke instanceof dojo.Color){ stroke = { color: stroke }; } var s = this.strokeStyle = dojox.gfx.makeParameters(dojox.gfx.defaultStroke, stroke); s.color = dojox.gfx.normalizeColor(s.color); // generate attributes 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 dojox.gfx.svg.dasharray){ da = dojox.gfx.svg.dasharray[da]; } if(da instanceof Array){ da = dojo._toArray(da); for(var i = 0; i < da.length; ++i){ da[i] *= s.width; } if(s.cap != "butt"){ for(var i = 0; i < da.length; i += 2){ da[i] -= s.width; if(da[i] < 1){ da[i] = 1; } } for(var i = 1; i < da.length; i += 2){ da[i] += s.width; } } da = da.join(","); } rn.setAttribute("stroke-dasharray", da); rn.setAttribute("dojoGfxStrokeStyle", s.style); } return this; // self";s:7:"summary";s:26:"sets a stroke object (SVG)";s:7:"returns";s:4:"self";}s:27:"dojox.gfx.Shape.strokeStyle";a:2:{s:8:"instance";s:15:"dojox.gfx.Shape";s:7:"summary";s:0:"";}s:33:"dojox.gfx.Shape._getParentSurface";a:5:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:6:"source";s:133:" var surface = this.parent; for(; surface && !(surface instanceof dojox.gfx.Surface); surface = surface.parent); return surface;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:30:"dojox.gfx.Shape._setFillObject";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"f";a:1:{s:4:"type";s:0:"";}s:8:"nodeType";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1726:" var svgns = dojox.gfx.svg.xmlns.svg; this.fillStyle = f; var surface = this._getParentSurface(), defs = surface.defNode, fill = this.rawNode.getAttribute("fill"), ref = dojox.gfx.svg.getRef(fill); if(ref){ fill = ref; if(fill.tagName.toLowerCase() != nodeType.toLowerCase()){ var id = fill.id; fill.parentNode.removeChild(fill); fill = document.createElementNS(svgns, nodeType); fill.setAttribute("id", id); defs.appendChild(fill); }else{ while(fill.childNodes.length){ fill.removeChild(fill.lastChild); } } }else{ fill = document.createElementNS(svgns, nodeType); fill.setAttribute("id", dojox.gfx._base._getUniqueId()); defs.appendChild(fill); } if(nodeType == "pattern"){ fill.setAttribute("patternUnits", "userSpaceOnUse"); var img = document.createElementNS(svgns, "image"); img.setAttribute("x", 0); img.setAttribute("y", 0); img.setAttribute("width", f.width .toFixed(8)); img.setAttribute("height", f.height.toFixed(8)); img.setAttributeNS(dojox.gfx.svg.xmlns.xlink, "href", f.src); fill.appendChild(img); }else{ fill.setAttribute("gradientUnits", "userSpaceOnUse"); for(var i = 0; i < f.colors.length; ++i){ var c = f.colors[i], t = document.createElementNS(svgns, "stop"), cc = c.color = dojox.gfx.normalizeColor(c.color); t.setAttribute("offset", c.offset.toFixed(8)); t.setAttribute("stop-color", cc.toCss()); t.setAttribute("stop-opacity", cc.a); fill.appendChild(t); } } this.rawNode.setAttribute("fill", "url(#" + fill.getAttribute("id") +")"); this.rawNode.removeAttribute("fill-opacity"); this.rawNode.setAttribute("fill-rule", "evenodd"); return fill;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.gfx.Shape._applyTransform";a:5:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:6:"source";s:356:" var matrix = this.matrix; if(matrix){ var tm = this.matrix; this.rawNode.setAttribute("transform", "matrix(" + tm.xx.toFixed(8) + "," + tm.yx.toFixed(8) + "," + tm.xy.toFixed(8) + "," + tm.yy.toFixed(8) + "," + tm.dx.toFixed(8) + "," + tm.dy.toFixed(8) + ")"); }else{ this.rawNode.removeAttribute("transform"); } return this;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:26:"dojox.gfx.Shape.setRawNode";a:5:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"rawNode";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:348:" var r = this.rawNode = rawNode; r.setAttribute("fill", "none"); r.setAttribute("fill-opacity", 0); r.setAttribute("stroke", "none"); r.setAttribute("stroke-opacity", 0); r.setAttribute("stroke-width", 1); r.setAttribute("stroke-linecap", "butt"); r.setAttribute("stroke-linejoin", "miter"); r.setAttribute("stroke-miterlimit", 4);";s:7:"summary";s:158:"assigns and clears the underlying node that will represent this shape. Once set, transforms, gradients, etc, can be applied. (no fill & stroke by default)";}s:23:"dojox.gfx.Shape.rawNode";a:2:{s:8:"instance";s:15:"dojox.gfx.Shape";s:7:"summary";s:0:"";}s:24:"dojox.gfx.Shape.setShape";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"newShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:193:"a shape object (see dojox.gfx.defaultPath, dojox.gfx.defaultPolyline, dojox.gfx.defaultRect, dojox.gfx.defaultEllipse, dojox.gfx.defaultCircle, dojox.gfx.defaultLine, or dojox.gfx.defaultImage)";}}s:6:"source";s:184:" this.shape = dojox.gfx.makeParameters(this.shape, newShape); for(var i in this.shape){ if(i != "type"){ this.rawNode.setAttribute(i, this.shape[i]); } } return this; // self";s:7:"summary";s:25:"sets a shape object (SVG)";s:7:"returns";s:4:"self";}s:21:"dojox.gfx.Shape.shape";a:2:{s:8:"instance";s:15:"dojox.gfx.Shape";s:7:"summary";s:0:"";}s:28:"dojox.gfx.Shape._moveToFront";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:6:"source";s:75:" this.rawNode.parentNode.appendChild(this.rawNode); return this; // self";s:7:"summary";s:59:"moves a shape to front of its parent's list of shapes (SVG)";s:7:"returns";s:4:"self";s:7:"private";b:1;}s:27:"dojox.gfx.Shape._moveToBack";a:6:{s:9:"prototype";s:15:"dojox.gfx.Shape";s:4:"type";s:8:"Function";s:6:"source";s:112:" this.rawNode.parentNode.insertBefore(this.rawNode, this.rawNode.parentNode.firstChild); return this; // self";s:7:"summary";s:58:"moves a shape to back of its parent's list of shapes (SVG)";s:7:"returns";s:4:"self";s:7:"private";b:1;}s:36:"dojox.gfx.shape.Creator.createObject";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:9:"shapeType";a:2:{s:4:"type";s:8:"Function";s:7:"summary";s:44:"a class constructor to create an instance of";}s:8:"rawShape";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:69:"properties to be passed in to the classes "setShape" method";}}s:6:"source";s:289:" if(!this.rawNode){ return null; } var shape = new shapeType(), node = document.createElementNS(dojox.gfx.svg.xmlns.svg, shapeType.nodeType); shape.setRawNode(node); this.rawNode.appendChild(node); shape.setShape(rawShape); this.add(shape); return shape; // dojox.gfx.Shape";s:7:"summary";s:49:"creates an instance of the passed shapeType class";s:7:"returns";s:15:"dojox.gfx.Shape";}s:24:"dojox.gfx.Group.nodeType";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.Rect.nodeType";a:1:{s:7:"summary";s:0:"";}s:17:"dojox.gfx.Ellipse";a:1:{s:7:"summary";s:0:"";}s:26:"dojox.gfx.Ellipse.nodeType";a:1:{s:7:"summary";s:0:"";}s:16:"dojox.gfx.Circle";a:1:{s:7:"summary";s:0:"";}s:25:"dojox.gfx.Circle.nodeType";a:1:{s:7:"summary";s:0:"";}s:14:"dojox.gfx.Line";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.Line.nodeType";a:1:{s:7:"summary";s:0:"";}s:27:"dojox.gfx.Polyline.nodeType";a:1:{s:7:"summary";s:0:"";}s:24:"dojox.gfx.Image.nodeType";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.Text.nodeType";a:1:{s:7:"summary";s:0:"";}s:23:"dojox.gfx.Path.nodeType";a:1:{s:7:"summary";s:0:"";}s:27:"dojox.gfx.TextPath.nodeType";a:1:{s:7:"summary";s:0:"";}s:13:"dojox.gfx.svg";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:9:"dojox.gfx";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}