Typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-16 18:59:29 +10:00
parent 2ce9d2dd08
commit a1fb67df7b
22 changed files with 314 additions and 203 deletions

View File

@@ -73,11 +73,11 @@ function MapEditor({ map, onSettingsChange }: MapEditorProps) {
);
useStageInteraction(
mapStageRef.current,
mapStageRef,
stageScale,
setStageScale,
stageTranslateRef,
mapLayerRef.current,
mapLayerRef,
getGridMaxZoom(map.grid),
"move",
preventMapInteraction