const pivotColumns = (spec, context)=>{
    const { advancedVSeed } = context;
    const { encoding } = advancedVSeed;
    const dimensions = advancedVSeed.dimensionTree;
    const columns = dimensions.filter((item)=>encoding.column?.includes(item.id));
    return {
        ...spec,
        columns: columns.map((item)=>({
                dimensionKey: item.id,
                title: item.alias || item.id,
                width: 'auto'
            }))
    };
};
export { pivotColumns };

//# sourceMappingURL=pivotColumns.js.map