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 11'use strict' ;
22
3- var isNumeric = require ( 'fast-isnumeric' ) ;
4-
53var createLinePlot = require ( '../../../stackgl_modules' ) . gl_line3d ;
64var createScatterPlot = require ( '../../../stackgl_modules' ) . gl_scatter3d ;
75var createErrorBars = require ( '../../../stackgl_modules' ) . gl_error3d ;
@@ -405,7 +403,7 @@ proto.update = function(data) {
405403
406404 // N.B. marker.opacity must be a scalar for performance
407405 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 ;
409407
410408 scatterOptions = {
411409 gl : this . scene . glplot . gl ,
You can’t perform that action at this time.
0 commit comments