From 31cd389b466926638a2a9722a4b55542f9a966b3 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 22:41:32 -0700 Subject: [PATCH] Fix vectorAdd calculation; draw grid hexes after buildings --- public/assets/css/map.css | 4 ++-- public/assets/images/scenario_template.svg | 2 +- src/modules/gameboard.js | 3 ++- src/radial.js | 28 ++++++++++++++++++---- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/public/assets/css/map.css b/public/assets/css/map.css index 38d8f23..af1028e 100644 --- a/public/assets/css/map.css +++ b/public/assets/css/map.css @@ -16,7 +16,7 @@ text { use[href="#hex"] { opacity: 0.25; - fill: transparent; + fill: purple; fill-opacity: 0.5; stroke-width: 0.5px; stroke: black; @@ -236,7 +236,7 @@ g[data-y]:nth-child(odd) { transform: scale(var(--scale)); } -[data-x]:hover use[href="#hex"] { +[data-x]:hover use[href="#hex"], [data-q][data-r][data-s][data-t]:hover use[href="#hex"] { opacity: 1; fill: orange; stroke: black; diff --git a/public/assets/images/scenario_template.svg b/public/assets/images/scenario_template.svg index dc387bb..20798a9 100644 --- a/public/assets/images/scenario_template.svg +++ b/public/assets/images/scenario_template.svg @@ -1,8 +1,8 @@ - +