/* * Dmo Drawing * v0.0667 * David Morrison * http://www.dmowebstudios.com/drawing.php * dmo@dmowebstudios.com * Last Update: 7/25/06 * All rights reserved */ document.onselectstart = new Function("return false;"); var drawing = function(el, attr) { // fillcolor, antialias, unit this.el = el; this.attr = attr; this.drawing = {}; this.units = "px"; // coming soon this.clear = function (p) { while (p.childNodes.length > 0) { p.removeChild(p.childNodes[p.childNodes.length-1]); } if (p.childNodes.length > 0) { return false; } else { return true; } } this.loadjsv = function(jsv, scale) { if(this.drawing && jsv.primitives && jsv.primitives.length) { for(var l=0;l 0) ? "0" : "1"; return "A " + rx.toString() + "," + ry.toString() + " 0 0," + d + " " + p[1] + "," + p[2] + " "; }, "close": function(p,pprev) { return "z "; }, "end": function(p,pprev) { return " "; } }; this.pathstring = function (path, i) { var s = ""; for(var i=0;i