UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

15 lines (14 loc) 430 B
import { Ref } from '@vue/reactivity'; import { Vector2 } from 'three'; export declare class CursorMoveMonitor { private _lastCursorPosSet; private _movedCursorDistance; private cursorRef; private _lastCursorPos; constructor(); private _bound; addPointermoveEventListener(cursorRef: Ref<Vector2>): void; removeEventListener(): void; movedCursorDistance(): number; private _onPointermove; }