Hi I need resize the image added into the diagram, I can resize the panel table but the image no scale, and I need the image resize auto with the panel table or modify the size of the image manually in the diagram
My code
$(go.Node, “Table”,
{
alignmentFocus: go.Spot.Left,
locationObjectName: “SHAPE”,
resizable: true,
resizeObjectName: ‘shape’,
selectionAdorned: false,
cursor: “pointer”,
toolTip: tooltiptemplate,
dragComputation: stayInViewportIcon
},
new go.Binding(“location”, “loc”, go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding(“portId”, “portId”),
new go.Binding(“eventType”, “eventType”),
new go.Binding(“status”, “status”),
new go.Binding(“fill”, “fill”),
new go.Binding(“desiredSize”, “size”),
$(go.Panel, “Auto”,
$(go.Picture,
{
row: 0, column: 0, margin: 0,
desiredSize: new go.Size(100, 100),
alignment: go.Spot.Left,
scale:1
},
new go.Binding(“source”, “image”))
)
);
regards,
Juan