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

Function assertSceneAxisRanges

test/jasmine/tests/gl3d_plot_interact_test.js:1817–1823  ·  view source on GitHub ↗
(xRange, yRange, zRange)

Source from the content-addressed store, hash-verified

1815
1816 it('@gl should contribute to scene axis autorange', function(done) {
1817 function assertSceneAxisRanges(xRange, yRange, zRange) {
1818 var sceneLayout = gd._fullLayout.scene;
1819
1820 expect(sceneLayout.xaxis.range).toBeCloseToArray(xRange, 1, 'xaxis range');
1821 expect(sceneLayout.yaxis.range).toBeCloseToArray(yRange, 1, 'yaxis range');
1822 expect(sceneLayout.zaxis.range).toBeCloseToArray(zRange, 1, 'zaxis range');
1823 }
1824
1825 Plotly.newPlot(gd, [{
1826 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…