Files
tools/vue/primitives/src/overlays/tooltip/utils.ts
T
robonen eefd7abf83 feat(primitives): media-editor components, category reorg, perf + type cleanup
Reorganize components into category folders (forms/canvas/overlays/etc.); add the
media-editor headless family (timeline, curve-editor, waveform, crop, color
picker, etc.); apply perf fixes (O(1) collection lookups, plain-object drag
state, gesture-leak teardown, shallowRef color state, rect caching) and replace
source `any` with proper types.
2026-06-15 16:54:29 +07:00

9 lines
355 B
TypeScript

/**
* Custom DOM event dispatched on `document` whenever any tooltip opens.
* Other open tooltips listen for it and close themselves so that only one
* tooltip is visible at a time without coupling them via a global registry.
*/
export const TOOLTIP_OPEN_EVENT = 'tooltip.open';
export type TooltipState = 'closed' | 'delayed-open' | 'instant-open';