Skip to content

ResizerPluginOptions

ResizerPluginOptions = object

Defined in: plugins/ResizerPlugin.ts:21

Configuration options for the Resizer plugin

autoScroll: boolean

Defined in: plugins/ResizerPlugin.ts:23

Whether to scroll the window to the top when resizing


center: boolean

Defined in: plugins/ResizerPlugin.ts:31

Whether to center the canvas (particularly useful in letterbox mode)


debug: boolean

Defined in: plugins/ResizerPlugin.ts:33

Whether to draw debug information for visualizing canvas bounds


letterbox: boolean

Defined in: plugins/ResizerPlugin.ts:29

Whether to letterbox the canvas to maintain aspect ratio


minHeight: number

Defined in: plugins/ResizerPlugin.ts:27

The minimum height of the canvas. Also controls aspect ratio in letterbox mode


minWidth: number

Defined in: plugins/ResizerPlugin.ts:25

The minimum width at which the renderer will resize. Also controls aspect ratio in letterbox mode