Note that this assumes the polygon is closed, and creates an edge from the last to first point.
Design: LineSegments
Whether the edges of the sketch should be shown.
Flags : cached, parameter
Default expression : true
The binding target for a UISketcher, or any data in the same format.
Flags : cached, parameter
Default expression : "{}"
The polygon/polyline of edges in sketchData. Note that this assumes that the sketch data is in a particular format.
Flags : cached
Expression : if (this.sketchDataPojo.nodes) { return this.sketchDataPojo.nodes.map(n => p(n.attributes.x, n.attributes.y, 0)); } else { return []; }
Sketch (d.0.0.0)
Mixins: BaseAssembly
A Sketch is a 2D collection of graphic elements which can be treated as a coherent set. It is intended to be the target of a UISketcher, but does not have to be.