@univerjsdocsclassesDocinterceptorservice

@univerjs/docs v0.5.0-beta.1Docs


Class: DocInterceptorService

Every render module should implement this interface.

Extends

Implements

Constructors

new DocInterceptorService()

new DocInterceptorService(_context, _docSkeletonManagerService): DocInterceptorService

Parameters

ParameterType
_contextIRenderContext<DocumentDataModel>
_docSkeletonManagerServiceDocSkeletonManagerService

Returns

DocInterceptorService

Overrides

Disposable.constructor

Defined in

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

Properties

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

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


fetchThroughInterceptors()

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

Type Parameters

Type Parameter
T
C

Parameters

ParameterType
nameIInterceptor<T, C>

Returns

Function

Parameters
ParameterType
initValueNullable<T>
initContextC
Returns

Nullable<T>

Defined in

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


intercept()

intercept<T>(name, interceptor): IDisposable

Type Parameters

Type Parameter
T extends IInterceptor<any, any>

Parameters

ParameterType
nameT
interceptorT

Returns

IDisposable

Defined in

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


interceptDocumentViewModel()

interceptDocumentViewModel(viewModel): DisposableCollection

Parameters

ParameterType
viewModelDocumentViewModel

Returns

DisposableCollection

Defined in

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