Skip to main content

Polyline

A polyline with a label.

SVG selectors

Supported attrs properties:

SelectorNodeDescription
rootSVGGElementContainer of all nodes
bodySVGPolylineElementGeneric body of the shape
labelSVGTextElementText inside the body
const polyline = new shapes.standard.Polyline();
polyline.resize(100, 100);
polyline.position(450, 210);
polyline.attr('root/title', 'shapes.standard.Polyline');
polyline.attr('label/text', 'Polyline');
polyline.attr('body/refPoints', '0,0 0,10 10,10 10,0');

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub