The location of the TextBlock

if my Node template has:

  myDiagram.linkTemplate =
  $(go.Node, . . .
     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.

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.

Thank you!It’s a great example.

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.