@motion-core/motion-gpu
Version:
Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.
15 lines • 681 B
TypeScript
import { type PointerControllerOptions, type PointerControllerResult } from '../core/pointer.js';
export type { PointerClick, PointerFrameRequestMode, PointerKind, PointerPoint, PointerState } from '../core/pointer.js';
/**
* Configuration for pointer input handling in `usePointer`.
*/
export type UsePointerOptions = PointerControllerOptions;
/**
* Reactive state returned by `usePointer`.
*/
export type UsePointerResult = PointerControllerResult;
/**
* Tracks normalized pointer coordinates and click/tap snapshots for the active `FragCanvas`.
*/
export declare function usePointer(options?: UsePointerOptions): UsePointerResult;
//# sourceMappingURL=use-pointer.d.ts.map