Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Separate figures in a Path Geometry

$
0
0

@the_lying_lama wrote:

Hello, i created a custom shape as below:

image

However, don’t want the lines that are generated in path figure as highlighted
image

How do i go about this ?Please help on this.
If I try without creating PathFigure Object… it gives me an error.

Below is my code:

go.Shape.defineFigureGenerator(“Ring”, function(shape, w, h) {
var geo = new go.Geometry();
var fig = new go.PathFigure(w,w/2-10, true);
geo.add(fig);

fig.add(new go.PathSegment(go.PathSegment.Arc, 0, 360, 30, 30, 25, 25).close());
fig.add(new go.PathSegment(go.PathSegment.Arc, 0, 360, 40, 60, 20, 20).close());
fig.add(new go.PathSegment(go.PathSegment.Arc, 0, 360, 55, 30, 25, 25).close());

return geo;
});

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles