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

Function assertDims

test/jasmine/tests/gl2d_plot_interact_test.js:263–275  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

261 var h0 = Math.floor(h);
262
263 function assertDims(msg) {
264 var fullLayout = gd._fullLayout;
265 expect(fullLayout.width).toBe(w, msg);
266 expect(fullLayout.height).toBe(h, msg);
267
268 var canvas = fullLayout._glcanvas;
269 expect(canvas.node().width).toBe(w0 * 2, msg);
270 expect(canvas.node().height).toBe(h0 * 2, msg);
271
272 var gl = canvas.data()[0].regl._gl;
273 expect(gl.drawingBufferWidth).toBe(w0 * 2, msg);
274 expect(gl.drawingBufferHeight).toBe(h0 * 2, msg);
275 }
276
277 Plotly.newPlot(gd, [{
278 type: 'scattergl',

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…