Skip to content

Intermact API Reference / @intermact/core / strokeObject

Function: strokeObject() ​

strokeObject(type, contours, style): IMObject2D

Defined in: packages/core/src/constructs/shared.ts:19

Build a stroke-only construct object from world-space contours.

Parameters ​

type ​

string

contours ​

readonly RawContour[]

style ​

ObjectStyle

Returns ​

IMObject2D

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