plugins/raphael.export.js
authorAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:36:51 +0000 (12:36 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Oct 2014 04:36:51 +0000 (12:36 +0800)
plugins/raphael.export.js

index 0b521fb..e8a4503 100644 (file)
                                                return initial;
                                        },
                     {
-                            style:  'fill:' + node.attrs.fill + ';'
+                            style:  'fill:' + Raphael.color(node.attrs.fill).hex + ';'
                     }
                                ),
                                node.matrix