@univerjsengine-formulaindexclassesFeaturecalculationmanagerservice

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


Class: FeatureCalculationManagerService

Passively marked as dirty, register the reference and execution actions of the feature plugin. After execution, a dirty area and calculated data will be returned, causing the formula to be marked dirty again, thereby completing the calculation of the entire dependency tree.

Extends

Implements

Constructors

new FeatureCalculationManagerService()

new FeatureCalculationManagerService(): FeatureCalculationManagerService

Returns

FeatureCalculationManagerService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
onChanged$readonlyObservable<IRemoveFeatureCalculationMutationParam>undefined-submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:63

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IFeatureCalculationManagerService.dispose

Overrides

Disposable.dispose

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:65


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


get()

get(
   unitId, 
   subUnitId, 
   featureId): undefined | IFeatureCalculationManagerParam

Parameters

ParameterType
unitIdstring
subUnitIdstring
featureIdstring

Returns

undefined | IFeatureCalculationManagerParam

Implementation of

IFeatureCalculationManagerService.get

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:81


getReferenceExecutorMap()

getReferenceExecutorMap(): Map<string, Map<string, Map<string, IFeatureCalculationManagerParam>>>

Returns

Map<string, Map<string, Map<string, IFeatureCalculationManagerParam>>>

Implementation of

IFeatureCalculationManagerService.getReferenceExecutorMap

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:113


has()

has(
   unitId, 
   subUnitId, 
   featureId): boolean

Parameters

ParameterType
unitIdstring
subUnitIdstring
featureIdstring

Returns

boolean

Implementation of

IFeatureCalculationManagerService.has

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:85


register()

register(
   unitId, 
   subUnitId, 
   featureId, 
   referenceExecutor): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
featureIdstring
referenceExecutorIFeatureCalculationManagerParam

Returns

void

Implementation of

IFeatureCalculationManagerService.register

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:89


remove()

remove(
   unitId, 
   subUnitId, 
   featureIds): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
featureIdsstring[]

Returns

void

Implementation of

IFeatureCalculationManagerService.remove

Defined in

submodules/univer/packages/engine-formula/src/services/feature-calculation-manager.service.ts:69