Skip to content

Commit fbd7980

Browse files
committed
fixup hoverinfo 'norm'
... while we wait solution for u/v/w on hover
1 parent e0ff37f commit fbd7980

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/traces/streamtube/convert.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ proto.handlePick = function(selection) {
3838

3939
if(selection.object === this.mesh) {
4040
var pos = selection.data.position;
41-
var vel = selection.data.velocity;
4241

43-
var uu = fromDataScale(vel[0], 'xaxis');
44-
var vv = fromDataScale(vel[1], 'yaxis');
45-
var ww = fromDataScale(vel[2], 'zaxis')
42+
// TODO
43+
// wait for patch in gl-streamtube3d
44+
// to grab u/v/w
4645

4746
selection.traceCoordinate = [
4847
fromDataScale(pos[0], 'xaxis'),
4948
fromDataScale(pos[1], 'yaxis'),
5049
fromDataScale(pos[2], 'zaxis'),
5150

52-
uu, vv, ww,
53-
Math.sqrt(uu * uu + vv * vv + ww * ww)
51+
null, null, null,
52+
53+
selection.data.intensity * this.data._normMax
5454
];
5555

5656
return true;

0 commit comments

Comments
 (0)