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

Function same

src/plots/gl3d/scene.js:918–922  ·  view source on GitHub ↗
(x, y, i, j)

Source from the content-addressed store, hash-verified

916 var cameraDataLastSave = cameraNestedProp.get();
917
918 function same(x, y, i, j) {
919 var vectors = ['up', 'center', 'eye'];
920 var components = ['x', 'y', 'z'];
921 return y[vectors[i]] && (x[vectors[i]][components[j]] === y[vectors[i]][components[j]]);
922 }
923
924 var changed = false;
925 if(cameraDataLastSave === undefined) {

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…