Hello,
I am trying to define a new shape for my force directed diagram using the “go.Shape.defineFigureGenerator” referenced in the following link.
However, this example does not cover defining an SVG object using a path string rather it shows how to encode the path string using the following code block:
geo.add(new go.PathFigure(0, 0)
.add(new go.PathSegment(go.PathSegment.Line, w, 0))
.add(new go.PathSegment(go.PathSegment.Line, w, h - p1))
.add(new go.PathSegment(go.PathSegment.Arc, 0, 90, w - p1, h - p1, p1, p1))
.add(new go.PathSegment(go.PathSegment.Line, p1, h))
.add(new go.PathSegment(go.PathSegment.Arc, 90, 90, p1, h - p1, p1, p1).close()));
Does GoJS support using just the path string to define the SVG object and if so how would I accomplish this?