UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

22 lines (21 loc) 786 B
import { Button } from "./IInputManager"; import { IInputManagerSettings } from "./InputManager"; import { IPoint } from "@aurigma/design-atoms-model"; 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; }