Skip to content

Intermact API Reference / @intermact/core / shapeObject

Function: shapeObject() ​

shapeObject(type, contours, style, options?): IMObject2D

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

Build a fillable construct object (stroke + fill + morphable) from contours.

Parameters ​

type ​

string

contours ​

readonly RawContour[]

style ​

ObjectStyle

options? ​

defaultSamples? ​

number

morphable? ​

boolean

Returns ​

IMObject2D

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