0

I've been using the JGraph library and I can't seem to find out what event fires when the root node of the view changes. For example when you enter a group A, A is now the root of the view and when you perform the home action the view root is the defaultParent of the graph.

I found the mxEvent.ROOT event, but in the JavaScript docs (not the Javadocs) that it fires only on changes to the root on the model.

What event do I need to subscribe to in order to perform an action whenever the root of the view changes?

Lucas
  • 2,514
  • 4
  • 27
  • 37

1 Answers1

0

I found out that the mxEvent.UNDO action found in the JS docs here fires upon the setCurrentRoot method being called. I wish this was clearer in the Javadocs.

Jordan.J.D
  • 7,999
  • 11
  • 48
  • 78
Lucas
  • 2,514
  • 4
  • 27
  • 37