mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
refactor: start files migration nightmare
This commit is contained in:
parent
c4736cc640
commit
bc65e0e207
64 changed files with 1990 additions and 816 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// UI module stub to control map layers
|
||||
"use strict";
|
||||
import {TIME} from "/src/config/logging";
|
||||
import {invokeActiveZooming} from "../activeZooming";
|
||||
|
||||
let presets = {}; // global object
|
||||
restoreCustomPresets(); // run on-load
|
||||
|
|
@ -946,7 +946,7 @@ function toggleStates(event) {
|
|||
}
|
||||
}
|
||||
|
||||
function drawStates() {
|
||||
export function drawStates() {
|
||||
TIME && console.time("drawStates");
|
||||
regions.selectAll("path").remove();
|
||||
|
||||
|
|
@ -1110,7 +1110,7 @@ function toggleBorders(event) {
|
|||
}
|
||||
|
||||
// draw state and province borders
|
||||
function drawBorders() {
|
||||
export function drawBorders() {
|
||||
TIME && console.time("drawBorders");
|
||||
borders.selectAll("path").remove();
|
||||
|
||||
|
|
@ -1554,7 +1554,7 @@ function toggleRivers(event) {
|
|||
}
|
||||
}
|
||||
|
||||
function drawRivers() {
|
||||
export function drawRivers() {
|
||||
TIME && console.time("drawRivers");
|
||||
rivers.selectAll("*").remove();
|
||||
|
||||
|
|
@ -1870,7 +1870,7 @@ function drawEmblems() {
|
|||
TIME && console.timeEnd("drawEmblems");
|
||||
}
|
||||
|
||||
function layerIsOn(el) {
|
||||
export function layerIsOn(el) {
|
||||
const buttonoff = document.getElementById(el).classList.contains("buttonoff");
|
||||
return !buttonoff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue