Skip to content

Commit ae878a8

Browse files
authored
Merge pull request #3744 from plotly/fix3741-enable-opacity-by-alpha
Enable transparency by alpha colors in mesh3d
2 parents 8fd2133 + 66e9ad8 commit ae878a8

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-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
@@ -78,7 +78,7 @@
7878
"gl-heatmap2d": "^1.0.5",
7979
"gl-line3d": "^1.1.11",
8080
"gl-mat4": "^1.2.0",
81-
"gl-mesh3d": "^2.1.0",
81+
"gl-mesh3d": "^2.1.1",
8282
"gl-plot2d": "^1.4.2",
8383
"gl-plot3d": "^2.2.1",
8484
"gl-pointcloud2d": "^1.0.2",
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"data": [
3+
{
4+
"type": "mesh3d",
5+
"x":[0, 1, 2, 0],
6+
"y":[0, 0, 1, 2],
7+
"z":[0, 2, 0, 1],
8+
"i":[0, 0, 0, 1],
9+
"j":[1, 2, 3, 2],
10+
"k":[2, 3, 1, 3],
11+
"vertexcolor": [
12+
"rgb(0, 0, 0, 1.0)",
13+
"rgb(255, 0, 0, 0.1)",
14+
"rgb(0, 255, 0, 0.1)",
15+
"rgb(0, 0, 255, 0.1)"
16+
]
17+
}
18+
],
19+
"layout": {
20+
"title": {
21+
"text": "Should draw transparent mesh<br>when having transparent rgba color"
22+
},
23+
"width": 400,
24+
"height": 400
25+
}
26+
}

0 commit comments

Comments
 (0)