@univerjs/sheets-ui v0.5.0-beta.1 • Docs
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
Parameter | Type |
---|---|
_currentService | IUniverInstanceService |
_renderManagerService | IRenderManagerService |
_themeService | ThemeService |
Returns
Overrides
Defined in
submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:55
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
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
submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:63
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Parameter | Type |
---|---|
id | string |
Returns
void
Implementation of
IMarkSelectionService
.removeShape
Defined in
submodules/univer/packages/sheets-ui/src/services/mark-selection/mark-selection.service.ts:121