2 ms·
I agree that it would be tough to create a uniform standard; there’s at least one library that tries to use/extend SVG features for defining node shapes, and ev
by threecheese 2y ago
I agree that it would be tough to create a uniform standard; there’s at least one library that tries to use/extend SVG features for defining node shapes, and even they admit it’s a PITA and so provide programmatic wrappers: [GoJS Geometry](https://gojs.net/latest/api/symbols/Geometry.html https://gojs.net/latest/api/symbols/Geometry.html)
They leverage SVG Paths [1] to define node/object shapes, and so you can use Bézier curves and other entities defined in the SVG spec in your graphs [2]. Alternatively you can just reference .svg files. They have a lot of cool samples [3]. I don’t remember where I came across it, but I’ve been digging through github to find the libraries that popular tools use; there are 3k forks, so somebody likes it.
1. [SVG Paths](https://www.w3.org/TR/SVG/paths.html https://www.w3.org/TR/SVG/paths.html)
2. [GoJS Path Strings](https://gojs.net/latest/intro/geometry.html https://gojs.net/latest/intro/geometry.html)
3. [GoJS Samples](https://gojs.net/latest/samples/ https://gojs.net/latest/samples/)