editor / freeShapeWithoutPoints
Function: freeShapeWithoutPoints()
freeShapeWithoutPoints(
shape,removed):FreeShape
Defined in: model/free-shape-without-points.ts:20
Free shape without some of its points: each goes with its radius, and its two neighbours become consecutive, joined by a straight edge, the contour staying closed; the others keep their place — on a turned shape too (ADR-0035) — and their order, numbered from the first one left (F08.AC4, note 0007). Fewer than 3 points left give a free shape that is not valid (see deletionOutcome).
Parameters
shape
free shape, straight or turned
removed
readonly number[]
numbers of the points to remove, from 0, in any order
Returns
the free shape of the points left, its box placed so that the points left stay where they are drawn
Kind
domain
See
docs/domain/interaction.md#_3-node-editing