@univerjs/sheets-ui v0.4.2 • 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
packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:62 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
currentSkeleton$ | readonly | Observable <Nullable <ISheetSkeletonManagerParam >> | undefined | - | packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:54 (opens in a new tab) |
currentSkeletonBefore$ | readonly | Observable <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
Parameter | Type |
---|---|
range | IRange |
Returns
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
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeSkeleton()
disposeSkeleton(searchParm): void
Parameters
Parameter | Type |
---|---|
searchParm | ISheetSkeletonManagerSearch |
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
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Defined in
packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:86 (opens in a new tab)
getOrCreateSkeleton()
getOrCreateSkeleton(searchParam): undefined | SpreadsheetSkeleton
Parameters
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |
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
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
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
Parameter | Type |
---|---|
sheetId | string |
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
Parameter | Type | Default value |
---|---|---|
searchParm | ISheetSkeletonManagerSearch | undefined |
state | boolean | true |
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
Parameter | Type |
---|---|
searchParam | ISheetSkeletonManagerSearch |
Returns
Nullable
<ISheetSkeletonManagerParam
>
Defined in
packages/sheets-ui/src/services/sheet-skeleton-manager.service.ts:109 (opens in a new tab)