import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getChartThemeSelector } from '../../../../state/selectors/get_chart_theme' ; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs' ; import { withTextMeasure } from '../../../../utils/bbox/canvas_text_bbox_calculator' ; import { computeSeriesGeometries } from '../utils/utils' ; import { getFallBackTickFormatter } from './compute_axis_ticks_dimensions' ; import { computeSeriesDomainsSelector } from './compute_series_domains' ; import { computeSmallMultipleScalesSelector } from './compute_small_multiple_scales' ; import { getSeriesColorsSelector } from './get_series_color_map' ; import { getSeriesSpecsSelector , getAxisSpecsSelector } from './get_specs' ; import { isHistogramModeEnabledSelector } from './is_histogram_mode_enabled' ; internal export const computeSeriesGeometriesSelector = createCustomCachedSelector ( [ getSeriesSpecsSelector , computeSeriesDomainsSelector , getSeriesColorsSelector , getChartThemeSelector , getSettingsSpecSelector , getAxisSpecsSelector , computeSmallMultipleScalesSelector , isHistogramModeEnabledSelector , getFallBackTickFormatter , ] , ( specs , domain , colors , theme , settings , axis , smScales , isHistogram , fallbackFormatter ) => { return withTextMeasure ( ( measureText ) => computeSeriesGeometries ( specs , domain , colors , theme , settings , axis , smScales , isHistogram , fallbackFormatter , measureText ) ) ; } ) ;