From 4c3544df4a871ceeb7492b23c94e2af0190eb16f Mon Sep 17 00:00:00 2001 From: tk338g Date: Sun, 7 Feb 2021 20:45:37 +0100 Subject: [PATCH] Simple minimap implementation --- src/components/LayerUI.tsx | 2 + src/components/MiniMap.scss | 5 ++ src/components/MiniMap.tsx | 155 ++++++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 src/components/MiniMap.scss create mode 100644 src/components/MiniMap.tsx diff --git a/src/components/LayerUI.tsx b/src/components/LayerUI.tsx index 103b0ef84..bfc95e405 100644 --- a/src/components/LayerUI.tsx +++ b/src/components/LayerUI.tsx @@ -41,6 +41,7 @@ import Stack from "./Stack"; import { ToolButton } from "./ToolButton"; import { Tooltip } from "./Tooltip"; import { UserList } from "./UserList"; +import { MiniMap } from "./MiniMap"; interface LayerUIProps { actionManager: ActionManager; @@ -602,6 +603,7 @@ const LayerUI = ({ > {renderCustomFooter?.(false)} {actionManager.renderAction("toggleShortcuts")} +