Skip to content

Commit 9bf8a98

Browse files
authored
Merge pull request #3494 from plotly/fix3493-opacity
Bug fix 3D grid lines and tick labels colored by rgba color with full transparency
2 parents b1fd7d6 + 209edd8 commit 9bf8a98

File tree

4 files changed

+58
-12
lines changed

4 files changed

+58
-12
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@
7373
"font-atlas-sdf": "^1.3.3",
7474
"gl-cone3d": "^1.2.2",
7575
"gl-contour2d": "^1.1.5",
76-
"gl-error3d": "^1.0.11",
76+
"gl-error3d": "^1.0.12",
7777
"gl-heatmap2d": "^1.0.5",
78-
"gl-line3d": "^1.1.8",
78+
"gl-line3d": "^1.1.9",
7979
"gl-mat4": "^1.2.0",
8080
"gl-mesh3d": "^2.0.7",
8181
"gl-plot2d": "^1.4.2",
8282
"gl-plot3d": "^1.6.3",
8383
"gl-pointcloud2d": "^1.0.2",
84-
"gl-scatter3d": "^1.1.4",
84+
"gl-scatter3d": "^1.1.5",
8585
"gl-select-box": "^1.0.3",
8686
"gl-spikes2d": "^1.0.2",
8787
"gl-streamtube3d": "^1.1.2",
Loading
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"data": [
3+
{
4+
"x": [0, 1, 2, 3, 4],
5+
"y": [0, 1, 2, 3, 4],
6+
"z": [0,-1,-2,-3,-4],
7+
"mode": "markers+lines",
8+
"marker": {
9+
"size": 50,
10+
"color": ["rgb(0, 255, 0, 0.5)", "rgb(255, 0, 0, 0.0)", "rgb(255, 0, 0, 0.0)", "rgb(255, 0, 0, 0.0)", "rgb(0, 0, 255, 1.0)"],
11+
"opacity": 0.999
12+
},
13+
"line": {
14+
"width": 50,
15+
"color": ["rgb(0, 255, 0, 0.5)", "rgb(255, 0, 0, 0.0)", "rgb(255, 0, 0, 0.0)", "rgb(255, 0, 0, 0.0)", "rgb(0, 0, 255, 1.0)"],
16+
"opacity": 0.999
17+
},
18+
"error_z": {
19+
"type": "sqrt",
20+
"line": { "thickness": 10 },
21+
"color": "rgb(0, 255, 0, 0.0)",
22+
"opacity": 0.999
23+
},
24+
"error_x": {
25+
"type": "sqrt"
26+
},
27+
"error_y": {
28+
"type": "sqrt"
29+
},
30+
"type": "scatter3d"
31+
}
32+
],
33+
"layout": {
34+
"title": {
35+
"text": "Should not draw transparent scatter3d markers and lines<br>when color.alpha is zero"
36+
},
37+
"width": 600,
38+
"height": 600,
39+
"scene": {
40+
"xaxis": { "nticks": 12 },
41+
"yaxis": { "nticks": 12 },
42+
"zaxis": { "nticks": 12 }
43+
}
44+
}
45+
46+
}

0 commit comments

Comments
 (0)