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.
Readonly
focussedWritable 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.
Readonly
imagesArray of MicrioImage instances currently part of the grid definition (loaded).
Readonly
markersWritable 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
Optional
data: stringOptional action data
Optional
duration: 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
Optional
tag: stringThe class name to match
Optional
duration: numberOptional duration in ms
Optional
noZoom: 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
Get the relative in-grid viewport of the image
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
Optional
duration: numberDuration in seconds
Optional
noCamAni: booleanDon't do any camera animating
Optional
forceAni: 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.
Optional
columns?: numberOverrides the automatic calculation of grid columns.
Optional
cover?: booleanIf true, sets the initial view of images to cover their grid cell (but doesn't enforce limit).
Optional
coverIf true, limits individual image views to cover their grid cell.
Optional
duration?: numberOverrides the default animation duration for the main grid view transition.
Optional
forceIf true, forces animation even if duration is 0.
Optional
forceIf true, forces area animation even for images not currently visible.
Optional
horizontal?: booleanIf true, arranges images in a single horizontal row.
Optional
keepIf true, keeps the HTML grid element in the DOM (used internally).
Optional
noIf true, does not unfocus the currently focused image when setting a new layout.
Optional
noIf true, skips the main grid camera animation.
Optional
noIf true, skips the fade-in animation for new images.
Optional
noIf true, does not add the previous layout to the history stack.
Optional
scale?: numberScale factor (0-1) applied to each grid cell (creates margins).
Optional
transition?: GridSetTransitionSpecifies the transition animation type (e.g., 'crossfade', 'slide-left', 'behind-delayed').
Optional
view?: 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
.