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

Function makeUpdate

src/plots/gl3d/scene.js:213–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 var layout = gd.layout;
212
213 var makeUpdate = function() {
214 var update = {};
215
216 if(scene.isCameraChanged(layout)) {
217 // camera updates
218 update[scene.id + '.camera'] = scene.getCamera();
219 }
220
221 if(scene.isAspectChanged(layout)) {
222 // scene updates
223 update[scene.id + '.aspectratio'] = scene.glplot.getAspectratio();
224
225 if(layout[scene.id].aspectmode !== 'manual') {
226 scene.fullSceneLayout.aspectmode =
227 layout[scene.id].aspectmode =
228 update[scene.id + '.aspectmode'] = 'manual';
229 }
230 }
231
232 return update;
233 };
234
235 var relayoutCallback = function(scene) {
236 if(scene.fullSceneLayout.dragmode === false) return;

Callers 3

relayoutCallbackFunction · 0.70
scene.jsFile · 0.70
plotOneFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…