13 lines
897 B
TypeScript
13 lines
897 B
TypeScript
/** Dropdown UI component for layer navigation */
|
|
import type { LayerInfo, DropdownCallbacks } from "./types.js";
|
|
/** Create the dropdown DOM element with layer items */
|
|
export declare function createDropdownElement(layers: LayerInfo[], currentElement: Element | null, callbacks: DropdownCallbacks): HTMLDivElement;
|
|
/** Add chevron indicator and pointer-events to the label */
|
|
export declare function enhanceLabelWithChevron(label: HTMLDivElement): void;
|
|
/** Show the dropdown below the label element */
|
|
export declare function showDropdown(label: HTMLDivElement, layers: LayerInfo[], currentElement: Element | null, callbacks: DropdownCallbacks): void;
|
|
/** Close the active dropdown and clean up listeners */
|
|
export declare function closeDropdown(): void;
|
|
/** Check if a dropdown is currently visible */
|
|
export declare function isDropdownOpen(): boolean;
|
|
//# sourceMappingURL=dropdown-ui.d.ts.map
|