This commit is contained in:
Rainer Leit
2026-09-25 17:02:24 +03:00
parent cc43ed8dc8
commit 9597629951
2149 changed files with 460234 additions and 1770 deletions
+41
View File
@@ -0,0 +1,41 @@
// Shared mutable application state.
// All modules import this same object, so mutations are visible everywhere.
export const state = {
planetMesh: null,
wireMesh: null,
arrowGroup: null,
windArrowGroup: null,
curData: null,
plateColors: {},
_hoverBackup: null,
hoveredPlate: -1,
hoveredRegion: -1,
hoveredKoppen: -1,
_koppenHoverBackup: null,
_mapKoppenHoverBackup: null,
mapMesh: null,
mapFaceToSide: null,
_mapHoverBackup: null,
mapGridMesh: null,
globeGridMesh: null,
gridEnabled: true,
gridSpacing: 15,
mapMode: false,
mapCenterLon: 0,
dragStart: null,
debugLayer: '',
isTouchDevice: ('ontouchstart' in window) || (navigator.maxTouchPoints > 0),
editMode: false,
oceanCurrentArrowGroup: null,
climateComputed: false,
pendingToggles: new Set(),
_pendingBackup: null,
_mapPendingBackup: null,
importedHeightmap: false,
// The painted map's overlay sheet (painted-overlay-view.js): the classified marks and their texture,
// the meshes that show it on the globe and the map, and whether the toggle asks for it.
overlay: null,
overlayVisible: false,
overlayGlobeMesh: null,
overlayMapMesh: null,
};