import type { TruncationMode } from '@dynatrace/strato-components/typography'; import type { ConvertibleUnit, FormatOptions, Unit } from '@dynatrace-sdk/units'; import type { HoneycombTileShape } from './honeycomb.js'; import type { ChartUnit } from '../../core/types/chart-unit.js'; import type { ColorPalette } from '../../core/types/color-palette.js'; import type { ColoredRange } from '../../core/types/colored-range.js'; import type { Formatter } from '../../core/types/formatter.js'; import type { ChartToolbarProps } from '../../core/types/toolbar.js'; import type { HoneycombLegendProps } from '../slots/HoneycombLegend.js'; /** * Honeycomb toolbar configuration * @public */ export type HoneycombChartToolbarConfiguration = ChartToolbarProps & { downloadData?: { enabled: boolean; }; }; /** * Interface exposed to let consumer configure slots within Honeycomb * @public */ export interface HoneycombChartProperties { /** Honeycomb shape to be applied as configuration */ shape?: HoneycombTileShape; /** Honeycomb color scheme to be applied as configuration */ colorScheme?: ColorPalette | ColoredRange[] | { [key: string]: string; }; /** Honeycomb legend configuration */ legend?: HoneycombLegendProps; /** Honeycomb toolbar configuration */ toolbar?: HoneycombChartToolbarConfiguration; /** * Custom formatter for honeycomb's tiles values */ formatter?: Formatter | FormatOptions; /** * The custom unit for honeycomb's tiles values. */ unit?: ChartUnit; /** truncation mode to be used in legend and tooltip */ truncationMode?: TruncationMode; /** The min value configuration to display */ min?: number; /** The max value configuration to display */ max?: number; /** Show/hide labels and values within the nodes */ showLabels?: boolean; }