/** @jsxImportSource react */ import { BoundedObject, BoundedObjectConfig, BoundedObjectInstance } from "../svg/BoundedObject"; import { Rect } from "../svg/util/Rect"; import { RenderingContext } from "../ui/RenderingContext"; import { NumberProp, StringProp, StyleProp } from "../ui/Prop"; export interface PieLabelConfig extends BoundedObjectConfig { /** Distance from the pie center. Default is `100`. */ distance?: NumberProp; /** Style for the connecting line. */ lineStyle?: StyleProp; /** Stroke color for the connecting line. */ lineStroke?: StringProp; /** CSS class for the connecting line. */ lineClass?: StringProp; /** Color index for the connecting line. */ lineColorIndex?: NumberProp; } export interface PieLabelInstance extends BoundedObjectInstance { originalBounds: Rect; actualBounds: Rect; parentRect: Rect; } export declare class PieLabel extends BoundedObject { baseClass: string; distance: number; lineStyle: any; constructor(config: PieLabelConfig); init(): void; declareData(...args: any[]): void; calculateBounds(context: RenderingContext, instance: PieLabelInstance): Rect; prepare(context: RenderingContext, instance: PieLabelInstance): void; prepareCleanup(context: RenderingContext, instance: PieLabelInstance): void; render(context: RenderingContext, instance: PieLabelInstance, key: string): React.ReactNode; } //# sourceMappingURL=PieLabel.d.ts.map