From 68b4cfd37029c997a25e55cd29a722b5ece302e8 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 4 May 2024 12:04:45 +0200 Subject: [PATCH] feat: edit routes - main --- index.css | 9 +- index.html | 72 +++-- libs/flatqueue.js | 57 ++++ modules/io/export.js | 24 +- modules/ui/editors.js | 2 +- modules/ui/layers.js | 72 ++--- modules/ui/rivers-editor.js | 5 +- modules/ui/routes-editor.js | 507 +++++++++++++++++------------------- modules/ui/tools.js | 10 +- 9 files changed, 401 insertions(+), 357 deletions(-) create mode 100644 libs/flatqueue.js diff --git a/index.css b/index.css index d5c5ef34..ca7f2a32 100644 --- a/index.css +++ b/index.css @@ -258,7 +258,6 @@ i.icon-lock { cursor: pointer; } -#routeEditor > *, #labelEditor div { display: inline-block; } @@ -1610,6 +1609,7 @@ div.states > .riverType { #burgBody > div > div, #riverBody > div, +#routeBody > div, #lakeBody > div { padding: 0.1em; } @@ -1617,6 +1617,7 @@ div.states > .riverType { #riverBody div.label, #riverBody input, #riverBody select, +#routeBody div.label, #lakeBody div.label, #lakeBody input, #lakeBody select { @@ -1624,6 +1625,12 @@ div.states > .riverType { width: 7em; } +#routeBody input, +#routeBody select { + display: inline-block; + width: 10em; +} + #stateNameEditor div.label, #provinceNameEditor div.label, #regimentBody div.label, diff --git a/index.html b/index.html index 94a12ef2..25a6d45b 100644 --- a/index.html +++ b/index.html @@ -2897,35 +2897,51 @@