import type { Root } from "../../core/Root"; import type { DataItem } from "../../core/render/Component"; import type { HierarchyNode } from "./HierarchyNode"; import type { Bullet } from "../../core/render/Bullet"; import type { Series } from "../../core/render/Series"; import { Partition, IPartitionPrivate, IPartitionSettings, IPartitionDataItem } from "./Partition"; import { ListTemplate } from "../../core/util/List"; import { Slice } from "../../core/render/Slice"; import { RadialLabel } from "../../core/render/RadialLabel"; import { Percent } from "../../core/util/Percent"; import * as d3hierarchy from "d3-hierarchy"; /** * @ignore */ export interface ISunburstDataObject { name?: string; value?: number; children?: ISunburstDataObject[]; dataItem?: DataItem; } export interface ISunburstDataItem extends IPartitionDataItem { /** * Data items of child nodes. */ children: Array>; /** * Data item of a parent node. */ parent: DataItem; /** * @ignore */ d3PartitionNode: d3hierarchy.HierarchyRectangularNode; /** * A [[Slice]] element of the node. */ slice: Slice; } export interface ISunburstSettings extends IPartitionSettings { /** * Start angle of the series. * * @default -90 */ startAngle?: number; /** * End angle of the series. * * @default 270 */ endAngle?: number; /** * Inner radius of the suburst pie. * * Setting to negative number will mean pixels from outer radius. * * @default 0 */ innerRadius?: number | Percent; /** * Outer radius of the sunburst pie. * * @default 100% */ radius?: number | Percent; } export interface ISunburstPrivate extends IPartitionPrivate { /** * @ignore */ dr: number; /** * @ignore */ dx: number; /** * @ignore */ innerRadius: number; /** * @ignore */ hierarchySize?: number; } /** * Builds a sunburst diagram. * * @see {@link https://www.amcharts.com/docs/v5/charts/hierarchy/sunburst/} for more info * @important */ export declare class Sunburst extends Partition { _settings: ISunburstSettings; _privateSettings: ISunburstPrivate; _dataItemSettings: ISunburstDataItem; protected _tag: string; static className: string; static classNames: Array; _partitionLayout: d3hierarchy.PartitionLayout; _rootNode: d3hierarchy.HierarchyRectangularNode | undefined; /** * A list of node slice elements in a [[Sunburst]] chart. * * @default new ListTemplate */ readonly slices: ListTemplate; /** * A list of label elements in a [[Hierarchy]] chart. * * @default new ListTemplate */ readonly labels: ListTemplate; protected _afterNew(): void; _prepareChildren(): void; protected _updateVisuals(): void; protected _updateNode(dataItem: DataItem): void; protected _updateNodesScale(hierarchyNode: d3hierarchy.HierarchyRectangularNode): void; protected _makeNode(dataItem: DataItem, node: HierarchyNode): void; protected _updateLabel(dataItem: DataItem): void; protected _zoom(dataItem: DataItem): void; protected _handleSingle(dataItem: DataItem): void; _positionBullet(bullet: Bullet): void; protected _makeBullet(dataItem: DataItem, bulletFunction: (root: Root, series: Series, dataItem: DataItem) => Bullet | undefined, index?: number): Bullet | undefined; } //# sourceMappingURL=Sunburst.d.ts.map