API Reference
@univerjs
@univerjs/docs-ui
classes
Docimeinputmanagerservice

@univerjs/docs-ui v0.4.2Docs


Class: DocIMEInputManagerService

Every render module should implement this interface.

Extends

Implements

Constructors

new DocIMEInputManagerService()

new DocIMEInputManagerService(_context): DocIMEInputManagerService

Parameters

ParameterType
_contextIRenderContext<DocumentDataModel>

Returns

DocIMEInputManagerService

Overrides

RxDisposable.constructor

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:36 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$packages/core/src/shared/lifecycle.ts:117 (opens in a new tab)

Methods

clearUndoRedoMutationParamsCache()

clearUndoRedoMutationParamsCache(): void

Returns

void

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:42 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Overrides

RxDisposable.dispose

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:98 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

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


fetchComposedUndoRedoMutationParams()

fetchComposedUndoRedoMutationParams(): null | {
  previousActiveRange: ITextRangeWithStyle;
  redoMutationParams: IRichTextEditingMutationParams;
  undoMutationParams: IRichTextEditingMutationParams;
}

Returns

null | { previousActiveRange: ITextRangeWithStyle; redoMutationParams: IRichTextEditingMutationParams; undoMutationParams: IRichTextEditingMutationParams; }

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:72 (opens in a new tab)


getActiveRange()

getActiveRange(): Nullable<ITextRangeWithStyle>

Returns

Nullable<ITextRangeWithStyle>

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:59 (opens in a new tab)


getUndoRedoMutationParamsCache()

getUndoRedoMutationParamsCache(): {
  redoCache: IRichTextEditingMutationParams[];
  undoCache: IRichTextEditingMutationParams[];
}

Returns

{
  redoCache: IRichTextEditingMutationParams[];
  undoCache: IRichTextEditingMutationParams[];
}
NameTypeDefined in
redoCacheIRichTextEditingMutationParams[]packages/docs-ui/src/services/doc-ime-input-manager.service.ts:50 (opens in a new tab)
undoCacheIRichTextEditingMutationParams[]packages/docs-ui/src/services/doc-ime-input-manager.service.ts:49 (opens in a new tab)

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:47 (opens in a new tab)


pushUndoRedoMutationParams()

pushUndoRedoMutationParams(undoParams, redoParams): void

Parameters

ParameterType
undoParamsIRichTextEditingMutationParams
redoParamsIRichTextEditingMutationParams

Returns

void

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:67 (opens in a new tab)


setActiveRange()

setActiveRange(range): void

Parameters

ParameterType
rangeNullable<ITextRangeWithStyle>

Returns

void

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:63 (opens in a new tab)


setUndoRedoMutationParamsCache()

setUndoRedoMutationParamsCache(__namedParameters): void

Parameters

ParameterType
__namedParametersICacheParams

Returns

void

Defined in

packages/docs-ui/src/services/doc-ime-input-manager.service.ts:54 (opens in a new tab)


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