Module
Hylograph.Canvas.Zoom
- Package
- purescript-hylograph-canvas
- Repository
- afcondon/purescript-hylograph-canvas
Zoom and Pan support for Canvas
Provides event subscriptions and transform helpers for implementing zoom/pan interactions on Canvas visualizations.
#subscribeWheel Source
subscribeWheel :: CanvasContext -> (ZoomEvent -> Effect Unit) -> Effect UnsubscribeSubscribe to wheel events on a canvas context
#subscribeDrag Source
subscribeDrag :: CanvasContext -> (DragEvent -> Effect Unit) -> Effect UnsubscribeSubscribe to drag events on a canvas context
#Unsubscribe Source
type Unsubscribe = Effect UnitFunction to unsubscribe from events