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

Skip to content

Commit 64d304c

Browse files
committed
lint (mostly space between ops)
1 parent b38a1cf commit 64d304c

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/traces/contour/plot.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ function plotOne(gd, plotinfo, cd) {
7070
}
7171

7272
// use a heatmap to fill - draw it behind the lines
73-
if(contours.coloring==='heatmap') {
74-
if(trace.zauto && trace.autocontour===false) {
73+
if(contours.coloring === 'heatmap') {
74+
if(trace.zauto && (trace.autocontour === false)) {
7575
trace._input.zmin = trace.zmin =
76-
contours.start - contours.size/2;
76+
contours.start - contours.size / 2;
7777
trace._input.zmax = trace.zmax =
7878
trace.zmin + pathinfo.length * contours.size;
7979
}
8080

8181
heatmapPlot(gd, plotinfo, [cd]);
8282
}
8383
// in case this used to be a heatmap (or have heatmap fill)
84-
else fullLayout._paper.selectAll('.hm'+uid).remove();
84+
else fullLayout._paper.selectAll('.hm '+ uid).remove();
8585

8686
makeCrossings(pathinfo);
8787
findAllPaths(pathinfo);
@@ -472,12 +472,15 @@ function getInterpPx(pi, loc, step) {
472472

473473
function makeContourGroup(plotinfo, cd, id) {
474474
var plotgroup = plotinfo.plot.select('.maplayer')
475-
.selectAll('g.contour.'+id)
475+
.selectAll('g.contour.' + id)
476476
.data(cd);
477+
477478
plotgroup.enter().append('g')
478-
.classed('contour',true)
479-
.classed(id,true);
479+
.classed('contour', true)
480+
.classed(id, true);
481+
480482
plotgroup.exit().remove();
483+
481484
return plotgroup;
482485
}
483486

src/traces/heatmap/plot.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ var xmlnsNamespaces = require('../../constants/xmlns_namespaces');
2020
var maxRowLength = require('./max_row_length');
2121

2222

23-
// From http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
2423
module.exports = function(gd, plotinfo, cdheatmaps) {
25-
cdheatmaps.forEach(function(cd) { plotOne(gd, plotinfo, cd); });
24+
for(var i = 0; i < cdheatmaps.length; i++) {
25+
plotOne(gd, plotinfo, cdheatmaps[i]);
26+
}
2627
};
2728

29+
// From http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
2830
function plotOne(gd, plotinfo, cd) {
2931
Lib.markTime('in Heatmap.plot');
3032

0 commit comments

Comments
 (0)