UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

24 lines (23 loc) 532 B
import { Canvas } from '@antv/g'; import BasePlot from '../plot'; interface ControllerConfig { canvas: Canvas; plot: BasePlot; } export default class EventController { private plot; private canvas; private pixelRatio; private eventHandlers; private lastShape; constructor(cfg: ControllerConfig); bindEvents(): void; clearEvents(): void; private addEvent; private onEvents; private onMove; private isShapeInView; private getEventObj; private onLayerEvent; } export {};