@univerjs/docs v0.5.0-beta.1 • 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
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
Methods
dispose()
dispose(): void
Returns
void
Implementation of
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
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
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
interceptDocumentViewModel()
interceptDocumentViewModel(viewModel): DisposableCollection
Parameters
Parameter | Type |
---|---|
viewModel | DocumentViewModel |
Returns
Defined in
docs/src/services/doc-interceptor/doc-interceptor.service.ts:82