Options
All
  • Public
  • Public/Protected
  • All
Menu

External module plugins

Some plugins are available to provide common functionality out of the box

Index

Classes

Type aliases

Type aliases

OnPan

OnPan: function

Callback interface for handling the pan event

const onPan = (deltaX: number, deltaY: number) => {
    panHandler.pan(deltaX, deltaY);
    clearAndDraw();
}

Type declaration

    • (deltaX: number, deltaY: number): void
    • Parameters

      • deltaX: number
      • deltaY: number

      Returns void

OnZoom

OnZoom: function

Callback interface for handling the scroll event

const onZoom = (scaleDiff: number) => {
    panHandler.incrementZoom(scaleDiff);
    clearAndDraw();
}

Type declaration

    • (delta: number): void
    • Parameters

      • delta: number

      Returns void

Generated using TypeDoc