@univerjs/docs-ui v0.4.2 • 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
packages/docs-ui/src/services/selection/doc-selection-render.service.ts:106 (opens in a new tab)
Properties
Accessors
activeViewPort
get activeViewPort(): Viewport
Returns
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
Parameter | Type |
---|---|
evt | IMouseEvent | 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
Parameter | Type |
---|---|
evt | IMouseEvent | 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
Parameter | Type |
---|---|
evt | IMouseEvent | 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
Parameter | Type | Default value |
---|---|---|
x | number | undefined |
y | number | undefined |
force | boolean | false |
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
Parameter | Type | Default value |
---|---|---|
ranges | ISuccinctDocRangeParam [] | undefined |
isEditing | boolean | true |
options ? | object | undefined |
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
Overrides
Defined in
packages/docs-ui/src/services/selection/doc-selection-render.service.ts:643 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
evtOffsetX | number |
evtOffsetY | number |
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
Parameter | Type |
---|---|
status | boolean |
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
Parameter | Type |
---|---|
id | string |
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
Parameter | Type |
---|---|
pageIndex | number |
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)