API Reference
@univerjs
@univerjs/docs
classes
Docskeletonmanagerservice

@univerjs/docs v0.4.2Docs


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

ParameterType
_contextIRenderContext<DocumentDataModel>
_localeServiceLocaleService
_univerInstanceServiceIUniverInstanceService

Returns

DocSkeletonManagerService

Overrides

RxDisposable.constructor

Defined in

docs/src/services/doc-skeleton-manager.service.ts:41 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)
currentSkeleton$readonlyObservable<Nullable<DocumentSkeleton>>undefined-docs/src/services/doc-skeleton-manager.service.ts:32 (opens in a new tab)
currentSkeletonBefore$readonlyObservable<Nullable<DocumentSkeleton>>undefined-docs/src/services/doc-skeleton-manager.service.ts:36 (opens in a new tab)
currentViewModel$readonlyObservable<Nullable<DocumentViewModel>>undefined-docs/src/services/doc-skeleton-manager.service.ts:39 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$core/src/shared/lifecycle.ts:117 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Overrides

RxDisposable.dispose

Defined in

docs/src/services/doc-skeleton-manager.service.ts:59 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

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


getSkeleton()

getSkeleton(): DocumentSkeleton

Returns

DocumentSkeleton

Defined in

docs/src/services/doc-skeleton-manager.service.ts:66 (opens in a new tab)


getViewModel()

getViewModel(): DocumentViewModel

Returns

DocumentViewModel

Defined in

docs/src/services/doc-skeleton-manager.service.ts:70 (opens in a new tab)


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