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

Function assertCameraEye

test/jasmine/tests/gl3d_plot_interact_test.js:301–310  ·  view source on GitHub ↗
(sceneLayout, eyeX, eyeY, eyeZ)

Source from the content-addressed store, hash-verified

299 }
300
301 function assertCameraEye(sceneLayout, eyeX, eyeY, eyeZ) {
302 expect(sceneLayout.camera.eye.x).toEqual(eyeX);
303 expect(sceneLayout.camera.eye.y).toEqual(eyeY);
304 expect(sceneLayout.camera.eye.z).toEqual(eyeZ);
305
306 var camera = sceneLayout._scene.getCamera();
307 expect(camera.eye.x).toBeCloseTo(eyeX);
308 expect(camera.eye.y).toBeCloseTo(eyeY);
309 expect(camera.eye.z).toBeCloseTo(eyeZ);
310 }
311
312 beforeEach(function(done) {
313 gd = createGraphDiv();

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…