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
Parameter | Type |
---|---|
_context | IRenderContext <Workbook > |
_injector | Injector |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
currentSkeleton$ | readonly | Observable <Nullable <ISheetSkeletonManagerParam >> | undefined | - | submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:55 |
currentSkeletonBefore$ | readonly | Observable <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
Parameter | Type |
---|---|
range | IRange |
Returns
Deprecated
Use function attachRangeWithCoord
instead.
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Implementation of
Inherited from
disposeSkeleton()
disposeSkeleton(searchParm): void
Defined in: submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:195
Parameters
Parameter | Type |
---|---|
searchParm | ISheetSkeletonManagerSearch |
Returns
void
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
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
getOrCreateSkeleton()
getOrCreateSkeleton(searchParam):
| undefined
| SpreadsheetSkeleton
Defined in: submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:172
Parameters
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |
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
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
Nullable
<ISheetSkeletonManagerParam
>
getWorksheetSkeleton()
getWorksheetSkeleton(sheetId): Nullable<ISheetSkeletonManagerParam>
Defined in: submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:95
Parameters
Parameter | Type |
---|---|
sheetId | string |
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
Parameter | Type | Default value |
---|---|---|
searchParm | ISheetSkeletonManagerSearch | undefined |
state | boolean | true |
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
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |