function fromString(svgString, onFinish) {
            // Store the callback for later.
            this._onFinish = onFinish;
            this._loadString(svgString);
            // Draw to a canvas.
            this._draw();
        }
/**
         * Load an SVG from a string and draw it.
         * This will be parsed and transformed, and finally drawn.
         * When drawing is finished, the `onFinish` callback is called.
         * @param {string} svgString String of SVG data to draw in quirks-mode.
         * @param {Function} [onFinish] Optional callback for when drawing finished.
         */
Load an SVG from a string and draw it.
This will be parsed and transformed, and finally drawn.
When drawing is finished, the `onFinish` callback is called.
@param {string} svgString String of SVG data to draw in quirks-mode.
@param {Function} [onFinish] Optional callback for when drawing finished.
Load an SVG from a string and draw it . This will be parsed and transformed and finally drawn . When drawing is finished the ` onFinish ` callback is called . @param { string } svgString String of SVG data to draw in quirks - mode . @param { Function } [ onFinish ] Optional callback for when drawing finished .
function fromString(svgString, onFinish) {
            this._onFinish = onFinish;
            this._loadString(svgString);
            this._draw();
        }
function fromString ( svgString , onFinish ) { this . _onFinish = onFinish ; this . _loadString ( svgString ) ; this . _draw ( ) ; }
Load an SVG from a string and draw it.
Load an SVG from a string and draw it .
// Store the callback for later. // Draw to a canvas.