editor / isShapePlacement
Function: isShapePlacement()
isShapePlacement(
placement):boolean
Defined in: model/is-shape-placement.ts:17
Whether a shape's angle and position can enter the model: an angle from 0 to 359, and a finite position, fractional when an edit of a turned shape leaves it so (ADR-0035).
Parameters
placement
the angle and the top-left of the box before turning
Returns
boolean
true when both are allowed
Kind
domain
See
docs/domain/shapes.md#rotation-of-shapes