dont know how to get the picture by node, and has changed background color as below on click node,
code as below
keyResultDiagram.nodes.each(function(n) {
console.log(n.data);
if(n.data.status == stage ) {
var shape = n.findObject("SHAPE");
var GO = go.GraphObject.make;
var color = "#302e2f3d";
if (shape) {
shape.fill = GO(go.Brush, "Linear", {
0 : color,
1 : go.Brush.lightenBy(color,
0.05),
start : go.Spot.Left,
end : go.Spot.Right
});
}
}
})
keyResultViewModel.executeStage(false);
if any advice for get picture by node or how to dynamic replace the picture?
how to replace the highlight picture