Skip to content

Commit 61d8686

Browse files
committed
lint
1 parent 7774903 commit 61d8686

File tree

3 files changed

+139
-139
lines changed

3 files changed

+139
-139
lines changed

src/components/legend/draw.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = function draw(gd) {
148148
// and these values are mutated in repositionLegend.
149149
var gs = fullLayout._size,
150150
lx = gs.l + gs.w * opts.x,
151-
ly = gs.t + gs.h * (1-opts.y);
151+
ly = gs.t + gs.h * (1 - opts.y);
152152

153153
if(anchorUtils.isRightAnchor(opts)) {
154154
lx -= opts.width;
@@ -251,7 +251,7 @@ module.exports = function draw(gd) {
251251

252252
scrollHandler(scrollBarY, scrollBoxY);
253253

254-
legend.on('wheel',null);
254+
legend.on('wheel', null);
255255
legend.on('wheel', function() {
256256
scrollBoxY = Lib.constrain(
257257
scrollBox.attr('data-scroll') -
@@ -263,8 +263,8 @@ module.exports = function draw(gd) {
263263
d3.event.preventDefault();
264264
});
265265

266-
scrollBar.on('.drag',null);
267-
scrollBox.on('.drag',null);
266+
scrollBar.on('.drag', null);
267+
scrollBox.on('.drag', null);
268268
var drag = d3.behavior.drag().on('drag', function() {
269269
scrollBarY = Lib.constrain(
270270
d3.event.y - constants.scrollBarHeight / 2,
@@ -317,8 +317,8 @@ module.exports = function draw(gd) {
317317

318318
Lib.setTranslate(legend, newX, newY);
319319

320-
xf = dragElement.align(newX, 0, gs.l, gs.l+gs.w, opts.xanchor);
321-
yf = dragElement.align(newY, 0, gs.t+gs.h, gs.t, opts.yanchor);
320+
xf = dragElement.align(newX, 0, gs.l, gs.l + gs.w, opts.xanchor);
321+
yf = dragElement.align(newY, 0, gs.t + gs.h, gs.t, opts.yanchor);
322322
},
323323
doneFn: function(dragged) {
324324
if(dragged && xf !== undefined && yf !== undefined) {
@@ -500,7 +500,7 @@ function computeLegendDimensions(gd, groups, traces) {
500500
opts.height += 10 + borderwidth * 2;
501501

502502
if(isGrouped) {
503-
opts.height += (opts._lgroupsLength-1) * opts.tracegroupgap;
503+
opts.height += (opts._lgroupsLength - 1) * opts.tracegroupgap;
504504
}
505505

506506
traces.selectAll('.legendtoggle')

src/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ lib.numSeparate = function(value, separators) {
577577
x2 = x.length > 1 ? decimalSep + x[1] : '';
578578

579579
// Years are ignored for thousands separators
580-
if(thouSep && (x.length > 1 || x1.length>4)) {
580+
if(thouSep && (x.length > 1 || x1.length > 4)) {
581581
while(thousandsRe.test(x1)) {
582582
x1 = x1.replace(thousandsRe, '$1' + thouSep + '$2');
583583
}

0 commit comments

Comments
 (0)