UNPKG

@learn-hunger/visual-gestures

Version:

VisualGestures.js is a package that empowers users to effortlessly control the cursor, including actions such as hover, click, drag, and drop, through precise finger movements in the air.

24 lines (23 loc) 1.06 kB
import { ICalculations, IElementsSizes, IElementsStates, IGestureCustomProps, IPointer } from "../../utilities/vg-types"; import { INormalizedLandmark } from "../../utilities/vg-types-handlandmarks"; import { VgHandLandmarksDTO } from "../DTO/vg-handlandmark"; export declare abstract class ACommonMouseProps extends MouseEvent implements IGestureCustomProps, ICalculations { distance2D: number; distance3D: number; relativeDist2D: number; time: { timeStamp: number; deltaTime: number; } | undefined; constructor(eventType: string, mouseProp: MouseEventInit, customProps: IGestureCustomProps); structuredLandmarks?: VgHandLandmarksDTO | undefined; previousStructuredLandmarks?: VgHandLandmarksDTO | undefined; sizes?: IElementsSizes | undefined; cursorSpeed: number; element?: IElementsStates | undefined; cursorElement: HTMLImageElement; previousLandmarks?: INormalizedLandmark[]; currentLandmarks?: INormalizedLandmark[]; deltaLandmarks?: INormalizedLandmark[]; pointer: IPointer; }