@3q wrote:
https://gojs.net/latest/extensions/Figures.js
go.Shape.defineFigureGenerator("CircleLine", function(shape, w, h) {
var rad = w/2;
var geo = new go.Geometry()
.add(new go.PathFigure(w, w / 2, false) // clockwise
.add(new go.PathSegment(go.PathSegment.Arc, 0, 360, rad, rad, rad, rad).close()));
geo.spot1 = GeneratorEllipseSpot1;
geo.spot2 = GeneratorEllipseSpot2;
geo.defaultStretch = go.GraphObject.Uniform;
return geo;
});
In the Figures.js ,How to dynamically change the startAngle and sweepAngle of CircleLine?
Posts: 4
Participants: 2