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

Function checkCanvasSize

test/jasmine/tests/config_test.js:662–671  ·  view source on GitHub ↗
(canvases, width, height)

Source from the content-addressed store, hash-verified

660 }
661
662 function checkCanvasSize(canvases, width, height) {
663 var i;
664 for(i = 0; i < canvases.length; i++) {
665 var domRect = canvases[i].getBoundingClientRect();
666 expect(domRect.width).toBe(width);
667 expect(domRect.height).toBe(height);
668 expect(+canvases[i].getAttribute('width')).toBe(width * 2);
669 expect(+canvases[i].getAttribute('height')).toBe(height * 2);
670 }
671 }
672
673 function testResponsive() {
674 checkLayoutSize(elWidth, elHeight);

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…