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

index c48e139..7c638bb 100644 (file)
                return {
                        font: {
                                family: node.attrs.font.replace(/^.*?"(\w+)".*$/, '$1'),
-                               size:   typeof node.attrs['font-size'] === 'undefined' ? null : node.attrs['font-size']
+                               size:   typeof node.attrs['font-size'] === 'undefined' ? null : node.attrs['font-size'],
+                anchor : typeof node.attrs['text-anchor'] === 'undefined' ? null : node.attrs['text-anchor''],
                                }
                        };
        }