Skip to content

ResizerPluginOptions

ResizerPluginOptions = object

Defined in: plugins/ResizerPlugin.ts:20

Configuration options for the Resizer plugin

autoScroll: boolean

Defined in: plugins/ResizerPlugin.ts:22

Whether to scroll the window to the top when resizing


center: boolean

Defined in: plugins/ResizerPlugin.ts:30

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


debug: boolean

Defined in: plugins/ResizerPlugin.ts:32

Whether to draw debug information for visualizing canvas bounds


letterbox: boolean

Defined in: plugins/ResizerPlugin.ts:28

Whether to letterbox the canvas to maintain aspect ratio


minHeight: number

Defined in: plugins/ResizerPlugin.ts:26

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


minWidth: number

Defined in: plugins/ResizerPlugin.ts:24

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