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

subject node "selectable" parameter becomes false #146

Open Linlinlanlan opened 4 days ago

Linlinlanlan commented 4 days ago

Environment info Cytoscape.js version : 3.32.0 Browser/Node.js & version : Google Chrome v 130.0.6723.117 Cytoscape-expand-collapse.js: 4.1.1

Current behaviour Configured in the events "beforecollapse beforeexpand", "aftercollapse afterexpand" subject children collapse.

Current behaviour: subject node "selectable" parameter becomes false. Correct behaviour: subject node "selectable" should not change

example code:

cy.on("expandcollapse.afterexpand", (event) => {
    let node = event.target;

    apiec.collapse(node.children());
});