Readonly
markerThe current shown image's opened Models.ImageData.Marker store SvelteStore.Writable
Readonly
markerThe current hovered marker
Readonly
popoverThe current opened custom content page
Readonly
popupThe current opened popup
Readonly
tourThe current Models.ImageData.MarkerTour or Models.ImageData.VideoTour store SvelteStore.Writable
UI controls settings
The current opened Models.ImageData.Marker of the current shown MicrioImage
The current active Models.ImageData.MarkerTour or Models.ImageData.VideoTour
Gets the current state as an independent, minimal JSON object. This includes the currently open image(s), marker(s), and actively playing media (video, audio, tour) and its state. You can use this object in any other environment to immediately replicate this state (neat!).
Example:
// Save the current state in Browser 1
const state = micrio.state.get();
// Save or sync this object to Browser 2 and load it there..
// This makes the <micr-io> session state identical to Browser 1.
micrio.state.set(state);
HTMLMicrioElement state controller
The State.Main constructor is used as HTMLMicrioElement.state, and offers: