precyx
12/18/2019 - 3:32 PM

VMN Extension (V 1.0.2.4)

Extension of VMN Webpart:

Add customizable fontSize of Titles and Elements with 2 new Select Controls:

[titleTextsize] Titel Textgrösse:

  • "100%"
  • "90%"
  • "80%"
  • "70%"

[elementTextsize] Element Textgrösse:

  • "12"
  • "13"
  • "14"

[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;
}