import { ComponentConfigInterface } from '../../core/component/config'; import { ColorAccessor, GenericAccessor, NumericAccessor, StringAccessor } from '../../types/accessor'; import { FillPatternType } from '../../styles/patterns'; import { NestedDonutDirection, NestedDonutLayerSettings, NestedDonutSegment } from './types'; export interface NestedDonutConfigInterface extends ComponentConfigInterface { /** Diagram angle range. Default: `[0, 2 * Math.PI]` */ angleRange?: [number, number]; /** * Direction of hierarchy flow from root to leaf. * `NestedDonutDirection.Inwards` starts from the outer most radius and works towards center * `NestedDonutDirection.Outwards` starts from the inner most radius the consecutive layers outward. * Default: `NestedDonutDirection.Inwards` */ direction?: NestedDonutDirection | string; value?: NumericAccessor; /** Central label text. Default: `undefined` */ centralLabel?: string; /** Central sub-label accessor function or text. Default: `undefined` */ centralSubLabel?: string; /** Enables wrapping for the sub-label. Default: `true` */ centralSubLabelWrap?: boolean; /** * Show donut background. The color is configurable via * the `--vis-nested-donut-background-color` and `--vis-dark-nested-donut-background-color` CSS variables. * Default: `false` */ showBackground?: boolean; /** Sort function for segments. Default `undefined` */ sort?: (a: NestedDonutSegment, b: NestedDonutSegment) => number; /** Array of accessor functions to defined the nested groups. Default: `[]` */ layers: StringAccessor[]; /** * Configuration properties for individual layers. Accepts an accessor or constant of type: * { * backgroundColor?: string; * labelAlignment?: NestedDonutSegmentLabelAlignment; * width?: number | string; * } */ layerSettings?: GenericAccessor; layerPadding?: number; /** Corner Radius. Default: `0` */ cornerRadius?: number; /** Angular size for empty segments in radians. Default: `Math.PI / 180` */ emptySegmentAngle?: number; /** Hide segment labels when they don't fit. Default: `true` */ hideOverflowingSegmentLabels?: boolean; /** Color accessor function for segments. Default: `undefined` */ segmentColor?: ColorAccessor>; /** Fill pattern accessor for segments. Resolves to a `FillPatternType`. Default: `undefined` */ segmentPattern?: GenericAccessor>; /** Segment label accessor function. Default `undefined` */ segmentLabel?: StringAccessor>; /** Color accessor function for segment labels */ segmentLabelColor?: ColorAccessor>; /** * When true, the component will display empty segments (the ones that have `0` values) as tiny slices. * Default: `false` */ showEmptySegments?: boolean; /** Show labels for individual segments. Default: `true` */ showSegmentLabels?: boolean; } export declare const NestedDonutDefaultConfig: NestedDonutConfigInterface;