import type { IAreaGraphicAttribute, IGroupGraphicAttribute, ILineGraphicAttribute, ITextGraphicAttribute } from '@visactor/vrender-core'; import type { Dict, IPointLike, SegmentAttributes } from '@visactor/vchart'; export type BarLinkDatum = { areaPoints: [IPointLike, IPointLike]; linePoints: [IPointLike, IPointLike]; id?: string; color?: string; data: [Dict, Dict]; }; export interface BarLinkAttrs extends IGroupGraphicAttribute { data: BarLinkDatum[]; linkType?: 'total' | 'value'; doFill?: boolean; linkStyle?: Pick; areaStyle?: IAreaGraphicAttribute; styleMap?: Record; label?: { visible?: boolean; style?: ITextGraphicAttribute; formatMethod?: (value: number, percent: number, data: [any, any]) => (string | number) | (string | number)[]; }; }