Interface SampleModelsPanelParams

interface SampleModelsPanelParams {
    container?: HTMLElement;
    sampleModelsUrl?: string;
    storageKey?: string;
    studio: Studio;
    visible?: boolean;
}

Properties

container?: HTMLElement

DOM container; defaults to document.body.

sampleModelsUrl?: string

URL of the catalog JSON file. Defaults to ${studio.modelsDir}/index.json (typically ../../models/index.json relative to a website example).

storageKey?: string

localStorage key for persisting drag position + closed state. Defaults to "xkt-sam-panel".

studio: Studio

Studio that owns the Scene + Data the catalog loads into.

visible?: boolean

Show on construction (default true).