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.

23 lines (22 loc) 949 B
import { IGestureCustomProps } from "../../utilities/vg-types"; import { ACommonMouseProps } from "../abstracts/vg-pointer-props-abstract"; import { IVgCommonMethods } from "../interfaces/vg-common-event-methods"; /** * custom Event which is fired when the user do finger motion visual action * it is triggered from AvgPointerMove class * when the user moves his hand(by default index finger is taken as pointer) * it gets dispatched */ export declare class VgPointerMove extends ACommonMouseProps implements IVgCommonMethods { constructor(mouseProp: MouseEventInit, customProps: IGestureCustomProps); /** * to set the cursor path or image like hand pointer image etc * TODO since the fluctations are high between the events , * the image is getting fluctuated so currently hold */ setCursor(): void; /** * move the cursor in between the viewport using position values */ moveCursor(): void; }