Adds a gallery of multiple panoramas

Hierarchy

Constructors

Properties

viewer: Viewer
VERSION: string = PKG_VERSION

Expected version of the core DO NOT USE on custom plugins

id: "gallery" = 'gallery'

Unique identifier of the plugin

readonlyOptions: (keyof GalleryPluginConfig)[] = ...

Methods

  • Type Parameters

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

      the name of event

    • E extends Object

      the class of the event

    Parameters

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

    Returns void

  • Sets the list of items

    Parameters

    • items: GalleryItem[]
    • Optional handler: ((id) => void)

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

      Optional
        • (id): void
        • Parameters

          • id: string | number

          Returns void

    Returns void

    Throws

    PSVError if the configuration is invalid

Generated using TypeDoc