import { getLegendPositionConfig } from '../../components/legend/position_style' ; import { createCustomCachedSelector } from '../create_selector' ; import { getSettingsSpecSelector } from './get_settings_specs' ; internal export const getLegendConfigSelector = createCustomCachedSelector ( [ getSettingsSpecSelector ] , ( { flatLegend , legendAction , legendColorPicker , legendMaxDepth , legendSize , legendPosition , legendStrategy , onLegendItemClick , showLegend , onLegendItemMinusClick , onLegendItemOut , onLegendItemOver , onLegendItemPlusClick , showLegendExtra , } ) => { return { flatLegend , legendAction , legendColorPicker , legendMaxDepth , legendSize , legendPosition : getLegendPositionConfig ( legendPosition ) , legendStrategy , onLegendItemClick , showLegend , onLegendItemMinusClick , onLegendItemOut , onLegendItemOver , onLegendItemPlusClick , showLegendExtra , } ; } ) ;