@@ -14,7 +14,7 @@ var isNumeric = require('fast-isnumeric');
14
14
var Plots = require ( '../../plots/plots' ) ;
15
15
var Axes = require ( '../../plots/cartesian/axes' ) ;
16
16
17
- var compureError = require ( './compute_error' ) ;
17
+ var computeError = require ( './compute_error' ) ;
18
18
19
19
20
20
module . exports = function calc ( gd ) {
@@ -30,8 +30,8 @@ module.exports = function calc(gd) {
30
30
yObj = trace . error_y || { } ,
31
31
xa = Axes . getFromId ( gd , trace . xaxis ) ,
32
32
ya = Axes . getFromId ( gd , trace . yaxis ) ,
33
- xVis = xObj . visible && [ 'linear' , 'log' ] . indexOf ( xa . type ) !== - 1 ,
34
- yVis = yObj . visible && [ 'linear' , 'log' ] . indexOf ( ya . type ) !== - 1 ;
33
+ xVis = ( xObj . visible && [ 'linear' , 'log' ] . indexOf ( xa . type ) !== - 1 ) ,
34
+ yVis = ( yObj . visible && [ 'linear' , 'log' ] . indexOf ( ya . type ) !== - 1 ) ;
35
35
36
36
if ( ! xVis && ! yVis ) continue ;
37
37
@@ -45,14 +45,14 @@ module.exports = function calc(gd) {
45
45
46
46
if ( ! isNumeric ( ya . c2l ( calcY ) ) || ! isNumeric ( xa . c2l ( calcX ) ) ) continue ;
47
47
48
- var errorY = compureError ( calcY , j , yObj ) ;
48
+ var errorY = computeError ( calcY , j , yObj ) ;
49
49
if ( isNumeric ( errorY [ 0 ] ) && isNumeric ( errorY [ 1 ] ) ) {
50
50
calcPt . ys = calcY - errorY [ 0 ] ;
51
51
calcPt . yh = calcY + errorY [ 1 ] ;
52
52
yVals . push ( calcPt . ys , calcPt . yh ) ;
53
53
}
54
54
55
- var errorX = compureError ( calcX , j , xObj ) ;
55
+ var errorX = computeError ( calcX , j , xObj ) ;
56
56
if ( isNumeric ( errorX [ 0 ] ) && isNumeric ( errorX [ 1 ] ) ) {
57
57
calcPt . xs = calcX - errorX [ 0 ] ;
58
58
calcPt . xh = calcX + errorX [ 1 ] ;
0 commit comments