API Reference
@univerjs
@univerjs/engine-render
classes
Textselectionrendermanager

@univerjs/engine-render v0.1.17Docs


Class: TextSelectionRenderManager

Extends

Implements

Constructors

new TextSelectionRenderManager()

new TextSelectionRenderManager(_logService): TextSelectionRenderManager

Parameters

ParameterType
_logServiceILogService

Returns

TextSelectionRenderManager

Overrides

RxDisposable.constructor

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:249 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:117 (opens in a new tab)
onBlur$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:211 (opens in a new tab)
onCompositionend$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:196 (opens in a new tab)
onCompositionstart$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:190 (opens in a new tab)
onCompositionupdate$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:193 (opens in a new tab)
onFocus$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:208 (opens in a new tab)
onInput$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:187 (opens in a new tab)
onInputBefore$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:181 (opens in a new tab)
onKeydown$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:184 (opens in a new tab)
onPaste$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:202 (opens in a new tab)
onSelectionStart$readonlyObservable<Nullable<INodePosition>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:199 (opens in a new tab)
textSelectionInner$readonlyObservable<Nullable<ITextSelectionInnerParam>>undefined-submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:205 (opens in a new tab)

Methods

__getEditorContainer()

__getEditorContainer(): HTMLElement

Returns

HTMLElement

Implementation of

ITextSelectionRenderManager.__getEditorContainer

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:257 (opens in a new tab)


activate()

activate(x, y): void

Parameters

ParameterType
xnumber
ynumber

Returns

void

Implementation of

ITextSelectionRenderManager.activate

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:312 (opens in a new tab)


addTextRanges()

addTextRanges(ranges, isEditing): void

Parameters

ParameterTypeDefault value
rangesISuccinctTextRangeParam[]undefined
isEditingbooleantrue

Returns

void

Implementation of

ITextSelectionRenderManager.addTextRanges

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:285 (opens in a new tab)


blur()

blur(): void

Returns

void

Implementation of

ITextSelectionRenderManager.blur

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:328 (opens in a new tab)


changeRuntime()

changeRuntime(
   docSkeleton, 
   scene, 
   document): void

Parameters

ParameterType
docSkeletonDocumentSkeleton
sceneScene
documentDocuments

Returns

void

Implementation of

ITextSelectionRenderManager.changeRuntime

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:338 (opens in a new tab)


deactivate()

deactivate(): void

Returns

void

Implementation of

ITextSelectionRenderManager.deactivate

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:333 (opens in a new tab)


disableSelection()

disableSelection(): void

Returns

void

Implementation of

ITextSelectionRenderManager.disableSelection

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:281 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Implementation of

ITextSelectionRenderManager.dispose

Overrides

RxDisposable.dispose

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:623 (opens in a new tab)


disposeWithMe()

protected disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

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


enableSelection()

enableSelection(): void

Returns

void

Implementation of

ITextSelectionRenderManager.enableSelection

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:277 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

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


eventTrigger()

eventTrigger(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Implementation of

ITextSelectionRenderManager.eventTrigger

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:467 (opens in a new tab)


focus()

focus(): void

Returns

void

Implementation of

ITextSelectionRenderManager.focus

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:324 (opens in a new tab)


getViewPort()

getViewPort(): Viewport

Returns

Viewport

Implementation of

ITextSelectionRenderManager.getViewPort

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:261 (opens in a new tab)


handleDblClick()

handleDblClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Implementation of

ITextSelectionRenderManager.handleDblClick

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:356 (opens in a new tab)


handleTripleClick()

handleTripleClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Implementation of

ITextSelectionRenderManager.handleTripleClick

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:414 (opens in a new tab)


hasFocus()

hasFocus(): boolean

Returns

boolean

Implementation of

ITextSelectionRenderManager.hasFocus

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:320 (opens in a new tab)


removeAllTextRanges()

removeAllTextRanges(): void

Returns

void

Implementation of

ITextSelectionRenderManager.removeAllTextRanges

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:560 (opens in a new tab)


resetStyle()

resetStyle(): void

Returns

void

Implementation of

ITextSelectionRenderManager.resetStyle

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:273 (opens in a new tab)


setCursorManually()

setCursorManually(evtOffsetX, evtOffsetY): void

Parameters

ParameterType
evtOffsetXnumber
evtOffsetYnumber

Returns

void

Implementation of

ITextSelectionRenderManager.setCursorManually

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:446 (opens in a new tab)


setSegment()

setSegment(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

ITextSelectionRenderManager.setSegment

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:265 (opens in a new tab)


setStyle()

setStyle(style): void

Parameters

ParameterTypeDefault value
styleITextSelectionStyleNORMAL_TEXT_SELECTION_PLUGIN_STYLE

Returns

void

Implementation of

ITextSelectionRenderManager.setStyle

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:269 (opens in a new tab)


sync()

sync(): void

Returns

void

Implementation of

ITextSelectionRenderManager.sync

Defined in

submodules/univer/packages/engine-render/src/components/docs/text-selection/text-selection-render-manager.ts:308 (opens in a new tab)


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