projects
/
raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c61393
)
plugins/raphael.export.js
author
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 07:06:37 +0000
(15:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 23 Jul 2012 07:06:37 +0000
(15:06 +0800)
plugins/raphael.export.js
patch
|
blob
|
history
diff --git
a/plugins/raphael.export.js
b/plugins/raphael.export.js
index
82065de
..
76aac66
100644
(file)
--- a/
plugins/raphael.export.js
+++ b/
plugins/raphael.export.js
@@
-111,7
+111,8
@@
*/
function styleToString(style) {
// TODO figure out what is 'normal'
*/
function styleToString(style) {
// TODO figure out what is 'normal'
- return 'font: normal normal normal 10px/normal ' + style.font.family + ( style.font.size === null ? '' : '; font-size: ' + style.font.size + 'px' );
+ return 'font: normal normal normal 10px/normal ' + style.font.family +
+ ( style.font.size === null ? '' : '; font-size: ' + style.font.size + 'px' );
}
/**
}
/**
@@
-130,11
+131,11
@@
var serializer = {
'text': function(node) {
style = extractStyle(node);
var serializer = {
'text': function(node) {
style = extractStyle(node);
-
+ Roo.log(style);
var tags = new Array;
map(node.attrs['text'].split('\n'), function(text, iterable, line) {
var tags = new Array;
map(node.attrs['text'].split('\n'), function(text, iterable, line) {
-
line = line || 0;
+ line = line || 0;
tags.push(tag(
'text',
reduce(
tags.push(tag(
'text',
reduce(
@@
-148,7
+149,8
@@
return initial;
},
return initial;
},
- { style: 'text-anchor: middle; ' + styleToString(style) + ';' }
+ {
+ style: 'text-anchor: middle; ' + styleToString(style) + ';' }
),
node.matrix,
tag('tspan',
),
node.matrix,
tag('tspan',