@univerjsdocs-uiindexclassesDocselectionrenderservice

@univerjs/docs-ui v0.5.0-beta.1 • Docs


Class: DocSelectionRenderService

Every render module should implement this interface.

Extends

Implements

Constructors

new DocSelectionRenderService()

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

Parameters

ParameterType
_contextIRenderContext<DocumentDataModel>
_layoutServiceILayoutService
_logServiceILogService
_univerInstanceServiceIUniverInstanceService
_docSkeletonManagerServiceDocSkeletonManagerService

Returns

DocSelectionRenderService

Overrides

RxDisposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:117
onBlur$readonlyObservable<IEditorInputConfig>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:68
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:65
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:59
onPointerDown$readonlyObservable<void>undefined-submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:71
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:62

Accessors

activeViewPort

Get Signature

get activeViewPort(): Viewport
Returns

Viewport

Defined in

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

Methods

__attachScrollEvent()

__attachScrollEvent(): void

Returns

void

Defined in

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


__handleDblClick()

__handleDblClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


__handleTripleClick()

__handleTripleClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


__onPointDown()

__onPointDown(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

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


activate()

activate(
   x, 
   y, 
   force): void

Parameters

ParameterTypeDefault value
xnumberundefined
ynumberundefined
forcebooleanfalse

Returns

void

Deprecated

Defined in

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


addDocRanges()

addDocRanges(
   ranges, 
   isEditing, 
   options?): void

Parameters

ParameterTypeDefault value
rangesISuccinctDocRangeParam[]undefined
isEditingbooleantrue
options?objectundefined

Returns

void

Defined in

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


blur()

blur(): void

Returns

void

Defined in

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


blurEditor()

blurEditor(): void

Returns

void

Deprecated

Defined in

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


deactivate()

deactivate(): void

Returns

void

Deprecated

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Overrides

RxDisposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


focus()

focus(): void

Returns

void

Defined in

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


focusEditor()

focusEditor(): void

Returns

void

Deprecated

Defined in

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


getActiveTextRange()

getActiveTextRange(): undefined | TextRange

Returns

undefined | TextRange

Defined in

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


getSegment()

getSegment(): string

Returns

string

Defined in

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


getSegmentPage()

getSegmentPage(): number

Returns

number

Defined in

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


hasFocus()

hasFocus(): boolean

Returns

boolean

Defined in

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


removeAllRanges()

removeAllRanges(): void

Returns

void

Defined in

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


setCursorManually()

setCursorManually(evtOffsetX, evtOffsetY): void

Parameters

ParameterType
evtOffsetXnumber
evtOffsetYnumber

Returns

void

Defined in

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


setReserveRangesStatus()

setReserveRangesStatus(status): void

Parameters

ParameterType
statusboolean

Returns

void

Defined in

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


setSegment()

setSegment(id): void

Parameters

ParameterType
idstring

Returns

void

Defined in

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


setSegmentPage()

setSegmentPage(pageIndex): void

Parameters

ParameterType
pageIndexnumber

Returns

void

Defined in

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


sync()

sync(): void

Returns

void

Defined in

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