import type { MapConfig } from '../../../core/MapConfig' import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig' /** * Configuration for pie chart composition maps. */ export interface PieMapConfig extends MapConfig { /** Pie-specific rendering settings. */ pieSettings?: { innerRadius?: number } /** Consolidated composition symbol settings. */ compositionSettings?: { type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone' /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */ radarValueMode?: 'share' | 'absolute' minSize?: number maxSize?: number strokeFill?: string strokeWidth?: number reverseOrder?: boolean /** Category code order for composition rendering. */ order?: string[] stripesOrientation?: number offsetAngle?: number agePyramidHeightFactor?: number otherColor?: string otherText?: string } /** Cat colors. */ catColors?: Record /** Cat labels. */ catLabels?: Record /** Show only when complete. */ showOnlyWhenComplete?: boolean /** No data fill style. */ noDataFillStyle?: string /** Dorling. */ dorling?: boolean /** Total code used to compute optional 'other' composition share. */ compositionTotalCode?: string /** Stat codes. */ statCodes?: string[] /** * Fill styles for categorical exceptions, keyed by raw value - colors the matching region's * own polygon, independently of its pie symbol. */ categoryFillStyle?: { [rawValue: string]: string } /** Legend and tooltip labels for categorical exceptions, keyed by raw value. */ categoryText?: { [rawValue: string]: string } /** Legend. */ legend?: PieChartLegendConfig | false }