Skip to content

Plugin Option: Zoom

zoom provides zoom interaction configuration for canvas scaling.

Example

ts
zoom: {
  enable: true,
  min: 0.5,
  max: 2,
}

Notes

  • When enabled, the plugin listens for mouse wheel or gesture input.
  • min and max define the zoom range boundaries.

Source reference