API Reference
@univerjs
@univerjs/sheets-ui
classes
Sheetskeletonmanagerservice

@univerjs/sheets-ui v0.4.2Docs


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

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:62 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
currentSkeleton$readonlyObservable<Nullable<ISheetSkeletonManagerParam>>undefined-packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:54 (opens in a new tab)
currentSkeletonBefore$readonlyObservable<Nullable<ISheetSkeletonManagerParam>>undefined-packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:60 (opens in a new tab)

Methods

attachRangeWithCoord()

attachRangeWithCoord(range): Nullable<IRangeWithCoord>

Parameters

ParameterType
rangeIRange

Returns

Nullable<IRangeWithCoord>

Deprecated

Use function attachRangeWithCoord instead.

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:199 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeSkeleton()

disposeSkeleton(searchParm): void

Parameters

ParameterType
searchParmISheetSkeletonManagerSearch

Returns

void

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:189 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getCurrent()

getCurrent(): Nullable<ISheetSkeletonManagerParam>

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:90 (opens in a new tab)


getCurrentSkeleton()

getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>

Returns

Nullable<SpreadsheetSkeleton>

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:86 (opens in a new tab)


getOrCreateSkeleton()

getOrCreateSkeleton(searchParam): undefined | SpreadsheetSkeleton

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

undefined | SpreadsheetSkeleton

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:166 (opens in a new tab)


getUnitSkeleton()

getUnitSkeleton(unitId, sheetId): Nullable<ISheetSkeletonManagerParam>

unitId is never read?

Parameters

ParameterType
unitIdstring
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:101 (opens in a new tab)


getWorksheetSkeleton()

getWorksheetSkeleton(sheetId): Nullable<ISheetSkeletonManagerParam>

Parameters

ParameterType
sheetIdstring

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:94 (opens in a new tab)


makeDirty()

makeDirty(searchParm, state): void

Parameters

ParameterTypeDefault value
searchParmISheetSkeletonManagerSearchundefined
statebooleantrue

Returns

void

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:158 (opens in a new tab)


reCalculate()

reCalculate(): void

Returns

void

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:142 (opens in a new tab)


setCurrent()

setCurrent(searchParam): Nullable<ISheetSkeletonManagerParam>

Parameters

ParameterType
searchParamISheetSkeletonManagerSearch

Returns

Nullable<ISheetSkeletonManagerParam>

Defined in

packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:109 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.