UNPKG

@alicloud/cloud-charts

Version:

![](https://img.shields.io/npm/v/@alicloud/cloud-charts?color=%23ff8200)

24 lines (23 loc) 711 B
import { Chart, Event } from '@antv/g2/esm/core'; declare type Coordinate = 'x' | 'y' | 'xy'; interface ConnectConfig { type?: 'position' | 'data'; coordinate?: Coordinate; } declare class G2ConnectFilter { charts: Chart[]; config: ConnectConfig; isBrushing: boolean; startPoint: [number, number]; endPoint: [number, number]; mask: any; constructor(charts?: Chart[], config?: ConnectConfig); add(...charts: Chart[]): void; remove(...charts: Chart[]): void; destroy(): void; handleMouseEnter: () => void; handleMouseDown: (e: Event) => void; handleMouseMove: (e: Event) => void; handleMouseUp: (e: Event) => void; } export default G2ConnectFilter;