| 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 | } |