@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.
44 lines (43 loc) • 1.15 kB
TypeScript
export declare const cursorParentStyle = "\n position:absolute;\n width:100%;\n height:100%;\n top:0;\n left:0;\n";
export declare const cursorStyle = "\n position:absolute;\n left:50%;\n top:50%;\n width:64px;\n height:64px;\n scale:1;\n";
export declare enum EHandLandmarks {
WRIST = 0,
THUMB_MCP = 1,
THUMB_PIP = 2,
THUMP_DIP = 3,
THUMB_TIP = 4,
INDEX_MCP = 5,
INDEX_PIP = 6,
INDEX_DIP = 7,
INDEX_TIP = 8,
MIDDLE_MCP = 9,
MIDDLE_PIP = 10,
MIDDLE_DIP = 11,
MIDDLE_TIP = 12,
RING_MCP = 13,
RING_PIP = 14,
RING_DIP = 15,
RING_TIP = 16,
PINKY_MCP = 17,
PINKY_PIP = 18,
PINKY_DIP = 19,
PINKY_TIP = 20
}
export declare enum EVgMouseEvents {
MOUSE_MOVE = "vgpointermove",
MOUSE_LEAVE = "vgpointerleave",
MOUSE_ENTER = "vgpointerenter",
MOUSE_DOWN = "vgpointerdown",
MOUSE_UP = "vgpointerup",
MOUSE_CLICK = "vgpointerclick",
MOUSE_DROP = "vgpointerdrop",
MOUSE_DRAG = "vgpointerdrag"
}
export declare enum EFingers {
WRIST = 0,
THUMB = 1,
INDEX = 2,
MIDDLE = 3,
RING = 4,
PINKY = 5
}