@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 • 1.05 kB
JavaScript
export class ACommonMouseProps extends MouseEvent {
constructor(eventType, mouseProp, customProps) {
super(eventType, mouseProp);
Object.assign(this, customProps);
Object.assign(this, customProps.calc);
// const { x, y, z } =
// this.pointer.deltaLandmark ?? DefaultConfig.instance.deltaLandmark;
// this.dX = x;
// this.dY = y;
// this.dZ = z;
// this.distance2D = euclideanDistance(x, y);
// this.distance3D = euclideanDistance(x, y, z);
// this.relativeDist2D = euclideanDistance(x * this.clientX, y * this.clientY);
// this.cursorElement=
// this.previousLandmarks=customProps.previousLandmarks;
// this.currentLandmarks=customProps.currentLandmarks;
// this.deltaLandmarks=customProps.deltaLandmarks;
// this.pointer=customProps.pointer;
// this.time=customProps.time;
// this.timestamp=customProps.time;
// this.deltaTime=0;
}
}
//# sourceMappingURL=vg-pointer-props-abstract.js.map