refactor: import d3

This commit is contained in:
Azgaar 2022-07-05 21:12:55 +03:00
parent 1847772d74
commit 98ae3292fc
83 changed files with 709 additions and 69 deletions

View file

@ -7657,7 +7657,6 @@
<script src="/src/libs/jquery-3.1.1.min.js"></script> <script src="/src/libs/jquery-3.1.1.min.js"></script>
<script src="/src/libs/jquery-ui.min.js"></script> <script src="/src/libs/jquery-ui.min.js"></script>
<script src="/src/libs/d3.min.js"></script>
<script type="module" src="/src/modules/heightmap-generator.js"></script> <script type="module" src="/src/modules/heightmap-generator.js"></script>
<script type="module" src="/src/modules/ocean-layers.js"></script> <script type="module" src="/src/modules/ocean-layers.js"></script>
@ -7676,8 +7675,8 @@
<script type="module" src="/src/modules/fonts.js"></script> <script type="module" src="/src/modules/fonts.js"></script>
<script type="modile" src="/src/modules/ui/stylePresets.js"></script> <script type="modile" src="/src/modules/ui/stylePresets.js"></script>
<script type="module" src="/src/modules/ui/options.js"></script> <script type="module" src="/src/modules/ui/options.js"></script>
<script src="/src/modules/define-globals.js"></script> <script src="/src/modules/define-globals.js"></script>
<script src="/src/modules/define-svg.js"></script>
<script type="module" src="/src/modules/zoom.js"></script> <script type="module" src="/src/modules/zoom.js"></script>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>

View file

