UNPKG

@tachui/modifiers

Version:

Essential styling modifiers for tachUI framework

31 lines 1.09 kB
/** * AllowsHitTesting Modifier * * Controls whether an element can receive pointer events. * When disabled, pointer events pass through to elements behind. */ import { BaseModifier } from '../base'; import type { DOMNode } from '@tachui/core/runtime/types'; import type { ModifierContext } from '../types'; export interface AllowsHitTestingOptions { enabled: boolean; } export declare class AllowsHitTestingModifier extends BaseModifier<AllowsHitTestingOptions> { readonly type = "allowsHitTesting"; readonly priority = 95; apply(_node: DOMNode, context: ModifierContext): DOMNode | undefined; private setupHitTesting; } /** * Factory function for allowsHitTesting modifier */ export declare function allowsHitTesting(enabled: boolean): AllowsHitTestingModifier; /** * Convenience factory for enabling hit testing */ export declare function enableHitTesting(): AllowsHitTestingModifier; /** * Convenience factory for disabling hit testing */ export declare function disableHitTesting(): AllowsHitTestingModifier; //# sourceMappingURL=allows-hit-testing.d.ts.map