Hello,
Here is a part of the template who cause the issue
$(go.Picture,
{margin: 1, width: 24, height: 24, alignment: go.Spot.TopLeft},
new go.Binding('source', 'flowDirectionIcon'),
new go.Binding('name', 'key'),
{
toolTip:
$('ToolTip',
$(go.TextBlock, {margin: 3},
new go.Binding('text', 'flowDirectionIconTooltip')
))
},
{
click: (e: any, thisObj: go.GraphObject) => {
console.log(twinNode(thisObj.name))
const twin = findNode(twinNode(thisObj.name), e.diagram.nodes);
if(twin == null) return;
focusOnNode(twin, e.diagram);
}
}
)
I am binding the key to go.Picture.name