From f8ce2d8f40120a30ae22b273c0aa0f86475b9ec4 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Mon, 15 Dec 2014 07:54:55 -0500 Subject: [PATCH] Putting all labels in a tspan. This will get all of them aligning the same way --- src/js/parser/javascript/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/parser/javascript/base.js b/src/js/parser/javascript/base.js index e58cd91..04337b6 100644 --- a/src/js/parser/javascript/base.js +++ b/src/js/parser/javascript/base.js @@ -48,7 +48,7 @@ export default { group = this.container.group() .addClass('label'), rect = group.rect(), - text = group.text(0, 0, text); + text = group.text(0, 0, _.flatten([text])); setTimeout(deferred.resolve.bind(deferred, group)); deferred.promise.then(() => {