mirror of
https://github.com/documenso/documenso
synced 2026-04-21 21:37:18 +00:00
Generate certificates and audit logs using Konva instead of browserless. This should: - Reduce the changes of generations failing - Improve sealing speed
15 lines
438 B
TypeScript
15 lines
438 B
TypeScript
import { NEXT_PUBLIC_WEBAPP_URL } from './app';
|
|
|
|
export const DEFAULT_STANDARD_FONT_SIZE = 12;
|
|
export const DEFAULT_HANDWRITING_FONT_SIZE = 50;
|
|
export const DEFAULT_SIGNATURE_TEXT_FONT_SIZE = 18;
|
|
|
|
export const MIN_STANDARD_FONT_SIZE = 8;
|
|
export const MIN_HANDWRITING_FONT_SIZE = 20;
|
|
|
|
export const CAVEAT_FONT_PATH = () => `${NEXT_PUBLIC_WEBAPP_URL()}/fonts/caveat.ttf`;
|
|
|
|
export const PDF_SIZE_A4_72PPI = {
|
|
width: 595,
|
|
height: 842,
|
|
};
|