Hi there, I have whats seems like a simple enough question but for some reason couldn’t find any previous posts in this forum or documentation on any methods to access that state of the diagrams node/link data.
For context, my code is functionally identical to the stateful and wrapper implementation on GoJs’s React tutorial page (GoJS and React -- Northwoods Software) with the minor difference being I have implemented the Pallete diagram (GoJS Palette -- Northwoods Software) and have the “clickCreatingTool.archetypeNodeData” option set so that I can add nodes into the graph by dragging or double clicking. I have no problem accessing the state of the wrapper and viewing nodes that I have added manually, however I can’t seem to find where to access any of the nodes/links created while using the diagrams node creating tools. They aren’t stored in the wrapper state nor, from what it seems, in the object reference of the diagram. I can only access the “handle…” methods from the wrapper. I looked through the object (const diagram = this.diagramRef.current.getDiagram();) but couldn’t find anything.
In short, How do I access the diagrams node/link data arrays and better yet, from the wrapper?
Thanks so much in advance, any help is greatly appreciated.