import type { TruncationMode } from '../../../typography/text-ellipsis/TextEllipsis.js'; import type { AnnotationsTooltipConfig, AnnotationsTooltipProps } from '../../core/components/annotations/components/tooltip/types/annotations-tooltip-props.js'; import type { TextOverflowOptions } from '../../core/components/annotations/types/marker.js'; import type { XAxisConfig, XAxisConfigProps } from '../components/axis/types/annotations-x-axis-props.js'; /** * Configuration properties for AnnotationsChart * @public */ export type AnnotationsChartConfigProperties = { showLabels?: boolean; height?: number | string; xAxisConfig?: XAxisConfigProps; tooltipConfig?: AnnotationsTooltipProps; labelWidth?: number; textOverflow?: TextOverflowOptions; truncateMode?: TruncationMode; /** * Maximum number of lines used for clamping the default tooltip content * (header text, series name, and series description) on each marker entry. * Values greater than `1` enable multi-line wrapping before truncation is * applied. * @defaultValue 1 */ maxLines?: number; }; /** * Configuration for AnnotationsChart * @internal */ export type AnnotationsChartConfigRequiredProps = { showLabels: boolean; height?: number | string; xAxisConfig: XAxisConfig; tooltipConfig: AnnotationsTooltipConfig; textOverflow: TextOverflowOptions; truncateMode: TruncationMode; maxLines: number; labelWidth: number; };