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

Method resize

src/scale-manager/ResizeHelper.js:91–93  ·  view source on GitHub ↗

* Dispatches window resize events if the ResizeHelper is manually handling a resize loop. * This is the callback for the aspectRatio property change and is intended to only be called in * specific environments or when enabling/disableing the ResizeHelper. * @memberof ResizeHelper * @priv

()

Source from the content-addressed store, hash-verified

89 * @private
90 */
91 resize() {
92 window.dispatchEvent(this.resizeEvent ? this.resizeEvent : new Event('resize'));
93 }
94
95 /**
96 * Handler for window resize events. Forwards this event to the scale manager if enabled.

Callers 3

enabledMethod · 0.95
constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected