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

Method resize

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

Source from the content-addressed store, hash-verified

14525 );
14526 }
14527 resize(t, e, n, r) {
14528 if ((super.resize(t, e, n, r), this._canvas))
14529 Ov(
14530 this._canvas,
14531 this._width,
14532 this._height,
14533 this._origin,
14534 this._scale,
14535 this._options.context,
14536 );
14537 else {
14538 const t = this._options.externalContext;
14539 (t || s("CanvasRenderer is missing a valid canvas or context"),
14540 t.scale(this._scale, this._scale),
14541 t.translate(this._origin[0], this._origin[1]));
14542 }
14543 return ((this._redraw = !0), this);
14544 }
14545 canvas() {
14546 return this._canvas;
14547 }

Callers

nothing calls this directly

Calls 3

OvFunction · 0.85
sFunction · 0.70
resizeMethod · 0.45

Tested by

no test coverage detected