Skip to content

ResizerPluginOptions

ResizerPluginOptions: object

Defined in: plugins/ResizerPlugin.ts:21

Configuration options for the Resizer plugin

Type declaration

autoScroll

autoScroll: boolean

Whether to scroll the window to the top when resizing

center

center: boolean

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

debug

debug: boolean

Whether to draw debug information for visualizing canvas bounds

letterbox

letterbox: boolean

Whether to letterbox the canvas to maintain aspect ratio

minHeight

minHeight: number

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

minWidth

minWidth: number

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