Skip to content

Commit dc28064

Browse files
committed
lint
1 parent 584f611 commit dc28064

File tree

9 files changed

+29
-8
lines changed

9 files changed

+29
-8
lines changed

src/components/modebar/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,14 @@ proto.toImage = function() {
450450

451451
var ev = Plotly.Snapshot.toImage(this.graphInfo, {format: format});
452452

453-
var filename = this.graphInfo.fn || "newplot";
453+
var filename = this.graphInfo.fn || 'newplot';
454454
filename += '.' + format;
455455

456456
ev.once('success', function(result) {
457457

458458
_this._snapshotInProgress = false;
459459

460-
var downloadLink = document.createElement("a");
460+
var downloadLink = document.createElement('a');
461461
downloadLink.href = result;
462462
downloadLink.download = filename; // only supported by FF and Chrome
463463

src/lib/events.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
/* global $:false */
4+
35
var EventEmitter = require('events').EventEmitter;
46

57
var Events = {

src/plots/geo/projections.js

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// jshint ignore: start
2+
3+
/**
4+
* Forked from https://github.com/d3/d3-geo-projection
5+
* Pasted from https://github.com/etpinard/d3-geo-projection
6+
*
7+
* Containing only the 'most useful' projection types
8+
* and compatible with CommonJs
9+
*
10+
*/
11+
112
var d3 = require('d3');
213

314
function addProjectionToD3() {
@@ -61,7 +72,7 @@ function addProjectionToD3() {
6172
d3_geo_projectPoints.push([ x, y ]);
6273
},
6374
lineEnd: function() {
64-
if (d3_geo_projectPoints.length) d3_geo_projectLines.push(d3_geo_projectPoints),
75+
if (d3_geo_projectPoints.length) d3_geo_projectLines.push(d3_geo_projectPoints),
6576
d3_geo_projectPoints = [];
6677
},
6778
result: function() {
@@ -188,7 +199,7 @@ function addProjectionToD3() {
188199
};
189200
var projection = d3.geo.projection(forward), stream_ = projection.stream;
190201
projection.stream = function(stream) {
191-
var rotate = projection.rotate(), rotateStream = stream_(stream), sphereStream = (projection.rotate([ 0, 0 ]),
202+
var rotate = projection.rotate(), rotateStream = stream_(stream), sphereStream = (projection.rotate([ 0, 0 ]),
192203
stream_(stream));
193204
projection.rotate(rotate);
194205
rotateStream.sphere = function() {

src/plots/gl3d/camera.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function createCamera(element, options) {
221221
return true;
222222
});
223223

224-
mouseWheel(element, function(dx, dy, dz) {
224+
mouseWheel(element, function(dx, dy) {
225225
var flipX = camera.flipX ? 1 : -1;
226226
var flipY = camera.flipY ? 1 : -1;
227227
var t = now();

src/plots/polar/micropolar.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// jshint ignore: start
2+
13
var Plotly = require('../../plotly');
24
var d3 = require('d3');
35

src/plots/polar/undo_manager.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// jshint ignore: start
2+
13
'use strict';
24

35
//Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager

src/traces/boxes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ boxes.supplyDefaults = function(traceIn, traceOut, defaultColor) {
7575
coerce('marker.line.width');
7676

7777
if(boxpoints==='suspectedoutliers') {
78-
coerce('marker.line.outliercolor', traceOut.marker.color)
78+
coerce('marker.line.outliercolor', traceOut.marker.color);
7979
coerce('marker.line.outlierwidth');
8080
}
8181
}

src/traces/histogram/attributes.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var barAttrs = require('../bars/attributes');
24

35

src/traces/scatter3d/convert.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ function constructDelaunay(points, color, axis) {
7070
var v = (axis+2)%3;
7171
var filteredPoints = [];
7272
var filteredIds = [];
73-
for(var i=0; i<points.length; ++i) {
73+
var i;
74+
75+
for(i=0; i<points.length; ++i) {
7476
var p = points[i];
7577
if(isNaN(p[u]) || !isFinite(p[u]) ||
7678
isNaN(p[v]) || !isFinite(p[v])) {
@@ -80,7 +82,7 @@ function constructDelaunay(points, color, axis) {
8082
filteredIds.push(i);
8183
}
8284
var cells = triangulate(filteredPoints);
83-
for(var i=0; i<cells.length; ++i) {
85+
for(i=0; i<cells.length; ++i) {
8486
var c = cells[i];
8587
for(var j=0; j<c.length; ++j) {
8688
c[j] = filteredIds[c[j]];

0 commit comments

Comments
 (0)