Skip to content

Commit 180c065

Browse files
committed
Update debug code
1 parent 6168912 commit 180c065

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/jasmine/tests/sankey_test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,13 @@ describe('sankey tests', function() {
13051305

13061306
Plotly.newPlot(gd, fig)
13071307
.then(function() { return Plotly.restyle(gd, 'node.hoverinfo', 'skip'); })
1308+
.then(function() {
1309+
var nodes = document.getElementsByClassName('sankey-node');
1310+
Array.from(nodes).forEach(function(n, i) {
1311+
var r = n.getBoundingClientRect();
1312+
console.log('node', i, {x: (r.left + r.right) / 2, y: (r.top + r.bottom) / 2, r: r});
1313+
});
1314+
})
13081315
.then(assertNoHoverEvents('node'))
13091316
.then(done, done.fail);
13101317
});

0 commit comments

Comments
 (0)