Web Dev Solutions

Catalin Mititiuc

From 578b42fbcfa15661bbaa36f99e7513cffbd20780 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 28 Jun 2024 09:22:10 -0700 Subject: 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 @@ - +