Selection Plugin 
Selection plugin, used in conjunction with the selection action. When used individually, the plugin registers the selection action for each shape.
Types 
typescript
export type SelectionPluginOptions = {
	selectionActionOptions?: SelectionActionOptions // This property can be passed in pluginOptions['selection'].selectionActionOptions or Selection Plugin instantiation constructor parameters when ImageMark constructs the instance
}
// Selection mode type
export type SelectionType = 'single' | 'multiple'constructor 
ts
// Create a SelectionPlugin instance
constructor(
	imageMarkInstance: ImageMark,
	public selectionPluginOptions?: SelectionPluginOptions
): SelectionPluginStatic Properties 
pluginName 
selection
Instance Properties 
selectShapeList 
List of selected shapes
Instance Methods 
getSelectionPluginOptions 
ts
// Get plugin configuration
getSelectionPluginOptions(options?: DeepPartial<SelectionPluginOptions>):SelectionPluginOptionsmode 
ts
// Switch between single and multiple selection modes
mode(newMode?: SelectionType): voidgetSelectionAction 
ts
// Get the selection action for a specific shape
getSelectionAction(shape: ImageMarkShape): SelectionAction | undefinedselectShape 
ts
// Select a specific shape
selectShape(shape: ImageMarkShape): voidselectShapes 
ts
// Select multiple shapes
selectShapes(shapeList: ImageMarkShape[]): voidunselectShape 
ts
// Unselect a specific shape
unselectShape(shape: ImageMarkShape): voidunselectShapes 
ts
// Unselect multiple shapes
unselectShapes(shapeList: ImageMarkShape[]): voidclear 
ts
// Clear all selections
clear(): voiddestroy 
ts
// Destroy the plugin
destroy(): void