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

Function ensureCentered

test/jasmine/tests/hover_label_test.js:1967–1971  ·  view source on GitHub ↗
(hoverInfoNodes)

Source from the content-addressed store, hash-verified

1965 }
1966
1967 function ensureCentered(hoverInfoNodes) {
1968 expect(hoverInfoNodes.primaryText.getAttribute('text-anchor')).toBe('middle');
1969 expect(hoverInfoNodes.secondaryText.getAttribute('text-anchor')).toBe('middle');
1970 return hoverInfoNodes;
1971 }
1972
1973 function assertLabelsInsideBoxes(nodes, msgPrefix) {
1974 var msgPrefixFmt = msgPrefix ? '[' + msgPrefix + '] ' : '';

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…