From e542574324b8d87dcd26e46404cc08f17e55e1b5 Mon Sep 17 00:00:00 2001 From: Elad Bernard Haviv Date: Sat, 5 Aug 2023 12:32:28 +0300 Subject: [PATCH] Added randomly generated marker placement (#966) * Add option to generate and place marker of type * remove unecessary console.log * versioning * Update versioning.js * Update index.html * removed redundant functions and changed addMarker functionality * changed marker type selection behavior * fixed button toggling * changed type selection to button + dropdown menu * versioning --- index.css | 32 ++++++++++++++++++++++++++++++++ index.html | 14 +++++++++++--- modules/ui/markers-overview.js | 30 +++++++++++++++++++++++++++++- modules/ui/tools.js | 10 +++++++++- versioning.js | 3 ++- 5 files changed, 83 insertions(+), 6 deletions(-) diff --git a/index.css b/index.css index 01b41f67..91c6c6ba 100644 --- a/index.css +++ b/index.css @@ -2357,6 +2357,38 @@ svg.button { opacity: 0.8; } +#markerTypeSelector { + font-size: 0.85em; +} + +#markerTypeSelectorWrapper { + position: relative; +} + +#markerTypeSelectMenu { + display: none; +} +#markerTypeSelectMenu.visible { + display: block; + position: absolute; + height: 250px; + width: 170px; + overflow-y: scroll; + background: inherit; + bottom: 100%; + left: 0; + background: white; +} +#markerTypeSelectMenu > button { + display: block; + width: 100%; + border: 1px solid #ddd; + margin-bottom: 1px; +} +#markerTypeSelectMenu > button:hover { + background: #ccc; +} + @media print { div, canvas { diff --git a/index.html b/index.html index 9d47deed..92ca4c38 100644 --- a/index.html +++ b/index.html @@ -138,7 +138,7 @@ } - + @@ -5509,6 +5509,14 @@
+ + + +
+