MCPcopy Index your code
hub / github.com/processing/p5.js / _canvasSizeChanged

Method _canvasSizeChanged

src/webgl/p5.Framebuffer.js:508–512  ·  view source on GitHub ↗

* Called when the canvas that the framebuffer is attached to resizes. If the * framebuffer is auto-sized, it will update its textures to match the new * size. * * @private

()

Source from the content-addressed store, hash-verified

506 * @private
507 */
508 _canvasSizeChanged() {
509 if (this._autoSized) {
510 this._handleResize();
511 }
512 }
513
514 /**
515 * Called when the size of the framebuffer has changed (either by being

Callers 1

resizeMethod · 0.80

Calls 1

_handleResizeMethod · 0.95

Tested by

no test coverage detected