@univerjs-pro/engine-formula v0.5.4
Class: FormulaDataModel
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:39
Extends
Constructors
new FormulaDataModel()
new FormulaDataModel(_univerInstanceService, _lexerTreeBuilder): FormulaDataModel
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:44
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_lexerTreeBuilder | LexerTreeBuilder |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
clearPreviousArrayFormulaCellData()
clearPreviousArrayFormulaCellData(clearArrayFormulaCellData): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:57
Parameters
Parameter | Type |
---|---|
clearArrayFormulaCellData | IRuntimeUnitDataType |
Returns
void
deleteArrayFormulaRange()
deleteArrayFormulaRange(
unitId,
sheetId,
row,
column): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:241
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:51
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getArrayFormulaCellData()
getArrayFormulaCellData(): IArrayFormulaUnitCellType
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:206
Returns
getArrayFormulaRange()
getArrayFormulaRange(): IArrayFormulaRangeType
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:198
Returns
getCalculateData()
getCalculateData(): {
allUnitData: IUnitData;
unitSheetNameMap: IUnitSheetNameMap;
}
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:256
Returns
{
allUnitData: IUnitData;
unitSheetNameMap: IUnitSheetNameMap;
}
Name | Type | Defined in |
---|---|---|
allUnitData | IUnitData | submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:294 |
unitSheetNameMap | IUnitSheetNameMap | submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:295 |
getFormulaData()
getFormulaData(): IFormulaData
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:154
Returns
getFormulaDirtyRanges()
getFormulaDirtyRanges(): IUnitRange[]
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:465
Function to get all formula ranges
Returns
getFormulaStringByCell()
getFormulaStringByCell(
row,
column,
sheetId,
unitId): Nullable<string>
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:408
Parameters
Parameter | Type |
---|---|
row | number |
column | number |
sheetId | string |
unitId | string |
Returns
Nullable
<string
>
getSheetFormulaData()
getSheetFormulaData(unitId, sheetId): Nullable<IObjectMatrixPrimitiveType<Nullable<IFormulaDataItem>>>
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:177
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
Nullable
<IObjectMatrixPrimitiveType
<Nullable
<IFormulaDataItem
>>>
mergeArrayFormulaCellData()
mergeArrayFormulaCellData(unitData): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:105
Parameters
Parameter | Type |
---|---|
unitData | IRuntimeUnitDataType |
Returns
void
mergeArrayFormulaRange()
mergeArrayFormulaRange(formulaData): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:214
Parameters
Parameter | Type |
---|---|
formulaData | IArrayFormulaRangeType |
Returns
void
setArrayFormulaCellData()
setArrayFormulaCellData(value): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:210
Parameters
Parameter | Type |
---|---|
value | IArrayFormulaUnitCellType |
Returns
void
setArrayFormulaRange()
setArrayFormulaRange(value): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:202
Parameters
Parameter | Type |
---|---|
value | IArrayFormulaRangeType |
Returns
void
updateArrayFormulaCellData()
updateArrayFormulaCellData(
unitId,
sheetId,
cellValue): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:382
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
cellValue | IObjectMatrixPrimitiveType <Nullable <ICellData >> |
Returns
void
updateArrayFormulaRange()
updateArrayFormulaRange(
unitId,
sheetId,
cellValue): void
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:363
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
cellValue | IObjectMatrixPrimitiveType <Nullable <ICellData >> |
Returns
void
updateFormulaData()
updateFormulaData(
unitId,
sheetId,
cellValue): IObjectMatrixPrimitiveType<null | IFormulaDataItem>
Defined in: submodules/univer/packages/engine-formula/src/models/formula-data.model.ts:299
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
cellValue | IObjectMatrixPrimitiveType <Nullable <ICellData >> |