@univerjssheets-uiindexclassesSheetskeletonmanagerservice

@univerjs/sheets-ui v0.5.4


Class: SheetSkeletonManagerService

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

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

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

Parameters

ParameterType
_contextIRenderContext<Workbook>
_injectorInjector

Returns

SheetSkeletonManagerService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
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>

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

Parameters

ParameterType
rangeIRange

Returns

Nullable<IRangeWithCoord>

Deprecated

Use function attachRangeWithCoord instead.


dispose()

dispose(): void

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

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose


disposeSkeleton()

disposeSkeleton(searchParm): void

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

Parameters

ParameterType
searchParmISheetSkeletonManagerSearch

Returns

void


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


getCurrent()

getCurrent(): Nullable<ISheetSkeletonManagerParam>

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

Returns

Nullable<ISheetSkeletonManagerParam>


getCurrentSkeleton()

getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>

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

Returns

Nullable<SpreadsheetSkeleton>


getOrCreateSkeleton()

getOrCreateSkeleton(searchParam): 
  | undefined
  | SpreadsheetSkeleton

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

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

| undefined | SpreadsheetSkeleton


getUnitSkeleton()

getUnitSkeleton(unitId, sheetId): Nullable<ISheetSkeletonManagerParam>

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

unitId is never read?

Parameters

ParameterType
unitIdstring
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>


getWorksheetSkeleton()

getWorksheetSkeleton(sheetId): Nullable<ISheetSkeletonManagerParam>

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

Parameters

ParameterType
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>


makeDirty()

makeDirty(searchParm, state): void

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

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

Parameters

ParameterTypeDefault value
searchParmISheetSkeletonManagerSearchundefined
statebooleantrue

Returns

void


reCalculate()

reCalculate(): void

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

Returns

void


setCurrent()

setCurrent(searchParam): Nullable<ISheetSkeletonManagerParam>

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

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

Nullable<ISheetSkeletonManagerParam>