API Reference
@univerjs
@univerjs/docs
classes
Docinterceptorservice

@univerjs/docs v0.4.2Docs


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 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Inherited from

Disposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

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


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 (opens in a new tab)


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 (opens in a new tab)


interceptDocumentViewModel()

interceptDocumentViewModel(viewModel): DisposableCollection

Parameters

ParameterType
viewModelDocumentViewModel

Returns

DisposableCollection

Defined in

docs/src/services/doc-interceptor/doc-interceptor.service.ts:82 (opens in a new tab)


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