@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.
19 lines (18 loc) • 658 B
TypeScript
import { ElementType } from "../types";
import { PanInput, PanInputOption } from "./PanInput";
export declare class RotatePanInput extends PanInput {
private _rotateOrigin;
private _prevAngle;
private _prevQuadrant;
private _lastDiff;
private _coefficientForDistanceToAngle;
constructor(el: ElementType, options?: PanInputOption);
mapAxes(axes: string[]): void;
protected _onPanstart(event: MouseEvent): void;
protected _onPanmove(event: MouseEvent): void;
protected _onPanend(event: MouseEvent): void;
private _triggerChange;
private _getDifference;
private _getPosFromOrigin;
private _getQuadrant;
}