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.

chore: add api to get source nodes (#4534)

ybzky41efc3d45894
diff --git a/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts b/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts
index 5bd919ba8f..3ba24c736c 100644
--- a/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts
+++ b/packages-experimental/sheets-source-binding/src/services/source-binding-service.ts
@@ -247,6 +247,10 @@ export class SheetsSourceBindService extends Disposable {
}
}
+ getBindingModelBySourceId(sourceId: string) {
+ return this._sheetsBindingManager.getBindingModelBySourceId(sourceId);
+ }
+
private _registerInterceptor() {
this.disposeWithMe(this._sheetInterceptorService.intercept(INTERCEPTOR_POINT.CELL_CONTENT, {
effect: InterceptorEffectEnum.Value | InterceptorEffectEnum.Style,