Skip to content

Commit 0450765

Browse files
committed
Update debug code
1 parent ae6308f commit 0450765

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

test/jasmine/tests/sankey_test.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,17 +1306,7 @@ describe('sankey tests', function() {
13061306
Plotly.newPlot(gd, fig)
13071307
.then(function() { return Plotly.restyle(gd, 'node.hoverinfo', 'skip'); })
13081308
.then(function() {
1309-
var nodes = document.getElementsByClassName('sankey-node');
1310-
Array.from(nodes).forEach(function(n, i) {
1311-
var rect = n.querySelector('.node-rect');
1312-
if(rect) {
1313-
var r = rect.getBoundingClientRect();
1314-
var cx = (r.left + r.right) / 2;
1315-
var cy = (r.top + r.bottom) / 2;
1316-
var el = document.elementFromPoint(cx, cy);
1317-
console.log('node', i, 'rect', {x: cx, y: cy, w: r.width, h: r.height, elementFromPoint: el, class: el && el.className.baseVal});
1318-
}
1319-
});
1309+
console.log('SVG:', gd.querySelector('.main-svg').outerHTML);
13201310
})
13211311
.then(assertNoHoverEvents('node'))
13221312
.then(done, done.fail);

0 commit comments

Comments
 (0)