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.

Merge branch 'dev' of https://github.com/dream-num/univer into dev

dream-numc31b0c6c8307
diff --cc packages/base-render/src/Component/Sheets/Extensions/Font.ts
index 7e4cf84be0,3186befeaa..d31e04f262
--- a/packages/base-render/src/Component/Sheets/Extensions/Font.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/Font.ts
@@@ -1,10 -1,10 +1,10 @@@
-import { HorizontalAlign, WrapStrategy } from '@univer/core';
+import { HorizontalAlign, IColorStyle, ObjectMatrix, WrapStrategy } from '@univer/core';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
- import { IScale } from '../../../Base/Interfaces';
+ import { IScale } from '../../../Basics/Interfaces';
import { SpreadsheetExtensionRegistry } from '../../Extension';
import { Spreadsheet } from '../Spreadsheet';
- import { fixLineWidthByScale } from '../../../Base/Tools';
+ import { fixLineWidthByScale } from '../../../Basics/Tools';
import { fontCacheItem } from '../Interfaces';
const UNIQUE_KEY = 'DefaultFontExtension';
diff --cc packages/base-sheets/src/SpreadsheetPlugin.tsx
index 813a6d28bb,71439961e3..e20edf908a
--- a/packages/base-sheets/src/SpreadsheetPlugin.tsx
+++ b/packages/base-sheets/src/SpreadsheetPlugin.tsx
@@@ -172,9 -188,39 +188,39 @@@ export class SpreadsheetPlugin extends
// =((1+2)-A1:B2 + 5)/2 + sum(indirect("A5"):B10 + A1:offset("C5", 1, 1), 100)
// =1+(3*4=4)*5+1
// =(-(1+2)--@A1:B2 + 5)/2 + -sum(indirect("A5"):B10# + B6# + A1:offset("C5", 1, 1) , 100) + {1,2,3;4,5,6;7,8,10} + lambda(x,y,z, x*y*z)(sum(1,(1+2)*3),2,lambda(x,y, @offset(A1:B0,x#*y#))(1,2):C20) & "美国人才" + sum((1+2%)*30%, 1+2)%
- // formulaEngine?.calculate(`=lambda(x,y, x*y*x)(sum(1,(1+2)*3),2)`);
+ formulaEngine?.calculate(`=lambda(x,y, x*y*x)(sum(1,(1+2)*3),2)+1-max(100,200)`);
}
+ /**
+ * Convert id to DOM
+ * @param container
+ * @returns
+ */
+ private _initContainer(container: HTMLElement | string) {
+ let sheetContainer = null;
+ if (typeof container === 'string') {
+ const containerDOM = document.getElementById(container);
+ if (containerDOM == null) {
+ sheetContainer = document.createElement('div');
+ sheetContainer.id = container;
+ } else {
+ sheetContainer = containerDOM;
+ }
+ } else if (isElement(container)) {
+ sheetContainer = container;
+ } else {
+ sheetContainer = document.createElement('div');
+ sheetContainer.id = 'universheet';
+ }
+
+ return sheetContainer;
+ }
+
+ /**
+ * Initialize all selections
+ */
+ private _initSelection() {}
+
onMounted(ctx: Context): void {
install(this);