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(drawing): fix the incorrect position of floating images (#6498)
wpxp123456af68ca8917d7
diff --git a/packages/sheets-drawing-ui/src/controllers/sheet-drawing-transform-affected.controller.ts b/packages/sheets-drawing-ui/src/controllers/sheet-drawing-transform-affected.controller.tsindex 306385ca8a..6597afeeef 100644--- a/packages/sheets-drawing-ui/src/controllers/sheet-drawing-transform-affected.controller.ts+++ b/packages/sheets-drawing-ui/src/controllers/sheet-drawing-transform-affected.controller.ts@@ -1225,8 +1225,8 @@ export class SheetDrawingTransformAffectedController extends Disposable implemenconst { unitId, subUnitId, worksheet } = target;let ranges: IRange[] = [];- if ('range' in params) {- ranges = params.range as IRange[];+ if ('ranges' in params) {+ ranges = params.ranges;} else if ('rowsAutoHeightInfo' in params) {ranges = params.rowsAutoHeightInfo.map((info) => ({startRow: info.row,