Is there any known reason about why a node would not be interactable besides setting allowSelect = false on a layer or making the diagram readOnly?
I have a simple diagram with 4 nodes (with ports and links). All of the nodes, ports, and links are being created and are visible as expected. However, I can only interact with a single node (Select, Click, Move, etc) - if I try to interact with the others, I get the basic diagram panning behavior instead.
I would guess that it’s most likely that you have set or data bound Part.selectable to false. Also possible (but less likely) is setting or binding GraphObject.pickable to false.
Hmmm. A more mischievous possibility is that you have added a transparent object in front of those nodes and links so that the user can see them but cannot interact with them because that “glass” object is getting all of the mouse events, but that object is not Part.selectable.
That “glass” part need not be in the model – it could just be an unmodeled Node or simple Part. This talks about such parts for a different purpose: GoJS Legends and Titles -- Northwoods Software. And the first few pages of the Introduction (starting with GoJS Building GraphObjects -- Northwoods Software) use that technique because models and templates and data binding hadn’t been introduced yet.
After further investigation, I’ve narrowed the issue down to the port itemTemplate. Not that I’m sure it’s the actual itemTemplate causing the problem, but it’s the only way I can ensure that problem does or does not occur.
If I set the item template, then I cannot interact with my diagram. If I remove the item template, I can interact just fine.