Micrio Client - v7.0.0
    Preparing search index...

    Class Image

    MicrioImage state controller (micrioImage.state)

    Manages the state specific to a single MicrioImage instance, primarily its viewport and currently opened marker.

    Index
    • Creates an Image state controller and subscribes to view/marker changes to synchronise with the main element state.

      Parameters

      Returns State.Image

    layer: Writable<number> = ...

    Writable store holding the currently displayed layer index (for Omni objects).

    marker: Writable<string | Marker> = ...

    Writable 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.

    view: Writable<CameraArray> = ...

    Writable store holding the current viewport [x0, y0, width, height] of this image.