diff --git a/package-lock.json b/package-lock.json index 8c04242e295..fc485517331 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4642,9 +4642,9 @@ } }, "gl-line3d": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/gl-line3d/-/gl-line3d-1.1.3.tgz", - "integrity": "sha512-guXmbEorazS9EinjahRrkGf4gneU3V9AdkGmF90k4x7AwjDfyjkc7culQqP97EW2KRVcz4PDzyIZu1MoVtC3Iw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/gl-line3d/-/gl-line3d-1.1.4.tgz", + "integrity": "sha512-XwwjPP3qaAan7emC1gW4yEYU7nag77snhhK8i+hOgRSDl+rfxhi7s0EFSiO+WY321mMvLEiLwiKKonkMRCsYvQ==", "requires": { "binary-search-bounds": "^1.0.0", "gl-buffer": "^2.0.8", diff --git a/package.json b/package.json index 17ee15ba7fd..f67193c84df 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "gl-contour2d": "^1.1.4", "gl-error3d": "^1.0.8", "gl-heatmap2d": "^1.0.4", - "gl-line3d": "^1.1.3", + "gl-line3d": "^1.1.4", "gl-mat4": "^1.2.0", "gl-mesh3d": "^2.0.1", "gl-plot2d": "^1.3.1", diff --git a/test/image/baselines/gl3d_cube.png b/test/image/baselines/gl3d_cube.png index 7dcd976113a..ac98389aad1 100644 Binary files a/test/image/baselines/gl3d_cube.png and b/test/image/baselines/gl3d_cube.png differ diff --git a/test/image/baselines/gl3d_line_rectangle_render.png b/test/image/baselines/gl3d_line_rectangle_render.png new file mode 100644 index 00000000000..2e59beadd26 Binary files /dev/null and b/test/image/baselines/gl3d_line_rectangle_render.png differ diff --git a/test/image/baselines/gl3d_projection-traces.png b/test/image/baselines/gl3d_projection-traces.png index df67a5dcc29..06b75910aa9 100644 Binary files a/test/image/baselines/gl3d_projection-traces.png and b/test/image/baselines/gl3d_projection-traces.png differ diff --git a/test/image/baselines/gl3d_scatter-color-mono-and-palette.png b/test/image/baselines/gl3d_scatter-color-mono-and-palette.png index 1214ea17624..dba67d4390e 100644 Binary files a/test/image/baselines/gl3d_scatter-color-mono-and-palette.png and b/test/image/baselines/gl3d_scatter-color-mono-and-palette.png differ diff --git a/test/image/baselines/gl3d_scatter3d-connectgaps.png b/test/image/baselines/gl3d_scatter3d-connectgaps.png index f27c1f34675..67326cf8abc 100644 Binary files a/test/image/baselines/gl3d_scatter3d-connectgaps.png and b/test/image/baselines/gl3d_scatter3d-connectgaps.png differ diff --git a/test/image/baselines/plot_types.png b/test/image/baselines/plot_types.png index 57456e30b6f..55c66598f52 100644 Binary files a/test/image/baselines/plot_types.png and b/test/image/baselines/plot_types.png differ diff --git a/test/image/mocks/gl3d_line_rectangle_render.json b/test/image/mocks/gl3d_line_rectangle_render.json new file mode 100644 index 00000000000..0584a1fcf87 --- /dev/null +++ b/test/image/mocks/gl3d_line_rectangle_render.json @@ -0,0 +1,72 @@ +{ + "data": [ + { + "x":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2], + "y":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "z":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"} + }, + { + "x":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "y":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "z":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2], + "type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"} + }, + { + "x":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "y":[-2,-1.867,-1.5,-1,-0.5,-0.134,0,-0.134,-0.5,-1,-1.5,-1.867,-2], + "z":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "type": "scatter3d", "mode": "lines", "line": {"width": 20, "dash": "dash"} + }, + { + "x":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0], + "y":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "z":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "type": "scatter3d", "mode": "lines", "line": {"width": 10} + }, + { + "x":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "y":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "z":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0], + "type": "scatter3d", "mode": "lines", "line": {"width": 10} + }, + { + "x":[-2,-1.667,-1.334,-1,-0.667,-0.334,0,0.333,0.666,1,1.333,1.666,2], + "y":[0,0.133,0.5,1,1.5,1.866,2,1.866,1.5,1,0.5,0.133,0], + "z":[-0.001,-0.5,-0.867,-1,-0.867,-0.5,0,0.499,0.866,1,0.866,0.499,0], + "type": "scatter3d", "mode": "lines", "line": {"width": 10} + } + ], + "layout": { + "width": 1200, + "height": 900, + "scene": { + "camera": { + "eye": { + "x": -1.0, + "y": -1.0, + "z": -1.0 + }, + "center": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "up": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + } + }, + "xaxis": { + "title": "<==X.X==>" + }, + "yaxis": { + "title": "<==Y.Y==>" + }, + "zaxis": { + "title": "<==Z.Z==>" + } + } + } +}