projects
/
raphael
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugins/raphael.export.js
[raphael]
/
plugins
/
raphael.export.js
diff --git
a/plugins/raphael.export.js
b/plugins/raphael.export.js
index
573bede
..
24e14cc
100644
(file)
--- a/
plugins/raphael.export.js
+++ b/
plugins/raphael.export.js
@@
-164,8
+164,9
@@
},
{
style: 'text-anchor: ' + (style.font.anchor ? (style.font.anchor +';' ): 'middle;') +
},
{
style: 'text-anchor: ' + (style.font.anchor ? (style.font.anchor +';' ): 'middle;') +
- styleToString(style) + ';' }
- ),
+ styleToString(style) + ';'
+ }
+ ),
node.matrix,
tag('tspan',
{
node.matrix,
tag('tspan',
{
@@
-187,9
+188,11
@@
reduce(
node.attrs,
function(initial, value, name) {
reduce(
node.attrs,
function(initial, value, name) {
- if ( name === 'path' ) name = 'd';
+ if ( name === 'path' ) {
+ name = 'd';
+ }
- initial[name] = value.toString();
+ initial[name] =
(typeof(value) == 'undefined') ? '' :
value.toString();
return initial;
},
return initial;
},
@@
-241,7
+244,10
@@
name = '';
break;
name = '';
break;
-
+ case 'stroke':
+ case 'fill':
+ val = Raphael.getRGB(val).hex;
+ break;
}
if ( name ) {
}
if ( name ) {