eefd7abf83
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.
9 lines
355 B
TypeScript
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';
|