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
feat(docs-drawing-ui): doc float dom influence on sheet float-dom (#4834)
ZhangWei40acdc2514b1
diff --git a/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts b/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.tsindex 4e042689dc..0ddca0cb0f 100644--- a/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts+++ b/packages/docs-drawing-ui/src/controllers/doc-float-dom.controller.ts@@ -130,6 +130,11 @@ export class DocFloatDomController extends Disposable {private _insertRects(params: IDrawingSearch[]) {(params).forEach(async (param) => {const { unitId } = param;+ const documentDataModel = this._univerInstanceService.getUnit(unitId, UniverInstanceType.UNIVER_DOC);+ if (!documentDataModel) {+ return;+ }+const renderObject = this._getSceneAndTransformerByDrawingSearch(unitId);if (renderObject == null) {