@@ -9,9 +9,10 @@ const FONT_SIZE_PX = 26;
const DEFAULT _LINE _LIMITS = { a4 : 27 , a5p : 19 , a5l : 13 , a6p : 14 , a6l : 11 , dinlang _karte : 11 } ;
const DEFAULT _LINE _LIMITS = { a4 : 27 , a5p : 19 , a5l : 13 , a6p : 14 , a6l : 11 , dinlang _karte : 11 } ;
const DEFAULT _FORMAT _LAYOUTS = {
const DEFAULT _FORMAT _LAYOUTS = {
a4 : { marginTopMm : 25 , marginLeftMm : 20 , lineHeightFactor : 1.35 } ,
a4 : { marginTopMm : 25 , marginLeftMm : 20 , lineHeightFactor : 1.35 } ,
a5p : { marginTopMm : 20 , marginLeftMm : 15 , lineHeightFactor : 1.35 } ,
// Greifrand IMMER an der langen (210 mm) Seite: hoch → rechts, quer/DIN lang → unten.
a5l : { marginTopMm : 20 , marginLeftMm : 15 , lineHeightFactor : 1.35 } ,
a5p : { marginTopMm : 20 , marginLeftMm : 15 , marginRightMm : 14 , lineHeightFactor : 1.35 } ,
dinlang _karte : { marginTopMm : 8 , marginLeftMm : 10 , lineHeightFactor : 1.2 } ,
a5l : { marginTopMm : 20 , marginLeftMm : 15 , marginBottomMm : 14 , lineHeightFactor : 1.35 } ,
dinlang _karte : { marginTopMm : 8 , marginLeftMm : 10 , marginBottomMm : 14 , lineHeightFactor : 1.2 } ,
// A6-Greifrand IMMER an der langen (148 mm) Seite:
// A6-Greifrand IMMER an der langen (148 mm) Seite:
// • a6p (hoch, 105× 148): lange Seite = rechts → marginRightMm (Breite)
// • a6p (hoch, 105× 148): lange Seite = rechts → marginRightMm (Breite)
// • a6l (quer, 148× 105): lange Seite = unten → marginBottomMm (Zeilen)
// • a6l (quer, 148× 105): lange Seite = unten → marginBottomMm (Zeilen)
@@ -19,6 +20,8 @@ const DEFAULT_FORMAT_LAYOUTS = {
a6l : { marginTopMm : 8 , marginLeftMm : 8 , marginBottomMm : 14 , lineHeightFactor : 1.2 } ,
a6l : { marginTopMm : 8 , marginLeftMm : 8 , marginBottomMm : 14 , lineHeightFactor : 1.2 } ,
din _lang : { marginTopMm : 50 , marginLeftMm : 10 , lineHeightFactor : 1.2 } ,
din _lang : { marginTopMm : 50 , marginLeftMm : 10 , lineHeightFactor : 1.2 } ,
c6 : { marginTopMm : 60 , marginLeftMm : 10 , lineHeightFactor : 1.2 } ,
c6 : { marginTopMm : 60 , marginLeftMm : 10 , lineHeightFactor : 1.2 } ,
// C4 quer (Querformat-Beschriftung, maschinenseitig quer eingelegt).
c4 : { marginTopMm : 70 , marginLeftMm : 20 , lineHeightFactor : 1.2 } ,
} ;
} ;
const DEFAULT _PAGE _FORMATS = {
const DEFAULT _PAGE _FORMATS = {
a4 : { widthMm : 210 , heightMm : 297 } ,
a4 : { widthMm : 210 , heightMm : 297 } ,
@@ -29,9 +32,10 @@ const DEFAULT_PAGE_FORMATS = {
a6l : { widthMm : 148 , heightMm : 105 } ,
a6l : { widthMm : 148 , heightMm : 105 } ,
din _lang : { widthMm : 220 , heightMm : 110 } ,
din _lang : { widthMm : 220 , heightMm : 110 } ,
c6 : { widthMm : 162 , heightMm : 114 } ,
c6 : { widthMm : 162 , heightMm : 114 } ,
c4 : { widthMm : 324 , heightMm : 229 } ,
} ;
} ;
// Art des Formats (brief/umschlag/postkarte) – steuert, WAS generiert wird.
// Art des Formats (brief/umschlag/postkarte) – steuert, WAS generiert wird.
const DEFAULT _KINDS = { a4 : 'brief' , a5p : 'brief' , a5l : 'brief' , a6p : 'brief' , a6l : 'brief' , dinlang _karte : 'brief' , din _lang : 'umschlag' , c6 : 'umschlag' } ;
const DEFAULT _KINDS = { a4 : 'brief' , a5p : 'brief' , a5l : 'brief' , a6p : 'brief' , a6l : 'brief' , dinlang _karte : 'brief' , din _lang : 'umschlag' , c6 : 'umschlag' , c4 : 'umschlag' } ;
// Live-Cache (wird von applyRenderFormats ersetzt). Start = Defaults.
// Live-Cache (wird von applyRenderFormats ersetzt). Start = Defaults.
let LINE _LIMITS = { ... DEFAULT _LINE _LIMITS } ;
let LINE _LIMITS = { ... DEFAULT _LINE _LIMITS } ;