refactor(controls): cleanup
This commit is contained in:
@@ -52,17 +52,17 @@ const Controls: FC<PropsWithChildren<ControlProps>> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onZoomInHandler = () => {
|
const onZoomInHandler = () => {
|
||||||
zoomIn?.();
|
zoomIn();
|
||||||
onZoomIn?.();
|
onZoomIn?.();
|
||||||
};
|
};
|
||||||
|
|
||||||
const onZoomOutHandler = () => {
|
const onZoomOutHandler = () => {
|
||||||
zoomOut?.();
|
zoomOut();
|
||||||
onZoomOut?.();
|
onZoomOut?.();
|
||||||
};
|
};
|
||||||
|
|
||||||
const onFitViewHandler = () => {
|
const onFitViewHandler = () => {
|
||||||
fitView?.(fitViewOptions);
|
fitView(fitViewOptions);
|
||||||
onFitView?.();
|
onFitView?.();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user