lib/expression-api/Image.js
function(url, img) {
        var svgImage = document.createElementNS(SVG_NS_URL, 'image');
        svgImage.setAttributeNS(XLINK_NS_URL, 'xlink:href', url);
        svgImage.setAttribute('x', 0);
        svgImage.setAttribute('y', 0);
        svgImage.setAttribute('width', img.width);
        svgImage.setAttribute('height', img.height);
        return svgImage;
      }
function(url, img) {
        var svgImage = document.createElementNS(SVG_NS_URL, 'image');
        svgImage.setAttributeNS(XLINK_NS_URL, 'xlink:href', url);
        svgImage.setAttribute('x', 0);
        svgImage.setAttribute('y', 0);
        svgImage.setAttribute('width', img.width);
        svgImage.setAttribute('height', img.height);
        return svgImage;
      }
function ( url , img ) { var svgImage = document . createElementNS ( SVG_NS_URL , 'image' ) ; svgImage . setAttributeNS ( XLINK_NS_URL , 'xlink:href' , url ) ; svgImage . setAttribute ( 'x' , 0 ) ; svgImage . setAttribute ( 'y' , 0 ) ; svgImage . setAttribute ( 'width' , img . width ) ; svgImage . setAttribute ( 'height' , img . height ) ; return svgImage ; }
Build an svg image tag.
Build an svg image tag .