import { hasMostlyRTLItems } from '../../../../../utils/common' ; import { PerPanelAxisGeoms } from '../../../state/selectors/compute_per_panel_axes_geoms' ; internal export function hasMostlyRTL ( geoms ) { const labels = geoms . flatMap ( ( { axesGeoms } ) => { return axesGeoms . flatMap ( ( { visibleTicks } ) => { return visibleTicks . filter ( ( { value , label } ) => typeof value === 'string' && label !== '' ) . map ( ( { label } ) => label ) ; } ) ; } ) ; return hasMostlyRTLItems ( labels ) ; }