UNPKG

@pmndrs/pointer-events

Version:

framework agnostic pointer-events implementation for threejs

19 lines (18 loc) 698 B
import { Object3D, Vector3 } from 'three'; import { IntersectionOptions } from '../intersections/index.js'; import { GetCamera, Pointer, PointerOptions } from '../pointer.js'; export type LinesPointerOptions = { /** * @default 0 * distance to intersection in local space */ minDistance?: number; /** * points for that compose the lines * @default [new Vector3(0,0,0), new Vector3(0,0,1)] */ linePoints?: Array<Vector3>; } & PointerOptions & IntersectionOptions; export declare function createLinesPointer(getCamera: GetCamera, space: { current?: Object3D | null; }, pointerState: any, options?: LinesPointerOptions, pointerType?: string): Pointer;