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

@univerjs/docs-ui v0.4.2Docs


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

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:106 (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)
onBlur$readonlyObservable<IEditorInputConfig>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:68 (opens in a new tab)
onCompositionend$readonlyObservable<Nullable<IEditorInputConfig>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:53 (opens in a new tab)
onCompositionstart$readonlyObservable<Nullable<IEditorInputConfig>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:47 (opens in a new tab)
onCompositionupdate$readonlyObservable<Nullable<IEditorInputConfig>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:50 (opens in a new tab)
onFocus$readonlyObservable<IEditorInputConfig>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:65 (opens in a new tab)
onInput$readonlyObservable<IEditorInputConfig>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:44 (opens in a new tab)
onInputBefore$readonlyObservable<Nullable<IEditorInputConfig>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:38 (opens in a new tab)
onKeydown$readonlyObservable<IEditorInputConfig>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:41 (opens in a new tab)
onPaste$readonlyObservable<IEditorInputConfig>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:59 (opens in a new tab)
onPointerDown$readonlyObservable<void>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:71 (opens in a new tab)
onSelectionStart$readonlyObservable<Nullable<INodePosition>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:56 (opens in a new tab)
textSelectionInner$readonlyObservable<Nullable<IDocSelectionInnerParam>>undefined-packages/docs-ui/src/services/selection/doc-selection-render.service.ts:62 (opens in a new tab)

Accessors

activeViewPort

get activeViewPort(): Viewport

Returns

Viewport

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:136 (opens in a new tab)

Methods

__attachScrollEvent()

__attachScrollEvent(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:1016 (opens in a new tab)


__handleDblClick()

__handleDblClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:349 (opens in a new tab)


__handleTripleClick()

__handleTripleClick(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:407 (opens in a new tab)


__onPointDown()

__onPointDown(evt): void

Parameters

ParameterType
evtIMouseEvent | IPointerEvent

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:440 (opens in a new tab)


activate()

activate(
   x, 
   y, 
   force): void

Parameters

ParameterTypeDefault value
xnumberundefined
ynumberundefined
forcebooleanfalse

Returns

void

Deprecated

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:297 (opens in a new tab)


addDocRanges()

addDocRanges(
   ranges, 
   isEditing, 
   options?): void

Parameters

ParameterTypeDefault value
rangesISuccinctDocRangeParam[]undefined
isEditingbooleantrue
options?objectundefined

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:165 (opens in a new tab)


blur()

blur(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:319 (opens in a new tab)


blurEditor()

blurEditor(): void

Returns

void

Deprecated

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:334 (opens in a new tab)


deactivate()

deactivate(): void

Returns

void

Deprecated

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:343 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Implementation of

IRenderModule.dispose

Overrides

RxDisposable.dispose

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:643 (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)


focus()

focus(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:312 (opens in a new tab)


focusEditor()

focusEditor(): void

Returns

void

Deprecated

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:326 (opens in a new tab)


getActiveTextRange()

getActiveTextRange(): undefined | TextRange

Returns

undefined | TextRange

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:589 (opens in a new tab)


getSegment()

getSegment(): string

Returns

string

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:144 (opens in a new tab)


getSegmentPage()

getSegmentPage(): number

Returns

number

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:152 (opens in a new tab)


hasFocus()

hasFocus(): boolean

Returns

boolean

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:308 (opens in a new tab)


removeAllRanges()

removeAllRanges(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:584 (opens in a new tab)


setCursorManually()

setCursorManually(evtOffsetX, evtOffsetY): void

Parameters

ParameterType
evtOffsetXnumber
evtOffsetYnumber

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:258 (opens in a new tab)


setReserveRangesStatus()

setReserveRangesStatus(status): void

Parameters

ParameterType
statusboolean

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:156 (opens in a new tab)


setSegment()

setSegment(id): void

Parameters

ParameterType
idstring

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:140 (opens in a new tab)


setSegmentPage()

setSegmentPage(pageIndex): void

Parameters

ParameterType
pageIndexnumber

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:148 (opens in a new tab)


sync()

sync(): void

Returns

void

Defined in

packages/docs-ui/src/services/selection/doc-selection-render.service.ts:290 (opens in a new tab)


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