Skip to content

Commit aea6b8d

Browse files
authored
Merge pull request #3163 from plotly/issue-691_fetch-master
Improving rendering of lines in 3D - against disappearing in certain angles
2 parents 15afd7b + c195075 commit aea6b8d

9 files changed

+76
-4
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"gl-contour2d": "^1.1.4",
7575
"gl-error3d": "^1.0.8",
7676
"gl-heatmap2d": "^1.0.4",
77-
"gl-line3d": "^1.1.3",
77+
"gl-line3d": "^1.1.4",
7878
"gl-mat4": "^1.2.0",
7979
"gl-mesh3d": "^2.0.1",
8080
"gl-plot2d": "^1.3.1",

test/image/baselines/gl3d_cube.png

270 Bytes
Loading
Loading
-20 Bytes
Loading
Loading
Loading

test/image/baselines/plot_types.png

46 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"data": [
3+
{
4+
"x":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2],
5+
"y":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
6+
"z":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
7+
"type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"}
8+
},
9+
{
10+
"x":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
11+
"y":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
12+
"z":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2],
13+
"type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"}
14+
},
15+
{
16+
"x":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
17+
"y":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2],
18+
"z":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
19+
"type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"}
20+
},
21+
{
22+
"x":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0],
23+
"y":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
24+
"z":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
25+
"type": "scatter3d", "mode": "lines", "line": {"width": 10}
26+
},
27+
{
28+
"x":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
29+
"y":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
30+
"z":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0],
31+
"type": "scatter3d", "mode": "lines", "line": {"width": 10}
32+
},
33+
{
34+
"x":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2],
35+
"y":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0],
36+
"z":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0],
37+
"type": "scatter3d", "mode": "lines", "line": {"width": 10}
38+
}
39+
],
40+
"layout": {
41+
"width": 1200,
42+
"height": 900,
43+
"scene": {
44+
"camera": {
45+
"eye": {
46+
"x": -1.0,
47+
"y": -1.0,
48+
"z": -1.0
49+
},
50+
"center": {
51+
"x": 0.0,
52+
"y": 0.0,
53+
"z": 0.0
54+
},
55+
"up": {
56+
"x": 0.0,
57+
"y": 0.0,
58+
"z": 1.0
59+
}
60+
},
61+
"xaxis": {
62+
"title": "<==X.X==>"
63+
},
64+
"yaxis": {
65+
"title": "<==Y.Y==>"
66+
},
67+
"zaxis": {
68+
"title": "<==Z.Z==>"
69+
}
70+
}
71+
}
72+
}

0 commit comments

Comments
 (0)