@univerjs/docs v0.5.0-beta.1 • Docs
Class: DocSkeletonManagerService
This service is for document build and manage doc skeletons. It also manages DocumentViewModels.
Extends
Implements
Constructors
new DocSkeletonManagerService()
new DocSkeletonManagerService(
_context,
_localeService,
_univerInstanceService): DocSkeletonManagerService
Parameters
Parameter | Type |
---|---|
_context | IRenderContext <DocumentDataModel > |
_localeService | LocaleService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Defined in
docs/src/services/doc-skeleton-manager.service.ts:41
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | core/src/shared/lifecycle.ts:93 |
currentSkeleton$ | readonly | Observable <Nullable <DocumentSkeleton >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:32 |
currentSkeletonBefore$ | readonly | Observable <Nullable <DocumentSkeleton >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:36 |
currentViewModel$ | readonly | Observable <Nullable <DocumentViewModel >> | undefined | - | docs/src/services/doc-skeleton-manager.service.ts:39 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | core/src/shared/lifecycle.ts:117 |
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Overrides
Defined in
docs/src/services/doc-skeleton-manager.service.ts:59
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
RxDisposable
.ensureNotDisposed
Defined in
core/src/shared/lifecycle.ts:100
getSkeleton()
getSkeleton(): DocumentSkeleton
Returns
Defined in
docs/src/services/doc-skeleton-manager.service.ts:66
getViewModel()
getViewModel(): DocumentViewModel
Returns
Defined in
docs/src/services/doc-skeleton-manager.service.ts:70