API Reference
@univerjs
@univerjs/sheets-ui
classes
Hovermanagerservice

@univerjs/sheets-ui v0.4.2Docs


Class: HoverManagerService

Extends

Constructors

new HoverManagerService()

new HoverManagerService(_univerInstanceService, _renderManagerService): HoverManagerService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_renderManagerServiceIRenderManagerService

Returns

HoverManagerService

Overrides

Disposable.constructor

Defined in

packages/sheets-ui/src/services/hover-manager.service.ts:96 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
currentCell$publicObservable<Nullable<IHoverCellPosition>>undefined-packages/sheets-ui/src/services/hover-manager.service.ts:57 (opens in a new tab)
currentClickedCell$publicObservable<IHoverRichTextPosition>undefined-packages/sheets-ui/src/services/hover-manager.service.ts:94 (opens in a new tab)
currentPosition$publicObservable<Nullable<IHoverCellPosition>>undefined-packages/sheets-ui/src/services/hover-manager.service.ts:93 (opens in a new tab)
currentRichText$publicObservable<undefined | null | void | { bullet: cell.bullet; col: cell.location.col; customRange: cell.customRange; rect: cell.rect; row: cell.location.row; subUnitId: cell.location.subUnitId; unitId: cell.location.unitId; }>undefined-packages/sheets-ui/src/services/hover-manager.service.ts:69 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/sheets-ui/src/services/hover-manager.service.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


triggerClick()

triggerClick(
   unitId, 
   offsetX, 
   offsetY): void

Parameters

ParameterType
unitIdstring
offsetXnumber
offsetYnumber

Returns

void

Defined in

packages/sheets-ui/src/services/hover-manager.service.ts:203 (opens in a new tab)


triggerMouseMove()

triggerMouseMove(
   unitId, 
   offsetX, 
   offsetY): void

Parameters

ParameterType
unitIdstring
offsetXnumber
offsetYnumber

Returns

void

Defined in

packages/sheets-ui/src/services/hover-manager.service.ts:190 (opens in a new tab)


triggerScroll()

triggerScroll(): void

Returns

void

Defined in

packages/sheets-ui/src/services/hover-manager.service.ts:210 (opens in a new tab)


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