Added basic selection visual

This commit is contained in:
Mitchell McCaffrey
2021-07-19 11:37:41 +10:00
parent 07058db9c2
commit fa2190dd7d
5 changed files with 207 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ import Action from "../../actions/Action";
import Konva from "konva";
import { TokenDraggingOptions, TokenMenuOptions } from "../../types/Token";
import { Note, NoteDraggingOptions, NoteMenuOptions } from "../../types/Note";
import MapSelect from "./MapSelect";
type MapProps = {
map: MapType | null;
@@ -385,6 +386,13 @@ function Map({
/>
) : null;
const mapSelect = (
<MapSelect
active={selectedToolId === "select"}
toolSettings={settings.select}
/>
);
return (
<Box sx={{ flexGrow: 1 }}>
<MapInteraction
@@ -410,6 +418,7 @@ function Map({
{mapFog}
{mapPointer}
{mapMeasure}
{mapSelect}
</MapInteraction>
</Box>
);