Adds a gallery of multiple panoramas

Hierarchy (View Summary)

Constructors

Properties

viewer: Viewer
id: "gallery" = 'gallery'

Unique identifier of the plugin

readonlyOptions: (keyof GalleryPluginConfig)[] = ...
VERSION: string = PKG_VERSION

Expected version of the core DO NOT USE on custom plugins

Methods

  • Type Parameters

    • T extends "show-gallery" | "hide-gallery"

      the name of event

    • E extends GalleryPluginEvents & { type: T }

      the class of the event

    Parameters

    • type: "show-gallery" | "hide-gallery"
    • callback: EventListenerObject | (e: E) => void
    • Optionaloptions: boolean | EventListenerOptions

    Returns void

  • Sets the list of items

    Parameters

    • items: GalleryItem[]
    • Optionalhandler: (id: string | number) => void

      function that will be called when an item is clicked instead of the default behavior

    Returns void

    PSVError if the configuration is invalid