Spread config node in normalisation + types

This commit is contained in:
2026-04-07 13:05:48 +02:00
parent a3ca2eb372
commit 39c3b1b537
3 changed files with 50 additions and 8 deletions

View File

@@ -1,6 +1,17 @@
/**
* @namespace AppState
*/
/**
* @typedef {Object} NormalizedSceneNode
* @property {String} label Required
* @property {String} id
* @property {String} model
* @property {Boolean} isMain
* @property {Number|null} opacity
* @property {Boolean} active
*/
let AppState = {
// The Leaflet map object
map : null,
@@ -8,6 +19,9 @@ let AppState = {
root: null,
// {id: String, active: Boolean}
nodes: [],
/**
* @property {NormalizedSceneNode[]} normalizedNodes
*/
normalizedNodes: [],
mainNodeId: null,
currentScene: null,