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

Function assertTextIsAbovePath

test/jasmine/tests/funnel_test.js:604–609  ·  view source on GitHub ↗
(textNode, pathNode)

Source from the content-addressed store, hash-verified

602 }
603
604 function assertTextIsAbovePath(textNode, pathNode) {
605 var textBB = textNode.getBoundingClientRect();
606 var pathBB = pathNode.getBoundingClientRect();
607
608 expect(textBB.bottom).not.toBeGreaterThan(pathBB.top);
609 }
610
611 function assertTextIsBelowPath(textNode, pathNode) {
612 var textBB = textNode.getBoundingClientRect();

Callers 1

funnel_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…