Skip to content

Intermact API Reference / @intermact/core / line

Function: line()

line(props): IMObject2D

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

Build a straight stroke-only segment from from to to (design.md §5.1).

Parameters

props

LineProps

Returns

IMObject2D

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