Skip to main content

VectorNetwork

Typeobject
Backlinks1

A vector network improves on the path model by allowing lines and curves between any two points, instead of requiring that they all join up to form a single chain.

PropertyTypeRequired
classstringRequired
verticesArray<Vertex>Required
segmentsArray<Segment>Required
regionsArray<Region>Required

class​

Required

Type

string

Value

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

"vectorNetwork"

vertices​

Required

Description

A list of vertices used in the vector network.

Type

Array<Vertex>

segments​

Required

Description

A list of segments used in the vector network.

Type

Array<Segment>

regions​

Required

Description

A list of regions used in the vector network. When regions are empty, all segments automatically form a region, and all closed areas composed of segments will be filled according to the filling rules of the path object. When regions are not empty, for segments that are not used in regions, it is sufficient to draw them directly without considering the filling.

Type

Array<Region>