Interface BoxSelectionParams

Parameters of the box selection Svelte action.

interface BoxSelectionParams {
    enabled?: boolean;
    holder?: HTMLElement;
    onselection?: ((nodes: Element[]) => void);
    threshold?: number;
}

Properties

enabled?: boolean

Is the box selection active.

holder?: HTMLElement

Element containing the elements to select.

onselection?: ((nodes: Element[]) => void)

Selection callback.

threshold?: number

Treshold for elements to be considered inside the box selection. Defaults to 0.9.