@univerjs/sheets-formula v0.5.0-beta.1Docs


Class: FormulaRefRangeService

Extends

Constructors

new FormulaRefRangeService()

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

Parameters

ParameterType
_refRangeServiceRefRangeService
_lexerTreeBuilderLexerTreeBuilder
_univerInstanceServiceIUniverInstanceService
_injectorInjector

Returns

FormulaRefRangeService

Overrides

Disposable.constructor

Defined in

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

Properties

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

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


registerFormula()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
callbackFormulaChangeCallback

Returns

IDisposable

Defined in

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


registerRangeFormula()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
oldRangesIRange[]
formulasstring[]
callbackRangeFormulaChangeCallback

Returns

IDisposable

Defined in

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


transformFormulaByEffectCommand()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
paramsEffectRefRangeParams

Returns

string

Defined in

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