2023-05-23 15:18:38 +03:00

46 lines
1.4 KiB
TypeScript

export interface IWatermark {
id: number;
dossierTemplateId: string;
enabled: boolean;
fontSize: number;
fontType: string;
hexColor: string;
opacity: number;
orientation: WatermarkOrientation;
horizontalTextAlignment: WatermarkHorizontalAlignment;
verticalTextAlignment: WatermarkVerticalAlignment;
text: string;
name: string;
createdBy?: string;
dateAdded?: string;
dateModified?: string;
}
export const WATERMARK_HORIZONTAL_ALIGNMENTS = {
LEFT: 'LEFT',
CENTER: 'CENTER',
RIGHT: 'RIGHT',
} as const;
export type WatermarkHorizontalAlignmentKey = keyof typeof WATERMARK_HORIZONTAL_ALIGNMENTS;
export type WatermarkHorizontalAlignment = (typeof WATERMARK_HORIZONTAL_ALIGNMENTS)[WatermarkHorizontalAlignmentKey];
export const WATERMARK_VERTICAL_ALIGNMENTS = {
TOP: 'TOP',
CENTER: 'CENTER',
BOTTOM: 'BOTTOM',
} as const;
export type WatermarkVerticalAlignmentKey = keyof typeof WATERMARK_VERTICAL_ALIGNMENTS;
export type WatermarkVerticalAlignment = (typeof WATERMARK_VERTICAL_ALIGNMENTS)[WatermarkVerticalAlignmentKey];
export const WatermarkOrientations = {
DIAGONAL: 'DIAGONAL',
HORIZONTAL: 'HORIZONTAL',
VERTICAL: 'VERTICAL',
} as const;
export type WatermarkOrientation = keyof typeof WatermarkOrientations;
export interface WatermarkAlignment {
horizontal: WatermarkHorizontalAlignment;
vertical: WatermarkVerticalAlignment;
}