Hi @xhlu. I’m having alot of fun using dash and cytoscape to build an interactive project tree at the moment (thanks for all the hard work !). I’m currently using the Klay layout under extra_layouts, however after applying styling to nodes to make them different sizes some overlap or are hidden beneath other nodes.
As a work around I was thinking I could read the node positions (in a callback), update the positions to elements as needed, and regenerate the cytoscape plot with layout={‘name’: ‘preset’}.
Is there a way to return all the node positions generated from the layout run? I’ve noted that ‘tapNode’ can be used to return the positions from Json data, but not sure how to get out all the nodes positions together to update the layout accordingly and prefereably so can be updated upfront without clicking on nodes required.
Any suggestions welcome ! Thanks in advance.