@univerjs/engine-formula
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -93,3 +93,3 @@ import { BaseValueObject, ErrorValueObject } from './base-value-object'; | ||
private _value; | ||
static create(value: number, pattern?: string): NumberValueObject; | ||
static create(value: number): NumberValueObject; | ||
constructor(rawValue: number); | ||
@@ -96,0 +96,0 @@ getValue(): number; |
@@ -25,2 +25,10 @@ import { IDefinedNameMapItem } from '../services/defined-names.service'; | ||
needsReferenceObject: boolean; | ||
/** | ||
* Minimum number of parameters | ||
*/ | ||
minParams: number; | ||
/** | ||
* Maximum number of parameters | ||
*/ | ||
maxParams: number; | ||
constructor(_name: IFunctionNames); | ||
@@ -27,0 +35,0 @@ get name(): IFunctionNames; |
@@ -5,4 +5,6 @@ import { BaseFunction } from '../../base-function'; | ||
export declare class Sumif extends BaseFunction { | ||
minParams: number; | ||
maxParams: number; | ||
calculate(range: BaseValueObject, criteria: BaseValueObject, sumRange?: BaseValueObject): BaseValueObject; | ||
private _handleSingleObject; | ||
} |
@@ -28,2 +28,6 @@ import { IFormulaIdMap } from './utils/formula-data-util'; | ||
deleteArrayFormulaRange(unitId: string, sheetId: string, row: number, column: number): void; | ||
/** | ||
* Cache all formulas on the snapshot to the formula model | ||
* @returns | ||
*/ | ||
initFormulaData(): void; | ||
@@ -40,2 +44,3 @@ getCalculateData(): { | ||
getFormulaIdMap(unitId: string, sheetId: string): Map<string, IFormulaIdMap>; | ||
getFormulaStringByCell(row: number, column: number, sheetId: string, unitId: string): string | null; | ||
} | ||
@@ -42,0 +47,0 @@ export declare function initSheetFormulaData(formulaData: IFormulaData, unitId: string, sheetId: string, cellMatrix: ObjectMatrix<Nullable<ICellData>>): { |
import { BaseFunction } from '../functions/base-function'; | ||
import { IFunctionInfo, IFunctionNames } from '../basics/function'; | ||
import { IDisposable } from '@wendellhu/redi'; | ||
import { Nullable, Disposable } from '@univerjs/core'; | ||
@@ -24,3 +25,3 @@ | ||
unregisterExecutors(...functionTokens: IFunctionNames[]): void; | ||
registerDescriptions(...functions: IFunctionInfo[]): void; | ||
registerDescriptions(...functions: IFunctionInfo[]): IDisposable; | ||
getDescriptions(): Map<IFunctionNames, IFunctionInfo>; | ||
@@ -40,3 +41,3 @@ getDescription(functionToken: IFunctionNames): Nullable<IFunctionInfo>; | ||
unregisterExecutors(...functionTokens: IFunctionNames[]): void; | ||
registerDescriptions(...descriptions: IFunctionInfo[]): void; | ||
registerDescriptions(...descriptions: IFunctionInfo[]): IDisposable; | ||
getDescriptions(): Map<IFunctionNames, IFunctionInfo>; | ||
@@ -43,0 +44,0 @@ getDescription(functionToken: IFunctionNames): IFunctionInfo | undefined; |
{ | ||
"name": "@univerjs/engine-formula", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"private": false, | ||
@@ -55,3 +55,3 @@ "description": "UniverSheet normal base-formula-engine", | ||
"rxjs": ">=7.0.0", | ||
"@univerjs/core": "0.1.9" | ||
"@univerjs/core": "0.1.10" | ||
}, | ||
@@ -69,4 +69,4 @@ "dependencies": { | ||
"vitest": "^1.5.0", | ||
"@univerjs/shared": "0.1.9", | ||
"@univerjs/core": "0.1.9" | ||
"@univerjs/shared": "0.1.10", | ||
"@univerjs/core": "0.1.10" | ||
}, | ||
@@ -73,0 +73,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1222604
19840