Nhogs / popoto

Visual query builder for Neo4j graph database
http://popotojs.com
GNU General Public License v3.0
498 stars 70 forks source link

d3-selection #76

Closed blamnyc closed 1 year ago

blamnyc commented 3 years ago

Hello, I'd like to install both Popoto.js and React Flow onto a React project, but Popoto is using an older version of d3-selection (v. 1.4.2) while React Flow is using the latest version (v. 2.0.0). I'm not really familiar with d3. Do you think it would be a huge undertaking to update Popoto to use the latest d3 lib collection?

This is the error I'm encountering:

TypeError: exitingData.filter(...).transition is not a function push../node_modules/popoto/src/graph/node/node.js.node.removeElements

exitingData.filter(function (d) {
    return d.parent;
}).transition().duration(300).attr("transform", function (d) {
    return "translate(" + d.parent.x + "," + d.parent.y + ")";
}).remove();
Popotojs commented 1 year ago

Popoto 4.0.0 now uses d3 version 7.6.1, this should fix this issue.