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

Function assertTextIsBelowPath

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

Source from the content-addressed store, hash-verified

609 }
610
611 function assertTextIsBelowPath(textNode, pathNode) {
612 var textBB = textNode.getBoundingClientRect();
613 var pathBB = pathNode.getBoundingClientRect();
614
615 expect(pathBB.bottom).not.toBeGreaterThan(textBB.top);
616 }
617
618 function assertTextIsAfterPath(textNode, pathNode) {
619 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…