function SVGToImage(element) {
	    _classCallCheck(this, SVGToImage);

	    // Ensure we got an element
	    if (typeof element === 'undefined') {
	      throw new Error('No element provided');
	    }

	    // Validate that the provided element is an HTML element
	    if (!this._isValidElement(element)) {
	      throw new Error('Provided element is not a valid element');
	    }

	    // Check the provided element is an SVG element
	    if (element.tagName.toLowerCase() !== 'svg') {
	      throw new Error('Invalid element provided');
	    }

	    // Store the element
	    this.element = element;
	  }
/**
	   * Constructor takes in the element for later use
	   *
	   * @param {object} element - The SVG element to convert to an image
	   */
Constructor takes in the element for later use
@param {object} element - The SVG element to convert to an image
Constructor takes in the element for later use @param { object } element - The SVG element to convert to an image
function SVGToImage(element) {
	    _classCallCheck(this, SVGToImage);
	    if (typeof element === 'undefined') {
	      throw new Error('No element provided');
	    }
	    if (!this._isValidElement(element)) {
	      throw new Error('Provided element is not a valid element');
	    }
	    if (element.tagName.toLowerCase() !== 'svg') {
	      throw new Error('Invalid element provided');
	    }
	    this.element = element;
	  }
function SVGToImage ( element ) { _classCallCheck ( this , SVGToImage ) ; if ( typeof element === 'undefined' ) { throw new Error ( 'No element provided' ) ; } if ( ! this . _isValidElement ( element ) ) { throw new Error ( 'Provided element is not a valid element' ) ; } if ( element . tagName . toLowerCase ( ) !== 'svg' ) { throw new Error ( 'Invalid element provided' ) ; } this . element = element ; }
Constructor takes in the element for later use
 @param {object} element - The SVG element to convert to an image
Constructor takes in the element for later use @param { object } element - The SVG element to convert to an image
// Ensure we got an element // Validate that the provided element is an HTML element // Check the provided element is an SVG element // Store the element