From c08cabc928a81be9740fce0d62faa98133d2e59c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 23 Jul 2012 15:19:48 +0800 Subject: [PATCH] plugins/raphael.export.js --- plugins/raphael.export.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/raphael.export.js b/plugins/raphael.export.js index 3227180..dfdeb3d 100644 --- a/plugins/raphael.export.js +++ b/plugins/raphael.export.js @@ -163,7 +163,8 @@ return initial; }, { - style: 'text-anchor: middle; ' + styleToString(style) + ';' } + style: 'text-anchor: ' + (style.font.anchor ? style.font.anchor : 'middle;') + + styleToString(style) + ';' } ), node.matrix, tag('tspan', -- 2.39.2