import { Circle } from './circle'; import type { BaseStyleProps, DisplayObjectConfig, Group } from '@antv/g'; import type { CategoricalPalette } from '../../palettes/types'; import type { DonutRound, Prefix } from '../../types'; import type { CircleStyleProps } from './circle'; /** * 甜甜圈节点样式配置项 * * Donut node style props */ export interface DonutStyleProps extends CircleStyleProps, Prefix<'donut', BaseStyleProps> { /** * 内环半径,使用百分比或者像素值 * * Inner ring radius, using percentage or pixel value. * @defaultValue '50%' */ innerR?: string | number; /** * 圆环数据 * * Donut data. */ donuts?: number[] | DonutRound[]; /** * 颜色或者色板名 * * Color or palette. * @defaultValue 'tableau' */ donutPalette?: string | CategoricalPalette; } /** * 甜甜圈节点 * * Donut node */ export declare class Donut extends Circle { static defaultStyleProps: Partial; constructor(options: DisplayObjectConfig); private parseOuterR; private parseInnerR; protected drawDonutShape(attributes: Required, container: Group): void; render(attributes: Required, container?: Group): void; }