Skip to content

Commit 5a5c55b

Browse files
committed
using changes in gl-surface3d branch
1 parent 6719353 commit 5a5c55b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"gl-select-box": "^1.0.2",
8585
"gl-spikes2d": "^1.0.1",
8686
"gl-streamtube3d": "^1.1.1",
87-
"gl-surface3d": "git://github.com/gl-vis/gl-surface3d.git#71c253085504ef2937c9cbc9582c592d36dcd3c6",
87+
"gl-surface3d": "git://github.com/gl-vis/gl-surface3d.git#230772b1b9fbbe0c208baa13f1eaf38942495cf0",
8888
"gl-text": "^1.1.6",
8989
"glslify": "^6.3.1",
9090
"has-hover": "^1.0.1",

src/traces/surface/convert.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,12 @@ proto.update = function(data) {
473473

474474
coords.push(intensity);
475475
}
476+
else {
477+
// when 'z' is used as 'intensity',
478+
// we must scale its value
479+
params.intensityBounds[0] *= scaleFactor[2];
480+
params.intensityBounds[1] *= scaleFactor[2];
481+
}
476482

477483
if(MAX_RESOLUTION < coords[0].shape[0] ||
478484
MAX_RESOLUTION < coords[0].shape[1]) {

0 commit comments

Comments
 (0)