Add customizable fontSize of Titles and Elements with 2 new Select Controls:
[titleTextsize] Titel Textgrösse:
[elementTextsize] Element Textgrösse:
[default] "Textgrösse Titel 100%": Title Size 0: title1: 20 title2: 16 title3: 14 element title: 18 element text: 15
"Textgrösse Titel 90%": Title Size -1: title1: 19 title2: 16 title3: 14 element title: 17 element text: 12
"Textgrösse Titel 80%": Title Size -1: title1: 18 title2: 16 title3: 14 element title: 16 element text: 12
"Textgrösse Titel 70%": Title Size -1: title1: 17 title2: 15 title3: 13 element title: 15 element text: 12
Element Text Size: 12,13,14
// @todo handle dynamic fontsize
// font size
let fontSize = 12;
let ___elementFontSize = 12;
let ___titleFontSize = { //titleSize: 90%
title1: 19,
title2: 16,
title3: 14,
elementTitle: 17,
};
if(nodeType == NodeType.TITLE) {
if(level == 0) fontSize = ___titleFontSize.title1;
if(level == 1) fontSize = ___titleFontSize.title2;
if(level == 2) fontSize = ___titleFontSize.title3;
fontSize = ___titleFontSize.title3;
}
else if(nodeType == NodeType.DEFAULT) {
if(process.processes && process.processes.length) {
}
fontSize = ___elementFontSize;
}