thanks for your response. I am dragged circle shape in the diagram area and trying to resize the shape horizontal or vertically . but it won’t be stretch vertically and horizontally. other shapes are re-sizing properly .please find the code.
function nodeStyle() {
return [
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
{
// the Node.location is at the center of each node
// locationSpot: go.Spot.Top,
resizable: true, resizeObjectName: "SHAPE", // user can resize the Shape
rotatable: true, rotateObjectName: "SHAPE", // user can rotate the Shape
//isShadowed: true,
//shadowColor: "#888",
// handle mouse enter/leave events to show/hide the ports
mouseEnter: function (e, obj) { showPorts(obj.part, true); },
mouseLeave: function (e, obj) { showPorts(obj.part, false); }
},
new go.Binding("desiredSize").makeTwoWay(),
new go.Binding("angle").makeTwoWay(),
];
}
wiDiagram.nodeTemplateMap.add(“Number”,
$$(go.Node, “Spot”, nodeStyle(), new go.Binding(“zOrder”), { zOrder: 0 },
$$(go.Panel, “Auto”,
$$(go.Shape, “Circle”,
{ minSize: new go.Size(30, NaN), fill: stdColor, stroke: stdColor, strokeWidth: 2, geometryStretch: go.GraphObject.Fill },
new go.Binding(“fill”, “color”),
new go.Binding(“stroke”, “borderColor”),
new go.Binding(“strokeWidth”, “thickness”)),
//$$(go.TextBlock, “”,
// { font: “bold 11pt Helvetica, Arial, sans-serif”, stroke: lightText },
// new go.Binding(“text”))
$$(go.TextBlock,
{
margin: 1,
maxSize: new go.Size(17,17),
wrap: go.TextBlock.WrapFit,
textAlign: "center",
editable: true,
font: "bold 11pt Helvetica, Arial, sans-serif",
stroke: 'white'
},
new go.Binding("text").makeTwoWay()),
{
contextMenu: new makeContextMenu(wiDiagram)
}
)
// no ports, because no links are allowed to connect with a comment
));
please advise me on this