"Focus" node on click?

Hi guys. This library looks really cool. Is there any way to “focus” a node when clicking on another? (think ), I’m referencing a node (better a link) from another link and I would like the user to click on the label and have the diagram scroll to the referenced link.


I’m not sure what you mean. Perhaps you want to call CommandHandler.scrollToPart?

If that’s not it, please show before-and-after screenshots for what you want to happen.

That sounds like half of what I want. I guess the other half would be to select it, which would be just getting the node and setting Part.isSelected.=true, right?

Yes, that’s right. Or call Diagram.select to not only select that Part but also make sure it is the only selected Part.