Fix FeeMind size conversion. Now it's mapped to the proper wise size.

This commit is contained in:
Paulo Gustavo Veiga
2012-09-29 16:53:43 -03:00
parent c7f7b20260
commit c37b632ac9
8 changed files with 677 additions and 448 deletions

View File

@@ -255,33 +255,35 @@ mindplot.persistence.XMLSerializer_Pela = new Class({
}
var topic = mindmap.createNode(type, id);
// Set text property is it;s defined...
var text = domElem.getAttribute('text');
if ($defined(text) && text) {
topic.setText(text);
}
var fontStyle = domElem.getAttribute('fontStyle');
if ($defined(fontStyle)) {
var font = fontStyle.split(';');
var fontStyle = domElem.getAttribute('fontStyle');
if ($defined(fontStyle) && fontStyle) {
var font = fontStyle.split(';');
if (font[0]) {
topic.setFontFamily(font[0]);
}
if (font[0]) {
topic.setFontFamily(font[0]);
}
if (font[1]) {
topic.setFontSize(font[1]);
}
if (font[1]) {
topic.setFontSize(font[1]);
}
if (font[2]) {
topic.setFontColor(font[2]);
}
if (font[2]) {
topic.setFontColor(font[2]);
}
if (font[3]) {
topic.setFontWeight(font[3]);
}
if (font[3]) {
topic.setFontWeight(font[3]);
}
if (font[4]) {
topic.setFontStyle(font[4]);
}
if (font[4]) {
topic.setFontStyle(font[4]);
}
}