From 0b4982123566a732b9a215704eda9ae632957728 Mon Sep 17 00:00:00 2001 From: Florian FERBACH Date: Wed, 11 Jul 2018 17:04:40 +0200 Subject: [PATCH] Fix metaballs --- demo/demo.js | 1 - src/index.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/demo/demo.js b/demo/demo.js index 49bae141..7dbe36b9 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -59,7 +59,6 @@ const tooltip = d3 const chart = eventDrops({ d3, - metaballs: false, zoom: { // onZoomEnd: () => updateCommitsInformation(chart), }, diff --git a/src/index.js b/src/index.js index 284225f7..b733ad79 100644 --- a/src/index.js +++ b/src/index.js @@ -71,9 +71,9 @@ export default ({ d3 = window.d3, ...customConfiguration }) => { // selection.call(zoom(d3, config, xScale, draw, getEvent)); // } - // if (metaballs) { - // svg.call(addMetaballsDefs(config)); - // } + if (metaballs) { + enteringViewport.call(addMetaballsDefs(config)); + } }; chart.draw = draw;