Access to diagram

Hi Walter.

I use gojs-react. In examples diagram instance created in init() method. How to get diagram instance in outer init() method (for example: to set diagram in global scope window.diagram = diagram or use diagram methods in store)

This really isn’t a GoJS question – it’s a React question.

Once you have a ref to the diagram component, ref.current.getDiagram().