iVis-at-Bilkent / cytoscape.js-expand-collapse

A Cytoscape.js extension to expand/collapse nodes for better management of complexity of compound graphs
MIT License
126 stars 37 forks source link

Get bounding box size of compound nodes #108

Open celine3d opened 4 years ago

celine3d commented 4 years ago

Hi I am using cytoscape with compound nodes with the usage of cytoscape-extend-collapse. On before expand I would like to know what is the bounding box of children, I checked with autoWidth and height but they seem to be undefined. Is there a way to tell? My piece of code: cy={cy => { setCy(cy); cy.nodes().on('expandcollapse.beforeexpand', e => { const targetPosition = e.target.position(); const targetBoundingBox = ???; }); }}