@univerjs/sheets-formula v0.5.4


Class: FormulaRefRangeService

Defined in: submodules/univer/packages/sheets-formula/src/services/formula-ref-range.service.ts:73

Extends

Constructors

new FormulaRefRangeService()

new FormulaRefRangeService(
   _refRangeService, 
   _lexerTreeBuilder, 
   _univerInstanceService, 
   _injector): FormulaRefRangeService

Defined in: submodules/univer/packages/sheets-formula/src/services/formula-ref-range.service.ts:74

Parameters

ParameterType
_refRangeServiceRefRangeService
_lexerTreeBuilderLexerTreeBuilder
_univerInstanceServiceIUniverInstanceService
_injectorInjector

Returns

FormulaRefRangeService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


registerFormula()

registerFormula(
   unitId, 
   subUnitId, 
   formula, 
   callback): IDisposable

Defined in: submodules/univer/packages/sheets-formula/src/services/formula-ref-range.service.ts:135

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
callbackFormulaChangeCallback

Returns

IDisposable


registerRangeFormula()

registerRangeFormula(
   unitId, 
   subUnitId, 
   oldRanges, 
   formulas, 
   callback): IDisposable

Defined in: submodules/univer/packages/sheets-formula/src/services/formula-ref-range.service.ts:251

Parameters

ParameterType
unitIdstring
subUnitIdstring
oldRangesIRange[]
formulasstring[]
callbackRangeFormulaChangeCallback

Returns

IDisposable


transformFormulaByEffectCommand()

transformFormulaByEffectCommand(
   unitId, 
   subUnitId, 
   formula, 
   params): string

Defined in: submodules/univer/packages/sheets-formula/src/services/formula-ref-range.service.ts:83

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
paramsEffectRefRangeParams

Returns

string