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(sheet): zoom blur border (#786)
Univer54b52f11c2ba
diff --git a/packages/engine-render/src/components/sheets/spreadsheet.ts b/packages/engine-render/src/components/sheets/spreadsheet.tsindex 0ac2435a2c..2cbdf4351a 100644--- a/packages/engine-render/src/components/sheets/spreadsheet.ts+++ b/packages/engine-render/src/components/sheets/spreadsheet.ts@@ -699,12 +699,17 @@ export class Spreadsheet extends SheetComponent {for (const dataCache of dataMergeCache) {const { startRow, endRow, startColumn, endColumn } = dataCache;- const startY = rowHeightAccumulation[startRow - 1] || 0;- const endY = rowHeightAccumulation[endRow] || rowHeightAccumulation[rowHeightAccumulation.length - 1];-- const startX = columnWidthAccumulation[startColumn - 1] || 0;- const endX =- columnWidthAccumulation[endColumn] || columnWidthAccumulation[columnWidthAccumulation.length - 1];+ const startY = fixLineWidthByScale(rowHeightAccumulation[startRow - 1] || 0, scale);+ const endY = fixLineWidthByScale(+ rowHeightAccumulation[endRow] || rowHeightAccumulation[rowHeightAccumulation.length - 1],+ scale+ );++ const startX = fixLineWidthByScale(columnWidthAccumulation[startColumn - 1] || 0, scale);+ const endX = fixLineWidthByScale(+ columnWidthAccumulation[endColumn] || columnWidthAccumulation[columnWidthAccumulation.length - 1],+ scale+ );ctx.clearRect(startX, startY, endX - startX, endY - startY);