The Grid constructor. Initializes the grid based on image settings.
The main HTMLMicrioElement instance.
The MicrioImage instance acting as the virtual container for the grid.
Default animation duration (seconds) when transitioning into a new layout or focused view.
Default animation duration (seconds) when transitioning out of a focused view or going back in history.
If true, the HTML grid overlay remains visible and interactive even when an image is focused.
Array of MicrioImage instances currently visible in the grid layout.
Writable Svelte store indicating the current depth in the grid history stack.
ReadonlyfocussedWritable Svelte store holding the currently focused MicrioImage instance, or undefined if in grid view.
Array storing the history of grid layouts for back navigation.
The MicrioImage instance acting as the virtual container for the grid.
ReadonlyimagesArray of MicrioImage instances currently part of the grid definition (loaded).
ReadonlymarkersWritable Svelte store holding an array of MicrioImage instances whose markers should be displayed in the grid view.
The main HTMLMicrioElement instance.
Delay (seconds) between individual image transitions for 'delayed' effects.
Getter for the current value of the focussed store.
Do an (external) action
The action type enum or string
Optionaldata: stringOptional action data
Optionalduration: numberOptional action duration
Enlarge a specific image idx of the currently shown grid
The image index of the current grid
The image target number of columns
The image target number of rows
Promise when the transition is completed
Fly to the viewports of any markers containing a class name
Optionaltag: stringThe class name to match
Optionalduration: numberOptional duration in ms
OptionalnoZoom: booleanDon't zoom into the markers, just filter the images
Promise when the transition is complete
Open a grid image full size and set it as the main active image
The image
Focus options
Promise for when the transition completes
Converts an ImageInfo object and options back into the grid string format.
The grid encoded string for this image.
Reset the grid to its initial layout
Optionalduration: numberDuration in seconds
OptionalnoCamAni: booleanDon't do any camera animating
OptionalforceAni: booleanForce animation on all grid images
Promise when the transition is complete
Sets the grid layout based on an input string or array of image definitions. This is the main method for changing the grid's content and appearance.
The grid definition. Can be:
Grid.getString.{image: MicrioImage, ...GridImageOptions}.Options controlling the transition and layout.
Optionalcolumns?: numberOverrides the automatic calculation of grid columns.
Optionalcover?: booleanIf true, sets the initial view of images to cover their grid cell (but doesn't enforce limit).
OptionalcoverIf true, limits individual image views to cover their grid cell.
Optionalduration?: numberOverrides the default animation duration for the main grid view transition.
OptionalforceIf true, forces animation even if duration is 0.
OptionalforceIf true, forces area animation even for images not currently visible.
Optionalhorizontal?: booleanIf true, arranges images in a single horizontal row.
OptionalkeepIf true, keeps the HTML grid element in the DOM (used internally).
OptionalnoIf true, does not unfocus the currently focused image when setting a new layout.
OptionalnoIf true, skips the main grid camera animation.
OptionalnoIf true, skips the fade-in animation for new images.
OptionalnoIf true, does not add the previous layout to the history stack.
Optionalscale?: numberScale factor (0-1) applied to each grid cell (creates margins).
Optionaltransition?: GridSetTransitionSpecifies the transition animation type (e.g., 'crossfade', 'slide-left', 'behind-delayed').
Optionalview?: ViewIf provided, animates the main grid view to this viewport rectangle.
A Promise that resolves with the array of currently displayed MicrioImage instances when the transition completes.
Controls the display and interaction logic for grid layouts. Instantiated on the primary MicrioImage if grid data is present. Accessed via
micrioImage.grid.