メインコンテンツまでスキップ

Interface: PointsEditorOptions

Defined in: dom/src/points-editor/index.ts:78

Properties​

onSelectionBoxChange?​

optional onSelectionBoxChange?: (rect) => void;

Defined in: dom/src/points-editor/index.ts:94

Called whenever the selection box changes, with null once it is gone.

Parameters​

ParameterType
rectSelectionBoxRect | null

Returns​

void


onSelectionChange?​

optional onSelectionChange?: (selection) => void;

Defined in: dom/src/points-editor/index.ts:92

Called whenever a press or a selection box changes the selection.

Parameters​

ParameterType
selectionstring[]

Returns​

void


selectable?​

optional selectable?: boolean;

Defined in: dom/src/points-editor/index.ts:85

Let points be selected, and a selection be moved as one. While it is off nothing is selected, and a drag moves only the point it started on.

Default​

false

selection?​

optional selection?: readonly string[];

Defined in: dom/src/points-editor/index.ts:90

The ids of the selected points. Whoever holds the selection pushes it back with update() after PointsEditorOptions.onSelectionChange.