Skip to content

Commit e6ea65d

Browse files
committed
Fix test
1 parent dc26aa9 commit e6ea65d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/jasmine/tests/sankey_test.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,8 @@ describe('sankey tests', function () {
723723
const centers = {};
724724
// d3 v3 binds the element to `this`, so this callback stays a function
725725
d3SelectAll('.sankey-node').each(function (d) {
726-
centers[d.index] = getNodeCoords(this);
726+
// measure the rect because the label shifts the group bounding box
727+
centers[d.index] = getNodeCoords(this.querySelector('.node-rect'));
727728
});
728729
return centers;
729730
};

0 commit comments

Comments
 (0)