External module plugins
Index
Classes
Type aliases
Type aliases
OnPan
Callback interface for handling the pan event
const onPan = (deltaX: number, deltaY: number) => {
panHandler.pan(deltaX, deltaY);
clearAndDraw();
}
Type declaration
-
-
Parameters
-
deltaX: number
-
deltaY: number
Returns void
-
-
OnZoom
Callback interface for handling the scroll event
const onZoom = (scaleDiff: number) => {
panHandler.incrementZoom(scaleDiff);
clearAndDraw();
}
Type declaration
-
-
Parameters
-
delta: number
Returns void
-
-
Generated using TypeDoc

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