Sha256: 066090af677683b9a6d83c933b048b67bb3d5f8d0761990e9812e23e2b26ced6

Contents?: true

Size: 767 Bytes

Versions: 11

Compression:

Stored size: 767 Bytes

Contents

$debug("Defining SVGDocument");
/*
* SVGDocument - DOM Level 2
*/
/**
 * @class  SVGDocument - The Document interface represents the entire SVG or XML document.
 *   Conceptually, it is the root of the document tree, and provides the primary access to the document's data.
 *
 * @extends DOMDocument
 */
var SVGDocument = function() {
  throw new Error("SVGDocument() not implemented");
};
SVGDocument.prototype = new DOMDocument();
__extend__(SVGDocument.prototype, {
  createElement: function(tagName){
    $debug("SVGDocument.createElement( "+tagName+" )");
    var node;
    if(tagName === "rect") {node = new SVGRectElement(this);}
    else {node = new SVGSVGElement(this);}
    node.tagName  = tagName;
    return node;
  }});

// $w.SVGDocument = SVGDocument;

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
envjs19-0.3.8.20101029121421 src/svg/document.js
envjs-0.3.8 src/svg/document.js
envjs-0.3.7 src/svg/document.js
envjs-0.3.6 src/svg/document.js
envjs-0.3.5 src/svg/document.js
envjs-0.3.4 src/svg/document.js
envjs-0.3.3 src/svg/document.js
envjs-0.3.2 src/svg/document.js
envjs-0.3.1 src/svg/document.js
envjs-0.3.0 src/svg/document.js
envjs-0.2.0 src/svg/document.js