@univerjssheets-uiindexclassesMarkselectionservice

@univerjs/sheets-ui v0.5.4


Class: MarkSelectionService

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:53

For copy and cut selection. also for selection when hover on conditional format items in the cf panel on the right. NOT FOR hovering on panel in data validation.

Extends

Implements

Constructors

new MarkSelectionService()

new MarkSelectionService(
   _currentService, 
   _renderManagerService, 
   _themeService): MarkSelectionService

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:56

Parameters

ParameterType
_currentServiceIUniverInstanceService
_renderManagerServiceIRenderManagerService
_themeServiceThemeService

Returns

MarkSelectionService

Overrides

Disposable.constructor

Properties

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

Methods

addShape()

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

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:64

Parameters

ParameterTypeDefault value
selectionISelectionWithStyleundefined
exitsstring[][]
zIndexnumberDEFAULT_Z_INDEX

Returns

null | string

Implementation of

IMarkSelectionService.addShape


addShapeWithNoFresh()

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

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:84

Parameters

ParameterTypeDefault value
selectionISelectionWithStyleundefined
exitsstring[][]
zIndexnumberDEFAULT_Z_INDEX

Returns

null | string

Implementation of

IMarkSelectionService.addShapeWithNoFresh


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getShapeMap()

getShapeMap(): Map<string, IMarkSelectionInfo>

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:135

Returns

Map<string, IMarkSelectionInfo>

Implementation of

IMarkSelectionService.getShapeMap


refreshShapes()

refreshShapes(): void

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:101

Returns

void

Implementation of

IMarkSelectionService.refreshShapes


removeAllShapes()

removeAllShapes(): void

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:147

Returns

void

Implementation of

IMarkSelectionService.removeAllShapes


removeShape()

removeShape(id): void

Defined in: submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:139

Parameters

ParameterType
idstring

Returns

void

Implementation of

IMarkSelectionService.removeShape