@univerjsdocsclassesDocinterceptorservice

@univerjs/docs v0.5.4


Class: DocInterceptorService

Defined in: docs/src/services/doc-interceptor/doc-interceptor.service.ts:23

Every render module should implement this interface.

Extends

Implements

Constructors

new DocInterceptorService()

new DocInterceptorService(_context, _docSkeletonManagerService): DocInterceptorService

Defined in: docs/src/services/doc-interceptor/doc-interceptor.service.ts:26

Parameters

ParameterType
_contextIRenderContext<DocumentDataModel>
_docSkeletonManagerServiceDocSkeletonManagerService

Returns

DocInterceptorService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96

Methods

dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


fetchThroughInterceptors()

fetchThroughInterceptors<T, C>(name): (initValue, initContext) => Nullable<T>

Defined in: docs/src/services/doc-interceptor/doc-interceptor.service.ts:76

Type Parameters

Type Parameter
T
C

Parameters

ParameterType
nameIInterceptor<T, C>

Returns

Function

Parameters
ParameterType
initValueNullable<T>
initContextC
Returns

Nullable<T>


intercept()

intercept<T>(name, interceptor): IDisposable

Defined in: docs/src/services/doc-interceptor/doc-interceptor.service.ts:60

Type Parameters

Type Parameter
T extends IInterceptor<any, any>

Parameters

ParameterType
nameT
interceptorT

Returns

IDisposable


interceptDocumentViewModel()

interceptDocumentViewModel(viewModel): DisposableCollection

Defined in: docs/src/services/doc-interceptor/doc-interceptor.service.ts:82

Parameters

ParameterType
viewModelDocumentViewModel

Returns

DisposableCollection