diff --git a/package-lock.json b/package-lock.json index 035f872de91..10db22d5458 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5103,9 +5103,9 @@ } }, "gl-surface3d": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/gl-surface3d/-/gl-surface3d-1.5.0.tgz", - "integrity": "sha512-0FZQKUlviZ+bJYg0MPxiIh800Li+Jn08oKze6ipEXo1rcFff7f0sqwU5tht9h3Y/uMU9lYEwYfvIFZgzXMo1Kg==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/gl-surface3d/-/gl-surface3d-1.5.1.tgz", + "integrity": "sha512-wE9tMHlAL5ZBluXpdVwxhBiPv7J9HwEBc5tVHFDP6TJkvhvf2RTDkCPDOPP5wCSLAFATImbzgwgoNM30/ghDTw==", "requires": { "binary-search-bounds": "^2.0.4", "bit-twiddle": "^1.0.2", diff --git a/package.json b/package.json index 03c4477e823..4793a480c8a 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "gl-select-box": "^1.0.3", "gl-spikes2d": "^1.0.2", "gl-streamtube3d": "^1.4.0", - "gl-surface3d": "^1.5.0", + "gl-surface3d": "^1.5.1", "gl-text": "^1.1.8", "glslify": "^7.0.0", "has-hover": "^1.0.1", diff --git a/test/image/baselines/gl3d_surface_transparent-with-contours.png b/test/image/baselines/gl3d_surface_transparent-with-contours.png new file mode 100644 index 00000000000..c8ac6434e5b Binary files /dev/null and b/test/image/baselines/gl3d_surface_transparent-with-contours.png differ diff --git a/test/image/mocks/gl3d_surface_transparent-with-contours.json b/test/image/mocks/gl3d_surface_transparent-with-contours.json new file mode 100644 index 00000000000..fddc70c9d3f --- /dev/null +++ b/test/image/mocks/gl3d_surface_transparent-with-contours.json @@ -0,0 +1,75 @@ +{ + "data": [ + { + "opacity": 0.5, + "type": "surface", + "colorscale": "Earth", + "contours": { + "z": { + "show": true + } + }, + "x": [ + 0, + 0.25, + 0.5, + 0.75, + 1 + ], + "y": [ + 0, + 0.25, + 0.5, + 0.75, + 1 + ], + "z": [ + [ + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0.1, + 0.8, + 0.7, + 0 + ], + [ + 0, + 0.2, + 0, + 0.6, + 0 + ], + [ + 0, + 0.3, + 0.4, + 0.5, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0 + ] + ] + } + ], + "layout": { + "width": 600, + "height": 400, + "margin": { + "t": 10, + "b": 10, + "l": 10, + "r": 10 + } + } +}