@egjs/axes
Version:
A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
36 lines (35 loc) • 1.46 kB
TypeScript
export declare const DIRECTION_NONE = 1;
export declare const DIRECTION_LEFT = 2;
export declare const DIRECTION_RIGHT = 4;
export declare const DIRECTION_HORIZONTAL: number;
export declare const DIRECTION_UP = 8;
export declare const DIRECTION_DOWN = 16;
export declare const DIRECTION_VERTICAL: number;
export declare const DIRECTION_ALL: number;
export declare const MOUSE_LEFT = "left";
export declare const MOUSE_RIGHT = "right";
export declare const MOUSE_MIDDLE = "middle";
export declare const MOUSE_BUTTON_CODE_MAP: {
1: string;
2: string;
3: string;
};
export declare const ANY = "any";
export declare const NONE = "none";
export declare const SHIFT = "shift";
export declare const CTRL = "ctrl";
export declare const ALT = "alt";
export declare const META = "meta";
export declare const VELOCITY_INTERVAL = 16;
export declare const AXES_METHODS: readonly ["connect", "disconnect", "get", "setTo", "setBy", "setOptions", "setAxis", "stopAnimation", "updateAnimation", "isBounceArea"];
export declare const AXES_EVENTS: readonly ["hold", "release", "change", "animationStart", "animationEnd", "finish"];
export declare const IOS_EDGE_THRESHOLD = 30;
export declare const IS_IOS_SAFARI: boolean;
export declare const TRANSFORM: string;
export declare const PREVENT_DRAG_CSSPROPS: {
"-webkit-user-select": string;
"-ms-user-select": string;
"-moz-user-select": string;
"user-select": string;
"-webkit-user-drag": string;
};