// remove all children of the main `g` element
// prepare for re-drawing (e.g. during resize) with margins
export default ({
  g,
  margin
}) => {
  g.selectAll('*').remove()
  g.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')')
}

@@ -40,16 +40,119 @@
 element%0A
+// and all children of the base %60element%60 that are flagged with a css class named %60--delete-on-update%60%0A
 // prepa
@@ -226,16 +226,27 @@
 (%7B%0A  g,%0A
+  element,%0A
   margin
@@ -254,16 +254,68 @@
 %7D) =%3E %7B%0A
+  element.selectAll('.--delete-on-update').remove()%0A
   g.sele

Add flag to remove stuff outside of `g` element on resize & update.