Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,7 +57,7 @@
]
},
"dependencies": {
"3d-view": "^2.0.0",
"3d-view-controls": "git://github.com/archmoj/3d-view-controls.git#fe3c77b807618c0d51f4c50a691e2af0486bfda9",
"@plotly/d3-sankey": "^0.5.1",
"alpha-shape": "^1.0.0",
"array-range": "^1.0.1",
Expand All@@ -79,7 +79,7 @@
"gl-mat4": "^1.2.0",
"gl-mesh3d": "^2.0.7",
"gl-plot2d": "^1.4.2",
"gl-plot3d": "^1.6.3",
"gl-plot3d": "git://github.com/gl-vis/gl-plot3d.git#b040fcb93647eeb7f08b0ec631bccbf1cf836620",
"gl-pointcloud2d": "^1.0.2",
"gl-scatter3d": "^1.1.6",
"gl-select-box": "^1.0.3",
Expand All@@ -91,7 +91,6 @@
"has-hover": "^1.0.1",
"has-passive-events": "^1.0.0",
"mapbox-gl": "0.45.0",
"matrix-camera-controller": "^2.1.3",
"mouse-change": "^1.4.0",
"mouse-event-offset": "^3.0.2",
"mouse-wheel": "^1.0.2",
Expand All@@ -105,7 +104,6 @@
"regl-line2d": "3.0.13",
"regl-scatter2d": "^3.1.3",
"regl-splom": "^1.0.6",
"right-now": "^1.0.0",
"robust-orientation": "^1.1.3",
"sane-topojson": "^2.0.0",
"strongly-connected-components": "^1.0.1",
Expand Down
277 changes: 0 additions & 277 deletions src/plots/gl3d/camera.js

This file was deleted.

4 changes: 3 additions & 1 deletion src/plots/gl3d/index.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,6 +48,7 @@ exports.plot = function plotGl3d(gd) {
var sceneId = sceneIds[i];
var fullSceneData = getSubplotData(fullData, GL3D, sceneId);
var sceneLayout = fullLayout[sceneId];
var camera = sceneLayout.camera;
var scene = sceneLayout._scene;

if(!scene) {
Expand All@@ -56,7 +57,8 @@ exports.plot = function plotGl3d(gd) {
graphDiv: gd,
container: gd.querySelector('.gl-container'),
staticPlot: gd._context.staticPlot,
plotGlPixelRatio: gd._context.plotGlPixelRatio
plotGlPixelRatio: gd._context.plotGlPixelRatio,
camera: camera
},
fullLayout
);
Expand Down
1 change: 1 addition & 0 deletions src/plots/gl3d/layout/defaults.js
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,6 +68,7 @@ function handleGl3dDefaults(sceneLayoutIn, sceneLayoutOut, coerce, opts) {
coerce('camera.' + cameraKeys[j] + '.y');
coerce('camera.' + cameraKeys[j] + '.z');
}
coerce('camera.ortho');

/*
* coerce to positive number (min 0) but also do not accept 0 (>0 not >=0)
Expand Down
Loading