Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7417

Remove Shapes from a Part

$
0
0

@marty1 wrote:

My question is that
I have drawn my nodeTemplate with some nodes
Now on the top of that I am adding a part
for example :

$scope.myDiagram.add($scope.gj(go.Part, {layerName: "lines", name: "linePart"},

$scope.gj(go.Shape, {
position: new go.Point(x,y),
geometry: verticalLine
}),

I am adding multiple shapes inside this part.
Now my question is what is the best way to remove some shapes that are already drawn.
Is there a way to remove shapes same as we remove parts using removeParts() function?
Can I iterate through all the shapes inside a part and remove some of them say by name?

A little help over here will be appreciated

Thanks

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7417

Trending Articles