@univerjssheets-uiindexclassesMarkselectionservice

@univerjs/sheets-ui v0.5.0-beta.1Docs


Class: MarkSelectionService

For copy and cut selection. also for selection when hover on conditional format items in the cf panel on the right. but hover on panel if data validation, uses another method to draw selection.

Extends

Implements

Constructors

new MarkSelectionService()

new MarkSelectionService(
   _currentService, 
   _renderManagerService, 
   _themeService): MarkSelectionService

Parameters

ParameterType
_currentServiceIUniverInstanceService
_renderManagerServiceIRenderManagerService
_themeServiceThemeService

Returns

MarkSelectionService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:55

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

addShape()

addShape(
   selection, 
   exits, 
   zIndex): null | string

Parameters

ParameterTypeDefault value
selectionISelectionWithStyleundefined
exitsstring[][]
zIndexnumberDEFAULT_Z_INDEX

Returns

null | string

Implementation of

IMarkSelectionService.addShape

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:63


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getShapeMap()

getShapeMap(): Map<string, IMarkSelectionInfo>

Returns

Map<string, IMarkSelectionInfo>

Implementation of

IMarkSelectionService.getShapeMap

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:117


refreshShapes()

refreshShapes(): void

Returns

void

Implementation of

IMarkSelectionService.refreshShapes

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:83


removeAllShapes()

removeAllShapes(): void

Returns

void

Implementation of

IMarkSelectionService.removeAllShapes

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:129


removeShape()

removeShape(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

IMarkSelectionService.removeShape

Defined in

submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:121