import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { Size } from '../../../../utils/dimensions' ; import { getPanelSize } from '../../utils/panel' ; import { PerPanelMap , getPerPanelMap } from '../../utils/panel_utils' ; import { computeSmallMultipleScalesSelector } from './compute_small_multiple_scales' ; internal export type PanelGeoms = Array < Size & PerPanelMap > ; internal export const computePanelsSelectors = createCustomCachedSelector ( [ computeSmallMultipleScalesSelector ] , ( scales ) : PanelGeoms => { const panelSize = getPanelSize ( scales ) ; return getPerPanelMap ( scales , ( ) => panelSize ) ; } ) ;