Skip to main content

Path

A path with a label.

SVG selectors

Supported attrs properties:

SelectorNodeDescription
rootSVGGElementContainer of all nodes
bodySVGPathElementGeneric body of the shape
labelSVGTextElementText inside the body
const path = new shapes.standard.Path();
path.resize(100, 100);
path.position(50, 210);
path.attr('root/title', 'shapes.standard.Path');
path.attr('label/text', 'Path');
path.attr('body/refD', 'M 0 5 10 0 C 20 0 20 20 10 20 L 0 15 Z');

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub