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

@univerjs/sheets-ui v0.4.2Docs


Class: MarkSelectionService

For condition format selection.

Extends

Implements

Constructors

new MarkSelectionService()

new MarkSelectionService(
   _currentService, 
   _renderManagerService, 
   _themeService): MarkSelectionService

Parameters

ParameterType
_currentServiceIUniverInstanceService
_renderManagerServiceIRenderManagerService
_themeServiceThemeService

Returns

MarkSelectionService

Overrides

Disposable.constructor

Defined in

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:54 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

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

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:62 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.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)


getShapeMap()

getShapeMap(): Map<string, IMarkSelectionInfo>

Returns

Map<string, IMarkSelectionInfo>

Implementation of

IMarkSelectionService.getShapeMap

Defined in

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:113 (opens in a new tab)


refreshShapes()

refreshShapes(): void

Returns

void

Implementation of

IMarkSelectionService.refreshShapes

Defined in

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:80 (opens in a new tab)


removeAllShapes()

removeAllShapes(): void

Returns

void

Implementation of

IMarkSelectionService.removeAllShapes

Defined in

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:125 (opens in a new tab)


removeShape()

removeShape(id): void

Parameters

ParameterType
idstring

Returns

void

Implementation of

IMarkSelectionService.removeShape

Defined in

packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:117 (opens in a new tab)


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