The function createWave()
|
function createWave(n, minOpacity) { |
generates an opacityscale with all opacities equal to 1, because:
Math.max(1, Math.min(0, v)) // line 27
is 1 for any v.
Replacing it by:
Math.min(1, Math.max(0, v))
removes the actual drawback, and leads to a non-constant opacityscale.
The function
createWave()plotly.js/src/traces/surface/defaults.js
Line 19 in d37895b
is 1 for any v.
Replacing it by:
removes the actual drawback, and leads to a non-constant opacityscale.