Skip to content

Commit 9ef8a70

Browse files
committed
forced graphs using deprecated cameraposition attribute to stay upwards
1 parent 6af04f2 commit 9ef8a70

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/plot_api/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ exports.cleanLayout = function(layout) {
114114
scene.camera = {
115115
eye: {x: eye[0], y: eye[1], z: eye[2]},
116116
center: {x: center[0], y: center[1], z: center[2]},
117-
up: {x: mat[1], y: mat[5], z: mat[9]}
117+
up: {x: 0, y: 0, z: 1} // we just ignore calculating camera z up in this case
118118
};
119119

120120
delete scene.cameraposition;

test/image/mocks/gl3d_text-weirdness.json

-16
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,6 @@
4242
],
4343
"layout": {
4444
"autosize": true,
45-
"undefined": {
46-
"cameraposition": [
47-
[
48-
0.13855639464070454,
49-
0.5365430934822464,
50-
0.7678929376547012,
51-
-0.32134727420767745
52-
],
53-
[
54-
0,
55-
0,
56-
0
57-
],
58-
1.8771354322421991
59-
]
60-
},
6145
"title": "Scatter3d with text weirdness",
6246
"showlegend": false,
6347
"height": 758,

0 commit comments

Comments
 (0)