import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getChartThemeSelector } from '../../../../state/selectors/get_chart_theme' ; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs' ; import { AxisId } from '../../../../utils/ids' ; import { computeAnnotationDimensions } from '../../annotations/utils' ; import { computeSeriesGeometriesSelector } from './compute_series_geometries' ; import { computeSmallMultipleScalesSelector } from './compute_small_multiple_scales' ; import { getAxesStylesSelector } from './get_axis_styles' ; import { getAxisSpecsSelector , getAnnotationSpecsSelector } from './get_specs' ; import { isHistogramModeEnabledSelector } from './is_histogram_mode_enabled' ; const getAxisStyleGetter = createCustomCachedSelector ( [ getAxesStylesSelector , getChartThemeSelector ] , ( axisStyles , { axes } ) => ( id = '' ) => axisStyles . get ( id ) ?? axes ) ; internal export const computeAnnotationDimensionsSelector = createCustomCachedSelector ( [ getAnnotationSpecsSelector , getSettingsSpecSelector , computeSeriesGeometriesSelector , getAxisSpecsSelector , isHistogramModeEnabledSelector , computeSmallMultipleScalesSelector , getAxisStyleGetter , ] , computeAnnotationDimensions ) ;