Skip to content

editor / isAnchor

Function: isAnchor() ​

isAnchor(anchor): boolean

Defined in: model/is-anchor.ts:13

Whether an anchor can enter the model: min, mid or max on each axis, 9 places in all.

Parameters ​

anchor ​

Anchor

horizontal and vertical alignment to check

Returns ​

boolean

true when both are allowed

Kind ​

domain

See ​

docs/domain/shapes.md#regular-polygon