@univerjssheets-uiindexclassesSheetskeletonmanagerservice

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


Class: SheetSkeletonManagerService

This service manages the drawing of the sheet’s viewModel (skeleton).

Each time there is a content change, it will trigger the viewModel of the render to recalculate.

Each application and sub-table has its own viewModel (skeleton).

The viewModel is also a temporary storage variable, which does not need to be persisted, so it is managed uniformly through the service.

Extends

Implements

Constructors

new SheetSkeletonManagerService()

new SheetSkeletonManagerService(_context, _injector): SheetSkeletonManagerService

Parameters

ParameterType
_contextIRenderContext<Workbook>
_injectorInjector

Returns

SheetSkeletonManagerService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:63

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
currentSkeleton$readonlyObservable<Nullable<ISheetSkeletonManagerParam>>undefined-submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:55
currentSkeletonBefore$readonlyObservable<Nullable<ISheetSkeletonManagerParam>>undefined-submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:61

Methods

attachRangeWithCoord()

attachRangeWithCoord(range): Nullable<IRangeWithCoord>

Parameters

ParameterType
rangeIRange

Returns

Nullable<IRangeWithCoord>

Deprecated

Use function attachRangeWithCoord instead.

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:205


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose

Defined in

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


disposeSkeleton()

disposeSkeleton(searchParm): void

Parameters

ParameterType
searchParmISheetSkeletonManagerSearch

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:195


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


getCurrent()

getCurrent(): Nullable<ISheetSkeletonManagerParam>

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:91


getCurrentSkeleton()

getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>

Returns

Nullable<SpreadsheetSkeleton>

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:87


getOrCreateSkeleton()

getOrCreateSkeleton(searchParam): undefined | SpreadsheetSkeleton

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

undefined | SpreadsheetSkeleton

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:172


getUnitSkeleton()

getUnitSkeleton(unitId, sheetId): Nullable<ISheetSkeletonManagerParam>

unitId is never read?

Parameters

ParameterType
unitIdstring
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:102


getWorksheetSkeleton()

getWorksheetSkeleton(sheetId): Nullable<ISheetSkeletonManagerParam>

Parameters

ParameterType
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:95


makeDirty()

makeDirty(searchParm, state): void

Make param dirty, if param is dirty, then the skeleton will be makeDirty in _reCalculate()

Parameters

ParameterTypeDefault value
searchParmISheetSkeletonManagerSearchundefined
statebooleantrue

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:164


reCalculate()

reCalculate(): void

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:143


setCurrent()

setCurrent(searchParam): Nullable<ISheetSkeletonManagerParam>

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:110