From fd832be2f4f05ddc76e255909170fcb81760c2e0 Mon Sep 17 00:00:00 2001 From: timelyportfolio Date: Mon, 12 Dec 2016 10:04:47 -0600 Subject: [PATCH] fix bug which unfortunately removes benefit of optimization --- src/treemap/split.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/treemap/split.js b/src/treemap/split.js index 29e96b05..4f9541bf 100644 --- a/src/treemap/split.js +++ b/src/treemap/split.js @@ -71,7 +71,7 @@ export default function(parent, x0, y0, x1, y1) { } list2 = nodes.slice(i); - w2 = w1 - sum; + w2 = sum - w1; if (width > height) { r1x0 = x0;