@antv/g-plugin-gesture
Version:
A G plugin for Gesture implemented with PointerEvents
12 lines • 468 B
TypeScript
import type { PointLike as Point } from '@antv/g-lite';
/**
* TODO: use clock from g later.
*/
export declare const clock: Performance | DateConstructor;
export declare const calcDirection: (start: Point, end: Point) => "right" | "left" | "down" | "up";
export declare const calcDistance: (point1: Point, point2: Point) => number;
export declare const getCenter: (point1: Point, point2: Point) => {
x: number;
y: number;
};
//# sourceMappingURL=util.d.ts.map