MCPcopy Index your code
hub / github.com/plotly/plotly.js / checkElementsSize

Function checkElementsSize

test/jasmine/tests/config_test.js:651–660  ·  view source on GitHub ↗
(nodeList, width, height)

Source from the content-addressed store, hash-verified

649 }
650
651 function checkElementsSize(nodeList, width, height) {
652 var i;
653 for(i = 0; i < nodeList.length; i++) {
654 var domRect = nodeList[i].getBoundingClientRect();
655 expect(domRect.width).toBe(width);
656 expect(domRect.height).toBe(height);
657 expect(+nodeList[i].getAttribute('width')).toBe(width);
658 expect(+nodeList[i].getAttribute('height')).toBe(height);
659 }
660 }
661
662 function checkCanvasSize(canvases, width, height) {
663 var i;

Callers 1

testResponsiveFunction · 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…