CanvasOptions
Options for configuring the behavior of a canvas.
Implements
Constructors
new CanvasOptions()
new CanvasOptions(
options
):CanvasOptions
Creates a new instance of CanvasOptions.
Parameters
• options: Partial
<ICanvasOptions
> = {}
The partial options provided by the user.
Returns
Defined in
Properties
height
height:
number
The height of the canvas in pixels.
Implementation of
Defined in
pan
pan:
IPanOptions
The options for configuring the pan behavior of the canvas.
Implementation of
Defined in
pannable
pannable:
boolean
Whether panning is enabled on the canvas.
Implementation of
Defined in
width
width:
number
The width of the canvas in pixels.
Implementation of
Defined in
zoom
zoom:
ZoomOptions
The options for configuring the zoom behavior of the canvas.
Implementation of
Defined in
zoomable
zoomable:
boolean
Whether zooming is enabled on the canvas.
Implementation of
Defined in
DefaultOptions
readonly
static
DefaultOptions:ICanvasOptions
Default canvas options.