import { GlobalChartState } from '../chart_state' ; import { DebugState } from '../types' ; import { getChartContainerDimensionsSelector } from './get_chart_container_dimensions' ; internal export const getDebugStateSelector = ( state ) : DebugState => { if ( state . internalChartState ) { const { height , width } = getChartContainerDimensionsSelector ( state ) ; if ( height * width > 0 ) { return state . internalChartState . getDebugState ( state ) ; } } return { } ; } ;