@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
26 lines (25 loc) • 804 B
TypeScript
import { Button } from "./IInputManager";
import { IInputManagerSettings } from "./InputManager";
declare type IPoint = {
x: number;
y: number;
};
export declare class PointerInputHelper {
private _lastDownPoint;
private _clicks;
private _settings;
constructor(settings: IInputManagerSettings);
get lastDownPoint(): IPoint;
onButtonDown(point: IPoint): void;
onButtonUp(point: IPoint, isTouch: boolean, button: Button): number;
isButtonDown(): boolean;
isInDownUpThresholdArea: (point: IPoint, isTouch: boolean) => boolean;
private _isInClickThresholdArea;
private _isInClickTimeSpan;
private _isInThresholdArea;
private _getThreshold;
private _addClick;
private _getLastClick;
private _reset;
}
export {};