kingo
#1
if my Node template has:
myDiagram.linkTemplate =
$(go.Node, . . .
$(go.TextBlock,
new go.Binding("location", "text_loc", go.Point.parse).makeTwoWay(go.Point.stringify)),
. . .);
Then when initializing the DataInspector properties , could I include this property descriptor?
"text_loc": { show: Inspector.showIfNode,type: 'point'}

I need to save the location of the TextBlock.
walter
#2
Don’t you get errors or warnings? Are you using go-debug.js
?
You cannot assign myDiagram.linkTemplate = $(go.Node, . . .
There is no “location” property on TextBlock, so you cannot bind that property.
kingo
#3
Thank you!It’s a great example.
walter
#4
That depends on your template and how the label is positioned relative to the rest of the node.
Are you using something like State Chart with Draggable Node Labels ?
And you really should be using go-debug.js
during development.