2025-03-24 08:55:27 +00:00
|
|
|
const DPI = 96 / 2.54; // <PX> / <INCH>
|
|
|
|
export const A4_HEIGHT = cmToPx(29.7); // DPI * 29.7cm
|
|
|
|
export const A4_WIDTH = cmToPx(21); // DPI * 21cm
|
2023-10-16 18:28:12 +02:00
|
|
|
|
2025-03-24 08:55:27 +00:00
|
|
|
export function cmToPx(value: number): number {
|
|
|
|
return DPI * value;
|
|
|
|
}
|
|
|
|
|
|
|
|
import * as interfaces from "./interfaces/index.js";
|
2024-12-02 16:04:58 +01:00
|
|
|
export { interfaces };
|
|
|
|
|
2025-03-24 08:55:27 +00:00
|
|
|
import * as translation from "./translation.js";
|
2024-11-30 20:54:15 +01:00
|
|
|
export { translation };
|
|
|
|
|
2025-03-24 08:55:27 +00:00
|
|
|
export * from "./demoletter.js";
|