Selection
6 pages
-
selection_setChanges the node selection (nodeIds) and the element selection (targets: TargetRef[] with elements), each by mode: 'replace' (default), 'add', 'remove' or 'toggle'; additive: true is 'add'. -
selection_clearDeselects every node and element. -
get_selectionThe selection of viewport (default the primary slot): { nodeIds, elements?, level? -
selection_level_setSets the selection level of viewport (default the primary slot), what a click selects: 'object', 'face', 'edge' or 'point'. -
selection_marqueeSelects the nodes in the CSS-pixel rect (x0, y0)–(x1, y1), edges inclusive. -
selection_lassoSelects the nodes inside the CSS-pixel polygon points ([x, y] pairs, at least 3, implicitly closed; the even-odd rule, on pixel centres for what is drawn).