import type { IntentProps } from '../../../../core/slots/Intent/Intent.js'; import type { AnnotationsTooltipConfig } from '../../../core/components/annotations/components/tooltip/types/annotations-tooltip-props.js'; import type { AnnotationsTrackConfig } from '../../../core/components/annotations/types/annotations-track-props.js'; import type { AnnotationsActionsHandler } from '../../../core/components/annotations/types/annotations.js'; import type { ColorRuleProps } from '../../../core/types/color-rule.js'; import type { LegendProps } from '../../../core/types/legend.js'; import type { ValueRepresentation } from '../../../core/types/scales.js'; import type { SelectProps } from '../../../histogram/slots/Select.js'; import type { HistogramThresholdIndicatorProps } from '../../../histogram/slots/ThresholdIndicator.js'; import type { HistogramChartToolbarProps, HistogramChartXAxisProps, HistogramChartYAxisProps } from '../../../histogram/types/histogram-props.js'; import type { HistogramToolbarSlotProps } from '../../../histogram/types/toolbar.js'; import type { XYChartLogAxisProps, XYChartNumericalAxisProps } from '../../../xy-chart/types/xy-chart-props.js'; import type { LEFT_POSITION, RIGHT_POSITION } from '../../../xy-chart/types/xy-chart.js'; export interface HistogramAnnotationsSlots { tracks: AnnotationsTrackConfig[]; tooltip: AnnotationsTooltipConfig | undefined; showLabels?: boolean; visibleTracksLimit?: number; annotationsActions?: AnnotationsActionsHandler; } export interface HistogramSlots { disableZoom: boolean; disablePan: boolean; legend: LegendProps; selectActions?: SelectProps['actions']; colorRules: ColorRuleProps[]; thresholds: HistogramThresholdIndicatorProps[]; yAxis: HistogramChartYAxisProps[]; xAxis: HistogramChartXAxisProps; toolbar: HistogramToolbarSlotProps; deprecatedToolbar: HistogramChartToolbarProps; intents?: IntentProps[]; annotations?: HistogramAnnotationsSlots; } export type MappedPositionedAxes = { left?: Omit; right?: Omit; }; export type YAxisPosition = typeof LEFT_POSITION | typeof RIGHT_POSITION; export type YAxisProps = Pick & { position: YAxisPosition; valueRepresentation?: ValueRepresentation; }; export type XAxisProps = Pick;