projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3583abc
)
plugins/raphael.export.js
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 07:19:01 +0000
(15:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 07:19:01 +0000
(15:19 +0800)
plugins/raphael.export.js
patch
|
blob
|
history
diff --git
a/plugins/raphael.export.js
b/plugins/raphael.export.js
index
c48e139
..
7c638bb
100644
(file)
--- a/
plugins/raphael.export.js
+++ b/
plugins/raphael.export.js
@@
-100,7
+100,8
@@
return {
font: {
family: node.attrs.font.replace(/^.*?"(\w+)".*$/, '$1'),
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''],
}
};
}
}
};
}