Skip to content

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.

feat(drawing-ui): refresh transform after rendering images (#4994)

ZhangWei453d99290063
diff --git a/packages/drawing-ui/src/controllers/image-update.controller.ts b/packages/drawing-ui/src/controllers/image-update.controller.ts
index 9fc51fee8b..5f2a494f58 100644
--- a/packages/drawing-ui/src/controllers/image-update.controller.ts
+++ b/packages/drawing-ui/src/controllers/image-update.controller.ts
@@ -179,6 +179,7 @@ export class ImageUpdateController extends Disposable {
}
const images = await this._drawingRenderService.renderImages(imageParam, renderObject.scene);
+ this._drawingManagerService.refreshTransform([imageParam]);
if (images == null || images.length === 0) {
return;