import { ChartType } from '../../..' ; import { SpecType } from '../../../../specs' ; import { GlobalChartState } from '../../../../state/chart_state' ; import { getSpecsFromStore } from '../../../../state/utils' ; import { PartitionSpec } from '../../specs' ; internal export function getPartitionSpecs ( state ) { return getSpecsFromStore < PartitionSpec > ( state . specs , ChartType . Partition , SpecType . Series ) ; } internal export function getPartitionSpec ( state ) { const partitionSpecs = getPartitionSpecs ( state ) ; return partitionSpecs . length > 0 ? partitionSpecs [ 0 ] : null ; }