@univerjsdocs-uiindexclassesDocselectionrenderservice

@univerjs/docs-ui v0.5.4


Class: DocSelectionRenderService

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:36

Every render module should implement this interface.

Extends

Implements

Constructors

new DocSelectionRenderService()

new DocSelectionRenderService(
   _context, 
   _layoutService, 
   _logService, 
   _univerInstanceService, 
   _docSkeletonManagerService): DocSelectionRenderService

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:124

Parameters

ParameterType
_contextIRenderContext<DocumentDataModel>
_layoutServiceILayoutService
_logServiceILogService
_univerInstanceServiceIUniverInstanceService
_docSkeletonManagerServiceDocSkeletonManagerService

Returns

DocSelectionRenderService

Overrides

RxDisposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:120
onBlur$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:74
onChangeByEvent$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:58
onCompositionend$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:53
onCompositionstart$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:47
onCompositionupdate$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:50
onFocus$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:71
onInput$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:44
onInputBefore$readonlyObservable<Nullable<IEditorInputConfig>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:38
onKeydown$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:41
onPaste$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:65
onPointerDown$readonlyObservable<void>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:77
onSelectionStart$readonlyObservable<Nullable<INodePosition>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:56
textSelectionInner$readonlyObservable<Nullable<IDocSelectionInnerParam>>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:68

Accessors

activeViewPort

Get Signature

get activeViewPort(): Viewport

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:154

Returns

Viewport


canFocusing

Get Signature

get canFocusing(): boolean

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:120

Returns

boolean


isFocusing

Get Signature

get isFocusing(): boolean

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:116

Returns

boolean


isOnPointerEvent

Get Signature

get isOnPointerEvent(): boolean

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:112

Returns

boolean

Methods

__attachScrollEvent()

__attachScrollEvent(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:1023

Returns

void


__handleDblClick()

__handleDblClick(evt): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:356

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

void


__handleTripleClick()

__handleTripleClick(evt): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:414

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

void


__onPointDown()

__onPointDown(evt): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:447

Parameters

ParameterType
evt| IMouseEvent | IPointerEvent

Returns

void


activate()

activate(
   x, 
   y, 
   force): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:324

Parameters

ParameterTypeDefault value
xnumberundefined
ynumberundefined
forcebooleanfalse

Returns

void

Deprecated


addDocRanges()

addDocRanges(
   ranges, 
   isEditing, 
   options?): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:183

Parameters

ParameterTypeDefault value
rangesISuccinctDocRangeParam[]undefined
isEditingbooleantrue
options?{}undefined

Returns

void


blur()

blur(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:342

Returns

void


deactivate()

deactivate(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:350

Returns

void

Deprecated


dispose()

dispose(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:658

Returns

void

Implementation of

IRenderModule.dispose

Overrides

RxDisposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

RxDisposable.ensureNotDisposed


focus()

focus(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:338

Returns

void


getActiveTextRange()

getActiveTextRange(): undefined | TextRange

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:596

Returns

undefined | TextRange


getAllRectRanges()

getAllRectRanges(): IRectRangeWithStyle[]

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:634

Returns

IRectRangeWithStyle[]


getAllTextRanges()

getAllTextRanges(): ITextRangeWithStyle[]

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:630

Returns

ITextRangeWithStyle[]


getSegment()

getSegment(): string

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:162

Returns

string


getSegmentPage()

getSegmentPage(): number

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:170

Returns

number


hasFocus()

hasFocus(): boolean

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:334

Returns

boolean


removeAllRanges()

removeAllRanges(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:591

Returns

void


setCursorManually()

setCursorManually(evtOffsetX, evtOffsetY): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:285

Parameters

ParameterType
evtOffsetXnumber
evtOffsetYnumber

Returns

void


setReserveRangesStatus()

setReserveRangesStatus(status): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:174

Parameters

ParameterType
statusboolean

Returns

void


setSegment()

setSegment(id): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:158

Parameters

ParameterType
idstring

Returns

void


setSegmentPage()

setSegmentPage(pageIndex): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:166

Parameters

ParameterType
pageIndexnumber

Returns

void


sync()

sync(): void

Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:317

Returns

void