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
0f23a43
..
bdd3b91
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,13
+188,17
@@
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;
},
- {}
+ {
+ style: node.attrs.style
+ }
),
node.matrix
);
),
node.matrix
);