MicrioImage state controller

The State.Image constructor is used as MicrioImage.state, and offers:

  • Setting the current opened marker in this image
  • Getting the image's last known viewport, even if it is not active at the moment

Properties

Accessors

Methods

Properties

layer: Writable<number> = ...

The current layer to display (omni objects)

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

The current active marker store SvelteStore.Writable. You can either set this to be a Models.ImageData.Marker JSON object, or string, which is the ID of the marker you wish to open.

view: Writable<View> = ...

The current image viewport store SvelteStore.Writable

Accessors

  • get $marker(): Marker
  • The current active Marker instance

    Returns Marker

  • get $view(): View
  • The current or last known viewport of this image

    Returns View

Methods

  • Hook omni layer

    Returns void