11 lines
511 B
TypeScript
11 lines
511 B
TypeScript
import { AxisOptionType, AxisType } from './Axis.js';
|
|
import { WindowType } from './utils.js';
|
|
export type PointerEventType = TouchEvent | MouseEvent;
|
|
export type DragTrackerType = {
|
|
pointerDown: (evt: PointerEventType) => number;
|
|
pointerMove: (evt: PointerEventType) => number;
|
|
pointerUp: (evt: PointerEventType) => number;
|
|
readPoint: (evt: PointerEventType, evtAxis?: AxisOptionType) => number;
|
|
};
|
|
export declare function DragTracker(axis: AxisType, ownerWindow: WindowType): DragTrackerType;
|