Path
A path with a label.
SVG selectors
Supported attrs
properties:
Selector | Node | Description |
---|---|---|
root | SVGGElement | Container of all nodes |
body | SVGPathElement | Generic body of the shape |
label | SVGTextElement | Text 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');