UNPKG

@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.

27 lines (26 loc) 991 B
import { InputType } from "./inputType/InputType"; import { Axis } from "./AxisManager"; import Axes from "./Axes"; import { AnimationParam } from "./types"; import { AnimationManager } from "./animation/AnimationManager"; export interface ChangeEventOption { input: InputType; event: any; } export declare class EventManager { private _axes; holdingCount: number; animationManager: AnimationManager; constructor(_axes: Axes); hold(pos: Axis, option: ChangeEventOption): void; triggerRelease(param: AnimationParam): void; triggerChange(pos: Axis, depaPos?: Axis, option?: ChangeEventOption, holding?: boolean): boolean; triggerAnimationStart(param: AnimationParam): boolean; triggerAnimationEnd(isTrusted?: boolean): void; triggerFinish(isTrusted?: boolean): void; setAnimationManager(animationManager: AnimationManager): void; destroy(): void; private _createUserControll; private _getRoundPos; private _getBounceRatio; }