@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.
42 lines (41 loc) • 1.15 kB
TypeScript
import { IElementsSizes } from "../utilities/vg-types";
/**
* Hanldes UI of the cursor element and container element
*/
declare class CursorDom {
container: HTMLElement;
cursor: HTMLImageElement;
constructor(container?: HTMLElement);
createDom(): void;
}
/**
* It contains all the properties of the cursor element
*/
export declare class CursorObject extends CursorDom {
_showCursor: boolean;
private _cursorPath;
private _cursorScale;
/**
* width and height of the cursor and whole container
*by default container is body
* @public
* @type {IElementsSizes}
*/
sizes: IElementsSizes;
constructor(container?: HTMLElement);
set showCursor(check: boolean);
/**
* based on the _showCursor property change
* the visibility of the cursor
* @type {*}
*/
toggleCursor(): void;
/**
* protected from the external classes or developer usage
* It initalises the sizes of the cursor and container
* gets updated with resizing screens by resize event
* @returns
*/
protected initialiseSizes: () => IElementsSizes;
}
export {};