Interface ViewerConfigPanelParams

interface ViewerConfigPanelParams {
    container?: HTMLElement;
    storageKey?: string;
    studio?: Studio;
    viewer: Viewer;
    visible?: boolean;
}

Properties

container?: HTMLElement

DOM container; defaults to document.body.

storageKey?: string

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

studio?: Studio

Optional helper that wires the panel's "New View" footer button and the per-View destroy buttons. When absent, both actions still work — "New View" calls Viewer.createView({}) and destroy calls view.destroy() — but the helper's per-View bookkeeping (auto-canvas, CameraFlight, controllers) is skipped.

viewer: Viewer

Viewer to inspect and edit. Doubles as the WeakMap key for ViewerConfigPanel.openFor idempotence — one panel per Viewer.

visible?: boolean

Show on construction (default true).