I know this block of code for size of guest rectangle
$(go.Panel, "Viewbox",
{ desiredSize: new go.Size(50, 38) },
$(go.TextBlock, { margin: 2, desiredSize: new go.Size(55, NaN), font: "8pt Verdana, sans-serif", textAlign: "center", stroke: "darkblue" },
new go.Binding("text", "", function(data) {
var s = data.key;
if (data.plus) s += " +" + data.plus.toString();
return s;
}))
)
I want to change size of guest once drag to another canvas (main diagram) and back to original size if drag back to canvas of guest.
Thanks in advanced.
Dear @walter,
I don’t know where event of drawing worker in right canvas is.
My purpose is just changing size of worker once dragging to right side canvas, not for all of situations.