123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- jvm.SVGElement = function(name, config){
- jvm.SVGElement.parentClass.apply(this, arguments);
- }
- jvm.inherits(jvm.SVGElement, jvm.AbstractElement);
- jvm.SVGElement.svgns = "http://www.w3.org/2000/svg";
- jvm.SVGElement.prototype.createElement = function( tagName ){
- return document.createElementNS( jvm.SVGElement.svgns, tagName );
- };
- jvm.SVGElement.prototype.addClass = function( className ){
- this.node.setAttribute('class', className);
- };
- jvm.SVGElement.prototype.getElementCtr = function( ctr ){
- return jvm['SVG'+ctr];
- };
- jvm.SVGElement.prototype.getBBox = function(){
- return this.node.getBBox();
- };
|