@ -8,6 +8,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"devDependencies": { "devDependencies": {
"@types/d3": "^5.9.0",
"@types/jquery": "^3.5.14", "@types/jquery": "^3.5.14",
"@types/jqueryui": "^1.12.16", "@types/jqueryui": "^1.12.16",
"typescript": "^4.7.4", "typescript": "^4.7.4",
@ -15,6 +16,7 @@
"vite-plugin-html": "^3.2.0" "vite-plugin-html": "^3.2.0"
}, },
"dependencies": { "dependencies": {
"d3": "5.8.0",
"delaunator": "^5.0.0", "delaunator": "^5.0.0",
"flatqueue": "^2.0.3", "flatqueue": "^2.0.3",
"lineclip": "^1.1.5", "lineclip": "^1.1.5",

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {round} from "utils/stringUtils"; import {round} from "utils/stringUtils";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getProvincesVertices} from "./drawProvinces"; import {getProvincesVertices} from "./drawProvinces";
import {minmax, rn} from "utils/numberUtils"; import {minmax, rn} from "utils/numberUtils";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
export function drawGrid() { export function drawGrid() {
gridOverlay.selectAll("*").remove(); gridOverlay.selectAll("*").remove();
const pattern = "#pattern_" + (gridOverlay.attr("type") || "pointyHex"); const pattern = "#pattern_" + (gridOverlay.attr("type") || "pointyHex");

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getColorScheme, getHeightColor} from "utils/colorUtils"; import {getColorScheme, getHeightColor} from "utils/colorUtils";
export function drawHeightmap() { export function drawHeightmap() {

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
export function drawPopulation(event) { export function drawPopulation(event) {
population.selectAll("line").remove(); population.selectAll("line").remove();

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
export function drawPrecipitation() { export function drawPrecipitation() {
prec.selectAll("circle").remove(); prec.selectAll("circle").remove();
const {cells, points} = grid; const {cells, points} = grid;

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import polylabel from "polylabel"; import polylabel from "polylabel";
export function drawStates() { export function drawStates() {

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {convertTemperature} from "utils/unitUtils"; import {convertTemperature} from "utils/unitUtils";
export function drawTemperature() { export function drawTemperature() {

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {getBase64} from "utils/functionUtils"; import {getBase64} from "utils/functionUtils";
import {isCtrlPressed} from "utils/keyboardUtils"; import {isCtrlPressed} from "utils/keyboardUtils";
@ -139,14 +141,14 @@ function togglePopulation(event?: MouseEvent) {
.select("#rural") .select("#rural")
.selectAll("line") .selectAll("line")
.transition(hide) .transition(hide)
.attr("y2", d => d[1]) .attr("y2", (d: any[]) => d[1])
.remove(); .remove();
population population
.select("#urban") .select("#urban")
.selectAll("line") .selectAll("line")
.transition(hide) .transition(hide)
.delay(1000) .delay(1000)
.attr("y2", d => d[1]) .attr("y2", (d: any[]) => d[1])
.remove(); .remove();
} }
} }
@ -473,8 +475,8 @@ function toggleScaleBar(event?: MouseEvent) {
} }
async function openUnitsEditor() { async function openUnitsEditor() {
// @ts-ignore fix dynamic import // @ts-ignore untyped module
const {editUnits} = await import("./../modules/ui/unitsEditor.js"); const {editUnits} = await import("../modules/ui/units-editor.js");
editUnits(); editUnits();
} }
} }

2
src/libs/d3.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -3,6 +3,8 @@
import "./components"; import "./components";
// @ts-expect-error js-module // @ts-expect-error js-module
import {defineSvg} from "./modules/define-svg";
// @ts-expect-error js-module
import {clearLegend} from "./modules/legend"; import {clearLegend} from "./modules/legend";
// @ts-expect-error js-module // @ts-expect-error js-module
import {Rulers} from "./modules/measurers"; import {Rulers} from "./modules/measurers";
@ -37,8 +39,8 @@ statesNeutral = 1; // statesEditor growth parameter
applyStoredOptions(); applyStoredOptions();
rulers = new Rulers(); rulers = new Rulers();
biomesData = Biomes.getDefault(); biomesData = window.Biomes.getDefault();
nameBases = Names.getNameBases(); // cultures-related data nameBases = window.Names.getNameBases(); // cultures-related data
// voronoi graph extension, cannot be changed after generation // voronoi graph extension, cannot be changed after generation
graphWidth = getInputNumber("mapWidthInput"); graphWidth = getInputNumber("mapWidthInput");

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {isLand} from "utils/graphUtils"; import {isLand} from "utils/graphUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import FlatQueue from "flatqueue"; import FlatQueue from "flatqueue";
import Delaunator from "delaunator"; import Delaunator from "delaunator";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {ERROR, TIME} from "config/logging"; import {ERROR, TIME} from "config/logging";
import {reMarkFeatures} from "modules/markup"; import {reMarkFeatures} from "modules/markup";
import {clipPoly} from "utils/lineUtils"; import {clipPoly} from "utils/lineUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import FlatQueue from "flatqueue"; import FlatQueue from "flatqueue";
import {TIME} from "config/logging"; import {TIME} from "config/logging";

View file

@ -29,3 +29,54 @@ let distanceScale;
let urbanization; let urbanization;
let urbanDensity; let urbanDensity;
let statesNeutral; let statesNeutral;
// svg d3 selections
let svg,
defs,
viewbox,
scaleBar,
legend,
ocean,
oceanLayers,
oceanPattern,
lakes,
landmass,
texture,
terrs,
biomes,
cells,
gridOverlay,
coordinates,
compass,
rivers,
terrain,
relig,
cults,
regions,
statesBody,
statesHalo,
provs,
zones,
borders,
stateBorders,
provinceBorders,
routes,
roads,
trails,
searoutes,
temperature,
coastline,
ice,
prec,
population,
emblems,
labels,
icons,
burgLabels,
burgIcons,
anchors,
armies,
markers,
fogging,
ruler,
debug;

View file

@ -1,57 +1,6 @@
"use strict"; import * as d3 from "d3";
// temporary define svg elements as globals
let svg, export function defineSvg(width, height) {
defs,
viewbox,
scaleBar,
legend,
ocean,
oceanLayers,
oceanPattern,
lakes,
landmass,
texture,
terrs,
biomes,
cells,
gridOverlay,
coordinates,
compass,
rivers,
terrain,
relig,
cults,
regions,
statesBody,
statesHalo,
provs,
zones,
borders,
stateBorders,
provinceBorders,
routes,
roads,
trails,
searoutes,
temperature,
coastline,
ice,
prec,
population,
emblems,
labels,
icons,
burgLabels,
burgIcons,
anchors,
armies,
markers,
fogging,
ruler,
debug;
function defineSvg(width, height) {
// append svg layers (in default order) // append svg layers (in default order)
svg = d3.select("#map"); svg = d3.select("#map");
defs = svg.select("#deftemp"); defs = svg.select("#deftemp");

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {rand, P, rw} from "utils/probabilityUtils"; import {rand, P, rw} from "utils/probabilityUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils";
import {tip, showMainTip, clearMainTip} from "scripts/tooltips"; import {tip, showMainTip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils";
import {tip, showMainTip, clearMainTip} from "scripts/tooltips"; import {tip, showMainTip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {heightmapTemplates} from "config/heightmap-templates"; import {heightmapTemplates} from "config/heightmap-templates";
import {precreatedHeightmaps} from "config/precreated-heightmaps"; import {precreatedHeightmaps} from "config/precreated-heightmaps";
import {shouldRegenerateGrid, generateGrid} from "utils/graphUtils"; import {shouldRegenerateGrid, generateGrid} from "utils/graphUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {capitalize} from "utils/stringUtils"; import {capitalize} from "utils/stringUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {isWater} from "utils/graphUtils"; import {isWater} from "utils/graphUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {heightmapTemplates} from "config/heightmap-templates"; import {heightmapTemplates} from "config/heightmap-templates";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {createTypedArray} from "utils/arrayUtils"; import {createTypedArray} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getGridPolygon} from "utils/graphUtils"; import {getGridPolygon} from "utils/graphUtils";
import {unique} from "utils/arrayUtils"; import {unique} from "utils/arrayUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {updatePresetInput} from "layers"; import {updatePresetInput} from "layers";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {ldb} from "scripts/indexedDB"; import {ldb} from "scripts/indexedDB";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {aleaPRNG} from "scripts/aleaPRNG"; import {aleaPRNG} from "scripts/aleaPRNG";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {rn} from "../utils/numberUtils"; import {rn} from "../utils/numberUtils";
import {parseTransform} from "utils/stringUtils"; import {parseTransform} from "utils/stringUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import polylabel from "polylabel"; import polylabel from "polylabel";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {rn, minmax} from "utils/numberUtils"; import {rn, minmax} from "utils/numberUtils";
import {rand, gauss, ra} from "utils/probabilityUtils"; import {rand, gauss, ra} from "utils/probabilityUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {clipPoly} from "utils/lineUtils"; import {clipPoly} from "utils/lineUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {minmax} from "utils/numberUtils"; import {minmax} from "utils/numberUtils";
import {rand} from "utils/probabilityUtils"; import {rand} from "utils/probabilityUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getPackPolygon} from "utils/graphUtils"; import {getPackPolygon} from "utils/graphUtils";
import {rn, minmax} from "utils/numberUtils"; import {rn, minmax} from "utils/numberUtils";
import {rand} from "utils/probabilityUtils"; import {rand} from "utils/probabilityUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import FlatQueue from "flatqueue"; import FlatQueue from "flatqueue";
import {TIME} from "config/logging"; import {TIME} from "config/logging";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME, WARN} from "config/logging"; import {TIME, WARN} from "config/logging";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import FlatQueue from "flatqueue"; import FlatQueue from "flatqueue";
import {TIME} from "config/logging"; import {TIME} from "config/logging";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {getMiddlePoint} from "utils/lineUtils"; import {getMiddlePoint} from "utils/lineUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {minmax, rn} from "utils/numberUtils"; import {minmax, rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {wiki} from "utils/linkUtils"; import {wiki} from "utils/linkUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils";
import {tip, showMainTip, clearMainTip} from "scripts/tooltips"; import {tip, showMainTip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getPackPolygon} from "utils/graphUtils"; import {getPackPolygon} from "utils/graphUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {clipPoly} from "utils/lineUtils"; import {clipPoly} from "utils/lineUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {byId} from "utils/shorthands"; import {byId} from "utils/shorthands";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {getColorScheme, getHeightColor} from "utils/colorUtils"; import {getColorScheme, getHeightColor} from "utils/colorUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {clearMainTip} from "scripts/tooltips"; import {clearMainTip} from "scripts/tooltips";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {openURL} from "utils/linkUtils"; import {openURL} from "utils/linkUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import RgbQuant from "rgbquant"; import RgbQuant from "rgbquant";
import {heightmapTemplates} from "config/heightmap-templates"; import {heightmapTemplates} from "config/heightmap-templates";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findGridCell, getGridPolygon} from "utils/graphUtils"; import {findGridCell, getGridPolygon} from "utils/graphUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {getPackPolygon} from "utils/graphUtils"; import {getPackPolygon} from "utils/graphUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {clearMainTip} from "scripts/tooltips"; import {clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {wiki} from "utils/linkUtils"; import {wiki} from "utils/linkUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {unique} from "utils/arrayUtils"; import {unique} from "utils/arrayUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {openURL} from "utils/linkUtils"; import {openURL} from "utils/linkUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {heightmapTemplates} from "config/heightmap-templates"; import {heightmapTemplates} from "config/heightmap-templates";
import {precreatedHeightmaps} from "config/precreated-heightmaps"; import {precreatedHeightmaps} from "config/precreated-heightmaps";
import {lock, locked} from "scripts/options/lock"; import {lock, locked} from "scripts/options/lock";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon, isLand} from "utils/graphUtils";
import {unique} from "utils/arrayUtils"; import {unique} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {tip, showMainTip, clearMainTip} from "scripts/tooltips"; import {tip, showMainTip, clearMainTip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {getPackPolygon, findCell} from "utils/graphUtils"; import {getPackPolygon, findCell} from "utils/graphUtils";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {findCell, getPackPolygon} from "utils/graphUtils"; import {findCell, getPackPolygon} from "utils/graphUtils";
import {tip, clearMainTip} from "scripts/tooltips"; import {tip, clearMainTip} from "scripts/tooltips";
import {getSegmentId} from "utils/lineUtils"; import {getSegmentId} from "utils/lineUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
export function overviewRivers() { export function overviewRivers() {

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip, showMainTip, clearMainTip} from "scripts/tooltips"; import {tip, showMainTip, clearMainTip} from "scripts/tooltips";
import {getSegmentId} from "utils/lineUtils"; import {getSegmentId} from "utils/lineUtils";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {parseTransform} from "utils/stringUtils"; import {parseTransform} from "utils/stringUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {round} from "utils/stringUtils"; import {round} from "utils/stringUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {last} from "utils/arrayUtils"; import {last} from "utils/arrayUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findCell} from "utils/graphUtils"; import {findCell} from "utils/graphUtils";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {tip} from "scripts/tooltips"; import {tip} from "scripts/tooltips";
import {rn} from "utils/numberUtils"; import {rn} from "utils/numberUtils";
import {round, parseTransform} from "utils/stringUtils"; import {round, parseTransform} from "utils/stringUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {restoreDefaultEvents} from "scripts/events"; import {restoreDefaultEvents} from "scripts/events";
import {findAll, findCell, getPackPolygon} from "utils/graphUtils"; import {findAll, findCell, getPackPolygon} from "utils/graphUtils";
import {unique} from "utils/arrayUtils"; import {unique} from "utils/arrayUtils";

View file

@ -1,3 +1,4 @@
import * as d3 from "d3";
import FlatQueue from "flatqueue"; import FlatQueue from "flatqueue";
import {TIME} from "config/logging"; import {TIME} from "config/logging";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {debounce} from "utils/functionUtils"; import {debounce} from "utils/functionUtils";
import {handleZoom, invokeActiveZooming} from "/src/modules/activeZooming"; import {handleZoom, invokeActiveZooming} from "/src/modules/activeZooming";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {dragLegendBox} from "modules/legend"; import {dragLegendBox} from "modules/legend";
import {debounce} from "utils/functionUtils"; import {debounce} from "utils/functionUtils";
import {findCell, findGridCell} from "utils/graphUtils"; import {findCell, findGridCell} from "utils/graphUtils";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {ERROR, INFO, WARN} from "config/logging"; import {ERROR, INFO, WARN} from "config/logging";
import {initLayers, renderLayer, restoreLayers} from "layers"; import {initLayers, renderLayer, restoreLayers} from "layers";
import {drawCoastline} from "modules/coastline"; import {drawCoastline} from "modules/coastline";

View file

@ -1,3 +1,5 @@
import * as d3 from "d3";
import {ERROR, WARN} from "config/logging"; import {ERROR, WARN} from "config/logging";
import {generateMapOnLoad} from "./generation"; import {generateMapOnLoad} from "./generation";
import {loadMapFromURL} from "modules/io/load"; import {loadMapFromURL} from "modules/io/load";

View file

@ -1,4 +1,5 @@
// @ts-nocheck global variables import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {normalize} from "utils/numberUtils"; import {normalize} from "utils/numberUtils";

View file

@ -1,4 +1,5 @@
// @ts-nocheck global variables import * as d3 from "d3";
import {TIME} from "config/logging"; import {TIME} from "config/logging";
import {UINT16_MAX} from "constants"; import {UINT16_MAX} from "constants";
import {createTypedArray} from "utils/arrayUtils"; import {createTypedArray} from "utils/arrayUtils";

View file

@ -1,4 +1,4 @@
const d3 = window.d3; import * as d3 from "d3";
const c12: Hex[] = [ const c12: Hex[] = [
"#dababf", "#dababf",

View file

@ -1,4 +1,5 @@
// @ts-nocheck // @ts-nocheck
import * as d3 from "d3";
import Delaunator from "delaunator"; import Delaunator from "delaunator";
import {TIME} from "../config/logging"; import {TIME} from "../config/logging";

View file

@ -1,8 +1,8 @@
import * as d3 from "d3";
import {ERROR} from "../config/logging"; import {ERROR} from "../config/logging";
import {minmax, rn} from "./numberUtils"; import {minmax, rn} from "./numberUtils";
const d3 = window.d3;
// random number in range // random number in range
export function rand(min: number, max: number) { export function rand(min: number, max: number) {
if (min === undefined && max === undefined) return Math.random(); if (min === undefined && max === undefined) return Math.random();

503
yarn.lock
View file

@ -71,6 +71,242 @@
estree-walker "^2.0.1" estree-walker "^2.0.1"
picomatch "^2.2.2" picomatch "^2.2.2"
"@types/d3-array@*":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-3.0.3.tgz#87d990bf504d14ad6b16766979d04e943c046dac"
integrity sha512-Reoy+pKnvsksN0lQUlcH6dOGjRZ/3WRwXR//m+/8lt1BXeI4xyaUZoqULNjyXXRuh0Mj4LNpkCvhUpQlY3X5xQ==
"@types/d3-array@^1":
version "1.2.9"
resolved "https://registry.yarnpkg.com/@types/d3-array/-/d3-array-1.2.9.tgz#c7dc78992cd8ca5c850243a265fd257ea56df1fa"
integrity sha512-E/7RgPr2ylT5dWG0CswMi9NpFcjIEDqLcUSBgNHe/EMahfqYaTx4zhcggG3khqoEB/leY4Vl6nTSbwLUPjXceA==
"@types/d3-axis@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-axis/-/d3-axis-3.0.1.tgz#6afc20744fa5cc0cbc3e2bd367b140a79ed3e7a8"
integrity sha512-zji/iIbdd49g9WN0aIsGcwcTBUkgLsCSwB+uH+LPVDAiKWENMtI3cJEWt+7/YYwelMoZmbBfzA3qCdrZ2XFNnw==
dependencies:
"@types/d3-selection" "*"
"@types/d3-brush@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-brush/-/d3-brush-3.0.1.tgz#ae5f17ce391935ca88b29000e60ee20452c6357c"
integrity sha512-B532DozsiTuQMHu2YChdZU0qsFJSio3Q6jmBYGYNp3gMDzBmuFFgPt9qKA4VYuLZMp4qc6eX7IUFUEsvHiXZAw==
dependencies:
"@types/d3-selection" "*"
"@types/d3-chord@^1":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@types/d3-chord/-/d3-chord-1.0.11.tgz#5760765db1b1a4b936c0d9355a821dde9dd25da2"
integrity sha512-0DdfJ//bxyW3G9Nefwq/LDgazSKNN8NU0lBT3Cza6uVuInC2awMNsAcv1oKyRFLn9z7kXClH5XjwpveZjuz2eg==
"@types/d3-collection@*":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@types/d3-collection/-/d3-collection-1.0.10.tgz#bca161e336156968f267c077f7f2bfa8ff224e58"
integrity sha512-54Fdv8u5JbuXymtmXm2SYzi1x/Svt+jfWBU5junkhrCewL92VjqtCBDn97coBRVwVFmYNnVTNDyV8gQyPYfm+A==
"@types/d3-color@*":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@types/d3-color/-/d3-color-3.1.0.tgz#6594da178ded6c7c3842f3cc0ac84b156f12f2d4"
integrity sha512-HKuicPHJuvPgCD+np6Se9MQvS6OCbJmOjGvylzMJRlDwUXjKTTXs6Pwgk79O09Vj/ho3u1ofXnhFOaEWWPrlwA==
"@types/d3-contour@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-contour/-/d3-contour-3.0.1.tgz#9ff4e2fd2a3910de9c5097270a7da8a6ef240017"
integrity sha512-C3zfBrhHZvrpAAK3YXqLWVAGo87A4SvJ83Q/zVJ8rFWJdKejUnDYaWZPkA8K84kb2vDA/g90LTQAz7etXcgoQQ==
dependencies:
"@types/d3-array" "*"
"@types/geojson" "*"
"@types/d3-dispatch@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-dispatch/-/d3-dispatch-3.0.1.tgz#a1b18ae5fa055a6734cb3bd3cbc6260ef19676e3"
integrity sha512-NhxMn3bAkqhjoxabVJWKryhnZXXYYVQxaBnbANu0O94+O/nX9qSjrA1P1jbAQJxJf+VC72TxDX/YJcKue5bRqw==
"@types/d3-drag@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-drag/-/d3-drag-3.0.1.tgz#fb1e3d5cceeee4d913caa59dedf55c94cb66e80f"
integrity sha512-o1Va7bLwwk6h03+nSM8dpaGEYnoIG19P0lKqlic8Un36ymh9NSkNFX1yiXMKNMx8rJ0Kfnn2eovuFaL6Jvj0zA==
dependencies:
"@types/d3-selection" "*"
"@types/d3-dsv@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-dsv/-/d3-dsv-3.0.0.tgz#f3c61fb117bd493ec0e814856feb804a14cfc311"
integrity sha512-o0/7RlMl9p5n6FQDptuJVMxDf/7EDEv2SYEO/CwdG2tr1hTfUVi0Iavkk2ax+VpaQ/1jVhpnj5rq1nj8vwhn2A==
"@types/d3-ease@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-ease/-/d3-ease-3.0.0.tgz#c29926f8b596f9dadaeca062a32a45365681eae0"
integrity sha512-aMo4eaAOijJjA6uU+GIeW018dvy9+oH5Y2VPPzjjfxevvGQ/oRDs+tfYC9b50Q4BygRR8yE2QCLsrT0WtAVseA==
"@types/d3-fetch@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-fetch/-/d3-fetch-3.0.1.tgz#f9fa88b81aa2eea5814f11aec82ecfddbd0b8fe0"
integrity sha512-toZJNOwrOIqz7Oh6Q7l2zkaNfXkfR7mFSJvGvlD/Ciq/+SQ39d5gynHJZ/0fjt83ec3WL7+u3ssqIijQtBISsw==
dependencies:
"@types/d3-dsv" "*"
"@types/d3-force@*":
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/d3-force/-/d3-force-3.0.3.tgz#76cb20d04ae798afede1ea6e41750763ff5a9c82"
integrity sha512-z8GteGVfkWJMKsx6hwC3SiTSLspL98VNpmvLpEFJQpZPq6xpA1I8HNBDNSpukfK0Vb0l64zGFhzunLgEAcBWSA==
"@types/d3-format@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-format/-/d3-format-3.0.1.tgz#194f1317a499edd7e58766f96735bdc0216bb89d"
integrity sha512-5KY70ifCCzorkLuIkDe0Z9YTf9RR2CjBX1iaJG+rgM/cPP+sO+q9YdQ9WdhQcgPj1EQiJ2/0+yUkkziTG6Lubg==
"@types/d3-geo@*":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/d3-geo/-/d3-geo-3.0.2.tgz#e7ec5f484c159b2c404c42d260e6d99d99f45d9a"
integrity sha512-DbqK7MLYA8LpyHQfv6Klz0426bQEf7bRTvhMy44sNGVyZoWn//B0c+Qbeg8Osi2Obdc9BLLXYAKpyWege2/7LQ==
dependencies:
"@types/geojson" "*"
"@types/d3-hierarchy@*":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@types/d3-hierarchy/-/d3-hierarchy-3.1.0.tgz#4561bb7ace038f247e108295ef77b6a82193ac25"
integrity sha512-g+sey7qrCa3UbsQlMZZBOHROkFqx7KZKvUpRzI/tAp/8erZWpYq7FgNKvYwebi2LaEiVs1klhUfd3WCThxmmWQ==
"@types/d3-interpolate@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-interpolate/-/d3-interpolate-3.0.1.tgz#e7d17fa4a5830ad56fe22ce3b4fac8541a9572dc"
integrity sha512-jx5leotSeac3jr0RePOH1KdR9rISG91QIE4Q2PYTu4OymLTZfA3SrnURSLzKH48HmXVUru50b8nje4E79oQSQw==
dependencies:
"@types/d3-color" "*"
"@types/d3-path@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-path/-/d3-path-3.0.0.tgz#939e3a784ae4f80b1fde8098b91af1776ff1312b"
integrity sha512-0g/A+mZXgFkQxN3HniRDbXMN79K3CdTpLsevj+PXiTcb2hVyvkZUBg37StmgCQkaD84cUJ4uaDAWq7UJOQy2Tg==
"@types/d3-path@^1":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@types/d3-path/-/d3-path-1.0.9.tgz#73526b150d14cd96e701597cbf346cfd1fd4a58c"
integrity sha512-NaIeSIBiFgSC6IGUBjZWcscUJEq7vpVu7KthHN8eieTV9d9MqkSOZLH4chq1PmcKy06PNe3axLeKmRIyxJ+PZQ==
"@types/d3-polygon@^1":
version "1.0.8"
resolved "https://registry.yarnpkg.com/@types/d3-polygon/-/d3-polygon-1.0.8.tgz#127ee83fccda5bf57384011da90f31367fea1530"
integrity sha512-1TOJPXCBJC9V3+K3tGbTqD/CsqLyv/YkTXAcwdsZzxqw5cvpdnCuDl42M4Dvi8XzMxZNCT9pL4ibrK2n4VmAcw==
"@types/d3-quadtree@*":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/d3-quadtree/-/d3-quadtree-3.0.2.tgz#433112a178eb7df123aab2ce11c67f51cafe8ff5"
integrity sha512-QNcK8Jguvc8lU+4OfeNx+qnVy7c0VrDJ+CCVFS9srBo2GL9Y18CnIxBdTF3v38flrGy5s1YggcoAiu6s4fLQIw==
"@types/d3-random@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-random/-/d3-random-3.0.1.tgz#5c8d42b36cd4c80b92e5626a252f994ca6bfc953"
integrity sha512-IIE6YTekGczpLYo/HehAy3JGF1ty7+usI97LqraNa8IiDur+L44d0VOjAvFQWJVdZOJHukUJw+ZdZBlgeUsHOQ==
"@types/d3-scale-chromatic@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.0.0.tgz#103124777e8cdec85b20b51fd3397c682ee1e954"
integrity sha512-dsoJGEIShosKVRBZB0Vo3C8nqSDqVGujJU6tPznsBJxNJNwMF8utmS83nvCBKQYPpjCzaaHcrf66iTRpZosLPw==
"@types/d3-scale@*":
version "4.0.2"
resolved "https://registry.yarnpkg.com/@types/d3-scale/-/d3-scale-4.0.2.tgz#41be241126af4630524ead9cb1008ab2f0f26e69"
integrity sha512-Yk4htunhPAwN0XGlIwArRomOjdoBFXC3+kCxK2Ubg7I9shQlVSJy/pG/Ht5ASN+gdMIalpk8TJ5xV74jFsetLA==
dependencies:
"@types/d3-time" "*"
"@types/d3-selection@*":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/d3-selection/-/d3-selection-3.0.2.tgz#23e48a285b24063630bbe312cc0cfe2276de4a59"
integrity sha512-d29EDd0iUBrRoKhPndhDY6U/PYxOWqgIZwKTooy2UkBfU7TNZNpRho0yLWPxlatQrFWk2mnTu71IZQ4+LRgKlQ==
"@types/d3-selection@^1":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@types/d3-selection/-/d3-selection-1.4.3.tgz#36928bbe64eb8e0bbcbaa01fb05c21ff6c71fa93"
integrity sha512-GjKQWVZO6Sa96HiKO6R93VBE8DUW+DDkFpIMf9vpY5S78qZTlRRSNUsHr/afDpF7TvLDV7VxrUFOWW7vdIlYkA==
"@types/d3-shape@*":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@types/d3-shape/-/d3-shape-3.1.0.tgz#1d87a6ddcf28285ef1e5c278ca4bdbc0658f3505"
integrity sha512-jYIYxFFA9vrJ8Hd4Se83YI6XF+gzDL1aC5DCsldai4XYYiVNdhtpGbA/GM6iyQ8ayhSp3a148LY34hy7A4TxZA==
dependencies:
"@types/d3-path" "*"
"@types/d3-time-format@*":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-time-format/-/d3-time-format-4.0.0.tgz#ee7b6e798f8deb2d9640675f8811d0253aaa1946"
integrity sha512-yjfBUe6DJBsDin2BMIulhSHmr5qNR5Pxs17+oW4DoVPyVIXZ+m6bs7j1UVKP08Emv6jRmYrYqxYzO63mQxy1rw==
"@types/d3-time@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/d3-time/-/d3-time-3.0.0.tgz#e1ac0f3e9e195135361fa1a1d62f795d87e6e819"
integrity sha512-sZLCdHvBUcNby1cB6Fd3ZBrABbjz3v1Vm90nysCQ6Vt7vd6e/h9Lt7SiJUoEX0l4Dzc7P5llKyhqSi1ycSf1Hg==
"@types/d3-timer@^1":
version "1.0.10"
resolved "https://registry.yarnpkg.com/@types/d3-timer/-/d3-timer-1.0.10.tgz#329c51c2c931f44ed0acff78b8c84571acf0ed21"
integrity sha512-ZnAbquVqy+4ZjdW0cY6URp+qF/AzTVNda2jYyOzpR2cPT35FTXl78s15Bomph9+ckOiI1TtkljnWkwbIGAb6rg==
"@types/d3-transition@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-transition/-/d3-transition-3.0.1.tgz#c9a96125567173d6163a6985b874f79154f4cc3d"
integrity sha512-Sv4qEI9uq3bnZwlOANvYK853zvpdKEm1yz9rcc8ZTsxvRklcs9Fx4YFuGA3gXoQN/c/1T6QkVNjhaRO/cWj94g==
dependencies:
"@types/d3-selection" "*"
"@types/d3-voronoi@*":
version "1.1.9"
resolved "https://registry.yarnpkg.com/@types/d3-voronoi/-/d3-voronoi-1.1.9.tgz#7bbc210818a3a5c5e0bafb051420df206617c9e5"
integrity sha512-DExNQkaHd1F3dFPvGA/Aw2NGyjMln6E9QzsiqOcBgnE+VInYnFBHBBySbZQts6z6xD+5jTfKCP7M4OqMyVjdwQ==
"@types/d3-zoom@*":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@types/d3-zoom/-/d3-zoom-3.0.1.tgz#4bfc7e29625c4f79df38e2c36de52ec3e9faf826"
integrity sha512-7s5L9TjfqIYQmQQEUcpMAcBOahem7TRoSO/+Gkz02GbMVuULiZzjF2BOdw291dbO2aNon4m2OdFsRGaCq2caLQ==
dependencies:
"@types/d3-interpolate" "*"
"@types/d3-selection" "*"
"@types/d3@^5.9.0":
version "5.9.0"
resolved "https://registry.yarnpkg.com/@types/d3/-/d3-5.9.0.tgz#e744b4f5fc72bc88455b62578504c33f0bdb142a"
integrity sha512-eqrMBnqn/EnVGIV8mfh/VMKLpFrUe1gMrYVTl3juGTkK4asq++4ieSV9GAEGktMw6vC8S9LS+XSHPxr23K99LA==
dependencies:
"@types/d3-array" "^1"
"@types/d3-axis" "*"
"@types/d3-brush" "*"
"@types/d3-chord" "^1"
"@types/d3-collection" "*"
"@types/d3-color" "*"
"@types/d3-contour" "*"
"@types/d3-dispatch" "*"
"@types/d3-drag" "*"
"@types/d3-dsv" "*"
"@types/d3-ease" "*"
"@types/d3-fetch" "*"
"@types/d3-force" "*"
"@types/d3-format" "*"
"@types/d3-geo" "*"
"@types/d3-hierarchy" "*"
"@types/d3-interpolate" "*"
"@types/d3-path" "^1"
"@types/d3-polygon" "^1"
"@types/d3-quadtree" "*"
"@types/d3-random" "*"
"@types/d3-scale" "*"
"@types/d3-scale-chromatic" "*"
"@types/d3-selection" "^1"
"@types/d3-shape" "*"
"@types/d3-time" "*"
"@types/d3-time-format" "*"
"@types/d3-timer" "^1"
"@types/d3-transition" "*"
"@types/d3-voronoi" "*"
"@types/d3-zoom" "*"
"@types/geojson@*":
version "7946.0.8"
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.8.tgz#30744afdb385e2945e22f3b033f897f76b1f12ca"
integrity sha512-1rkryxURpr6aWP7R786/UQOkJ3PcpQiWkAXBmdWc7ryFWqN6a4xfK7BtjXvFBKO9LjQ+MWQSWxYeZX1OApnArA==
"@types/jquery@*", "@types/jquery@^3.5.14": "@types/jquery@*", "@types/jquery@^3.5.14":
version "3.5.14" version "3.5.14"
resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.14.tgz#ac8e11ee591e94d4d58da602cb3a5a8320dee577" resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.5.14.tgz#ac8e11ee591e94d4d58da602cb3a5a8320dee577"
@ -184,7 +420,7 @@ colorette@^2.0.16:
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798"
integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ== integrity sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==
commander@^2.20.0: commander@2, commander@^2.20.0:
version "2.20.3" version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
@ -225,6 +461,254 @@ css-what@^6.0.1:
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==
d3-array@1, d3-array@^1.1.1, d3-array@^1.2.0:
version "1.2.4"
resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.4.tgz#635ce4d5eea759f6f605863dbcfc30edc737f71f"
integrity sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==
d3-axis@1:
version "1.0.12"
resolved "https://registry.yarnpkg.com/d3-axis/-/d3-axis-1.0.12.tgz#cdf20ba210cfbb43795af33756886fb3638daac9"
integrity sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ==
d3-brush@1:
version "1.1.6"
resolved "https://registry.yarnpkg.com/d3-brush/-/d3-brush-1.1.6.tgz#b0a22c7372cabec128bdddf9bddc058592f89e9b"
integrity sha512-7RW+w7HfMCPyZLifTz/UnJmI5kdkXtpCbombUSs8xniAyo0vIbrDzDwUJB6eJOgl9u5DQOt2TQlYumxzD1SvYA==
dependencies:
d3-dispatch "1"
d3-drag "1"
d3-interpolate "1"
d3-selection "1"
d3-transition "1"
d3-chord@1:
version "1.0.6"
resolved "https://registry.yarnpkg.com/d3-chord/-/d3-chord-1.0.6.tgz#309157e3f2db2c752f0280fedd35f2067ccbb15f"
integrity sha512-JXA2Dro1Fxw9rJe33Uv+Ckr5IrAa74TlfDEhE/jfLOaXegMQFQTAgAw9WnZL8+HxVBRXaRGCkrNU7pJeylRIuA==
dependencies:
d3-array "1"
d3-path "1"
d3-collection@1:
version "1.0.7"
resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.7.tgz#349bd2aa9977db071091c13144d5e4f16b5b310e"
integrity sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A==
d3-color@1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.1.tgz#c52002bf8846ada4424d55d97982fef26eb3bc8a"
integrity sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==
d3-contour@1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/d3-contour/-/d3-contour-1.3.2.tgz#652aacd500d2264cb3423cee10db69f6f59bead3"
integrity sha512-hoPp4K/rJCu0ladiH6zmJUEz6+u3lgR+GSm/QdM2BBvDraU39Vr7YdDCicJcxP1z8i9B/2dJLgDC1NcvlF8WCg==
dependencies:
d3-array "^1.1.1"
d3-dispatch@1:
version "1.0.6"
resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-1.0.6.tgz#00d37bcee4dd8cd97729dd893a0ac29caaba5d58"
integrity sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA==
d3-drag@1:
version "1.2.5"
resolved "https://registry.yarnpkg.com/d3-drag/-/d3-drag-1.2.5.tgz#2537f451acd39d31406677b7dc77c82f7d988f70"
integrity sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w==
dependencies:
d3-dispatch "1"
d3-selection "1"
d3-dsv@1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/d3-dsv/-/d3-dsv-1.2.0.tgz#9d5f75c3a5f8abd611f74d3f5847b0d4338b885c"
integrity sha512-9yVlqvZcSOMhCYzniHE7EVUws7Fa1zgw+/EAV2BxJoG3ME19V6BQFBwI855XQDsxyOuG7NibqRMTtiF/Qup46g==
dependencies:
commander "2"
iconv-lite "0.4"
rw "1"
d3-ease@1:
version "1.0.7"
resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-1.0.7.tgz#9a834890ef8b8ae8c558b2fe55bd57f5993b85e2"
integrity sha512-lx14ZPYkhNx0s/2HX5sLFUI3mbasHjSSpwO/KaaNACweVwxUruKyWVcb293wMv1RqTPZyZ8kSZ2NogUZNcLOFQ==
d3-fetch@1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/d3-fetch/-/d3-fetch-1.2.0.tgz#15ce2ecfc41b092b1db50abd2c552c2316cf7fc7"
integrity sha512-yC78NBVcd2zFAyR/HnUiBS7Lf6inSCoWcSxFfw8FYL7ydiqe80SazNwoffcqOfs95XaLo7yebsmQqDKSsXUtvA==
dependencies:
d3-dsv "1"
d3-force@1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/d3-force/-/d3-force-1.2.1.tgz#fd29a5d1ff181c9e7f0669e4bd72bdb0e914ec0b"
integrity sha512-HHvehyaiUlVo5CxBJ0yF/xny4xoaxFxDnBXNvNcfW9adORGZfyNF1dj6DGLKyk4Yh3brP/1h3rnDzdIAwL08zg==
dependencies:
d3-collection "1"
d3-dispatch "1"
d3-quadtree "1"
d3-timer "1"
d3-format@1:
version "1.4.5"
resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.4.5.tgz#374f2ba1320e3717eb74a9356c67daee17a7edb4"
integrity sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==
d3-geo@1:
version "1.12.1"
resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-1.12.1.tgz#7fc2ab7414b72e59fbcbd603e80d9adc029b035f"
integrity sha512-XG4d1c/UJSEX9NfU02KwBL6BYPj8YKHxgBEw5om2ZnTRSbIcego6dhHwcxuSR3clxh0EpE38os1DVPOmnYtTPg==
dependencies:
d3-array "1"
d3-hierarchy@1:
version "1.1.9"
resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz#2f6bee24caaea43f8dc37545fa01628559647a83"
integrity sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ==
d3-interpolate@1:
version "1.4.0"
resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.4.0.tgz#526e79e2d80daa383f9e0c1c1c7dcc0f0583e987"
integrity sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==
dependencies:
d3-color "1"
d3-path@1:
version "1.0.9"
resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.9.tgz#48c050bb1fe8c262493a8caf5524e3e9591701cf"
integrity sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==
d3-polygon@1:
version "1.0.6"
resolved "https://registry.yarnpkg.com/d3-polygon/-/d3-polygon-1.0.6.tgz#0bf8cb8180a6dc107f518ddf7975e12abbfbd38e"
integrity sha512-k+RF7WvI08PC8reEoXa/w2nSg5AUMTi+peBD9cmFc+0ixHfbs4QmxxkarVal1IkVkgxVuk9JSHhJURHiyHKAuQ==
d3-quadtree@1:
version "1.0.7"
resolved "https://registry.yarnpkg.com/d3-quadtree/-/d3-quadtree-1.0.7.tgz#ca8b84df7bb53763fe3c2f24bd435137f4e53135"
integrity sha512-RKPAeXnkC59IDGD0Wu5mANy0Q2V28L+fNe65pOCXVdVuTJS3WPKaJlFHer32Rbh9gIo9qMuJXio8ra4+YmIymA==
d3-random@1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/d3-random/-/d3-random-1.1.2.tgz#2833be7c124360bf9e2d3fd4f33847cfe6cab291"
integrity sha512-6AK5BNpIFqP+cx/sreKzNjWbwZQCSUatxq+pPRmFIQaWuoD+NrbVWw7YWpHiXpCQ/NanKdtGDuB+VQcZDaEmYQ==
d3-scale-chromatic@1:
version "1.5.0"
resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.5.0.tgz#54e333fc78212f439b14641fb55801dd81135a98"
integrity sha512-ACcL46DYImpRFMBcpk9HhtIyC7bTBR4fNOPxwVSl0LfulDAwyiHyPOTqcDG1+t5d4P9W7t/2NAuWu59aKko/cg==
dependencies:
d3-color "1"
d3-interpolate "1"
d3-scale@2:
version "2.2.2"
resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-2.2.2.tgz#4e880e0b2745acaaddd3ede26a9e908a9e17b81f"
integrity sha512-LbeEvGgIb8UMcAa0EATLNX0lelKWGYDQiPdHj+gLblGVhGLyNbaCn3EvrJf0A3Y/uOOU5aD6MTh5ZFCdEwGiCw==
dependencies:
d3-array "^1.2.0"
d3-collection "1"
d3-format "1"
d3-interpolate "1"
d3-time "1"
d3-time-format "2"
d3-selection@1, d3-selection@^1.1.0:
version "1.4.2"
resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.4.2.tgz#dcaa49522c0dbf32d6c1858afc26b6094555bc5c"
integrity sha512-SJ0BqYihzOjDnnlfyeHT0e30k0K1+5sR3d5fNueCNeuhZTnGw4M4o8mqJchSwgKMXCNFo+e2VTChiSJ0vYtXkg==
d3-shape@1:
version "1.3.7"
resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.3.7.tgz#df63801be07bc986bc54f63789b4fe502992b5d7"
integrity sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==
dependencies:
d3-path "1"
d3-time-format@2:
version "2.3.0"
resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.3.0.tgz#107bdc028667788a8924ba040faf1fbccd5a7850"
integrity sha512-guv6b2H37s2Uq/GefleCDtbe0XZAuy7Wa49VGkPVPMfLL9qObgBST3lEHJBMUp8S7NdLQAGIvr2KXk8Hc98iKQ==
dependencies:
d3-time "1"
d3-time@1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.1.0.tgz#b1e19d307dae9c900b7e5b25ffc5dcc249a8a0f1"
integrity sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==
d3-timer@1:
version "1.0.10"
resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.10.tgz#dfe76b8a91748831b13b6d9c793ffbd508dd9de5"
integrity sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==
d3-transition@1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-1.3.2.tgz#a98ef2151be8d8600543434c1ca80140ae23b398"
integrity sha512-sc0gRU4PFqZ47lPVHloMn9tlPcv8jxgOQg+0zjhfZXMQuvppjG6YuwdMBE0TuqCZjeJkLecku/l9R0JPcRhaDA==
dependencies:
d3-color "1"
d3-dispatch "1"
d3-ease "1"
d3-interpolate "1"
d3-selection "^1.1.0"
d3-timer "1"
d3-voronoi@1:
version "1.1.4"
resolved "https://registry.yarnpkg.com/d3-voronoi/-/d3-voronoi-1.1.4.tgz#dd3c78d7653d2bb359284ae478645d95944c8297"
integrity sha512-dArJ32hchFsrQ8uMiTBLq256MpnZjeuBtdHpaDlYuQyjU0CVzCJl/BVW+SkszaAeH95D/8gxqAhgx0ouAWAfRg==
d3-zoom@1:
version "1.8.3"
resolved "https://registry.yarnpkg.com/d3-zoom/-/d3-zoom-1.8.3.tgz#b6a3dbe738c7763121cd05b8a7795ffe17f4fc0a"
integrity sha512-VoLXTK4wvy1a0JpH2Il+F2CiOhVu7VRXWF5M/LroMIh3/zBAC3WAt7QoIvPibOavVo20hN6/37vwAsdBejLyKQ==
dependencies:
d3-dispatch "1"
d3-drag "1"
d3-interpolate "1"
d3-selection "1"
d3-transition "1"
d3@5.8.0:
version "5.8.0"
resolved "https://registry.yarnpkg.com/d3/-/d3-5.8.0.tgz#251f12fe46d811ef300664590ec85eb574c44896"
integrity sha512-0rc4LL3fbyWhAqrxOt00svoxB2qoHHo6Bgs0WGcDPZ8ELqbA09evfeCnuy0ZrYbRHc+hCvBZaTT+GW3pnn05fw==
dependencies:
d3-array "1"
d3-axis "1"
d3-brush "1"
d3-chord "1"
d3-collection "1"
d3-color "1"
d3-contour "1"
d3-dispatch "1"
d3-drag "1"
d3-dsv "1"
d3-ease "1"
d3-fetch "1"
d3-force "1"
d3-format "1"
d3-geo "1"
d3-hierarchy "1"
d3-interpolate "1"
d3-path "1"
d3-polygon "1"
d3-quadtree "1"
d3-random "1"
d3-scale "2"
d3-scale-chromatic "1"
d3-selection "1"
d3-shape "1"
d3-time "1"
d3-time-format "2"
d3-timer "1"
d3-transition "1"
d3-voronoi "1"
d3-zoom "1"
delaunator@^5.0.0: delaunator@^5.0.0:
version "5.0.0" version "5.0.0"
resolved "https://registry.yarnpkg.com/delaunator/-/delaunator-5.0.0.tgz#60f052b28bd91c9b4566850ebf7756efe821d81b" resolved "https://registry.yarnpkg.com/delaunator/-/delaunator-5.0.0.tgz#60f052b28bd91c9b4566850ebf7756efe821d81b"
@ -521,6 +1005,13 @@ html-minifier-terser@^6.1.0:
relateurl "^0.2.7" relateurl "^0.2.7"
terser "^5.10.0" terser "^5.10.0"
iconv-lite@0.4:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==
dependencies:
safer-buffer ">= 2.1.2 < 3"
is-core-module@^2.9.0: is-core-module@^2.9.0:
version "2.9.0" version "2.9.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69"
@ -731,6 +1222,16 @@ run-parallel@^1.1.9:
dependencies: dependencies:
queue-microtask "^1.2.2" queue-microtask "^1.2.2"
rw@1:
version "1.3.3"
resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4"
integrity sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==
"safer-buffer@>= 2.1.2 < 3":
version "2.1.2"
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
source-map-js@^1.0.2: source-map-js@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"