declare module '@micrio/client' { import type { Readable, Writable } from 'svelte/store'; export const VERSION = "5.1.20"; export type PREDEFINED = [string, Models.ImageInfo.ImageInfo, Models.ImageData.ImageData | undefined]; export const isFetching: (uri: string) => boolean; export const getLocalData: (id: string) => PREDEFINED | undefined; /** Get a character numeric value from a Micrio ID * @private */ export const getIdVal: (a: string) => number; export const idIsV5: (id: string) => boolean; /** Hard-limit a view to full image bounds */ export const limitView: (v: Models.Camera.View) => Models.Camera.View; /** Calculating the movement vector between two 360 images * @private */ export function getSpaceVector(micrio: HTMLMicrioElement, targetId: string): { vector: Models.Camera.Vector; directionX: number; v: Models.Spaces.DirectionVector; vN: Models.Spaces.DirectionVector; } | undefined; /** Feature detection for native HLS video support * @private */ export const hasNativeHLS: (video?: HTMLMediaElement) => boolean; export namespace Enums { namespace Grid { /** External grid action types */ enum GridActionType { /** Filter the grid display by these IDs, comma separated */ focus = 0, /** Fly the camera to the bounding box of these in-grid image IDs */ flyTo = 1, /** Filter the grid to the images containing markers that have this custom class name */ focusWithTagged = 2, /** Filter the grid to the images containing markers that have this custom class name, and fly to their views */ focusTagged = 3, /** Reset the grid to its inception state */ reset = 4, /** Go back one grid history step */ back = 5, /** When a grid image is in full-focus, immediately switch to the view as if it were in the initial grid */ switchToGrid = 6, /** If there is a current MarkerTour going on, filter the grid to all grid images that are part of the tour */ filterTourImages = 7, /** Single time fade duration for next image that will be navigated to */ nextFadeDuration = 8 } } namespace Camera { /** Camera animation timing function */ enum TimingFunction { 'ease' = 0, 'ease-in' = 1, 'ease-out' = 2, 'linear' = 3 } } } /** * Micrio grid display controller * @author Marcel Duin */ /** The Grid controller class */ export class Grid { micrio: HTMLMicrioElement; image: MicrioImage; /** The instanced grid images */ readonly images: MicrioImage[]; /** The currently shown images */ current: MicrioImage[]; /** The grid HTML element */ _grid: HTMLDivElement; /** The image HTML `