diff --git a/lib/label/add-label.js b/lib/label/add-label.js index 9bd5d3a8..64467628 100644 --- a/lib/label/add-label.js +++ b/lib/label/add-label.js @@ -19,6 +19,7 @@ function addLabel(root, node, location) { } var labelBBox = labelSvg.node().getBBox(); + var y; switch(location) { case "top": y = (-node.height / 2);