Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb5221d

Browse files
committed
isosurface eslint fixes
1 parent f761b09 commit eb5221d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/traces/isosurface/calc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function calc(gd, trace) {
3737
var zMax = -Infinity;
3838
var zMin = Infinity;
3939

40-
for(i = 0; i < len; i++) {
40+
for(var i = 0; i < len; i++) {
4141
var xx = x[i];
4242
xMax = Math.max(xMax, xx);
4343
xMin = Math.min(xMin, xx);
@@ -55,5 +55,4 @@ module.exports = function calc(gd, trace) {
5555
trace._ybnds = [yMin, yMax];
5656
trace._zbnds = [zMin, zMax];
5757

58-
console.log(trace);
5958
};

src/traces/isosurface/convert.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ proto.handlePick = function(selection) {
8383
];
8484

8585
var text = this.data.text;
86-
selection.textLabel = "value: " + selection.data.intensity.toPrecision(3);
86+
selection.textLabel = 'value: ' + selection.data.intensity.toPrecision(3);
8787

8888
if(Array.isArray(text) && text[selectIndex] !== undefined) {
89-
selection.textLabel = "<br>" + text[selectIndex];
89+
selection.textLabel = '<br>' + text[selectIndex];
9090
} else if(text) {
91-
selection.textLabel = "<br>" + text;
91+
selection.textLabel = '<br>' + text;
9292
}
9393

9494
return true;
@@ -131,7 +131,7 @@ function findMinIndex(xs, value) {
131131
// the range ending at xs[edge index].
132132
// That is, xs[edge index] <= value.
133133
function findMaxIndex(xs, value) {
134-
for(var i = xs.length-1; i >= 0; i--) {
134+
for(var i = xs.length - 1; i >= 0; i--) {
135135
if(xs[i] <= value) {
136136
return i;
137137
}
@@ -148,8 +148,6 @@ function toDataCoords(scene, arr, axisName) {
148148
}
149149

150150
function convert(scene, trace) {
151-
var sceneLayout = scene.fullSceneLayout;
152-
var dataScale = scene.dataScale;
153151
var isosurfaceOpts = {};
154152

155153
var xs = getSequence(trace.x);

0 commit comments

Comments
 (0)