@univerjs/docs v0.4.2 • Docs
Class: DocInterceptorService
Every render module should implement this interface.
Extends
Implements
Constructors
new DocInterceptorService()
new DocInterceptorService(_context, _docSkeletonManagerService): DocInterceptorService
Parameters
Parameter | Type |
---|---|
_context | IRenderContext <DocumentDataModel > |
_docSkeletonManagerService | DocSkeletonManagerService |
Returns
Overrides
Defined in
docs/src/services/doc-interceptor/doc-interceptor.service.ts:26 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Inherited from
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Parameter | Type |
---|---|
name | IInterceptor <T , C > |
Returns
Function
Parameters
Parameter | Type |
---|---|
initValue | Nullable <T > |
initContext | C |
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
Parameter | Type |
---|---|
name | T |
interceptor | T |
Returns
Defined in
docs/src/services/doc-interceptor/doc-interceptor.service.ts:60 (opens in a new tab)
interceptDocumentViewModel()
interceptDocumentViewModel(viewModel): DisposableCollection
Parameters
Parameter | Type |
---|---|
viewModel | DocumentViewModel |
Returns
Defined in
docs/src/services/doc-interceptor/doc-interceptor.service.ts:82 (opens in a new tab)