function _loadString(svgString) {
            // Parse string into SVG XML.
            var parser = new DOMParser();
            this._svgDom = parser.parseFromString(svgString, 'text/xml');
            if (this._svgDom.childNodes.length < 1 || this._svgDom.documentElement.localName !== 'svg') {
                throw new Error('Document does not appear to be SVG.');
            }
            this._svgTag = this._svgDom.documentElement;
            // Transform all text elements.
            this._transformText();
            // Transform measurements.
            this._transformMeasurements();
        }
/**
         * Load an SVG string and normalize it. All the steps before drawing/measuring.
         * @param {string} svgString String of SVG data to draw in quirks-mode.
         */
Load an SVG string and normalize it. All the steps before drawing/measuring.
@param {string} svgString String of SVG data to draw in quirks-mode.
Load an SVG string and normalize it . All the steps before drawing / measuring . @param { string } svgString String of SVG data to draw in quirks - mode .
function _loadString(svgString) {
            var parser = new DOMParser();
            this._svgDom = parser.parseFromString(svgString, 'text/xml');
            if (this._svgDom.childNodes.length < 1 || this._svgDom.documentElement.localName !== 'svg') {
                throw new Error('Document does not appear to be SVG.');
            }
            this._svgTag = this._svgDom.documentElement;
            this._transformText();
            this._transformMeasurements();
        }
function _loadString ( svgString ) { var parser = new DOMParser ( ) ; this . _svgDom = parser . parseFromString ( svgString , 'text/xml' ) ; if ( this . _svgDom . childNodes . length < 1 || this . _svgDom . documentElement . localName !== 'svg' ) { throw new Error ( 'Document does not appear to be SVG.' ) ; } this . _svgTag = this . _svgDom . documentElement ; this . _transformText ( ) ; this . _transformMeasurements ( ) ; }
Load an SVG string and normalize it.
Load an SVG string and normalize it .
// Parse string into SVG XML. // Transform all text elements. // Transform measurements.