@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
Parameter | Type |
---|---|
_context | IRenderContext <DocumentDataModel > |
_layoutService | ILayoutService |
_logService | ILogService |
_univerInstanceService | IUniverInstanceService |
_docSkeletonManagerService | DocSkeletonManagerService |
Returns
Overrides
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:106
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:117 |
onBlur$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:68 |
onCompositionend$ | readonly | Observable <Nullable <IEditorInputConfig >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:53 |
onCompositionstart$ | readonly | Observable <Nullable <IEditorInputConfig >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:47 |
onCompositionupdate$ | readonly | Observable <Nullable <IEditorInputConfig >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:50 |
onFocus$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:65 |
onInput$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:44 |
onInputBefore$ | readonly | Observable <Nullable <IEditorInputConfig >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:38 |
onKeydown$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:41 |
onPaste$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:59 |
onPointerDown$ | readonly | Observable <void > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:71 |
onSelectionStart$ | readonly | Observable <Nullable <INodePosition >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:56 |
textSelectionInner$ | readonly | Observable <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
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
Parameter | Type |
---|---|
evt | IMouseEvent | IPointerEvent |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:349
__handleTripleClick()
__handleTripleClick(evt): void
Parameters
Parameter | Type |
---|---|
evt | IMouseEvent | IPointerEvent |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:407
__onPointDown()
__onPointDown(evt): void
Parameters
Parameter | Type |
---|---|
evt | IMouseEvent | 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
Parameter | Type | Default value |
---|---|---|
x | number | undefined |
y | number | undefined |
force | boolean | false |
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
Parameter | Type | Default value |
---|---|---|
ranges | ISuccinctDocRangeParam [] | undefined |
isEditing | boolean | true |
options ? | object | undefined |
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
Overrides
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:643
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
evtOffsetX | number |
evtOffsetY | number |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:258
setReserveRangesStatus()
setReserveRangesStatus(status): void
Parameters
Parameter | Type |
---|---|
status | boolean |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:156
setSegment()
setSegment(id): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
Defined in
submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:140
setSegmentPage()
setSegmentPage(pageIndex): void
Parameters
Parameter | Type |
---|---|
pageIndex | number |
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