I would like to show the rotation information as shown in the image below. How do I do that?
myDiagram.nodeTemplate =
$(go.Node, "Auto",
{
resizable: true,
rotatable: true,
locationSpot: go.Spot.Center,
selectionAdornmentTemplate:
$(go.Adornment, "Vertical",
$(go.Panel, "Auto",
{ margin: 10 },
$(go.Shape, { fill: null, stroke: "dodgerblue", strokeWidth: 2 }),
$(go.Placeholder, { padding: 1 })
),
$(go.TextBlock,
{ background: "lightyellow "},
new go.Binding("angle", "angle", function(a) { return -a; }).ofObject(),
new go.Binding("text", "angle", function(a) { return a.toFixed(0); }).ofObject())
)
},
$(go.Shape,
{ fill: "white" },
new go.Binding("fill", "color")),
$(go.TextBlock,
{ margin: 8, editable: true },
new go.Binding("text").makeTwoWay())
);