Skip to content

Commit 5d9a05c

Browse files
style(icicle): syntax errors caught in ci
1 parent 7b5d690 commit 5d9a05c

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/traces/icicle/partition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ module.exports = function partition(entry, size, opts) {
1111
var newWidth = size[0];
1212
var newHeight = size[1];
1313
if(maxDepth) {
14-
newWidth = (entry.height + 1) * size[0] / Math.min(entry.height+1, maxDepth);
15-
newHeight = (entry.height + 1) * size[1] / Math.min(entry.height+1, maxDepth);
14+
newWidth = (entry.height + 1) * size[0] / Math.min(entry.height + 1, maxDepth);
15+
newHeight = (entry.height + 1) * size[1] / Math.min(entry.height + 1, maxDepth);
1616
}
1717

1818
var result = d3Hierarchy

src/traces/treemap/plot_one.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -367,31 +367,31 @@ module.exports = function plotOne(gd, cd, element, transitionOpts, drawDescendan
367367
} else {
368368
if(type === 'icicle' && opts.orientation === 'h' && opts.flipX === false) {
369369
prev = {
370-
x0: 0,
371-
x1: 0,
372-
y0: pt.y0,
373-
y1: pt.y1
370+
x0: 0,
371+
x1: 0,
372+
y0: pt.y0,
373+
y1: pt.y1
374374
};
375375
} else if(type === 'icicle' && opts.orientation === 'v' && opts.flipY === false) {
376376
prev = {
377-
x0: pt.x0,
378-
x1: pt.x1,
379-
y0: 0,
380-
y1: 0
377+
x0: pt.x0,
378+
x1: pt.x1,
379+
y0: 0,
380+
y1: 0
381381
};
382382
} else if(type === 'icicle' && opts.orientation === 'h' && opts.flipX === true) {
383383
prev = {
384-
x0: pt.x1,
385-
x1: pt.x1,
386-
y0: pt.y0,
387-
y1: pt.y1
384+
x0: pt.x1,
385+
x1: pt.x1,
386+
y0: pt.y0,
387+
y1: pt.y1
388388
};
389389
} else if(type === 'icicle' && opts.orientation === 'v' && opts.flipY === true) {
390390
prev = {
391-
x0: pt.x0,
392-
x1: pt.x1,
393-
y0: pt.y1,
394-
y1: pt.y1
391+
x0: pt.x0,
392+
x1: pt.x1,
393+
y0: pt.y1,
394+
y1: pt.y1
395395
};
396396
} else {
397397
prev = pt;

0 commit comments

Comments
 (0)