Skip to main content

Shape

Typeobject
Backlinks1

The shape of a path. Shape represents a vector geometry which is formed by individual subshapes combined together via boolean operations.

PropertyTypeRequired
classstringRequired
subshapesArray<SubShape>Required
windingRuleintegerRequired
radiusnumberOptional

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"shape"

subshapes​

Required

Description

A list of subshapes in the shape.

Type

Array<SubShape>

windingRule​

Required

Description

The rule determining whether an area is inside or outside a path. Note: For vectorNetwork, this property should be ignored.

Type

integer

Value

enum: the value of this property must be equal to one of the following values:

ValueExplanation
0
non-zero
1
even-odd

radius​

Optional

Description

The radius of the shape, when the subshapes have boolean operations. Affects the corners of all subshapes under the shape, as well as the corners of the overlapping region of the subshapes. The radius of the subshapes override this radius.

Type

number