@univerjs/sheets-ui v0.5.0-beta.1 • Docs
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
Parameter | Type |
---|---|
_context | IRenderContext <Workbook > |
_injector | Injector |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:63
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
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>
Parameters
Parameter | Type |
---|---|
range | IRange |
Returns
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
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeSkeleton()
disposeSkeleton(searchParm): void
Parameters
Parameter | Type |
---|---|
searchParm | ISheetSkeletonManagerSearch |
Returns
void
Defined in
submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:195
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Defined in
submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:87
getOrCreateSkeleton()
getOrCreateSkeleton(searchParam): undefined | SpreadsheetSkeleton
Parameters
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |
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
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
Nullable
<ISheetSkeletonManagerParam
>
Defined in
submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:102
getWorksheetSkeleton()
getWorksheetSkeleton(sheetId): Nullable<ISheetSkeletonManagerParam>
Parameters
Parameter | Type |
---|---|
sheetId | string |
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
Parameter | Type | Default value |
---|---|---|
searchParm | ISheetSkeletonManagerSearch | undefined |
state | boolean | true |
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
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |
Returns
Nullable
<ISheetSkeletonManagerParam
>
Defined in
submodules/univer/packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:110