File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change
1
+ - fix scatter3d marker opacity when marker.opacity is set to 0 [[ #6581 ] ( https://github.com/plotly/plotly.js/pull/6581 )]
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var isNumeric = require ( 'fast-isnumeric' ) ;
4
-
5
3
var createLinePlot = require ( '../../../stackgl_modules' ) . gl_line3d ;
6
4
var createScatterPlot = require ( '../../../stackgl_modules' ) . gl_scatter3d ;
7
5
var createErrorBars = require ( '../../../stackgl_modules' ) . gl_error3d ;
@@ -405,7 +403,7 @@ proto.update = function(data) {
405
403
406
404
// N.B. marker.opacity must be a scalar for performance
407
405
var scatterOpacity = data . opacity ;
408
- if ( data . marker && isNumeric ( data . marker . opacity ) ) scatterOpacity *= data . marker . opacity ;
406
+ if ( data . marker && data . marker . opacity !== undefined ) scatterOpacity *= data . marker . opacity ;
409
407
410
408
scatterOptions = {
411
409
gl : this . scene . glplot . gl ,
You can’t perform that action at this time.
0 commit comments