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

Function assertMargins

test/jasmine/tests/gl3d_plot_interact_test.js:1464–1470  ·  view source on GitHub ↗
(t, l, b, r)

Source from the content-addressed store, hash-verified

1462 var h = 500;
1463
1464 function assertMargins(t, l, b, r) {
1465 var div3d = document.getElementById('scene');
1466 expect(parseFloat(div3d.style.top)).toEqual(t, 'top');
1467 expect(parseFloat(div3d.style.left)).toEqual(l, 'left');
1468 expect(h - parseFloat(div3d.style.height) - t).toEqual(b, 'bottom');
1469 expect(w - parseFloat(div3d.style.width) - l).toEqual(r, 'right');
1470 }
1471
1472 Plotly.newPlot(gd, [{
1473 type: 'scatter3d',

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…