From 917058f0248783c435962f7eb2688c77b8e5f374 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Thu, 25 Apr 2024 20:06:51 -0700
Subject: WIP: simplify/clarify firing arc algo
---
public/map.css | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
(limited to 'public/map.css')
diff --git a/public/map.css b/public/map.css
index b961d35..d960ba8 100644
--- a/public/map.css
+++ b/public/map.css
@@ -144,11 +144,15 @@ polygon.firing-arc[data-allegiance="liao"] {
stroke: none;
}
-#lines polygon {
+#lines polyline, #lines line {
fill: none;
stroke: black;
}
+#lines line {
+ pointer-events: none;
+}
+
.sight-line {
stroke: orangered;
stroke-width: 0.5px;
@@ -203,7 +207,7 @@ g.start-locations > g:last-child {
}
/* Inradius and circumradius values come from the hexagon */
-.grid {
+.grid, g.start-locations {
--inradius: 8.66px;
--circumradius: 10px;
--x-step: calc(var(--inradius) * 2);
@@ -215,7 +219,7 @@ g[data-y], g.start-locations > g {
transform: translate(var(--translateX), calc(var(--y-step) * var(--i)));
}
-g[data-y]:nth-child(even) {
+g[data-y]:nth-child(odd) {
--translateX: calc(var(--inradius));
}
--
cgit v1.2.3