import type { AgNumericAxisFormattableLabelOptions } from '../../chart/axisOptions'; import type { ContextCallbackParams, DatumCallbackParams, HighlightState } from '../../chart/callbackOptions'; import type { AgChartLabelOptions } from '../../chart/labelOptions'; import type { AgSeriesTooltip, AgSeriesTooltipRendererParams } from '../../chart/tooltipOptions'; import type { ContextDefault, CssColor, DatumDefault, DatumKey, Opacity, PixelSize } from '../../chart/types'; import type { AgBaseCartesianThemeableOptions, AgBaseHighlightStyleOptions, AgBaseSeriesOptions, AgHighlightOptions } from '../seriesOptions'; import type { AgColorType, FillOptions, LineDashOptions, StrokeOptions } from './commonOptions'; export interface AgConeFunnelSeriesLabelOptions extends AgChartLabelOptions { /** Spacing between label and the associated divider. */ spacing?: PixelSize; /** The placement of the label in relation to the divider between drop-offs. */ placement?: 'before' | 'middle' | 'after'; } export interface AgConeFunnelSeriesStageLabelOptions extends AgNumericAxisFormattableLabelOptions { /** Placement of the label in relation to the chart. */ placement?: 'before' | 'after'; } export interface AgConeFunnelSeriesItemStylerParams extends DatumCallbackParams, ContextCallbackParams, AgConeFunnelSeriesOptionsKeys, Required { } export interface AgConeFunnelSeriesStyle extends FillOptions, StrokeOptions, LineDashOptions { } export interface AgConeFunnelSeriesLabelFormatterParams extends AgConeFunnelSeriesOptionsKeys { } export interface AgConeFunnelSeriesTooltipRendererParams extends AgConeFunnelSeriesOptionsKeys, AgConeFunnelSeriesOptionsNames, AgSeriesTooltipRendererParams, AgConeFunnelSeriesStyle { } export interface AgConeFunnelSeriesThemeableOptions extends Omit, 'showInMiniChart' | 'showInLegend' | 'selection'>, LineDashOptions { /** The colours to cycle through for the fills of the drop-offs. */ fills?: AgColorType[]; /** The colours to cycle through for the strokes of the drop-offs. */ strokes?: CssColor[]; /** The opacity of the fill for the drop-offs. */ fillOpacity?: Opacity; /** The opacity of the stroke for the drop-offs. */ strokeOpacity?: Opacity; /** The width in pixels of the stroke for the drop-offs. */ strokeWidth?: PixelSize; /** Bar rendering direction. */ direction?: 'horizontal' | 'vertical'; /** Configuration for the labels shown on between drop-offs. */ label?: AgConeFunnelSeriesLabelOptions, TContext>; /** Configuration for the stage labels. */ stageLabel?: AgConeFunnelSeriesStageLabelOptions; /** Series-specific tooltip configuration. */ tooltip?: AgSeriesTooltip>; /** Configuration for highlighting when a series or legend item is hovered over. */ highlight?: AgHighlightOptions; } export interface AgConeFunnelSeriesOptionsKeys { /** The key to use to retrieve stage values from the data. */ stageKey: DatumKey; /** The key to use to retrieve values from the data. */ valueKey: DatumKey; } export interface AgConeFunnelSeriesOptionsNames { } export interface AgConeFunnelSeriesOptions extends Omit, 'highlight' | 'showInLegend' | 'selection'>, AgConeFunnelSeriesOptionsKeys, AgConeFunnelSeriesOptionsNames, AgConeFunnelSeriesThemeableOptions { /** Configuration for the Cone Funnel Series. */ type: 'cone-funnel'; }