@univerjs/engine-formula 0.12.0-nightly.202511220628 → 0.12.0
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/LICENSE +176 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +9058 -9346
- package/lib/index.js +9058 -9346
- package/lib/types/basics/common.d.ts +0 -12
- package/lib/types/basics/statistical.d.ts +0 -53
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +0 -6
- package/lib/types/engine/value-object/array-value-object.d.ts +0 -5
- package/lib/types/engine/value-object/base-value-object.d.ts +0 -1
- package/lib/types/engine/value-object/primitive-object.d.ts +2 -23
- package/lib/types/functions/math/subtotal/index.d.ts +16 -4
- package/lib/types/functions/statistical/large/index.d.ts +1 -0
- package/lib/types/functions/statistical/median/index.d.ts +1 -0
- package/lib/types/functions/statistical/mode-sngl/index.d.ts +1 -0
- package/lib/types/functions/statistical/percentile-exc/index.d.ts +1 -0
- package/lib/types/functions/statistical/percentile-inc/index.d.ts +1 -0
- package/lib/types/functions/statistical/quartile-exc/index.d.ts +1 -0
- package/lib/types/functions/statistical/quartile-inc/index.d.ts +1 -0
- package/lib/types/functions/statistical/small/index.d.ts +1 -0
- package/lib/types/index.d.ts +2 -3
- package/lib/types/models/formula-data.model.d.ts +1 -6
- package/lib/types/services/current-data.service.d.ts +1 -3
- package/lib/types/services/runtime.service.d.ts +1 -5
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
- package/lib/types/commands/mutations/set-image-formula-data.mutation.d.ts +0 -9
- package/lib/types/functions/lookup/image/index.d.ts +0 -8
- package/lib/types/functions/math/aggregate/index.d.ts +0 -14
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IUnitRange, Nullable, ObjectMatrix, Styles } from '@univerjs/core';
|
|
2
|
-
import { IImageFormulaInfo } from '../engine/value-object/primitive-object';
|
|
3
2
|
export declare const ERROR_VALUE_OBJECT_CLASS_TYPE = "errorValueObject";
|
|
4
3
|
export declare const ASYNC_OBJECT_CLASS_TYPE = "asyncObject";
|
|
5
4
|
export declare const REFERENCE_OBJECT_CLASS_TYPE = "referenceObject";
|
|
@@ -103,17 +102,6 @@ export interface IFeatureDirtyRangeType {
|
|
|
103
102
|
[sheetId: string]: IRange[];
|
|
104
103
|
}>;
|
|
105
104
|
}
|
|
106
|
-
export interface IRuntimeImageFormulaDataType extends IImageFormulaInfo {
|
|
107
|
-
unitId: string;
|
|
108
|
-
sheetId: string;
|
|
109
|
-
row: number;
|
|
110
|
-
column: number;
|
|
111
|
-
}
|
|
112
|
-
export interface IUnitImageFormulaDataType {
|
|
113
|
-
[unitId: string]: Nullable<{
|
|
114
|
-
[sheetId: string]: ObjectMatrix<Nullable<IImageFormulaInfo>>;
|
|
115
|
-
}>;
|
|
116
|
-
}
|
|
117
105
|
export interface IArrayFormulaUnitCellType extends IRuntimeUnitDataPrimitiveType {
|
|
118
106
|
}
|
|
119
107
|
export interface IFormulaData {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { BaseReferenceObject, FunctionVariantType } from '../engine/reference-object/base-reference-object';
|
|
2
|
-
import { MultiAreaReferenceObject } from '../engine/reference-object/multi-area-reference-object';
|
|
3
1
|
import { BaseValueObject, ErrorValueObject } from '../engine/value-object/base-value-object';
|
|
4
|
-
import { FormulaDataModel } from '../models/formula-data.model';
|
|
5
2
|
export declare function betaCDF(x: number, alpha: number, beta: number): number;
|
|
6
3
|
export declare function betaPDF(x: number, alpha: number, beta: number): number;
|
|
7
4
|
export declare function betaINV(probability: number, alpha: number, beta: number): number;
|
|
@@ -70,53 +67,3 @@ export declare function getKnownsArrayCoefficients(knownYsValues: number[][], kn
|
|
|
70
67
|
newX: number[][];
|
|
71
68
|
XTXInverse: number[][];
|
|
72
69
|
};
|
|
73
|
-
/**
|
|
74
|
-
* Parse aggregate data references into multi-area refs and normal refs, currently only used in functions like SUBTOTAL and AGGREGATE.
|
|
75
|
-
* If there is any invalid reference, return isError as true.
|
|
76
|
-
*/
|
|
77
|
-
export declare function parseAggregateDataRefs(refs: FunctionVariantType[]): {
|
|
78
|
-
isError: boolean;
|
|
79
|
-
multiAreaRefs: MultiAreaReferenceObject[];
|
|
80
|
-
normalRefs: BaseReferenceObject[];
|
|
81
|
-
};
|
|
82
|
-
export declare enum AggregateFunctionType {
|
|
83
|
-
AVERAGE = "AVERAGE",
|
|
84
|
-
COUNT = "COUNT",
|
|
85
|
-
COUNTA = "COUNTA",
|
|
86
|
-
MAX = "MAX",
|
|
87
|
-
MIN = "MIN",
|
|
88
|
-
PRODUCT = "PRODUCT",
|
|
89
|
-
STDEV = "STDEV",
|
|
90
|
-
STDEV_S = "STDEV.S",
|
|
91
|
-
STDEVP = "STDEVP",
|
|
92
|
-
STDEV_P = "STDEV.P",
|
|
93
|
-
SUM = "SUM",
|
|
94
|
-
VAR = "VAR",
|
|
95
|
-
VAR_S = "VAR.S",
|
|
96
|
-
VARP = "VARP",
|
|
97
|
-
VAR_P = "VAR.P",
|
|
98
|
-
MEDIAN = "MEDIAN",
|
|
99
|
-
MODE_SNGL = "MODE.SNGL"
|
|
100
|
-
}
|
|
101
|
-
export type modeSnglValueCountMapType = Record<number, {
|
|
102
|
-
count: number;
|
|
103
|
-
order: number;
|
|
104
|
-
}>;
|
|
105
|
-
export declare function getModeSnglResult(valueCountMap: modeSnglValueCountMapType, valueMaxCount: number): BaseValueObject;
|
|
106
|
-
export interface IAggregateIgnoreOptions {
|
|
107
|
-
ignoreRowHidden: boolean;
|
|
108
|
-
ignoreErrorValues: boolean;
|
|
109
|
-
ignoreNested: boolean;
|
|
110
|
-
}
|
|
111
|
-
export declare function getAggregateResult(options: {
|
|
112
|
-
type: AggregateFunctionType;
|
|
113
|
-
formulaDataModel: FormulaDataModel;
|
|
114
|
-
} & IAggregateIgnoreOptions, refs: BaseReferenceObject[]): BaseValueObject;
|
|
115
|
-
export declare function getArrayValuesByAggregateIgnoreOptions(array: FunctionVariantType, options?: IAggregateIgnoreOptions, formulaDataModel?: FormulaDataModel): number[] | ErrorValueObject;
|
|
116
|
-
export declare function getMedianResult(array: number[]): BaseValueObject;
|
|
117
|
-
export declare function getLargeResult(array: number[], k: number): BaseValueObject;
|
|
118
|
-
export declare function getSmallResult(array: number[], k: number): BaseValueObject;
|
|
119
|
-
export declare function getPercentileIncResult(array: number[], k: number): BaseValueObject;
|
|
120
|
-
export declare function getPercentileExcResult(array: number[], k: number): BaseValueObject;
|
|
121
|
-
export declare function getQuartileIncResult(array: number[], quart: number): BaseValueObject;
|
|
122
|
-
export declare function getQuartileExcResult(array: number[], quart: number): BaseValueObject;
|
|
@@ -12,7 +12,6 @@ interface IInjectDefinedNameParam {
|
|
|
12
12
|
unitId: Nullable<string>;
|
|
13
13
|
getValueByName(unitId: string, name: string): Nullable<IDefinedNamesServiceParam>;
|
|
14
14
|
getDirtyDefinedNameMap(): IDirtyUnitSheetDefinedNameMap;
|
|
15
|
-
getSheetName: (unitId: string, sheetId: string) => string;
|
|
16
15
|
}
|
|
17
16
|
export declare class LexerTreeBuilder extends Disposable {
|
|
18
17
|
private _currentLexerNode;
|
|
@@ -56,10 +55,6 @@ export declare class LexerTreeBuilder extends Disposable {
|
|
|
56
55
|
* =sum({}{})
|
|
57
56
|
*/
|
|
58
57
|
private _formulaSpellCheck;
|
|
59
|
-
/**
|
|
60
|
-
* ={0,1,2,3,4,5,6} + {0;1;2;3;4;5;6}*7
|
|
61
|
-
*/
|
|
62
|
-
private _passArrayOperator;
|
|
63
58
|
getSequenceNode(sequenceArray: ISequenceArray[]): (string | ISequenceNode)[];
|
|
64
59
|
private _processPushSequenceNode;
|
|
65
60
|
private _getCurrentParamIndex;
|
|
@@ -77,7 +72,6 @@ export declare class LexerTreeBuilder extends Disposable {
|
|
|
77
72
|
nodeMakerTest(formulaString: string): ErrorType.VALUE | (string | LexerNode)[] | undefined;
|
|
78
73
|
treeBuilder(formulaString: string, transformSuffix?: boolean, injectDefinedNameParam?: IInjectDefinedNameParam): ErrorType.VALUE | LexerNode | (string | LexerNode)[] | undefined;
|
|
79
74
|
private _handleDefinedName;
|
|
80
|
-
private _getHasSheetNameDefinedName;
|
|
81
75
|
private _handleNestedDefinedName;
|
|
82
76
|
private _simpleCheckDefinedName;
|
|
83
77
|
private _checkDefinedNameDirty;
|
|
@@ -172,11 +172,6 @@ export declare class ArrayValueObject extends BaseValueObject {
|
|
|
172
172
|
atan2(valueObject: BaseValueObject): BaseValueObject;
|
|
173
173
|
atan2Inverse(valueObject: BaseValueObject): BaseValueObject;
|
|
174
174
|
mean(ddof?: number): BaseValueObject;
|
|
175
|
-
/**
|
|
176
|
-
* TODO: @DR-Univer
|
|
177
|
-
* This calculation method contains an error, please note.
|
|
178
|
-
* Please refer `getMedianResult` function in /engine-formula/src/basics/statistical.ts
|
|
179
|
-
*/
|
|
180
175
|
median(): BaseValueObject;
|
|
181
176
|
/**
|
|
182
177
|
* ┌──────────────┬────────────────────────────────┬───────────────────┐
|
|
@@ -149,35 +149,15 @@ export declare class NumberValueObject extends BaseValueObject {
|
|
|
149
149
|
convertToBooleanObjectValue(): BooleanValueObject;
|
|
150
150
|
private _compareInfinity;
|
|
151
151
|
}
|
|
152
|
-
|
|
153
|
-
source: string;
|
|
154
|
-
altText: string;
|
|
155
|
-
sizing: number;
|
|
156
|
-
height: number;
|
|
157
|
-
width: number;
|
|
158
|
-
isErrorImage?: boolean;
|
|
159
|
-
imageNaturalHeight?: number;
|
|
160
|
-
imageNaturalWidth?: number;
|
|
161
|
-
}
|
|
162
|
-
export interface IStringValueObjectOptions {
|
|
163
|
-
/**
|
|
164
|
-
* Whether it is a hyperlink value from HYPERLINK function
|
|
165
|
-
*/
|
|
152
|
+
interface IStringValueObjectOptions {
|
|
166
153
|
isHyperlink?: boolean;
|
|
167
154
|
hyperlinkUrl?: string;
|
|
168
|
-
/**
|
|
169
|
-
* Whether it is an image value from IMAGE function
|
|
170
|
-
*/
|
|
171
|
-
isImage?: boolean;
|
|
172
|
-
imageInfo?: IImageFormulaInfo;
|
|
173
155
|
}
|
|
174
156
|
export declare const StringValueObjectCache: FormulaAstLRU<StringValueObject>;
|
|
175
157
|
export declare class StringValueObject extends BaseValueObject {
|
|
176
158
|
private _value;
|
|
177
159
|
private _isHyperlink;
|
|
178
160
|
private _hyperlinkUrl;
|
|
179
|
-
private _isImage;
|
|
180
|
-
private _imageInfo;
|
|
181
161
|
static create(value: string, options?: IStringValueObjectOptions): StringValueObject;
|
|
182
162
|
static checkCacheByOptions(cached: StringValueObject, options: IStringValueObjectOptions): boolean;
|
|
183
163
|
constructor(rawValue: string);
|
|
@@ -185,8 +165,6 @@ export declare class StringValueObject extends BaseValueObject {
|
|
|
185
165
|
isString(): boolean;
|
|
186
166
|
isHyperlink(): boolean;
|
|
187
167
|
getHyperlinkUrl(): string;
|
|
188
|
-
isImage(): boolean;
|
|
189
|
-
getImageInfo(): IStringValueObjectOptions['imageInfo'];
|
|
190
168
|
concatenateFront(valueObject: BaseValueObject): BaseValueObject;
|
|
191
169
|
concatenateBack(valueObject: BaseValueObject): BaseValueObject;
|
|
192
170
|
plus(valueObject: BaseValueObject): BaseValueObject;
|
|
@@ -205,3 +183,4 @@ export declare class StringValueObject extends BaseValueObject {
|
|
|
205
183
|
export declare function createBooleanValueObjectByRawValue(rawValue: string | number | boolean): BooleanValueObject;
|
|
206
184
|
export declare function createStringValueObjectByRawValue(rawValue: string | number | boolean): StringValueObject;
|
|
207
185
|
export declare function createNumberValueObjectByRawValue(rawValue: string | number | boolean, pattern?: string): ErrorValueObject | NumberValueObject;
|
|
186
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
2
2
|
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
3
|
-
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
4
3
|
import { BaseFunction } from '../../base-function';
|
|
5
4
|
export declare class Subtotal extends BaseFunction {
|
|
6
5
|
minParams: number;
|
|
@@ -8,8 +7,21 @@ export declare class Subtotal extends BaseFunction {
|
|
|
8
7
|
needsReferenceObject: boolean;
|
|
9
8
|
needsFilteredOutRows: boolean;
|
|
10
9
|
needsFormulaDataModel: boolean;
|
|
11
|
-
calculate(functionNum: FunctionVariantType, ...refs: FunctionVariantType[]):
|
|
10
|
+
calculate(functionNum: FunctionVariantType, ...refs: FunctionVariantType[]): ArrayValueObject | FunctionVariantType;
|
|
12
11
|
private _handleSingleObject;
|
|
13
|
-
private
|
|
14
|
-
private
|
|
12
|
+
private _getIndexNumValue;
|
|
13
|
+
private _average;
|
|
14
|
+
private _count;
|
|
15
|
+
private _counta;
|
|
16
|
+
private _max;
|
|
17
|
+
private _min;
|
|
18
|
+
private _product;
|
|
19
|
+
private _stdev;
|
|
20
|
+
private _stdevp;
|
|
21
|
+
private _sum;
|
|
22
|
+
private _var;
|
|
23
|
+
private _varp;
|
|
24
|
+
private _flattenRefArray;
|
|
25
|
+
private _isRowHidden;
|
|
26
|
+
private _isBlankArrayObject;
|
|
15
27
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export type { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig,
|
|
16
|
+
export type { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IArrayFormulaUnitCellType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFeatureDirtyRangeType, IFormulaData, IFormulaDataItem, IFormulaDatasetConfig, IRuntimeUnitDataType, ISheetData, IUnitData, IUnitSheetNameMap, } from './basics/common';
|
|
17
17
|
export { BooleanValue } from './basics/common';
|
|
18
18
|
export { type IOtherFormulaData } from './basics/common';
|
|
19
19
|
export { type IUnitRowData } from './basics/common';
|
|
@@ -35,7 +35,6 @@ export { SetDefinedNameMutationFactory } from './commands/mutations/set-defined-
|
|
|
35
35
|
export { RemoveFeatureCalculationMutation, SetFeatureCalculationMutation } from './commands/mutations/set-feature-calculation.mutation';
|
|
36
36
|
export { type ISetFormulaCalculationNotificationMutation, type ISetFormulaCalculationResultMutation, type ISetFormulaCalculationStartMutation, SetFormulaCalculationNotificationMutation, SetFormulaCalculationResultMutation, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, } from './commands/mutations/set-formula-calculation.mutation';
|
|
37
37
|
export { type ISetFormulaDataMutationParams, SetFormulaDataMutation } from './commands/mutations/set-formula-data.mutation';
|
|
38
|
-
export { type ISetImageFormulaDataMutationParams, SetImageFormulaDataMutation } from './commands/mutations/set-image-formula-data.mutation';
|
|
39
38
|
export { type IRemoveOtherFormulaMutationParams, type ISetOtherFormulaMutationParams, RemoveOtherFormulaMutation, SetOtherFormulaMutation } from './commands/mutations/set-other-formula.mutation';
|
|
40
39
|
export { RemoveSuperTableMutation, SetSuperTableMutation, SetSuperTableOptionMutation } from './commands/mutations/set-super-table.mutation';
|
|
41
40
|
export type { ISetSuperTableMutationParam, ISetSuperTableMutationSearchParam } from './commands/mutations/set-super-table.mutation';
|
|
@@ -78,7 +77,7 @@ export { generateStringWithSequence, type ISequenceNode, sequenceNodeType } from
|
|
|
78
77
|
export { ArrayValueObject, ValueObjectFactory } from './engine/value-object/array-value-object';
|
|
79
78
|
export { BaseValueObject, ErrorValueObject } from './engine/value-object/base-value-object';
|
|
80
79
|
export { LambdaValueObjectObject } from './engine/value-object/lambda-value-object';
|
|
81
|
-
export type { FormulaFunctionResultValueType, FormulaFunctionValueType,
|
|
80
|
+
export type { FormulaFunctionResultValueType, FormulaFunctionValueType, PrimitiveValueType } from './engine/value-object/primitive-object';
|
|
82
81
|
export { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from './engine/value-object/primitive-object';
|
|
83
82
|
export { functionArray } from './functions/array/function-map';
|
|
84
83
|
export { FUNCTION_NAMES_ARRAY } from './functions/array/function-names';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ICellData, IObjectMatrixPrimitiveType, IRange, IUnitRange, Nullable, Disposable, IUniverInstanceService, ObjectMatrix } from '@univerjs/core';
|
|
2
|
-
import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, IRuntimeUnitDataType, IUnitData,
|
|
2
|
+
import { IArrayFormulaRangeType, IArrayFormulaUnitCellType, IFormulaData, IFormulaDataItem, IRuntimeUnitDataType, IUnitData, IUnitRowData, IUnitSheetNameMap, IUnitStylesData } from '../basics/common';
|
|
3
3
|
import { LexerTreeBuilder } from '../engine/analysis/lexer-tree-builder';
|
|
4
4
|
export interface IRangeChange {
|
|
5
5
|
oldCell: IRange;
|
|
@@ -10,7 +10,6 @@ export declare class FormulaDataModel extends Disposable {
|
|
|
10
10
|
private readonly _lexerTreeBuilder;
|
|
11
11
|
private _arrayFormulaRange;
|
|
12
12
|
private _arrayFormulaCellData;
|
|
13
|
-
private _unitImageFormulaData;
|
|
14
13
|
constructor(_univerInstanceService: IUniverInstanceService, _lexerTreeBuilder: LexerTreeBuilder);
|
|
15
14
|
dispose(): void;
|
|
16
15
|
clearPreviousArrayFormulaCellData(clearArrayFormulaCellData: IRuntimeUnitDataType): void;
|
|
@@ -21,10 +20,7 @@ export declare class FormulaDataModel extends Disposable {
|
|
|
21
20
|
setArrayFormulaRange(value: IArrayFormulaRangeType): void;
|
|
22
21
|
getArrayFormulaCellData(): IArrayFormulaUnitCellType;
|
|
23
22
|
setArrayFormulaCellData(value: IArrayFormulaUnitCellType): void;
|
|
24
|
-
getUnitImageFormulaData(): IUnitImageFormulaDataType;
|
|
25
|
-
setUnitImageFormulaData(value: IUnitImageFormulaDataType): void;
|
|
26
23
|
mergeArrayFormulaRange(formulaData: IArrayFormulaRangeType): void;
|
|
27
|
-
mergeUnitImageFormulaData(formulaData: IUnitImageFormulaDataType): void;
|
|
28
24
|
deleteArrayFormulaRange(unitId: string, sheetId: string, row: number, column: number): void;
|
|
29
25
|
getCalculateData(): {
|
|
30
26
|
allUnitData: IUnitData;
|
|
@@ -40,7 +36,6 @@ export declare class FormulaDataModel extends Disposable {
|
|
|
40
36
|
updateFormulaData(unitId: string, sheetId: string, cellValue: IObjectMatrixPrimitiveType<Nullable<ICellData>>): IObjectMatrixPrimitiveType<IFormulaDataItem | null>;
|
|
41
37
|
updateArrayFormulaRange(unitId: string, sheetId: string, cellValue: IObjectMatrixPrimitiveType<Nullable<ICellData>>): void;
|
|
42
38
|
updateArrayFormulaCellData(unitId: string, sheetId: string, cellValue: IObjectMatrixPrimitiveType<Nullable<ICellData>>): void;
|
|
43
|
-
updateImageFormulaData(unitId: string, sheetId: string, cellValue: IObjectMatrixPrimitiveType<Nullable<ICellData>>): void;
|
|
44
39
|
getFormulaStringByCell(row: number, column: number, sheetId: string, unitId: string): Nullable<string>;
|
|
45
40
|
/**
|
|
46
41
|
* Function to get all formula ranges
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IUnitRange, LocaleType, Nullable, Disposable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
-
import { IArrayFormulaRangeType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDatasetConfig, IRuntimeUnitDataType, IUnitData, IUnitExcludedCell, IUnitRowData,
|
|
2
|
+
import { IArrayFormulaRangeType, IDirtyUnitFeatureMap, IDirtyUnitOtherFormulaMap, IDirtyUnitSheetDefinedNameMap, IDirtyUnitSheetNameMap, IFormulaData, IFormulaDatasetConfig, IRuntimeUnitDataType, IUnitData, IUnitExcludedCell, IUnitRowData, IUnitSheetNameMap, IUnitStylesData } from '../basics/common';
|
|
3
3
|
import { FormulaDataModel } from '../models/formula-data.model';
|
|
4
4
|
import { ISheetRowFilteredService } from './sheet-row-filtered.service';
|
|
5
5
|
export interface IFormulaDirtyData {
|
|
@@ -54,7 +54,6 @@ export interface IFormulaCurrentConfigService {
|
|
|
54
54
|
columnCount: number;
|
|
55
55
|
};
|
|
56
56
|
getFilteredOutRows(unitId: string, sheetId: string, startRow: number, endRow: number): number[];
|
|
57
|
-
setSheetNameMap(sheetIdToNameMap: IUnitSheetIdToNameMap): void;
|
|
58
57
|
}
|
|
59
58
|
export declare class FormulaCurrentConfigService extends Disposable implements IFormulaCurrentConfigService {
|
|
60
59
|
private readonly _univerInstanceService;
|
|
@@ -98,7 +97,6 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
|
|
|
98
97
|
getDirtyUnitFeatureMap(): IDirtyUnitFeatureMap;
|
|
99
98
|
getDirtyUnitOtherFormulaMap(): IDirtyUnitOtherFormulaMap;
|
|
100
99
|
getSheetName(unitId: string, sheetId: string): string;
|
|
101
|
-
setSheetNameMap(sheetIdToNameMap: IUnitSheetIdToNameMap): void;
|
|
102
100
|
getClearDependencyTreeCache(): IDirtyUnitSheetNameMap;
|
|
103
101
|
getLocale(): LocaleType;
|
|
104
102
|
getSheetsInfo(): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Nullable, Disposable } from '@univerjs/core';
|
|
2
|
-
import { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IFeatureDirtyRangeType,
|
|
2
|
+
import { IArrayFormulaEmbeddedMap, IArrayFormulaRangeType, IFeatureDirtyRangeType, IRuntimeOtherUnitDataType, IRuntimeUnitDataType } from '../basics/common';
|
|
3
3
|
import { BaseAstNode } from '../engine/ast-node/base-ast-node';
|
|
4
4
|
import { FunctionVariantType } from '../engine/reference-object/base-reference-object';
|
|
5
5
|
import { IFormulaCurrentConfigService } from './current-data.service';
|
|
@@ -33,7 +33,6 @@ export interface IAllRuntimeData {
|
|
|
33
33
|
functionsExecutedState: FormulaExecutedStateType;
|
|
34
34
|
arrayFormulaCellData: IRuntimeUnitDataType;
|
|
35
35
|
clearArrayFormulaCellData: IRuntimeUnitDataType;
|
|
36
|
-
imageFormulaData: IRuntimeImageFormulaDataType[];
|
|
37
36
|
runtimeFeatureRange: {
|
|
38
37
|
[featureId: string]: IFeatureDirtyRangeType;
|
|
39
38
|
};
|
|
@@ -99,7 +98,6 @@ export interface IFormulaRuntimeService {
|
|
|
99
98
|
getUnitArrayFormulaEmbeddedMap(): IArrayFormulaEmbeddedMap;
|
|
100
99
|
setUnitArrayFormulaEmbeddedMap(): void;
|
|
101
100
|
clearArrayObjectCache(): void;
|
|
102
|
-
getRuntimeImageFormulaData(): IRuntimeImageFormulaDataType[];
|
|
103
101
|
}
|
|
104
102
|
export declare class FormulaRuntimeService extends Disposable implements IFormulaRuntimeService {
|
|
105
103
|
private readonly _currentConfigService;
|
|
@@ -120,7 +118,6 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
|
|
|
120
118
|
private _runtimeClearArrayFormulaCellData;
|
|
121
119
|
private _runtimeFeatureRange;
|
|
122
120
|
private _runtimeFeatureCellData;
|
|
123
|
-
private _runtimeImageFormulaData;
|
|
124
121
|
private _functionsExecutedState;
|
|
125
122
|
private _functionDefinitionPrivacyVar;
|
|
126
123
|
private _totalFormulasToCalculate;
|
|
@@ -182,7 +179,6 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
|
|
|
182
179
|
[featureId: string]: IRuntimeUnitDataType;
|
|
183
180
|
};
|
|
184
181
|
setRuntimeFeatureCellData(featureId: string, featureData: IRuntimeUnitDataType): void;
|
|
185
|
-
getRuntimeImageFormulaData(): IRuntimeImageFormulaDataType[];
|
|
186
182
|
getAllRuntimeData(): IAllRuntimeData;
|
|
187
183
|
getRuntimeState(): IExecutionInProgressParams;
|
|
188
184
|
clearArrayObjectCache(): void;
|