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

Function assertSecondaryRightToPrimaryBox

test/jasmine/tests/hover_label_test.js:1980–1993  ·  view source on GitHub ↗
(nodes, msgPrefix)

Source from the content-addressed store, hash-verified

1978 }
1979
1980 function assertSecondaryRightToPrimaryBox(nodes, msgPrefix) {
1981 var msgPrefixFmt = msgPrefix ? '[' + msgPrefix + '] ' : '';
1982
1983 assertElemRightTo(
1984 nodes.secondaryBox,
1985 nodes.primaryBox,
1986 msgPrefixFmt + 'Secondary box right to primary box'
1987 );
1988 assertElemTopsAligned(
1989 nodes.secondaryBox,
1990 nodes.primaryBox,
1991 msgPrefixFmt + 'Top edges of primary and secondary boxes aligned'
1992 );
1993 }
1994
1995 function calcLineOverlap(minA, maxA, minB, maxB) {
1996 expect(minA).toBeLessThan(maxA);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…