UNPKG

@antv/g2plot

Version:

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

25 lines (24 loc) 564 B
import { View } from '@antv/g2'; export interface DiffLabelcfg { view: View; fields: string[]; formatter: (text: string, item: object, idx: number) => string; style?: { fill?: string; stroke?: string; strokeOpacity?: number; [k: string]: any; }; } export default class DiffLabel { private view; private fields; private container; private formatter; private textAttrs; constructor(cfg: DiffLabelcfg); /** 绘制辅助labels */ draw(): void; clear(): void; private _init; }