Hi,
I have a simple node template with vertically located Textbox,picture and another Textbox.
I want to be able to resize all objects in the node, namely increase the textbox font size and increase the picture size.
I marked the node as resizable and set the resizeObjectName with the node name.
Nothing is getting bigger, only the node boundaries.
Here is my node template:
diagram.nodeTemplate =
$(go.Node, “Vertical”, { name: “NODESHAPE” },
new go.Binding(“location”, “loc”, go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding(“isShadowed”, “isSelected”).ofObject(),
{
selectionAdorned: false,
shadowOffset: new go.Point(0, 0),
shadowBlur: 15,
shadowColor: “blue”,
resizable: true,
resizeObjectName: "NODESHAPE"
},
$(go.TextBlock, { margin: 4 }, new go.Binding(“text”, “siteId”)),
$(go.Picture, { width: 100, height: 100, alignment: go.Spot.Center }, new go.Binding(“source”) ),
$(go.TextBlock, { margin: 4 }, new go.Binding(“text”, “ipAddress”))
);
Please Advise.
Thanks