UNPKG

@antv/g2plot

Version:

An interactive and responsive charting library

23 lines (22 loc) 657 B
import { Types, Element, Geometry } from '@antv/g2'; import { Datum, Data } from './common'; export declare type State = Types.StateOption; /** * @title 状态名称 * @description G2 Element 开放 'active' | 'inactive' | 'selected' | 'default' 四种状态 */ export declare type StateName = 'active' | 'inactive' | 'selected' | 'default'; /** * @title 状态条件 */ export declare type StateCondition = (data: Datum | Data) => boolean; /** * @title 状态对象 * @description 可通过 `plot.getStates()` 获取 */ export declare type StateObject = { data: Datum | Data; state: string; geometry: Geometry; element: Element; };