mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
refactor: draw burgs and labels separately
This commit is contained in:
parent
b0f081b3ba
commit
2c3cdad59d
12 changed files with 84 additions and 67 deletions
|
|
@ -18,7 +18,7 @@ let isLoaded = false;
|
|||
export function open({id} = {}) {
|
||||
if (customization) return;
|
||||
closeDialogs(".stable");
|
||||
if (!layerIsOn("toggleIcons")) toggleLayer("toggleIcons");
|
||||
if (!layerIsOn("toggleBurgs")) toggleLayer("toggleBurgs");
|
||||
if (!layerIsOn("toggleLabels")) toggleLayer("toggleLabels");
|
||||
|
||||
const burg = id || d3.event.target.dataset.id;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ let isLoaded = false;
|
|||
export function open() {
|
||||
if (customization) return;
|
||||
closeDialogs("#burgsOverview, .stable");
|
||||
if (!layerIsOn("toggleIcons")) toggleLayer("toggleIcons");
|
||||
if (!layerIsOn("toggleBurgs")) toggleLayer("toggleBurgs");
|
||||
if (!layerIsOn("toggleLabels")) toggleLayer("toggleLabels");
|
||||
|
||||
const body = document.getElementById("burgsBody");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue