import type { TruncationMode } from '../../../../typography/text-ellipsis/TextEllipsis.js'; import type { AnnotationsConfigProperties } from '../../../core/components/annotations/types/annotations-config-properties.js'; import type { PointsDisplay } from '../../../core/components/canvas/types/canvas-shape.js'; import type { ColorPalette, CustomColorPalette } from '../../../core/types/color-palette.js'; import { ColorRuleProps } from '../../../core/types/color-rule.js'; import type { TimeGapPolicy } from '../../../core/types/gap-policy.js'; import type { ChartInteractionsConfig, ZoomInteractions } from '../../../core/types/interactions.js'; import type { ValueRepresentation } from '../../../core/types/scales.js'; import type { DateThresholdConfig } from '../../../core/types/thresholds.js'; import type { SeriesCurve } from '../../../core/types/timeseries.js'; import type { WithId } from '../../../core/types/with-id.js'; import type { TimeseriesChartLegendProps } from '../../../timeseries/slots/Legend.js'; import type { TimeseriesSelectProps } from '../../../timeseries/slots/Select.js'; import type { TimeseriesChartTooltipProps } from '../../../timeseries/slots/Tooltip.js'; import type { TimeseriesChartXAxisProps } from '../../../timeseries/slots/XAxis.js'; import type { TimeseriesChartYAxisProps } from '../../../timeseries/slots/YAxis.js'; import type { AnnotationsSlotsConfig } from '../utils/collect-annotations-slots.js'; import type { TimeseriesChartToolbarConfig, TimeseriesToolbarInternalProps } from './toolbar.js'; /** * Resolved config + slots consumed by `createTimeseriesConfiguration`. */ export type TimeseriesZoomDomain = Date[] | number[]; export interface TimeseriesChartSlots { toolbar: TimeseriesToolbarInternalProps; legend: TimeseriesChartLegendProps; xAxis?: TimeseriesChartXAxisProps; tooltip: TimeseriesChartTooltipProps; yAxis: TimeseriesChartYAxisProps[]; annotations?: AnnotationsSlotsConfig; thresholds: DateThresholdConfig[]; interactions: ChartInteractionsConfig; select?: TimeseriesSelectProps; colorRules: ColorRuleProps[]; } export interface TimeseriesChartConfigProperties extends ZoomInteractions { gapPolicy?: TimeGapPolicy; pointsDisplay?: PointsDisplay; valueRepresentation?: ValueRepresentation; tooltip?: TimeseriesChartTooltipProps; annotations?: AnnotationsConfigProperties; toolbar?: TimeseriesChartToolbarConfig; interactions?: ChartInteractionsConfig; legend?: TimeseriesChartLegendProps; xAxis?: TimeseriesChartXAxisProps; yAxis?: TimeseriesChartYAxisProps[]; colorPalette?: ColorPalette | CustomColorPalette; truncationMode?: TruncationMode; thresholdIndicators?: DateThresholdConfig[]; curve?: SeriesCurve; infiniteZoom?: boolean; colorRules?: ColorRuleProps[]; pan?: { disabled?: boolean; }; zoom?: { disabled?: boolean; }; } export type TimeseriesChartTooltipConfig = Required; export interface TimeseriesChartLegendConfig extends Required> { onRatioChange?: (ratio: number) => void; initialRatio?: TimeseriesChartLegendProps['initialRatio']; } export interface TimeseriesChartConfigProps extends ZoomInteractions { gapPolicy?: TimeGapPolicy; pointsDisplay?: PointsDisplay; valueRepresentation?: ValueRepresentation; colorPalette?: ColorPalette | CustomColorPalette; truncationMode?: TruncationMode; curve?: SeriesCurve; infiniteZoom?: boolean; select?: TimeseriesSelectProps; } export interface TimeseriesChartYAxisConfig { left?: TimeseriesChartYAxisProps; right?: TimeseriesChartYAxisProps; } export type TimeseriesChartXAxisConfig = TimeseriesChartXAxisProps; export type TimeseriesChartThresholdConfig = DateThresholdConfig; export interface TimeseriesChartThresholdsConfig { left?: WithId[]; right?: WithId[]; } export interface TimeseriesChartConfiguration extends ZoomInteractions { gapPolicy: TimeGapPolicy; pointsDisplay: PointsDisplay; valueRepresentation: ValueRepresentation; colorPalette: ColorPalette | CustomColorPalette; tooltip: TimeseriesChartTooltipConfig; interactions: ChartInteractionsConfig; toolbar?: TimeseriesToolbarInternalProps; legend: TimeseriesChartLegendConfig; xAxis?: TimeseriesChartXAxisConfig; yAxis: TimeseriesChartYAxisConfig; annotations: AnnotationsSlotsConfig | undefined; truncationMode: TruncationMode; thresholds?: TimeseriesChartThresholdsConfig; curve?: SeriesCurve; infiniteZoom: boolean; select?: TimeseriesSelectProps; colorRules: ColorRuleProps[]; } //# sourceMappingURL=timeseries-config.d.ts.map