import { Subject } from 'rxjs'; import { ColorGenerator } from '../utils/color-generator.js'; import { ARLASDonutTooltip, DonutNode, DonutTooltip, TreeNode } from './utils/DonutUtils.js'; export declare class DonutParams { /** * @description Id of the donut. */ id: any; /** * @description Data displayed on the donut. Each node's size must be specified */ donutData: TreeNode; /** * @description Sets the opacity of non-hovered or non-selected nodes. */ opacity: number; /** * @description Css class name to use to customize a specific powerbar's style. */ customizedCssClass: any; /** * @description List of selected nodes. */ selectedArcsList: Array>; /** * @description Whether the donut is multi-selectable. */ multiselectable: boolean; /** * @description Emits the list of selected nodes and the paths to their ultimate parent */ selectedNodesEvent: Subject>>; /** * @description Emits the hovered node and the path to it's parents. * The key of the map is the node's name and the value is its color on the donut. */ hoveredNodesEvent: Subject>; /** * @deprecated * @description Emits the tooltip of the hovered node. */ hoveredNodeTooltipEvent: Subject; /** * @description Emits the tooltip of the hovered node. */ tooltipEvent: Subject; /** * @description Tooltip displayed when a node is hovered. */ tooltip: ARLASDonutTooltip; /** * @description D3 nodes diplayed on the donut. */ donutNodes: Array; /** * @description The SVG element that's the donut is built on. */ svgElement: SVGElement; /** * @description The div element that wraps the donut component. */ donutContainer: HTMLElement; /** * @description List of [key, color] couples that associates a hex color to each key */ keysToColors: Array<[string, string]>; /** * @description Knowing that saturation scale is [0, 1], `colorsSaturationWeight` is a * factor (between 0 and 1) that tightens this scale to [(1-colorsSaturationWeight), 1]. * Therefore colors saturation of donuts arcs will be within this tightened scale.. */ colorsSaturationWeight: number; /** * @description an object that implements ColorGenerator interface. */ donutNodeColorizer: ColorGenerator; numberFormatChar: string; /** Dimensions */ diameter: number; containerWidth: number; }