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
Parameter | Type |
---|---|
_context | IRenderContext <DocumentDataModel > |
_layoutService | ILayoutService |
_logService | ILogService |
_univerInstanceService | IUniverInstanceService |
_docSkeletonManagerService | DocSkeletonManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:120 |
onBlur$ | readonly | Observable <IEditorInputConfig > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:74 |
onChangeByEvent$ | readonly | Observable <Nullable <IEditorInputConfig >> | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:58 |
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:71 |
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:65 |
onPointerDown$ | readonly | Observable <void > | undefined | - | submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:77 |
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: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
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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
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
Parameter | Type | Default value |
---|---|---|
x | number | undefined |
y | number | undefined |
force | boolean | false |
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
Parameter | Type | Default value |
---|---|---|
ranges | ISuccinctDocRangeParam [] | undefined |
isEditing | boolean | true |
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
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
getAllTextRanges()
getAllTextRanges(): ITextRangeWithStyle[]
Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:630
Returns
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
Parameter | Type |
---|---|
evtOffsetX | number |
evtOffsetY | number |
Returns
void
setReserveRangesStatus()
setReserveRangesStatus(status): void
Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:174
Parameters
Parameter | Type |
---|---|
status | boolean |
Returns
void
setSegment()
setSegment(id): void
Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:158
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
setSegmentPage()
setSegmentPage(pageIndex): void
Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:166
Parameters
Parameter | Type |
---|---|
pageIndex | number |
Returns
void
sync()
sync(): void
Defined in: submodules/univer/packages/docs-ui/src/services/selection/doc-selection-render.service.ts:317
Returns
void