Creates an Image state controller and subscribes to view/marker changes to synchronise with the main element state.
The parent MicrioImage instance.
ReadonlylayerWritable store holding the currently displayed layer index (for Omni objects).
ReadonlymarkerWritable store holding the currently active marker within this specific image. Can be set with a marker ID string or a full marker object. Setting to undefined closes the marker.
ReadonlyviewWritable store holding the current viewport [x0, y0, width, height] of this image.
Getter for the current value of the view store.
MicrioImage state controller (
micrioImage.state)Manages the state specific to a single MicrioImage instance, primarily its viewport and currently opened marker.