*/
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' );
}
/**
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) {
- line = line || 0;
+ line = line || 0;
tags.push(tag(
'text',
reduce(
return initial;
},
- { style: 'text-anchor: middle; ' + styleToString(style) + ';' }
+ {
+ style: 'text-anchor: middle; ' + styleToString(style) + ';' }
),
node.matrix,
tag('tspan',