Index signature for dynamic property access
Observable map of scenes indexed by scene ID
Computed property that returns an array of all scenes
Array of all scenes in the store
Getter for scenes indexed by ID
Map of scenes indexed by scene ID
Setter for scenes indexed by ID
Map of scenes to set
Activates multiple scenes concurrently
This method activates multiple scenes in parallel using Promise.all.
Array of scene IDs to activate
Resolves when every scene in the list has been activated
Activates a scene by triggering its action
This method finds the scene by ID and calls its trigger method, which will activate the scene across all its associated nodes.
The ID of the scene to activate
Resolves when scene.activate() completes for that scene
Dynamically adds an observable property to the store
This method adds a new observable property to the store and automatically creates getter and setter methods for it. The property name is capitalized for the getter/setter methods.
The name of the property to add
The initial value for the property
Adds a single scene to the store
The scene to add
The observable scene object
Retrieves a scene by its ID
The ID of the scene to retrieve
The scene object or null if not found
Sets the entire scene list, replacing all existing scenes
This method replaces all scenes in the store with the provided array. Each scene is made observable and has interceptors set up.
Array of scenes to set
Updates a scene by ID without making it observable
The scene ID
The scene object to set
SceneStore - Manages scene operations and state for ESP Rainmaker CDF
This store handles all scene-related operations including: