Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(docs): render table cell bg (#4904)
Ran Luo966c58241d7c
diff --git a/packages/engine-render/src/components/docs/document.ts b/packages/engine-render/src/components/docs/document.tsindex e7b63ae861..9c8562bc22 100644--- a/packages/engine-render/src/components/docs/document.ts+++ b/packages/engine-render/src/components/docs/document.ts@@ -794,10 +794,8 @@ export class Documents extends DocComponent {if (backgroundColor && backgroundColor.rgb) {ctx.save();ctx.fillStyle = backgroundColor.rgb;- ctx.beginPath();- ctx.rectByPrecision(x, y, pageWidth, pageHeight);- ctx.closePath();- ctx.fill();+ ctx.fillRectByPrecision(x, y, pageWidth, pageHeight);+ ctx.restore();}ctx.save();