const initHeatmap = (spec, context)=>{
    const result = {
        ...spec
    };
    const { advancedVSeed } = context;
    const { datasetReshapeInfo } = advancedVSeed;
    const { unfoldInfo, foldInfo } = datasetReshapeInfo[0];
    result.type = 'heatmap';
    result.direction = 'vertical';
    result.xField = unfoldInfo.encodingX;
    result.yField = unfoldInfo.encodingY;
    result.seriesField = unfoldInfo.encodingColorId;
    result.valueField = foldInfo.measureValue;
    result.padding = 0;
    result.region = [
        {
            clip: true
        }
    ];
    result.animation = true;
    return result;
};
export { initHeatmap };

//# sourceMappingURL=heatmap.js.map