Skip to main content

Interface: SelectionProps

Defined in: widgets/selection.tsx:29

Props for Selection component.

See

Selection

Properties

PropertyTypeDescription

boxMargin?

number

Margin for the displayed bounding box over all the selected cells.

Default

5

children?

ReactNode

SelectionAction items representing available actions on the selected elements.

Default:

<>
<SelectionActionZoomToFit dock='nw' dockColumn={1} />
<SelectionActionLayout dock='nw' dockColumn={2} />
<SelectionActionGroup dock='nw' dockColumn={3} />
<SelectionActionRemove dock='ne' />
<SelectionActionConnections dock='e' />
<SelectionActionExpand dock='s' />
</>

hotkeySelectAll?

null | `Alt+${Capitalize<string>}` | `Meta+${Capitalize<string>}` | `Shift+${Capitalize<string>}` | `None+${Capitalize<string>}` | `Mod+${Capitalize<string>}` | `Ctrl+${Capitalize<string>}`

Keyboard hotkey to select all canvas elements.

Passing null disables the default hotkey.

Default

"Mod+A"

itemMargin?

number

Margin for the displayed highlight box over each selected cell.

Default

2