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

Function getLayoutCamera

src/plots/gl3d/scene.js:877–884  ·  view source on GitHub ↗
(camera)

Source from the content-addressed store, hash-verified

875// getLayoutCamera :: gl-plot3d_coords -> plotly_coords
876// inverse of getCameraArrays
877function getLayoutCamera(camera) {
878 return {
879 up: {x: camera.up[0], y: camera.up[1], z: camera.up[2]},
880 center: {x: camera.center[0], y: camera.center[1], z: camera.center[2]},
881 eye: {x: camera.eye[0], y: camera.eye[1], z: camera.eye[2]},
882 projection: {type: (camera._ortho === true) ? 'orthographic' : 'perspective'}
883 };
884}
885
886// get camera position in plotly coords from 'gl-plot3d' coords
887proto.getCamera = function() {

Callers 1

scene.jsFile · 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…