diff --git a/src/diagrams/er/erRenderer.js b/src/diagrams/er/erRenderer.js index 42df1bb53..2e18b678c 100644 --- a/src/diagrams/er/erRenderer.js +++ b/src/diagrams/er/erRenderer.js @@ -283,7 +283,7 @@ const drawRelationshipFromLayout = function(svg, rel, g, insert) { .attr('dominant-baseline', 'middle') .attr('style', 'font-family: ' + getConfig().fontFamily + '; font-size: ' + conf.fontSize) .text(rel.roleA); - + // Figure out how big the opaque 'container' rectangle needs to be const labelBBox = labelNode.node().getBBox(); diff --git a/src/mermaidAPI.js b/src/mermaidAPI.js index af52927f0..10ead65cb 100644 --- a/src/mermaidAPI.js +++ b/src/mermaidAPI.js @@ -353,8 +353,8 @@ const config = { */ er: { /** - * Directional bias for layout of entities. Can be either 'TB', 'BT', 'LR', or 'RL', - * where T = top, B = bottom, L = left, and R = right. + * Directional bias for layout of entities. Can be either 'TB', 'BT', 'LR', or 'RL', + * where T = top, B = bottom, L = left, and R = right. */ layoutDirection: 'TB',