Skip to content

Intermact API Reference / @intermact/core / arrow

Function: arrow()

arrow(props): IMObject2D

Defined in: packages/core/src/geometry/primitives.ts:313

Build an arrow from from to to (design.md §5.1): an open stroked shaft plus a filled isosceles triangular head whose base is perpendicular to and bisected by the shaft. headLength is clamped to 45% of the length; headWidth defaults to 90% of the head length.

Parameters

props

ArrowProps

Returns

IMObject2D

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)