Shape
Typeobject
Backlinks1The shape of a path. Shape represents a vector geometry which is formed by individual subshapes combined together via boolean operations.
Property | Type | Required |
---|---|---|
class | string | Required |
subshapes | Array<SubShape> | Required |
windingRule | integer | Required |
radius | number | Optional |
windingRule​
RequiredDescription
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:
Value | Explanation |
---|---|
0 | non-zero |
1 | even-odd |
radius​
OptionalDescription
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