Skip to content

Commit af9c983

Browse files
committed
Fix lint errors and missing Lib requires
1 parent 2689600 commit af9c983

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

src/traces/contour/constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ module.exports.CHOOSESADDLE = {
3636
// after one index has been used for a saddle, which do we
3737
// substitute to be used up later?
3838
module.exports.SADDLEREMAINDER = {1: 4, 2: 8, 4: 1, 7: 13, 8: 2, 11: 14, 13: 7, 14: 11};
39-

src/traces/contour/find_all_paths.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
'use strict';
1010

11+
var Lib = require('../../lib');
1112
var constants = require('./constants');
1213

1314
module.exports = function findAllPaths(pathinfo) {
@@ -33,7 +34,7 @@ module.exports = function findAllPaths(pathinfo) {
3334
}
3435
if(cnt === 10000) Lib.log('Infinite loop in contour?');
3536
}
36-
}
37+
};
3738

3839
function equalPts(pt1, pt2) {
3940
return Math.abs(pt1[0] - pt2[0]) < 0.01 &&
@@ -265,4 +266,3 @@ function getInterpPx(pi, loc, step) {
265266
ya.c2p((1 - dy) * pi.y[locy] + dy * pi.y[locy + 1], true)];
266267
}
267268
}
268-

src/traces/contour/make_crossings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = function makeCrossings(pathinfo) {
6363
}
6464
}
6565
}
66-
}
66+
};
6767

6868
// modified marching squares algorithm,
6969
// so we disambiguate the saddle points from the start

src/traces/heatmap/calc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,3 @@ module.exports = function calc(gd, trace) {
134134

135135
return [cd0];
136136
};
137-
138-

src/traces/heatmap/clean_data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ module.exports = function cleanData(zOld, transpose) {
4040
}
4141

4242
return zNew;
43-
}
44-
43+
};

src/traces/heatmap/find_empties.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,4 @@ module.exports = function findEmpties(z) {
100100

101101
// sort the full list in descending order of neighbor count
102102
return empties.sort(function(a, b) { return b[2] - a[2]; });
103-
}
104-
103+
};

src/traces/heatmap/interp2d.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
'use strict';
1010

11+
var Lib = require('../../lib');
12+
1113
var INTERPTHRESHOLD = 1e-2,
1214
NEIGHBORSHIFTS = [[-1, 0], [1, 0], [0, -1], [0, 1]];
1315

@@ -54,7 +56,7 @@ module.exports = function interp2d(z, emptyPoints, savedInterpZ) {
5456
}
5557

5658
return z;
57-
}
59+
};
5860

5961
function iterateInterp2d(z, emptyPoints, overshoot) {
6062
var maxFractionalChange = 0,

src/traces/heatmap/make_bound_array.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,4 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
7575
}
7676

7777
return arrayOut;
78-
}
79-
78+
};

0 commit comments

Comments
 (0)