Date: Wed, 8 Oct 2025 18:39:29 +1300
Subject: [PATCH 04/14] Remove feature dataset tooltip
---
src/components/FlatmapVuer.vue | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/components/FlatmapVuer.vue b/src/components/FlatmapVuer.vue
index 4193f35f..0876efcd 100644
--- a/src/components/FlatmapVuer.vue
+++ b/src/components/FlatmapVuer.vue
@@ -268,7 +268,8 @@ Please use `const` to assign meaningful names to them...
:style="{ 'max-height': pathwaysMaxHeight + 'px' }"
v-popover:checkBoxPopover
>
-
+
-
+
Date: Wed, 8 Oct 2025 18:43:38 +1300
Subject: [PATCH 05/14] Refactor: remove trailing space
---
src/components/legends/DynamicLegends.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/legends/DynamicLegends.vue b/src/components/legends/DynamicLegends.vue
index 1678dfd0..610441fb 100644
--- a/src/components/legends/DynamicLegends.vue
+++ b/src/components/legends/DynamicLegends.vue
@@ -76,7 +76,7 @@ export default {
let borderColour = item.border ? item.border : "black";
if (specifiedColour && !item.border) {
borderColour = colour;
- }
+ }
if (item[this.styleKey] === 'star') {
let star = starTemplate.replace('', colour);
star = star.replace('', borderColour);
From 3d1b8a82f079722badba4dd66b915bee0722ada9 Mon Sep 17 00:00:00 2001
From: akhuoa
Date: Wed, 8 Oct 2025 19:11:09 +1300
Subject: [PATCH 06/14] Move legend-item into separate component
---
src/components/legends/DynamicLegends.vue | 175 ++-----------------
src/components/legends/LegendItem.vue | 194 ++++++++++++++++++++++
2 files changed, 205 insertions(+), 164 deletions(-)
create mode 100644 src/components/legends/LegendItem.vue
diff --git a/src/components/legends/DynamicLegends.vue b/src/components/legends/DynamicLegends.vue
index 610441fb..463555a0 100644
--- a/src/components/legends/DynamicLegends.vue
+++ b/src/components/legends/DynamicLegends.vue
@@ -6,37 +6,25 @@
:key="item[identifierKey]"
:label="item[identifierKey]"
>
-
-
-
-
-
-
-
-
-
{{ capitalise(item[identifierKey]) }}
-
+
@@ -125,92 +60,4 @@ export default {
.legend-container {
width: max-content;
}
-
-.legend-item {
- display: flex;
- align-items: center;
- margin: 8px 12.5px;
-}
-
-.line {
- position: relative;
- width: 20px;
- border-top: 2px solid currentColor;
-}
-
-.line.dashed {
- border-top: 2px dashed currentColor;
-}
-
-.line::after {
- content: "";
- position: absolute;
- right: -2px;
- top: -5px;
- width: 0;
- height: 0;
- border-left: 7px solid currentColor;
- border-top: 4px solid transparent;
- border-bottom: 4px solid transparent;
- display: none;
-}
-
-.line.arrow::after {
- display: block;
-}
-
-.shape {
- height: 16px;
- width: 16px;
- border-color: black;
- border-style: solid;
- border-width: 2px;
- background-color: transparent;
- display: inline-block;
-}
-
-.circle {
- border-radius: 50%;
-}
-
-.rounded-square {
- border-radius: 30%;
-}
-
-.hexagon {
- width: 20px;
- height: calc(20px * 0.866);
- background-color: transparent;
- clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
- -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
-}
-
-.exoid {
- width: 20px;
- height: 25px;
- background-color: transparent;
- clip-path: path(
- "M9.96 0.72 c-2.01 3.53 -5.81 5.74 -9.92 5.74 l-0.15 0.23 c1.94 3.42 1.94 7.6 0 11.02 l0.15 0.23 c4.07 0 7.9 2.2 9.92 5.74 c2.01 -3.53 5.81 -5.74 9.92 -5.74 c-2.01 -3.53 -2.01 -7.94 0 -11.55 C15.81 6.5 12.04 4.29 9.96 0.72z"
- );
- -webkit-clip-path: path(
- "M9.96 0.72 c-2.01 3.53 -5.81 5.74 -9.92 5.74 l-0.15 0.23 c1.94 3.42 1.94 7.6 0 11.02 l0.15 0.23 c4.07 0 7.9 2.2 9.92 5.74 c2.01 -3.53 5.81 -5.74 9.92 -5.74 c-2.01 -3.53 -2.01 -7.94 0 -11.55 C15.81 6.5 12.04 4.29 9.96 0.72z"
- );
-}
-
-.star {
- width: 25px;
- height: 25px;
- background-color: transparent !important;
- background-repeat: no-repeat;
- background-size: contain;
- display: inline-block;
- margin: -3px;
- padding-right: 2px;
-}
-
-.label {
- margin-left: 14px;
- font-size: 12px;
- color: rgb(48, 49, 51);
-}
diff --git a/src/components/legends/LegendItem.vue b/src/components/legends/LegendItem.vue
new file mode 100644
index 00000000..afc1a0e7
--- /dev/null
+++ b/src/components/legends/LegendItem.vue
@@ -0,0 +1,194 @@
+