Skip to main content

autoResize

Typeboolean
Defaulttrue
Added inv4.0.0

If true, automatically calls View360#resize when the canvas is resized.

The useResizeObserver option can be used together to perform size recalculation more efficiently.
However, in this case, it is used only within the supported range of ResizeObserver API.
In the environments where ResizeObserver API can't be used, the size is automatically recalculated when a resize event occurs in window.

Example

In the example below, the second viewer is using autoResize: false
See how controls and resolutions change after resizing.

For a better comparison, width: 25% is set to the default size.