resize(width, height, origin, scaleFactor) {
      super.resize(width, height, origin, scaleFactor);
      if (this._svg) {
        setAttributes(this._svg, {
          width: this._width * this._scale,
          height: this._height * this._scale,
          viewBox: `0 0 ${this._width} ${this._height}`
        });
        this._root.setAttribute('transform', `translate(${this._origin})`);
      }
      this._dirty = [];
      return this;
    }
Resize the display.
@param {number} width - The new coordinate width of the display, in pixels.
@param {number} height - The new coordinate height of the display, in pixels.
@param {Array<number>} origin - The new origin of the display, in pixels.
  The coordinate system will be translated to this point.
@param {number} [scaleFactor=1] - Optional scaleFactor by which to multiply
  the width and height to determine the final pixel size.
@return {SVGRenderer} - This renderer instance;