this is my nodeTemplate code;
var stateTemplate=(go.Node, "Auto",
{ locationSpot: go.Spot.Center },
//new go.Binding("angle").makeTwoWay(),
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify),
{
resizable: true,
//rotatable: true,
resizeObjectName: "pic"
},
//contextMenu
{ contextMenu: (go.Adornment)},
$(go.Picture,
{
//desiredSize: new go.Size(75, 75)
//maxSize: new go.Size(75, 75)
},
new go.Binding(“source”, “img”),
new go.Binding(“text”)
)
);
and the data that is saved in diagram is like this :
{“category”:“state”, “size”:“15 15”, “img”:"/uploads/pic/state_green.svg", “text”:{“0”:"/uploads/pic/state_green.svg", “1”:"/uploads/pic/state_red.svg", “3”:"/uploads/pic/state_black.svg"}, “key”:-35, “loc”:“1.5 -83.5”},
{“category”:“state”, “size”:“80 45”, “img”:"/uploads/pic/belt_red.png", “text”:{“0”:"/uploads/pic/belt_red.png", “255”:"/uploads/pic/belt_green.png"}, “key”:-43, “loc”:"-412.5 -342.5"},
this is my node show in myPalette;
but when i drop it to my diagram ,it changes like this;
that green picture shows like this; many weeks ago,it is ok,but today,i find it show likes this,and i do not change my code,they are the same template alright?
can you help me?