UNPKG

@motion-core/motion-gpu

Version:

Framework-agnostic WebGPU runtime for fullscreen WGSL shaders with explicit Svelte, React, and Vue adapter entrypoints.

16 lines 765 B
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; type UsePointerOptionsSource = UsePointerOptions | (() => UsePointerOptions); /** * Tracks normalized pointer coordinates and click/tap snapshots for the active `FragCanvas`. */ export declare function usePointer(options?: UsePointerOptionsSource): UsePointerResult; //# sourceMappingURL=use-pointer.d.ts.map