@univerjs/sheets-ui v0.4.2 • Docs
Class: MarkSelectionService
For condition format selection.
Extends
Implements
Constructors
new MarkSelectionService()
new MarkSelectionService(
_currentService,
_renderManagerService,
_themeService): MarkSelectionService
Parameters
Parameter | Type |
---|---|
_currentService | IUniverInstanceService |
_renderManagerService | IRenderManagerService |
_themeService | ThemeService |
Returns
Overrides
Defined in
packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:54 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
addShape()
addShape(
selection,
exits,
zIndex): null | string
Parameters
Parameter | Type | Default value |
---|---|---|
selection | ISelectionWithStyle | undefined |
exits | string [] | [] |
zIndex | number | DEFAULT_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
Defined in
packages/core/src/shared/lifecycle.ts:106 (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
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
Parameter | Type |
---|---|
id | string |
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)