const titleOnDimension = (spec)=>{
    const { rows = [], columns = [], indicatorsAsCol, indicators = [] } = spec;
    const rowsLength = rows.length + (indicatorsAsCol ? 0 : indicators?.length > 0 ? 1 : 0);
    return {
        ...spec,
        corner: {
            titleOnDimension: rowsLength <= 1 && columns.length >= 1 && !indicatorsAsCol ? 'column' : 'row'
        }
    };
};
export { titleOnDimension };

//# sourceMappingURL=titleOnDimension.js.map