MCPcopy Create free account
hub / github.com/alignoth/alignoth / resize

Method resize

resources/vega.min.js:14905–14918  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

14903 );
14904 }
14905 resize(t, e, n, r) {
14906 return (
14907 super.resize(t, e, n, r),
14908 this._svg &&
14909 (x_(this._svg, {
14910 width: this._width * this._scale,
14911 height: this._height * this._scale,
14912 viewBox: `0 0 ${this._width} ${this._height}`,
14913 }),
14914 this._root.setAttribute("transform", `translate(${this._origin})`)),
14915 (this._dirty = []),
14916 this
14917 );
14918 }
14919 canvas() {
14920 return this._svg;
14921 }

Callers

nothing calls this directly

Calls 2

x_Function · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected