UNPKG

@tachui/modifiers

Version:

Essential styling modifiers for tachUI framework

41 lines 1.38 kB
/** * OnContinuousHover Modifier * * Tracks continuous hover with real-time coordinate updates. * Supports both local and global coordinate spaces. */ import { BaseModifier } from '../base'; import type { DOMNode } from '@tachui/core/runtime/types'; import type { ModifierContext } from '../types'; export interface OnContinuousHoverOptions { coordinateSpace?: 'local' | 'global'; perform: (location: { x: number; y: number; } | null) => void; } export declare class OnContinuousHoverModifier extends BaseModifier<OnContinuousHoverOptions> { readonly type = "onContinuousHover"; readonly priority = 70; apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined; private setupContinuousHover; } /** * Factory function for onContinuousHover modifier */ export declare function onContinuousHover(options: OnContinuousHoverOptions): OnContinuousHoverModifier; /** * Convenience factory for local coordinate tracking */ export declare function onContinuousHoverLocal(perform: (location: { x: number; y: number; } | null) => void): OnContinuousHoverModifier; /** * Convenience factory for global coordinate tracking */ export declare function onContinuousHoverGlobal(perform: (location: { x: number; y: number; } | null) => void): OnContinuousHoverModifier; //# sourceMappingURL=on-continuous-hover.d.ts.map