Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Hierarchy (View Summary)

    Index
    object: Record<string, unknown>

    Target object containing the property

    property: string

    Property name being controlled

    label: string

    Display label (defaults to property name)

    domElement: HTMLElement

    Root DOM element for this controller

    $input?: HTMLInputElement | HTMLSelectElement

    Input element (varies by controller type)

    changeCallbacks: ChangeCallback<number>[] = []

    Change callbacks

    finishChangeCallbacks: FinishChangeCallback<number>[] = []

    Finish change callbacks

    eventManager: EventManager

    Event manager for cleanup

    isVisible: boolean = true

    Visibility state

    type: ControllerType = ControllerType.NUMBER

    Controller type (for internal discrimination)

    minValue?: number
    maxValue?: number
    stepValue?: number
    slider?: HTMLInputElement
    input: HTMLInputElement
    wheelFinishTimer?: Timeout

    Debounce timer for wheel finishChange

    initialValue: number

    Initial value at construction time (for double-click reset)

    customUpdateDisplay?: () => void

    Custom display override (for logarithmic patterns)

    • Override updateDisplay method (for logarithmic sliders)

      This allows rendering-controls to implement custom display logic

      Parameters

      • fn: () => void

        Custom update function

      Returns void

    • Override of Controller.setValue that:

      • rejects NaN (would silently corrupt downstream comparisons), and
      • clamps every other input — including ±Infinity and finite values outside [min, max] — into the configured range via the same constrainValue helper the DOM event paths use.

      Without this override the inherited base setValue performs a raw assignment, so a programmatic caller writing setValue(NaN) or setValue(1e20) would silently corrupt the model. Documented as a round-11 audit OOS finding.

      Parameters

      • value: number

      Returns this