2026-03-08 09:24:53 +01:00
|
|
|
/**
|
2026-03-08 09:38:24 +01:00
|
|
|
* Static launch values.
|
2026-03-08 09:24:53 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export const PAGE_DEFAULTS = Object.freeze({
|
|
|
|
|
format: 'A5',
|
|
|
|
|
formats: Object.freeze({
|
|
|
|
|
A4: Object.freeze({ width: 210, height: 297 }),
|
|
|
|
|
A5: Object.freeze({ width: 148, height: 210 }),
|
|
|
|
|
}),
|
|
|
|
|
margins: Object.freeze({
|
|
|
|
|
top: Object.freeze({ value: 16, unit: 'mm' }),
|
|
|
|
|
bottom: Object.freeze({ value: 16, unit: 'mm' }),
|
|
|
|
|
left: Object.freeze({ value: 16, unit: 'mm' }),
|
|
|
|
|
right: Object.freeze({ value: 16, unit: 'mm' }),
|
|
|
|
|
}),
|
|
|
|
|
background: '',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const TEXT_DEFAULTS = Object.freeze({
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
fontSize: Object.freeze({ value: 14, unit: 'px' }),
|
|
|
|
|
lineHeight: Object.freeze({ value: 18, unit: 'px' }),
|
|
|
|
|
color: 'rgb(0, 0, 0)',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const ELEMENT_DEFAULTS = Object.freeze({
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
italic: false,
|
|
|
|
|
bold: false,
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
color: 'rgb(0, 0, 0)',
|
|
|
|
|
background: 'transparent',
|
|
|
|
|
fontSize: Object.freeze({ value: 14, unit: 'px' }),
|
|
|
|
|
lineHeight: Object.freeze({ value: 18, unit: 'px' }),
|
|
|
|
|
borderWidth: Object.freeze({ value: 1, unit: 'px' }),
|
|
|
|
|
borderStyle: 'solid',
|
|
|
|
|
borderColor: '#000000',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const INLINE_DEFAULTS = Object.freeze({
|
|
|
|
|
em: Object.freeze({ fontStyle: 'italic' }),
|
|
|
|
|
i: Object.freeze({ fontStyle: 'italic' }),
|
|
|
|
|
strong: Object.freeze({ fontWeight: 'bold' }),
|
|
|
|
|
b: Object.freeze({ fontWeight: 'bold' }),
|
|
|
|
|
});
|