Spread config node in normalisation + types
This commit is contained in:
14
js/state.js
14
js/state.js
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user