@univerjs/engine-formula 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +2 -1
- package/lib/es/index.js +4438 -4440
- package/lib/facade.js +2 -1
- package/lib/index.js +4438 -4440
- package/lib/types/engine/reference-object/base-reference-object.d.ts +2 -12
- package/lib/types/engine/reference-object/multi-area-reference-object.d.ts +2 -12
- package/lib/types/facade/f-formula.d.ts +2 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
|
@@ -36,12 +36,7 @@ export declare class BaseReferenceObject extends ObjectClassType {
|
|
|
36
36
|
x: number;
|
|
37
37
|
y: number;
|
|
38
38
|
};
|
|
39
|
-
getRangePosition():
|
|
40
|
-
startRow: number;
|
|
41
|
-
endRow: number;
|
|
42
|
-
startColumn: number;
|
|
43
|
-
endColumn: number;
|
|
44
|
-
};
|
|
39
|
+
getRangePosition(): IRange;
|
|
45
40
|
isReferenceObject(): boolean;
|
|
46
41
|
iterator(callback: (valueObject: Nullable<BaseValueObject>, rowIndex: number, columnIndex: number) => Nullable<boolean>): Nullable<boolean>;
|
|
47
42
|
getFirstCell(): BaseValueObject;
|
|
@@ -120,12 +115,7 @@ export declare class BaseReferenceObject extends ObjectClassType {
|
|
|
120
115
|
getCellPattern(unitId: string, sheetId: string, row: number, column: number): string;
|
|
121
116
|
toArrayValueObject(useCache?: boolean): ArrayValueObject;
|
|
122
117
|
toUnitRange(): {
|
|
123
|
-
range:
|
|
124
|
-
startRow: number;
|
|
125
|
-
endRow: number;
|
|
126
|
-
startColumn: number;
|
|
127
|
-
endColumn: number;
|
|
128
|
-
};
|
|
118
|
+
range: IRange;
|
|
129
119
|
sheetId: string;
|
|
130
120
|
unitId: string;
|
|
131
121
|
};
|
|
@@ -62,19 +62,9 @@ export declare class MultiAreaReferenceObject extends BaseReferenceObject {
|
|
|
62
62
|
* - inner `_areas[row]` dimension => columns
|
|
63
63
|
*/
|
|
64
64
|
toArrayValueObject(): ArrayValueObject;
|
|
65
|
-
getRangePosition():
|
|
66
|
-
startRow: number;
|
|
67
|
-
endRow: number;
|
|
68
|
-
startColumn: number;
|
|
69
|
-
endColumn: number;
|
|
70
|
-
};
|
|
65
|
+
getRangePosition(): import('@univerjs/core').IRange;
|
|
71
66
|
toUnitRange(): {
|
|
72
|
-
range:
|
|
73
|
-
startRow: number;
|
|
74
|
-
endRow: number;
|
|
75
|
-
startColumn: number;
|
|
76
|
-
endColumn: number;
|
|
77
|
-
};
|
|
67
|
+
range: import('@univerjs/core').IRange;
|
|
78
68
|
sheetId: string;
|
|
79
69
|
unitId: string;
|
|
80
70
|
};
|
|
@@ -101,6 +101,7 @@ export declare class FFormula extends FBase {
|
|
|
101
101
|
*/
|
|
102
102
|
calculationEnd(callback: (functionsExecutedState: FormulaExecutedStateType) => void): IDisposable;
|
|
103
103
|
/**
|
|
104
|
+
* @deprecated Use `onCalculationEnd` instead.
|
|
104
105
|
* Wait for computing in the Univer instance to complete. Please note that this does not only include formula calculation,
|
|
105
106
|
* but also other computing tasks, e.g. pivot table calculation.
|
|
106
107
|
* @param {number} [timeout] The maximum time to wait for the computing to complete, in milliseconds. The default
|
|
@@ -118,7 +119,7 @@ export declare class FFormula extends FBase {
|
|
|
118
119
|
*/
|
|
119
120
|
whenComputingCompleteAsync(timeout?: number): Promise<boolean>;
|
|
120
121
|
/**
|
|
121
|
-
*
|
|
122
|
+
* Waits for the formula calculation to complete.
|
|
122
123
|
* @returns {Promise<void>} This method returns a promise that resolves when the calculation is complete.
|
|
123
124
|
*/
|
|
124
125
|
onCalculationEnd(): Promise<void>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IArrayFormulaUni
|
|
|
17
17
|
export { BooleanValue } from './basics/common';
|
|
18
18
|
export { type IOtherFormulaData } from './basics/common';
|
|
19
19
|
export type { IExprTreeNode, ISuperTable, IUnitRowData } from './basics/common';
|
|
20
|
+
export { excelDateSerial } from './basics/date';
|
|
20
21
|
export { isInDirtyRange } from './basics/dirty';
|
|
21
22
|
export { ERROR_TYPE_SET, ErrorType } from './basics/error-type';
|
|
22
23
|
export { type ISheetFormulaError } from './basics/error-type';
|