From 5465a0741a075de714053e7196adf8492272877c Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Fri, 12 Jul 2024 18:27:18 -0700
Subject: Build scenarios from data in SVG files
---
public/assets/css/radial.css | 15 +-
public/assets/images/map4.svg | 52 +-
public/assets/images/mapsheets.svg | 797 +++++----------------
public/assets/images/radial.svg | 2 +-
public/assets/images/scenario-dragon_hunting.svg | 10 +-
.../assets/images/scenario-race_against_time.svg | 6 +-
public/assets/images/scenario-side_show.svg | 8 +-
public/assets/images/scenario_template.svg | 1 +
src/radial.js | 88 ++-
test/integration/fixtures/scenario.svg | 2 +-
test/integration/helpers.cjs | 2 +-
11 files changed, 324 insertions(+), 659 deletions(-)
diff --git a/public/assets/css/radial.css b/public/assets/css/radial.css
index cdf6231..5a6ef41 100644
--- a/public/assets/css/radial.css
+++ b/public/assets/css/radial.css
@@ -36,9 +36,6 @@ use[href="#hex"] {
.terrain .floor {
display: inline;
opacity: 1;
- /* fill: #ffffff; */
- /* fill-opacity: 0.5; */
- /* fill: url(#asterisk); */
stroke: none;
}
@@ -67,6 +64,10 @@ use[href="#hex"] {
display: inline;
}
+.terrain use.floor {
+ fill: white;
+}
+
[data-view-elevation="-1"] [class*="elevation"] {
display: none;
}
@@ -84,10 +85,6 @@ use[href="#hex"] {
display: none;
}
-[data-view-elevation="0"] .building .elevation-0 {
- display: inline;
-}
-
[data-view-elevation="-1"] .building use.floor {
display: none;
}
@@ -97,6 +94,10 @@ use[href="#hex"] {
display: inline;
}
+[data-view-elevation="0"] .building .elevation-0 {
+ display: inline;
+}
+
[data-view-elevation="0"] .building use.floor.elevation-0 {
fill: white;
}
diff --git a/public/assets/images/map4.svg b/public/assets/images/map4.svg
index 3ce2dd9..ec57ad4 100644
--- a/public/assets/images/map4.svg
+++ b/public/assets/images/map4.svg
@@ -1,7 +1,55 @@
diff --git a/public/assets/images/radial.svg b/public/assets/images/radial.svg
index 537bc6d..d3a4100 100644
--- a/public/assets/images/radial.svg
+++ b/public/assets/images/radial.svg
@@ -1,4 +1,4 @@
-
+