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: fix the issue of incorrect background color after cell rotation (#6513)
wpxp1234565944c7beab6a
diff --git a/packages/core/src/sheets/util.ts b/packages/core/src/sheets/util.tsindex 50c137c962..4887e9547b 100644--- a/packages/core/src/sheets/util.ts+++ b/packages/core/src/sheets/util.ts@@ -161,6 +161,7 @@ export function extractOtherStyle(style?: Nullable<IStyleData>): ICellStyle {/*** Pick font style from cell style.+ * Important note: Do not add attributes to this method arbitrarily.* @param format* @returns {IStyleBase} style*/@@ -168,7 +169,7 @@ export function getFontFormat(format?: Nullable<IStyleData>): IStyleBase {if (!format) {return {};}- const { ff, fs, it, bl, ul, st, ol, cl, bg } = format;+ const { ff, fs, it, bl, ul, st, ol, cl } = format;const style: IStyleBase = {};ff && (style.ff = ff);fs && (style.fs = fs);@@ -178,7 +179,6 @@ export function getFontFormat(format?: Nullable<IStyleData>): IStyleBase {st && (style.st = st);ol && (style.ol = ol);cl && (style.cl = cl);- bg && (style.bg = bg);return style;}