Micrio Client - v6.0.0
    Preparing search index...

    Class Grid

    Controls the display and interaction logic for grid layouts. Instantiated on the primary MicrioImage if grid data is present. Accessed via micrioImage.grid.

    Index

    Constructors

    Properties

    aniDurationIn: number = 1.5

    Default animation duration (seconds) when transitioning into a new layout or focused view.

    aniDurationOut: number = 0.5

    Default animation duration (seconds) when transitioning out of a focused view or going back in history.

    clickable: boolean = false

    If true, the HTML grid overlay remains visible and interactive even when an image is focused.

    current: MicrioImage[] = []

    Array of MicrioImage instances currently visible in the grid layout.

    depth: Writable<number> = ...

    Writable Svelte store indicating the current depth in the grid history stack.

    focussed: Writable<MicrioImage> = ...

    Writable Svelte store holding the currently focused MicrioImage instance, or undefined if in grid view.

    history: GridHistory[] = []

    Array storing the history of grid layouts for back navigation.

    The MicrioImage instance acting as the virtual container for the grid.

    images: MicrioImage[] = []

    Array of MicrioImage instances currently part of the grid definition (loaded).

    markersShown: Writable<MicrioImage[]> = ...

    Writable Svelte store holding an array of MicrioImage instances whose markers should be displayed in the grid view.

    The main HTMLMicrioElement instance.

    transitionDelay: number = .5

    Delay (seconds) between individual image transitions for 'delayed' effects.

    Accessors

    Methods

    • Do an (external) action

      Parameters

      • action: string | GridActionType

        The action type enum or string

      • Optionaldata: string

        Optional action data

      • Optionalduration: number

        Optional action duration

      Returns void

    • Go back one step in the grid history

      Parameters

      • Optionalduration: number

        Optional duration for transition

      Returns Promise<void>

      Promise when the transition is complete

    • Unfocusses any currently focussed image

      Returns void

    • Enlarge a specific image idx of the currently shown grid

      Parameters

      • idx: number

        The image index of the current grid

      • width: number

        The image target number of columns

      • height: number = width

        The image target number of rows

      Returns Promise<MicrioImage[]>

      Promise when the transition is completed

    • Fly to the viewports of any markers containing a class name

      Parameters

      • Optionaltag: string

        The class name to match

      • Optionalduration: number

        Optional duration in ms

      • OptionalnoZoom: boolean

        Don't zoom into the markers, just filter the images

      Returns Promise<MicrioImage[]>

      Promise when the transition is complete

    • Open a grid image full size and set it as the main active image

      Parameters

      Returns Promise<void>

      Promise for when the transition completes

    • Parses an individual image grid string into a GridImage object.

      Parameters

      • s: string

        The grid string for a single image.

      Returns GridImage

      The parsed Models.Grid.GridImage object.

    • Checks whether current viewed image is (part of) grid

      Returns boolean

    • Reset the grid to its initial layout

      Parameters

      • Optionalduration: number

        Duration in seconds

      • OptionalnoCamAni: boolean

        Don't do any camera animating

      • OptionalforceAni: boolean

        Force animation on all grid images

      Returns Promise<MicrioImage[]>

      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.

      Parameters

      • input: string | MicrioImage[] | ({ image: MicrioImage } & GridImageOptions)[] = ''

        The grid definition. Can be:

        • A semicolon-separated string following the format defined in Grid.getString.
        • An array of MicrioImage instances.
        • An array of objects {image: MicrioImage, ...GridImageOptions}.
      • opts: {
            columns?: number;
            cover?: boolean;
            coverLimit?: boolean;
            duration?: number;
            forceAni?: boolean;
            forceAreaAni?: boolean;
            horizontal?: boolean;
            keepGrid?: boolean;
            noBlur?: boolean;
            noCamAni?: boolean;
            noFade?: boolean;
            noHistory?: boolean;
            scale?: number;
            transition?: GridSetTransition;
            view?: CameraArray;
        } = {}

        Options controlling the transition and layout.

      Returns Promise<MicrioImage[]>

      A Promise that resolves with the array of currently displayed MicrioImage instances when the transition completes.