I am trying to print out the event from 'click' on the diagram, and getting exception.
I simply have an empty diagram with nothing on it..
<DiagramComponent id="diagram"
ref={diagram => (diagramInstance = diagram)}
width={"100%"} height={"1000px"}
layout={{
type: "ComplexHierarchicalTree",
verticalSpacing: 30,
horizontalSpacing: 40,
enableAnimation: true
}}
click={(e) => { self.diagramSelected(e) }}
>
<Inject services={[ComplexHierarchicalTree, LayoutAnimation]} />
</DiagramComponent>
I get this error:
TypeError: JSON.stringify cannot serialize cyclic structures
simply trying to do this:
click={(e) => { self.diagramSelected(e) }}
...
console.log(`selection changed `, JSON.stringify(e));
}