plugins/raphael.export.js
authorAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 07:19:48 +0000 (15:19 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Jul 2012 07:19:48 +0000 (15:19 +0800)
plugins/raphael.export.js

index 3227180..dfdeb3d 100644 (file)
                                                        return initial;
                                                },
                                                {
-                                style: 'text-anchor: middle; ' + styleToString(style) + ';' }
+                                style: 'text-anchor: ' + (style.font.anchor ? style.font.anchor  : 'middle;') + 
+                                    styleToString(style) + ';' }
                                                ),
                                        node.matrix,
                                        tag('tspan',