Skip to content

Commit d958279

Browse files
authored
Merge pull request #3496 from plotly/fix3492-enable-opacity-by-alpha-fin
Enabling transparent webgl draws for scatter3d trace when colors are transparent
2 parents 5fd2b80 + e40d6fc commit d958279

5 files changed

+55
-12
lines changed

package-lock.json

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

package.json

+3-3
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.12",
76+
"gl-error3d": "^1.0.13",
7777
"gl-heatmap2d": "^1.0.5",
78-
"gl-line3d": "^1.1.9",
78+
"gl-line3d": "^1.1.10",
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.5",
84+
"gl-scatter3d": "^1.1.6",
8585
"gl-select-box": "^1.0.3",
8686
"gl-spikes2d": "^1.0.2",
8787
"gl-streamtube3d": "^1.1.2",
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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, 1.0)", "rgb(255, 0, 0, 1.0)", "rgb(255, 0, 0, 0.2)", "rgb(255, 0, 0, 1.0)", "rgb(0, 0, 255, 1.0)"]
11+
},
12+
"line": {
13+
"width": 50,
14+
"color": ["rgb(0, 255, 0, 1.0)", "rgb(255, 0, 0, 1.0)", "rgb(255, 0, 0, 0.2)", "rgb(255, 0, 0, 1.0)", "rgb(0, 0, 255, 1.0)"]
15+
},
16+
"error_z": {
17+
"type": "sqrt",
18+
"line": { "thickness": 10 },
19+
"color": "rgb(255, 127, 0, 0.75)"
20+
},
21+
"error_x": {
22+
"type": "sqrt"
23+
},
24+
"error_y": {
25+
"type": "sqrt"
26+
},
27+
"type": "scatter3d"
28+
}
29+
],
30+
"layout": {
31+
"title": {
32+
"text": "Should draw transparent scatter3d markers and lines<br>when having transparent rgba color"
33+
},
34+
"width": 600,
35+
"height": 600,
36+
"scene": {
37+
"xaxis": { "nticks": 12 },
38+
"yaxis": { "nticks": 12 },
39+
"zaxis": { "nticks": 12 }
40+
}
41+
}
42+
43+
}

0 commit comments

Comments
 (0)