box-selection
Interfaces
BoxSelectionParams
Parameters of the box selection Svelte action.
Properties
enabled?
Is the box selection active.
Defined in
tmp/commons/src/lib/actions/box-selection.ts:9
holder?
Element containing the elements to select.
Defined in
tmp/commons/src/lib/actions/box-selection.ts:14
onselection()?
Selection callback.
Parameters
• nodes: Element
[]
Returns
void
Defined in
tmp/commons/src/lib/actions/box-selection.ts:11
threshold?
Treshold for elements to be considered inside the box selection. Defaults to 0.9.
Defined in
tmp/commons/src/lib/actions/box-selection.ts:17
Functions
boxSelection()
Action to enable box selection on an element.
Type Parameters
• Node extends HTMLElement
Parameters
• …args: [Node
, BoxSelectionParams
]
Returns
void
| ActionReturn
<undefined
| BoxSelectionParams
, Record
<never
, any
>>
Svelte action