import { LegendPositionConfig } from '../specs/settings' ; import { LayoutDirection } from './common' ; internal export const isHorizontalLegend = ( legendPosition ) => legendPosition . direction === LayoutDirection . Horizontal ; internal export const isHierarchicalLegend = ( flatLegend , legendPosition ) => ! flatLegend && ! isHorizontalLegend ( legendPosition ) ;