diff --git a/package-lock.json b/package-lock.json index 2685cf5f341..35da1c57c00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4755,9 +4755,9 @@ } }, "gl-error3d": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/gl-error3d/-/gl-error3d-1.0.11.tgz", - "integrity": "sha512-WpdmK19qH+6kW9HSeCf2/blELxu+0jevUPLvpKnVdRGirNX0yoEW+X4MFyFaVbqLq40aljI7opgLiDXOXVVX4w==", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/gl-error3d/-/gl-error3d-1.0.12.tgz", + "integrity": "sha512-OaYMB0G9RJx8MfC16x6Q0TnYKZ51nrac4GiUqBlIKyDuNGW1U6YLmiuzY3u6ftQlh0jVhk7lDXCawgAeeYA3JA==", "requires": { "gl-buffer": "^2.1.2", "gl-shader": "^4.2.1", @@ -4806,9 +4806,9 @@ } }, "gl-line3d": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/gl-line3d/-/gl-line3d-1.1.8.tgz", - "integrity": "sha512-rTN7JR/F9soPOa35/Tn1bEsly/lEyDRXPftMVlk3iL1vnZUAlt2DtszOzxvBMhCmAk2RdfWqZ5DkciRikXVpng==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/gl-line3d/-/gl-line3d-1.1.9.tgz", + "integrity": "sha512-00E3VAxTXGOpn8cGImtMaDnKs6UkyVYEZ2tzUBYwjea9N8UB6wvR1NBoKwb0A/wFNIYUsLhdc3LKZyliB0DVLA==", "requires": { "binary-search-bounds": "^2.0.4", "gl-buffer": "^2.0.8", @@ -4937,9 +4937,9 @@ } }, "gl-scatter3d": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/gl-scatter3d/-/gl-scatter3d-1.1.4.tgz", - "integrity": "sha512-rliOq1MWv0d4E7y2IVb0hxC5vMaU238cdEhCcF/F2zQlIPD8ZB6ThIKa3D9oeT10mM/yjb70Tk604RWn5d88NA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/gl-scatter3d/-/gl-scatter3d-1.1.5.tgz", + "integrity": "sha512-i/5Vrd2c9rqvgISkJcrSz3st7eCCIBgCkICb73MBJANd+PI+ptRZ3mgrUttwGB3bQm01HKJPpBr/R4/gQ6PPAw==", "requires": { "gl-buffer": "^2.0.6", "gl-mat4": "^1.0.0", diff --git a/package.json b/package.json index 2d2c70906f0..9958f7c2080 100644 --- a/package.json +++ b/package.json @@ -73,15 +73,15 @@ "font-atlas-sdf": "^1.3.3", "gl-cone3d": "^1.2.2", "gl-contour2d": "^1.1.5", - "gl-error3d": "^1.0.11", + "gl-error3d": "^1.0.12", "gl-heatmap2d": "^1.0.5", - "gl-line3d": "^1.1.8", + "gl-line3d": "^1.1.9", "gl-mat4": "^1.2.0", "gl-mesh3d": "^2.0.7", "gl-plot2d": "^1.4.2", "gl-plot3d": "^1.6.3", "gl-pointcloud2d": "^1.0.2", - "gl-scatter3d": "^1.1.4", + "gl-scatter3d": "^1.1.5", "gl-select-box": "^1.0.3", "gl-spikes2d": "^1.0.2", "gl-streamtube3d": "^1.1.2", diff --git a/test/image/baselines/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.png b/test/image/baselines/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.png new file mode 100644 index 00000000000..e73533b4c2f Binary files /dev/null and b/test/image/baselines/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.png differ diff --git a/test/image/mocks/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.json b/test/image/mocks/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.json new file mode 100644 index 00000000000..7b7b95779bb --- /dev/null +++ b/test/image/mocks/gl3d_scatter3d_line3d_error3d_transparent-with-zero-alpha.json @@ -0,0 +1,46 @@ +{ + "data": [ + { + "x": [0, 1, 2, 3, 4], + "y": [0, 1, 2, 3, 4], + "z": [0,-1,-2,-3,-4], + "mode": "markers+lines", + "marker": { + "size": 50, + "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)"], + "opacity": 0.999 + }, + "line": { + "width": 50, + "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)"], + "opacity": 0.999 + }, + "error_z": { + "type": "sqrt", + "line": { "thickness": 10 }, + "color": "rgb(0, 255, 0, 0.0)", + "opacity": 0.999 + }, + "error_x": { + "type": "sqrt" + }, + "error_y": { + "type": "sqrt" + }, + "type": "scatter3d" + } + ], + "layout": { + "title": { + "text": "Should not draw transparent scatter3d markers and lines
when color.alpha is zero" + }, + "width": 600, + "height": 600, + "scene": { + "xaxis": { "nticks": 12 }, + "yaxis": { "nticks": 12 }, + "zaxis": { "nticks": 12 } + } + } + +}