Skip to content

Commit 5fbf906

Browse files
committed
lint
1 parent a6477ae commit 5fbf906

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/traces/parcoords/lines.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
'use strict';
1010

1111
var createREGL = require('regl');
12-
var ndarray = require('ndarray');
1312
var glslify = require('glslify');
1413
var vertexShaderSource = glslify('./shaders/vertex.glsl');
1514
var fragmentShaderSource = glslify('./shaders/fragment.glsl');
@@ -19,7 +18,7 @@ var filterEpsilon = 1e-3; // don't change; otherwise filter may lose lines on do
1918

2019
var gpuDimensionCount = 64;
2120
var sectionVertexCount = 2;
22-
var vec4NumberCount = 4
21+
var vec4NumberCount = 4;
2322

2423
var dummyPixel = new Uint8Array(4);
2524
function ensureDraw(regl) {
@@ -120,8 +119,8 @@ function makeVecAttr(sampleCount, points, vecIndex) {
120119
var pointPairs = [];
121120

122121
for(j = 0; j < sampleCount; j++) {
123-
for (k = 0; k < sectionVertexCount; k++) {
124-
for (i = 0; i < vec4NumberCount; i++) {
122+
for(k = 0; k < sectionVertexCount; k++) {
123+
for(i = 0; i < vec4NumberCount; i++) {
125124
pointPairs.push(points[j * gpuDimensionCount + vecIndex * vec4NumberCount + i]);
126125
if(vecIndex * vec4NumberCount + i === gpuDimensionCount - 1 && k % 2 === 0) {
127126
pointPairs[pointPairs.length - 1] *= -1;
@@ -141,7 +140,7 @@ function makeAttributes(sampleCount, points) {
141140
var attributes = {};
142141
vectors.forEach(function(v, vecIndex) {
143142
attributes['p' + vecIndex.toString(16)] = v;
144-
})
143+
});
145144

146145
return attributes;
147146
}

src/traces/parcoords/parcoords.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ module.exports = function(root, styledData, layout, callbacks) {
192192
.append('pattern')
193193
.attr('id', 'filterBarPattern')
194194
.attr('width', function(d) {return d.model.brushCaptureWidth;})
195-
.attr('height', function(d) {return d.model.height})
195+
.attr('height', function(d) {return d.model.height;})
196196
.attr('x', function(d) {return -d.model.brushVisibleWidth;})
197197
.attr('patternUnits', 'userSpaceOnUse');
198198

@@ -202,8 +202,8 @@ module.exports = function(root, styledData, layout, callbacks) {
202202
filterBarPatternGlyph.enter()
203203
.append('rect')
204204
.attr('shape-rendering', 'crispEdges')
205-
.attr('width', function(d) {return d.model.brushVisibleWidth})
206-
.attr('height', function(d) {return d.model.height})
205+
.attr('width', function(d) {return d.model.brushVisibleWidth;})
206+
.attr('height', function(d) {return d.model.height;})
207207
.attr('x', function(d) {return d.model.brushVisibleWidth / 2;})
208208
.attr('fill', function(d) {return d.model.filterBar.fillcolor;})
209209
.attr('fill-opacity', function(d) {return d.model.filterBar.fillopacity;})
@@ -246,7 +246,7 @@ module.exports = function(root, styledData, layout, callbacks) {
246246
.style('transform', 'translate(' + (-overdrag) + 'px, 0)')
247247
.style('float', 'left')
248248
.style('clear', 'both')
249-
.style('position', function(d, i) {return i > 0 ? 'absolute' : 'static'})
249+
.style('position', function(d, i) {return i > 0 ? 'absolute' : 'static';})
250250
.style('left', 0)
251251
.style('padding', function(d) {return d.viewModel.model.padding + 'px';})
252252
.style('overflow', 'visible')
@@ -498,7 +498,7 @@ module.exports = function(root, styledData, layout, callbacks) {
498498
axisBrushEnter
499499
.selectAll('rect.extent')
500500
.attr('fill', 'url(#filterBarPattern)')
501-
.filter(function(d) {return d.filter[0] === 0 && d.filter[1] === 1})
501+
.filter(function(d) {return d.filter[0] === 0 && d.filter[1] === 1;})
502502
.attr('y', -100); // // zero-size rectangle pointer issue workaround
503503

504504
axisBrushEnter
@@ -581,7 +581,7 @@ module.exports = function(root, styledData, layout, callbacks) {
581581
};
582582
})
583583
});
584-
};
584+
}
585585
}
586586

587587
return tweakables;

test/jasmine/tests/parcoords_test.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)