feat(control): add optional callbacks

This commit is contained in:
Ivan S
2020-09-22 14:17:34 -04:00
parent aca7080f68
commit ab92766af5
2 changed files with 43 additions and 5 deletions
+4
View File
@@ -458,6 +458,10 @@ const FlowWithControls = () => (
- `showZoom`: boolean - default: true
- `showFitView`: boolean - default: true
- `showInteractive`: boolean - default: true
- `onZoomIn`: function that gets triggered when the zoom in button is pressed
- `onZoomOut`: function that gets triggered when the zoom out button is pressed
- `onFitView`: function that gets triggered when the fit-to-view button is pressed
- `onInteractiveChange`: function that gets triggered when the lock button is pressed - passes the new value
- `style`: css properties
- `className`: additional class name