Interface DistanceMeasurementsPanelParams

Construction parameters for DistanceMeasurementsPanel.

interface DistanceMeasurementsPanelParams {
    container?: HTMLElement;
    storageKey?: string;
    tool: DistanceMeasurementTool;
    visible?: boolean;
}

Properties

container?: HTMLElement

DOM container for the panel and its reopen pill. Defaults to document.body.

storageKey?: string

localStorage key for the panel's drag-position and closed-state persistence. Defaults to "xkt-dm-panel".

The tool whose measurements the panel lists. The panel is scoped to the tool's DistanceMeasurementTool.view | View for its per-View singleton registry.

visible?: boolean

Show on construction. Defaults to true. When false, the panel mounts hidden and the floating reopen pill is shown.