MCPcopy
hub / github.com/plotly/plotly.js / checkElementOverlap

Function checkElementOverlap

test/jasmine/tests/sankey_test.js:556–562  ·  view source on GitHub ↗
(i, j)

Source from the content-addressed store, hash-verified

554
555 it('prevents nodes from overlapping in snap arrangement', function(done) {
556 function checkElementOverlap(i, j) {
557 var base = document.querySelector('.sankey-node:nth-of-type(' + i + ')');
558 base = base.querySelector('.node-rect');
559 var compare = document.querySelector('.sankey-node:nth-of-type(' + j + ')');
560 compare = compare.querySelector('.node-rect');
561 return checkOverlap(base, compare);
562 }
563
564 var mockCopy = Lib.extendDeep({}, mockXY);
565

Callers 1

sankey_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…