Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    Index
    current?: {
        item: ControlRailItem;
        el: HTMLDivElement;
        btn: HTMLButtonElement;
        kind: "flyout" | "popover";
        teardown?: () => void;
    }

    The currently-open overlay (chip flyout OR panel popover) + its DOM, or undefined when none is open. teardown is the popover builder's cleanup (undefined for chip flyouts).

    • Open a vertical panel popover anchored to btn, hosting the rich controls built by the item's popover.build. Mirrors the flyout's glass surface + real-child arrow, but flows content vertically and vertically clamps within the viewport (popovers can be tall).

      Parameters

      Returns void

    • Close the overlay if a pointerdown landed outside it (and its opener).

      Parameters

      • e: PointerEvent

      Returns void

    • A button's top edge in the rail root's coordinate space — what an absolutely positioned popover/flyout child of the root needs for style.top. Equals btn.offsetTop while the items wrapper is layout-transparent (fine pointers), and stays correct when the wrapper is a scroll box (coarse pointers), where offsetTop would ignore its scrollTop.

      Parameters

      • btn: HTMLElement

      Returns number