Interface IssuesPanelParams

interface IssuesPanelParams {
    container?: HTMLElement;
    data: Data;
    renderer: WebGLRenderer;
    scene: Scene;
    storageKey?: string;
    studioEvents?: { onError?: any; onWarning?: any };
    viewer: Viewer;
    visible?: boolean;
}

Properties

container?: HTMLElement

DOM container; defaults to document.body.

data: Data

Data to monitor.

renderer: WebGLRenderer

WebGLRenderer to monitor.

scene: Scene

Scene to monitor.

storageKey?: string

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

studioEvents?: { onError?: any; onWarning?: any }

Optional Studio.events hub to monitor. When supplied, the panel adds a fifth "studio" section that surfaces every studio.reportError / studio.reportWarning dispatch alongside the four subsystem channels. Omit when constructing the panel headlessly (without a Studio in front).

viewer: Viewer

The Viewer whose attached components (Scene, Data, Viewer, WebGLRenderer) this panel monitors. Doubles as the WeakMap key for IssuesPanel.openFor idempotence — one Issues panel per Viewer.

visible?: boolean

Show on construction (default false — the panel only pops itself open once an error actually fires).