UNPKG

@antv/g-plugin-gesture

Version:

A G plugin for Gesture implemented with PointerEvents

41 lines 1.16 kB
import type { RenderingPlugin, RenderingPluginContext } from '@antv/g-lite'; import type { GesturePluginOptions } from './interfaces'; export declare class GesturePlugin implements RenderingPlugin { private options; static tag: string; private canvas; private evCache; private startTime; private pressTimeout; private startPoints; private processEvent; private startDistance; private center; private eventType; private direction; private lastMoveTime; private prevMovePoint; private prevMoveTime; private lastMovePoint; private throttleTimer; private emitThrottles; private movingTarget; private isPanListenerInPath; constructor(options: GesturePluginOptions); apply(context: RenderingPluginContext): void; private _start; private _move; private _end; private _cancel; private getEventType; private enable; private isProcess; private emitStart; private _throttleEmit; private emitEnd; private pushEvent; private clearPressTimeout; private refreshAndGetTarget; private reset; } //# sourceMappingURL=GesturePlugin.d.ts.map