@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