import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { getSettingsSpecSelector } from '../../../../state/selectors/get_settings_specs' ; import { Transform } from '../utils/types' ; import { computeChartTransform } from '../utils/utils' ; import { computeChartDimensionsSelector } from './compute_chart_dimensions' ; internal export const computeChartTransformSelector = createCustomCachedSelector ( [ computeChartDimensionsSelector , getSettingsSpecSelector ] , ( chartDimensions , settingsSpecs ) : Transform => computeChartTransform ( chartDimensions . chartDimensions , settingsSpecs . rotation ) ) ;