I have a Palette which I initialize its model. If I drag and drop a part from the palette to the diagram I get the node added to the diagram’s node data array with the object from the palette model.
var p = $g(go.Palette, “workPalette”,
{
nodeTemplateMap: d.nodeTemplateMap,
model: new go.GraphLinksModel([ // specify the contents of the Palette
{ category:“question”, name:“Questions”,actions:[{type:“action_route”,to:""}],view:null,questions:[]},
])
});
If I add multiple question nodes it seems that they all point to one actions array. So if I modify the action type I can see the other action in the other node change to the same value. I can understand this, but I would think that when I drag and drop the palette’s model data that it would be making a copy before adding it to the diagram’s model.