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

Removing a part

$
0
0

@marty1 wrote:

Hi,
My issue is I want to remove a part which is actually a background.

Suppose this is how I added a part

myDiagram.add(
scope.gj(go.Part, // this Part is not bound to any model data
{
layerName: "Background", position: new go.Point(0, 0),
selectable: false, pickable: false
},
scope.gj(go.Picture, {
source: img.src,
//width: scope.totalDiagramWidth,
//height: scope.totalDiagramHeight
},
new go.Binding("width", "widthOfCanvas"),
new go.Binding("height", "heightOfCanvas")
)
))

Now I want to remove it
How is it possible please?

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles