@pdfme/common 2.0.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cjs/__tests__/font.test.js +237 -27
  2. package/dist/cjs/__tests__/font.test.js.map +1 -1
  3. package/dist/cjs/__tests__/helper.test.js +25 -0
  4. package/dist/cjs/__tests__/helper.test.js.map +1 -1
  5. package/dist/cjs/src/constants.js +12 -5
  6. package/dist/cjs/src/constants.js.map +1 -1
  7. package/dist/cjs/src/font.js +180 -48
  8. package/dist/cjs/src/font.js.map +1 -1
  9. package/dist/cjs/src/helper.js +14 -1
  10. package/dist/cjs/src/helper.js.map +1 -1
  11. package/dist/cjs/src/index.js +18 -6
  12. package/dist/cjs/src/index.js.map +1 -1
  13. package/dist/cjs/src/schema.js +10 -1
  14. package/dist/cjs/src/schema.js.map +1 -1
  15. package/dist/cjs/src/type.js.map +1 -1
  16. package/dist/esm/__tests__/font.test.js +238 -28
  17. package/dist/esm/__tests__/font.test.js.map +1 -1
  18. package/dist/esm/__tests__/helper.test.js +26 -1
  19. package/dist/esm/__tests__/helper.test.js.map +1 -1
  20. package/dist/esm/src/constants.js +11 -4
  21. package/dist/esm/src/constants.js.map +1 -1
  22. package/dist/esm/src/font.js +176 -47
  23. package/dist/esm/src/font.js.map +1 -1
  24. package/dist/esm/src/helper.js +11 -1
  25. package/dist/esm/src/helper.js.map +1 -1
  26. package/dist/esm/src/index.js +4 -4
  27. package/dist/esm/src/index.js.map +1 -1
  28. package/dist/esm/src/schema.js +9 -0
  29. package/dist/esm/src/schema.js.map +1 -1
  30. package/dist/esm/src/type.js.map +1 -1
  31. package/dist/types/src/constants.d.ts +11 -4
  32. package/dist/types/src/font.d.ts +20 -3
  33. package/dist/types/src/helper.d.ts +3 -0
  34. package/dist/types/src/index.d.ts +6 -6
  35. package/dist/types/src/schema.d.ts +165 -0
  36. package/dist/types/src/type.d.ts +9 -0
  37. package/package.json +1 -1
  38. package/src/constants.ts +11 -4
  39. package/src/font.ts +228 -72
  40. package/src/helper.ts +14 -1
  41. package/src/index.ts +38 -11
  42. package/src/schema.ts +10 -0
  43. package/src/type.ts +9 -0
@@ -11,6 +11,7 @@ export declare const Size: z.ZodObject<{
11
11
  width: number;
12
12
  }>;
13
13
  export declare const Alignment: z.ZodEnum<["left", "center", "right"]>;
14
+ export declare const VerticalAlignment: z.ZodEnum<["top", "middle", "bottom"]>;
14
15
  export declare const barcodeSchemaTypes: readonly ["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"];
15
16
  export declare const schemaTypes: readonly ["text", "image", "qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"];
16
17
  export declare const BarcodeSchemaType: z.ZodEnum<["qrcode", "japanpost", "ean13", "ean8", "code39", "code128", "nw7", "itf14", "upca", "upce", "gs1datamatrix"]>;
@@ -65,6 +66,7 @@ export declare const TextSchema: z.ZodObject<{
65
66
  rotate: z.ZodOptional<z.ZodNumber>;
66
67
  type: z.ZodLiteral<"text">;
67
68
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
69
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
68
70
  fontSize: z.ZodOptional<z.ZodNumber>;
69
71
  fontName: z.ZodOptional<z.ZodString>;
70
72
  fontColor: z.ZodOptional<z.ZodString>;
@@ -74,12 +76,15 @@ export declare const TextSchema: z.ZodObject<{
74
76
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
75
77
  max: z.ZodNumber;
76
78
  min: z.ZodNumber;
79
+ fit: z.ZodOptional<z.ZodString>;
77
80
  }, "strip", z.ZodTypeAny, {
78
81
  max: number;
79
82
  min: number;
83
+ fit?: string | undefined;
80
84
  }, {
81
85
  max: number;
82
86
  min: number;
87
+ fit?: string | undefined;
83
88
  }>>;
84
89
  }, "strip", z.ZodTypeAny, {
85
90
  type: "text";
@@ -91,6 +96,7 @@ export declare const TextSchema: z.ZodObject<{
91
96
  };
92
97
  rotate?: number | undefined;
93
98
  alignment?: "center" | "left" | "right" | undefined;
99
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
94
100
  fontSize?: number | undefined;
95
101
  fontName?: string | undefined;
96
102
  fontColor?: string | undefined;
@@ -100,6 +106,7 @@ export declare const TextSchema: z.ZodObject<{
100
106
  dynamicFontSize?: {
101
107
  max: number;
102
108
  min: number;
109
+ fit?: string | undefined;
103
110
  } | undefined;
104
111
  }, {
105
112
  type: "text";
@@ -111,6 +118,7 @@ export declare const TextSchema: z.ZodObject<{
111
118
  };
112
119
  rotate?: number | undefined;
113
120
  alignment?: "center" | "left" | "right" | undefined;
121
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
114
122
  fontSize?: number | undefined;
115
123
  fontName?: string | undefined;
116
124
  fontColor?: string | undefined;
@@ -120,6 +128,7 @@ export declare const TextSchema: z.ZodObject<{
120
128
  dynamicFontSize?: {
121
129
  max: number;
122
130
  min: number;
131
+ fit?: string | undefined;
123
132
  } | undefined;
124
133
  }>;
125
134
  export declare const ImageSchema: z.ZodObject<{
@@ -206,6 +215,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
206
215
  rotate: z.ZodOptional<z.ZodNumber>;
207
216
  type: z.ZodLiteral<"text">;
208
217
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
218
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
209
219
  fontSize: z.ZodOptional<z.ZodNumber>;
210
220
  fontName: z.ZodOptional<z.ZodString>;
211
221
  fontColor: z.ZodOptional<z.ZodString>;
@@ -215,12 +225,15 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
215
225
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
216
226
  max: z.ZodNumber;
217
227
  min: z.ZodNumber;
228
+ fit: z.ZodOptional<z.ZodString>;
218
229
  }, "strip", z.ZodTypeAny, {
219
230
  max: number;
220
231
  min: number;
232
+ fit?: string | undefined;
221
233
  }, {
222
234
  max: number;
223
235
  min: number;
236
+ fit?: string | undefined;
224
237
  }>>;
225
238
  }, "strip", z.ZodTypeAny, {
226
239
  type: "text";
@@ -232,6 +245,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
232
245
  };
233
246
  rotate?: number | undefined;
234
247
  alignment?: "center" | "left" | "right" | undefined;
248
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
235
249
  fontSize?: number | undefined;
236
250
  fontName?: string | undefined;
237
251
  fontColor?: string | undefined;
@@ -241,6 +255,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
241
255
  dynamicFontSize?: {
242
256
  max: number;
243
257
  min: number;
258
+ fit?: string | undefined;
244
259
  } | undefined;
245
260
  }, {
246
261
  type: "text";
@@ -252,6 +267,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
252
267
  };
253
268
  rotate?: number | undefined;
254
269
  alignment?: "center" | "left" | "right" | undefined;
270
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
255
271
  fontSize?: number | undefined;
256
272
  fontName?: string | undefined;
257
273
  fontColor?: string | undefined;
@@ -261,6 +277,7 @@ export declare const Schema: z.ZodUnion<[z.ZodObject<{
261
277
  dynamicFontSize?: {
262
278
  max: number;
263
279
  min: number;
280
+ fit?: string | undefined;
264
281
  } | undefined;
265
282
  }>, z.ZodObject<{
266
283
  height: z.ZodNumber;
@@ -348,18 +365,22 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
348
365
  }>;
349
366
  rotate: z.ZodOptional<z.ZodNumber>;
350
367
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
368
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
351
369
  fontName: z.ZodOptional<z.ZodString>;
352
370
  fontColor: z.ZodOptional<z.ZodString>;
353
371
  characterSpacing: z.ZodOptional<z.ZodNumber>;
354
372
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
355
373
  max: z.ZodNumber;
356
374
  min: z.ZodNumber;
375
+ fit: z.ZodOptional<z.ZodString>;
357
376
  }, "strip", z.ZodTypeAny, {
358
377
  max: number;
359
378
  min: number;
379
+ fit?: string | undefined;
360
380
  }, {
361
381
  max: number;
362
382
  min: number;
383
+ fit?: string | undefined;
363
384
  }>>;
364
385
  id: z.ZodString;
365
386
  key: z.ZodString;
@@ -380,12 +401,14 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
380
401
  lineHeight?: number | undefined;
381
402
  rotate?: number | undefined;
382
403
  alignment?: "center" | "left" | "right" | undefined;
404
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
383
405
  fontName?: string | undefined;
384
406
  fontColor?: string | undefined;
385
407
  characterSpacing?: number | undefined;
386
408
  dynamicFontSize?: {
387
409
  max: number;
388
410
  min: number;
411
+ fit?: string | undefined;
389
412
  } | undefined;
390
413
  }, {
391
414
  type: "text";
@@ -403,12 +426,14 @@ export declare const SchemaForUI: z.ZodUnion<[z.ZodObject<{
403
426
  lineHeight?: number | undefined;
404
427
  rotate?: number | undefined;
405
428
  alignment?: "center" | "left" | "right" | undefined;
429
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
406
430
  fontName?: string | undefined;
407
431
  fontColor?: string | undefined;
408
432
  characterSpacing?: number | undefined;
409
433
  dynamicFontSize?: {
410
434
  max: number;
411
435
  min: number;
436
+ fit?: string | undefined;
412
437
  } | undefined;
413
438
  }>, z.ZodObject<{
414
439
  type: z.ZodLiteral<"image">;
@@ -526,6 +551,7 @@ export declare const Template: z.ZodObject<{
526
551
  rotate: z.ZodOptional<z.ZodNumber>;
527
552
  type: z.ZodLiteral<"text">;
528
553
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
554
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
529
555
  fontSize: z.ZodOptional<z.ZodNumber>;
530
556
  fontName: z.ZodOptional<z.ZodString>;
531
557
  fontColor: z.ZodOptional<z.ZodString>;
@@ -535,12 +561,15 @@ export declare const Template: z.ZodObject<{
535
561
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
536
562
  max: z.ZodNumber;
537
563
  min: z.ZodNumber;
564
+ fit: z.ZodOptional<z.ZodString>;
538
565
  }, "strip", z.ZodTypeAny, {
539
566
  max: number;
540
567
  min: number;
568
+ fit?: string | undefined;
541
569
  }, {
542
570
  max: number;
543
571
  min: number;
572
+ fit?: string | undefined;
544
573
  }>>;
545
574
  }, "strip", z.ZodTypeAny, {
546
575
  type: "text";
@@ -552,6 +581,7 @@ export declare const Template: z.ZodObject<{
552
581
  };
553
582
  rotate?: number | undefined;
554
583
  alignment?: "center" | "left" | "right" | undefined;
584
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
555
585
  fontSize?: number | undefined;
556
586
  fontName?: string | undefined;
557
587
  fontColor?: string | undefined;
@@ -561,6 +591,7 @@ export declare const Template: z.ZodObject<{
561
591
  dynamicFontSize?: {
562
592
  max: number;
563
593
  min: number;
594
+ fit?: string | undefined;
564
595
  } | undefined;
565
596
  }, {
566
597
  type: "text";
@@ -572,6 +603,7 @@ export declare const Template: z.ZodObject<{
572
603
  };
573
604
  rotate?: number | undefined;
574
605
  alignment?: "center" | "left" | "right" | undefined;
606
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
575
607
  fontSize?: number | undefined;
576
608
  fontName?: string | undefined;
577
609
  fontColor?: string | undefined;
@@ -581,6 +613,7 @@ export declare const Template: z.ZodObject<{
581
613
  dynamicFontSize?: {
582
614
  max: number;
583
615
  min: number;
616
+ fit?: string | undefined;
584
617
  } | undefined;
585
618
  }>, z.ZodObject<{
586
619
  height: z.ZodNumber;
@@ -663,6 +696,7 @@ export declare const Template: z.ZodObject<{
663
696
  };
664
697
  rotate?: number | undefined;
665
698
  alignment?: "center" | "left" | "right" | undefined;
699
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
666
700
  fontSize?: number | undefined;
667
701
  fontName?: string | undefined;
668
702
  fontColor?: string | undefined;
@@ -672,6 +706,7 @@ export declare const Template: z.ZodObject<{
672
706
  dynamicFontSize?: {
673
707
  max: number;
674
708
  min: number;
709
+ fit?: string | undefined;
675
710
  } | undefined;
676
711
  } | {
677
712
  type: "image";
@@ -706,6 +741,7 @@ export declare const Template: z.ZodObject<{
706
741
  };
707
742
  rotate?: number | undefined;
708
743
  alignment?: "center" | "left" | "right" | undefined;
744
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
709
745
  fontSize?: number | undefined;
710
746
  fontName?: string | undefined;
711
747
  fontColor?: string | undefined;
@@ -715,6 +751,7 @@ export declare const Template: z.ZodObject<{
715
751
  dynamicFontSize?: {
716
752
  max: number;
717
753
  min: number;
754
+ fit?: string | undefined;
718
755
  } | undefined;
719
756
  } | {
720
757
  type: "image";
@@ -758,6 +795,7 @@ export declare const CommonProps: z.ZodObject<{
758
795
  rotate: z.ZodOptional<z.ZodNumber>;
759
796
  type: z.ZodLiteral<"text">;
760
797
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
798
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
761
799
  fontSize: z.ZodOptional<z.ZodNumber>;
762
800
  fontName: z.ZodOptional<z.ZodString>;
763
801
  fontColor: z.ZodOptional<z.ZodString>;
@@ -767,12 +805,15 @@ export declare const CommonProps: z.ZodObject<{
767
805
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
768
806
  max: z.ZodNumber;
769
807
  min: z.ZodNumber;
808
+ fit: z.ZodOptional<z.ZodString>;
770
809
  }, "strip", z.ZodTypeAny, {
771
810
  max: number;
772
811
  min: number;
812
+ fit?: string | undefined;
773
813
  }, {
774
814
  max: number;
775
815
  min: number;
816
+ fit?: string | undefined;
776
817
  }>>;
777
818
  }, "strip", z.ZodTypeAny, {
778
819
  type: "text";
@@ -784,6 +825,7 @@ export declare const CommonProps: z.ZodObject<{
784
825
  };
785
826
  rotate?: number | undefined;
786
827
  alignment?: "center" | "left" | "right" | undefined;
828
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
787
829
  fontSize?: number | undefined;
788
830
  fontName?: string | undefined;
789
831
  fontColor?: string | undefined;
@@ -793,6 +835,7 @@ export declare const CommonProps: z.ZodObject<{
793
835
  dynamicFontSize?: {
794
836
  max: number;
795
837
  min: number;
838
+ fit?: string | undefined;
796
839
  } | undefined;
797
840
  }, {
798
841
  type: "text";
@@ -804,6 +847,7 @@ export declare const CommonProps: z.ZodObject<{
804
847
  };
805
848
  rotate?: number | undefined;
806
849
  alignment?: "center" | "left" | "right" | undefined;
850
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
807
851
  fontSize?: number | undefined;
808
852
  fontName?: string | undefined;
809
853
  fontColor?: string | undefined;
@@ -813,6 +857,7 @@ export declare const CommonProps: z.ZodObject<{
813
857
  dynamicFontSize?: {
814
858
  max: number;
815
859
  min: number;
860
+ fit?: string | undefined;
816
861
  } | undefined;
817
862
  }>, z.ZodObject<{
818
863
  height: z.ZodNumber;
@@ -895,6 +940,7 @@ export declare const CommonProps: z.ZodObject<{
895
940
  };
896
941
  rotate?: number | undefined;
897
942
  alignment?: "center" | "left" | "right" | undefined;
943
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
898
944
  fontSize?: number | undefined;
899
945
  fontName?: string | undefined;
900
946
  fontColor?: string | undefined;
@@ -904,6 +950,7 @@ export declare const CommonProps: z.ZodObject<{
904
950
  dynamicFontSize?: {
905
951
  max: number;
906
952
  min: number;
953
+ fit?: string | undefined;
907
954
  } | undefined;
908
955
  } | {
909
956
  type: "image";
@@ -938,6 +985,7 @@ export declare const CommonProps: z.ZodObject<{
938
985
  };
939
986
  rotate?: number | undefined;
940
987
  alignment?: "center" | "left" | "right" | undefined;
988
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
941
989
  fontSize?: number | undefined;
942
990
  fontName?: string | undefined;
943
991
  fontColor?: string | undefined;
@@ -947,6 +995,7 @@ export declare const CommonProps: z.ZodObject<{
947
995
  dynamicFontSize?: {
948
996
  max: number;
949
997
  min: number;
998
+ fit?: string | undefined;
950
999
  } | undefined;
951
1000
  } | {
952
1001
  type: "image";
@@ -1010,6 +1059,7 @@ export declare const CommonProps: z.ZodObject<{
1010
1059
  };
1011
1060
  rotate?: number | undefined;
1012
1061
  alignment?: "center" | "left" | "right" | undefined;
1062
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1013
1063
  fontSize?: number | undefined;
1014
1064
  fontName?: string | undefined;
1015
1065
  fontColor?: string | undefined;
@@ -1019,6 +1069,7 @@ export declare const CommonProps: z.ZodObject<{
1019
1069
  dynamicFontSize?: {
1020
1070
  max: number;
1021
1071
  min: number;
1072
+ fit?: string | undefined;
1022
1073
  } | undefined;
1023
1074
  } | {
1024
1075
  type: "image";
@@ -1062,6 +1113,7 @@ export declare const CommonProps: z.ZodObject<{
1062
1113
  };
1063
1114
  rotate?: number | undefined;
1064
1115
  alignment?: "center" | "left" | "right" | undefined;
1116
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1065
1117
  fontSize?: number | undefined;
1066
1118
  fontName?: string | undefined;
1067
1119
  fontColor?: string | undefined;
@@ -1071,6 +1123,7 @@ export declare const CommonProps: z.ZodObject<{
1071
1123
  dynamicFontSize?: {
1072
1124
  max: number;
1073
1125
  min: number;
1126
+ fit?: string | undefined;
1074
1127
  } | undefined;
1075
1128
  } | {
1076
1129
  type: "image";
@@ -1148,6 +1201,7 @@ export declare const GenerateProps: z.ZodObject<{
1148
1201
  rotate: z.ZodOptional<z.ZodNumber>;
1149
1202
  type: z.ZodLiteral<"text">;
1150
1203
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1204
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
1151
1205
  fontSize: z.ZodOptional<z.ZodNumber>;
1152
1206
  fontName: z.ZodOptional<z.ZodString>;
1153
1207
  fontColor: z.ZodOptional<z.ZodString>;
@@ -1157,12 +1211,15 @@ export declare const GenerateProps: z.ZodObject<{
1157
1211
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
1158
1212
  max: z.ZodNumber;
1159
1213
  min: z.ZodNumber;
1214
+ fit: z.ZodOptional<z.ZodString>;
1160
1215
  }, "strip", z.ZodTypeAny, {
1161
1216
  max: number;
1162
1217
  min: number;
1218
+ fit?: string | undefined;
1163
1219
  }, {
1164
1220
  max: number;
1165
1221
  min: number;
1222
+ fit?: string | undefined;
1166
1223
  }>>;
1167
1224
  }, "strip", z.ZodTypeAny, {
1168
1225
  type: "text";
@@ -1174,6 +1231,7 @@ export declare const GenerateProps: z.ZodObject<{
1174
1231
  };
1175
1232
  rotate?: number | undefined;
1176
1233
  alignment?: "center" | "left" | "right" | undefined;
1234
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1177
1235
  fontSize?: number | undefined;
1178
1236
  fontName?: string | undefined;
1179
1237
  fontColor?: string | undefined;
@@ -1183,6 +1241,7 @@ export declare const GenerateProps: z.ZodObject<{
1183
1241
  dynamicFontSize?: {
1184
1242
  max: number;
1185
1243
  min: number;
1244
+ fit?: string | undefined;
1186
1245
  } | undefined;
1187
1246
  }, {
1188
1247
  type: "text";
@@ -1194,6 +1253,7 @@ export declare const GenerateProps: z.ZodObject<{
1194
1253
  };
1195
1254
  rotate?: number | undefined;
1196
1255
  alignment?: "center" | "left" | "right" | undefined;
1256
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1197
1257
  fontSize?: number | undefined;
1198
1258
  fontName?: string | undefined;
1199
1259
  fontColor?: string | undefined;
@@ -1203,6 +1263,7 @@ export declare const GenerateProps: z.ZodObject<{
1203
1263
  dynamicFontSize?: {
1204
1264
  max: number;
1205
1265
  min: number;
1266
+ fit?: string | undefined;
1206
1267
  } | undefined;
1207
1268
  }>, z.ZodObject<{
1208
1269
  height: z.ZodNumber;
@@ -1285,6 +1346,7 @@ export declare const GenerateProps: z.ZodObject<{
1285
1346
  };
1286
1347
  rotate?: number | undefined;
1287
1348
  alignment?: "center" | "left" | "right" | undefined;
1349
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1288
1350
  fontSize?: number | undefined;
1289
1351
  fontName?: string | undefined;
1290
1352
  fontColor?: string | undefined;
@@ -1294,6 +1356,7 @@ export declare const GenerateProps: z.ZodObject<{
1294
1356
  dynamicFontSize?: {
1295
1357
  max: number;
1296
1358
  min: number;
1359
+ fit?: string | undefined;
1297
1360
  } | undefined;
1298
1361
  } | {
1299
1362
  type: "image";
@@ -1328,6 +1391,7 @@ export declare const GenerateProps: z.ZodObject<{
1328
1391
  };
1329
1392
  rotate?: number | undefined;
1330
1393
  alignment?: "center" | "left" | "right" | undefined;
1394
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1331
1395
  fontSize?: number | undefined;
1332
1396
  fontName?: string | undefined;
1333
1397
  fontColor?: string | undefined;
@@ -1337,6 +1401,7 @@ export declare const GenerateProps: z.ZodObject<{
1337
1401
  dynamicFontSize?: {
1338
1402
  max: number;
1339
1403
  min: number;
1404
+ fit?: string | undefined;
1340
1405
  } | undefined;
1341
1406
  } | {
1342
1407
  type: "image";
@@ -1401,6 +1466,7 @@ export declare const GenerateProps: z.ZodObject<{
1401
1466
  };
1402
1467
  rotate?: number | undefined;
1403
1468
  alignment?: "center" | "left" | "right" | undefined;
1469
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1404
1470
  fontSize?: number | undefined;
1405
1471
  fontName?: string | undefined;
1406
1472
  fontColor?: string | undefined;
@@ -1410,6 +1476,7 @@ export declare const GenerateProps: z.ZodObject<{
1410
1476
  dynamicFontSize?: {
1411
1477
  max: number;
1412
1478
  min: number;
1479
+ fit?: string | undefined;
1413
1480
  } | undefined;
1414
1481
  } | {
1415
1482
  type: "image";
@@ -1454,6 +1521,7 @@ export declare const GenerateProps: z.ZodObject<{
1454
1521
  };
1455
1522
  rotate?: number | undefined;
1456
1523
  alignment?: "center" | "left" | "right" | undefined;
1524
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1457
1525
  fontSize?: number | undefined;
1458
1526
  fontName?: string | undefined;
1459
1527
  fontColor?: string | undefined;
@@ -1463,6 +1531,7 @@ export declare const GenerateProps: z.ZodObject<{
1463
1531
  dynamicFontSize?: {
1464
1532
  max: number;
1465
1533
  min: number;
1534
+ fit?: string | undefined;
1466
1535
  } | undefined;
1467
1536
  } | {
1468
1537
  type: "image";
@@ -1545,6 +1614,7 @@ export declare const UIProps: z.ZodObject<{
1545
1614
  rotate: z.ZodOptional<z.ZodNumber>;
1546
1615
  type: z.ZodLiteral<"text">;
1547
1616
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1617
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
1548
1618
  fontSize: z.ZodOptional<z.ZodNumber>;
1549
1619
  fontName: z.ZodOptional<z.ZodString>;
1550
1620
  fontColor: z.ZodOptional<z.ZodString>;
@@ -1554,12 +1624,15 @@ export declare const UIProps: z.ZodObject<{
1554
1624
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
1555
1625
  max: z.ZodNumber;
1556
1626
  min: z.ZodNumber;
1627
+ fit: z.ZodOptional<z.ZodString>;
1557
1628
  }, "strip", z.ZodTypeAny, {
1558
1629
  max: number;
1559
1630
  min: number;
1631
+ fit?: string | undefined;
1560
1632
  }, {
1561
1633
  max: number;
1562
1634
  min: number;
1635
+ fit?: string | undefined;
1563
1636
  }>>;
1564
1637
  }, "strip", z.ZodTypeAny, {
1565
1638
  type: "text";
@@ -1571,6 +1644,7 @@ export declare const UIProps: z.ZodObject<{
1571
1644
  };
1572
1645
  rotate?: number | undefined;
1573
1646
  alignment?: "center" | "left" | "right" | undefined;
1647
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1574
1648
  fontSize?: number | undefined;
1575
1649
  fontName?: string | undefined;
1576
1650
  fontColor?: string | undefined;
@@ -1580,6 +1654,7 @@ export declare const UIProps: z.ZodObject<{
1580
1654
  dynamicFontSize?: {
1581
1655
  max: number;
1582
1656
  min: number;
1657
+ fit?: string | undefined;
1583
1658
  } | undefined;
1584
1659
  }, {
1585
1660
  type: "text";
@@ -1591,6 +1666,7 @@ export declare const UIProps: z.ZodObject<{
1591
1666
  };
1592
1667
  rotate?: number | undefined;
1593
1668
  alignment?: "center" | "left" | "right" | undefined;
1669
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1594
1670
  fontSize?: number | undefined;
1595
1671
  fontName?: string | undefined;
1596
1672
  fontColor?: string | undefined;
@@ -1600,6 +1676,7 @@ export declare const UIProps: z.ZodObject<{
1600
1676
  dynamicFontSize?: {
1601
1677
  max: number;
1602
1678
  min: number;
1679
+ fit?: string | undefined;
1603
1680
  } | undefined;
1604
1681
  }>, z.ZodObject<{
1605
1682
  height: z.ZodNumber;
@@ -1682,6 +1759,7 @@ export declare const UIProps: z.ZodObject<{
1682
1759
  };
1683
1760
  rotate?: number | undefined;
1684
1761
  alignment?: "center" | "left" | "right" | undefined;
1762
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1685
1763
  fontSize?: number | undefined;
1686
1764
  fontName?: string | undefined;
1687
1765
  fontColor?: string | undefined;
@@ -1691,6 +1769,7 @@ export declare const UIProps: z.ZodObject<{
1691
1769
  dynamicFontSize?: {
1692
1770
  max: number;
1693
1771
  min: number;
1772
+ fit?: string | undefined;
1694
1773
  } | undefined;
1695
1774
  } | {
1696
1775
  type: "image";
@@ -1725,6 +1804,7 @@ export declare const UIProps: z.ZodObject<{
1725
1804
  };
1726
1805
  rotate?: number | undefined;
1727
1806
  alignment?: "center" | "left" | "right" | undefined;
1807
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1728
1808
  fontSize?: number | undefined;
1729
1809
  fontName?: string | undefined;
1730
1810
  fontColor?: string | undefined;
@@ -1734,6 +1814,7 @@ export declare const UIProps: z.ZodObject<{
1734
1814
  dynamicFontSize?: {
1735
1815
  max: number;
1736
1816
  min: number;
1817
+ fit?: string | undefined;
1737
1818
  } | undefined;
1738
1819
  } | {
1739
1820
  type: "image";
@@ -1801,6 +1882,7 @@ export declare const UIProps: z.ZodObject<{
1801
1882
  };
1802
1883
  rotate?: number | undefined;
1803
1884
  alignment?: "center" | "left" | "right" | undefined;
1885
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1804
1886
  fontSize?: number | undefined;
1805
1887
  fontName?: string | undefined;
1806
1888
  fontColor?: string | undefined;
@@ -1810,6 +1892,7 @@ export declare const UIProps: z.ZodObject<{
1810
1892
  dynamicFontSize?: {
1811
1893
  max: number;
1812
1894
  min: number;
1895
+ fit?: string | undefined;
1813
1896
  } | undefined;
1814
1897
  } | {
1815
1898
  type: "image";
@@ -1855,6 +1938,7 @@ export declare const UIProps: z.ZodObject<{
1855
1938
  };
1856
1939
  rotate?: number | undefined;
1857
1940
  alignment?: "center" | "left" | "right" | undefined;
1941
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1858
1942
  fontSize?: number | undefined;
1859
1943
  fontName?: string | undefined;
1860
1944
  fontColor?: string | undefined;
@@ -1864,6 +1948,7 @@ export declare const UIProps: z.ZodObject<{
1864
1948
  dynamicFontSize?: {
1865
1949
  max: number;
1866
1950
  min: number;
1951
+ fit?: string | undefined;
1867
1952
  } | undefined;
1868
1953
  } | {
1869
1954
  type: "image";
@@ -1916,6 +2001,7 @@ export declare const PreviewProps: z.ZodObject<{
1916
2001
  rotate: z.ZodOptional<z.ZodNumber>;
1917
2002
  type: z.ZodLiteral<"text">;
1918
2003
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2004
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
1919
2005
  fontSize: z.ZodOptional<z.ZodNumber>;
1920
2006
  fontName: z.ZodOptional<z.ZodString>;
1921
2007
  fontColor: z.ZodOptional<z.ZodString>;
@@ -1925,12 +2011,15 @@ export declare const PreviewProps: z.ZodObject<{
1925
2011
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
1926
2012
  max: z.ZodNumber;
1927
2013
  min: z.ZodNumber;
2014
+ fit: z.ZodOptional<z.ZodString>;
1928
2015
  }, "strip", z.ZodTypeAny, {
1929
2016
  max: number;
1930
2017
  min: number;
2018
+ fit?: string | undefined;
1931
2019
  }, {
1932
2020
  max: number;
1933
2021
  min: number;
2022
+ fit?: string | undefined;
1934
2023
  }>>;
1935
2024
  }, "strip", z.ZodTypeAny, {
1936
2025
  type: "text";
@@ -1942,6 +2031,7 @@ export declare const PreviewProps: z.ZodObject<{
1942
2031
  };
1943
2032
  rotate?: number | undefined;
1944
2033
  alignment?: "center" | "left" | "right" | undefined;
2034
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1945
2035
  fontSize?: number | undefined;
1946
2036
  fontName?: string | undefined;
1947
2037
  fontColor?: string | undefined;
@@ -1951,6 +2041,7 @@ export declare const PreviewProps: z.ZodObject<{
1951
2041
  dynamicFontSize?: {
1952
2042
  max: number;
1953
2043
  min: number;
2044
+ fit?: string | undefined;
1954
2045
  } | undefined;
1955
2046
  }, {
1956
2047
  type: "text";
@@ -1962,6 +2053,7 @@ export declare const PreviewProps: z.ZodObject<{
1962
2053
  };
1963
2054
  rotate?: number | undefined;
1964
2055
  alignment?: "center" | "left" | "right" | undefined;
2056
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
1965
2057
  fontSize?: number | undefined;
1966
2058
  fontName?: string | undefined;
1967
2059
  fontColor?: string | undefined;
@@ -1971,6 +2063,7 @@ export declare const PreviewProps: z.ZodObject<{
1971
2063
  dynamicFontSize?: {
1972
2064
  max: number;
1973
2065
  min: number;
2066
+ fit?: string | undefined;
1974
2067
  } | undefined;
1975
2068
  }>, z.ZodObject<{
1976
2069
  height: z.ZodNumber;
@@ -2053,6 +2146,7 @@ export declare const PreviewProps: z.ZodObject<{
2053
2146
  };
2054
2147
  rotate?: number | undefined;
2055
2148
  alignment?: "center" | "left" | "right" | undefined;
2149
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2056
2150
  fontSize?: number | undefined;
2057
2151
  fontName?: string | undefined;
2058
2152
  fontColor?: string | undefined;
@@ -2062,6 +2156,7 @@ export declare const PreviewProps: z.ZodObject<{
2062
2156
  dynamicFontSize?: {
2063
2157
  max: number;
2064
2158
  min: number;
2159
+ fit?: string | undefined;
2065
2160
  } | undefined;
2066
2161
  } | {
2067
2162
  type: "image";
@@ -2096,6 +2191,7 @@ export declare const PreviewProps: z.ZodObject<{
2096
2191
  };
2097
2192
  rotate?: number | undefined;
2098
2193
  alignment?: "center" | "left" | "right" | undefined;
2194
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2099
2195
  fontSize?: number | undefined;
2100
2196
  fontName?: string | undefined;
2101
2197
  fontColor?: string | undefined;
@@ -2105,6 +2201,7 @@ export declare const PreviewProps: z.ZodObject<{
2105
2201
  dynamicFontSize?: {
2106
2202
  max: number;
2107
2203
  min: number;
2204
+ fit?: string | undefined;
2108
2205
  } | undefined;
2109
2206
  } | {
2110
2207
  type: "image";
@@ -2173,6 +2270,7 @@ export declare const PreviewProps: z.ZodObject<{
2173
2270
  };
2174
2271
  rotate?: number | undefined;
2175
2272
  alignment?: "center" | "left" | "right" | undefined;
2273
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2176
2274
  fontSize?: number | undefined;
2177
2275
  fontName?: string | undefined;
2178
2276
  fontColor?: string | undefined;
@@ -2182,6 +2280,7 @@ export declare const PreviewProps: z.ZodObject<{
2182
2280
  dynamicFontSize?: {
2183
2281
  max: number;
2184
2282
  min: number;
2283
+ fit?: string | undefined;
2185
2284
  } | undefined;
2186
2285
  } | {
2187
2286
  type: "image";
@@ -2228,6 +2327,7 @@ export declare const PreviewProps: z.ZodObject<{
2228
2327
  };
2229
2328
  rotate?: number | undefined;
2230
2329
  alignment?: "center" | "left" | "right" | undefined;
2330
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2231
2331
  fontSize?: number | undefined;
2232
2332
  fontName?: string | undefined;
2233
2333
  fontColor?: string | undefined;
@@ -2237,6 +2337,7 @@ export declare const PreviewProps: z.ZodObject<{
2237
2337
  dynamicFontSize?: {
2238
2338
  max: number;
2239
2339
  min: number;
2340
+ fit?: string | undefined;
2240
2341
  } | undefined;
2241
2342
  } | {
2242
2343
  type: "image";
@@ -2290,6 +2391,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2290
2391
  rotate: z.ZodOptional<z.ZodNumber>;
2291
2392
  type: z.ZodLiteral<"text">;
2292
2393
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2394
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
2293
2395
  fontSize: z.ZodOptional<z.ZodNumber>;
2294
2396
  fontName: z.ZodOptional<z.ZodString>;
2295
2397
  fontColor: z.ZodOptional<z.ZodString>;
@@ -2299,12 +2401,15 @@ export declare const PreviewReactProps: z.ZodObject<{
2299
2401
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
2300
2402
  max: z.ZodNumber;
2301
2403
  min: z.ZodNumber;
2404
+ fit: z.ZodOptional<z.ZodString>;
2302
2405
  }, "strip", z.ZodTypeAny, {
2303
2406
  max: number;
2304
2407
  min: number;
2408
+ fit?: string | undefined;
2305
2409
  }, {
2306
2410
  max: number;
2307
2411
  min: number;
2412
+ fit?: string | undefined;
2308
2413
  }>>;
2309
2414
  }, "strip", z.ZodTypeAny, {
2310
2415
  type: "text";
@@ -2316,6 +2421,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2316
2421
  };
2317
2422
  rotate?: number | undefined;
2318
2423
  alignment?: "center" | "left" | "right" | undefined;
2424
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2319
2425
  fontSize?: number | undefined;
2320
2426
  fontName?: string | undefined;
2321
2427
  fontColor?: string | undefined;
@@ -2325,6 +2431,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2325
2431
  dynamicFontSize?: {
2326
2432
  max: number;
2327
2433
  min: number;
2434
+ fit?: string | undefined;
2328
2435
  } | undefined;
2329
2436
  }, {
2330
2437
  type: "text";
@@ -2336,6 +2443,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2336
2443
  };
2337
2444
  rotate?: number | undefined;
2338
2445
  alignment?: "center" | "left" | "right" | undefined;
2446
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2339
2447
  fontSize?: number | undefined;
2340
2448
  fontName?: string | undefined;
2341
2449
  fontColor?: string | undefined;
@@ -2345,6 +2453,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2345
2453
  dynamicFontSize?: {
2346
2454
  max: number;
2347
2455
  min: number;
2456
+ fit?: string | undefined;
2348
2457
  } | undefined;
2349
2458
  }>, z.ZodObject<{
2350
2459
  height: z.ZodNumber;
@@ -2427,6 +2536,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2427
2536
  };
2428
2537
  rotate?: number | undefined;
2429
2538
  alignment?: "center" | "left" | "right" | undefined;
2539
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2430
2540
  fontSize?: number | undefined;
2431
2541
  fontName?: string | undefined;
2432
2542
  fontColor?: string | undefined;
@@ -2436,6 +2546,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2436
2546
  dynamicFontSize?: {
2437
2547
  max: number;
2438
2548
  min: number;
2549
+ fit?: string | undefined;
2439
2550
  } | undefined;
2440
2551
  } | {
2441
2552
  type: "image";
@@ -2470,6 +2581,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2470
2581
  };
2471
2582
  rotate?: number | undefined;
2472
2583
  alignment?: "center" | "left" | "right" | undefined;
2584
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2473
2585
  fontSize?: number | undefined;
2474
2586
  fontName?: string | undefined;
2475
2587
  fontColor?: string | undefined;
@@ -2479,6 +2591,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2479
2591
  dynamicFontSize?: {
2480
2592
  max: number;
2481
2593
  min: number;
2594
+ fit?: string | undefined;
2482
2595
  } | undefined;
2483
2596
  } | {
2484
2597
  type: "image";
@@ -2569,6 +2682,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2569
2682
  };
2570
2683
  rotate?: number | undefined;
2571
2684
  alignment?: "center" | "left" | "right" | undefined;
2685
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2572
2686
  fontSize?: number | undefined;
2573
2687
  fontName?: string | undefined;
2574
2688
  fontColor?: string | undefined;
@@ -2578,6 +2692,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2578
2692
  dynamicFontSize?: {
2579
2693
  max: number;
2580
2694
  min: number;
2695
+ fit?: string | undefined;
2581
2696
  } | undefined;
2582
2697
  } | {
2583
2698
  type: "image";
@@ -2632,6 +2747,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2632
2747
  };
2633
2748
  rotate?: number | undefined;
2634
2749
  alignment?: "center" | "left" | "right" | undefined;
2750
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2635
2751
  fontSize?: number | undefined;
2636
2752
  fontName?: string | undefined;
2637
2753
  fontColor?: string | undefined;
@@ -2641,6 +2757,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2641
2757
  dynamicFontSize?: {
2642
2758
  max: number;
2643
2759
  min: number;
2760
+ fit?: string | undefined;
2644
2761
  } | undefined;
2645
2762
  } | {
2646
2763
  type: "image";
@@ -2702,6 +2819,7 @@ export declare const DesignerProps: z.ZodObject<{
2702
2819
  rotate: z.ZodOptional<z.ZodNumber>;
2703
2820
  type: z.ZodLiteral<"text">;
2704
2821
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
2822
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
2705
2823
  fontSize: z.ZodOptional<z.ZodNumber>;
2706
2824
  fontName: z.ZodOptional<z.ZodString>;
2707
2825
  fontColor: z.ZodOptional<z.ZodString>;
@@ -2711,12 +2829,15 @@ export declare const DesignerProps: z.ZodObject<{
2711
2829
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
2712
2830
  max: z.ZodNumber;
2713
2831
  min: z.ZodNumber;
2832
+ fit: z.ZodOptional<z.ZodString>;
2714
2833
  }, "strip", z.ZodTypeAny, {
2715
2834
  max: number;
2716
2835
  min: number;
2836
+ fit?: string | undefined;
2717
2837
  }, {
2718
2838
  max: number;
2719
2839
  min: number;
2840
+ fit?: string | undefined;
2720
2841
  }>>;
2721
2842
  }, "strip", z.ZodTypeAny, {
2722
2843
  type: "text";
@@ -2728,6 +2849,7 @@ export declare const DesignerProps: z.ZodObject<{
2728
2849
  };
2729
2850
  rotate?: number | undefined;
2730
2851
  alignment?: "center" | "left" | "right" | undefined;
2852
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2731
2853
  fontSize?: number | undefined;
2732
2854
  fontName?: string | undefined;
2733
2855
  fontColor?: string | undefined;
@@ -2737,6 +2859,7 @@ export declare const DesignerProps: z.ZodObject<{
2737
2859
  dynamicFontSize?: {
2738
2860
  max: number;
2739
2861
  min: number;
2862
+ fit?: string | undefined;
2740
2863
  } | undefined;
2741
2864
  }, {
2742
2865
  type: "text";
@@ -2748,6 +2871,7 @@ export declare const DesignerProps: z.ZodObject<{
2748
2871
  };
2749
2872
  rotate?: number | undefined;
2750
2873
  alignment?: "center" | "left" | "right" | undefined;
2874
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2751
2875
  fontSize?: number | undefined;
2752
2876
  fontName?: string | undefined;
2753
2877
  fontColor?: string | undefined;
@@ -2757,6 +2881,7 @@ export declare const DesignerProps: z.ZodObject<{
2757
2881
  dynamicFontSize?: {
2758
2882
  max: number;
2759
2883
  min: number;
2884
+ fit?: string | undefined;
2760
2885
  } | undefined;
2761
2886
  }>, z.ZodObject<{
2762
2887
  height: z.ZodNumber;
@@ -2839,6 +2964,7 @@ export declare const DesignerProps: z.ZodObject<{
2839
2964
  };
2840
2965
  rotate?: number | undefined;
2841
2966
  alignment?: "center" | "left" | "right" | undefined;
2967
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2842
2968
  fontSize?: number | undefined;
2843
2969
  fontName?: string | undefined;
2844
2970
  fontColor?: string | undefined;
@@ -2848,6 +2974,7 @@ export declare const DesignerProps: z.ZodObject<{
2848
2974
  dynamicFontSize?: {
2849
2975
  max: number;
2850
2976
  min: number;
2977
+ fit?: string | undefined;
2851
2978
  } | undefined;
2852
2979
  } | {
2853
2980
  type: "image";
@@ -2882,6 +3009,7 @@ export declare const DesignerProps: z.ZodObject<{
2882
3009
  };
2883
3010
  rotate?: number | undefined;
2884
3011
  alignment?: "center" | "left" | "right" | undefined;
3012
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2885
3013
  fontSize?: number | undefined;
2886
3014
  fontName?: string | undefined;
2887
3015
  fontColor?: string | undefined;
@@ -2891,6 +3019,7 @@ export declare const DesignerProps: z.ZodObject<{
2891
3019
  dynamicFontSize?: {
2892
3020
  max: number;
2893
3021
  min: number;
3022
+ fit?: string | undefined;
2894
3023
  } | undefined;
2895
3024
  } | {
2896
3025
  type: "image";
@@ -2958,6 +3087,7 @@ export declare const DesignerProps: z.ZodObject<{
2958
3087
  };
2959
3088
  rotate?: number | undefined;
2960
3089
  alignment?: "center" | "left" | "right" | undefined;
3090
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
2961
3091
  fontSize?: number | undefined;
2962
3092
  fontName?: string | undefined;
2963
3093
  fontColor?: string | undefined;
@@ -2967,6 +3097,7 @@ export declare const DesignerProps: z.ZodObject<{
2967
3097
  dynamicFontSize?: {
2968
3098
  max: number;
2969
3099
  min: number;
3100
+ fit?: string | undefined;
2970
3101
  } | undefined;
2971
3102
  } | {
2972
3103
  type: "image";
@@ -3012,6 +3143,7 @@ export declare const DesignerProps: z.ZodObject<{
3012
3143
  };
3013
3144
  rotate?: number | undefined;
3014
3145
  alignment?: "center" | "left" | "right" | undefined;
3146
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3015
3147
  fontSize?: number | undefined;
3016
3148
  fontName?: string | undefined;
3017
3149
  fontColor?: string | undefined;
@@ -3021,6 +3153,7 @@ export declare const DesignerProps: z.ZodObject<{
3021
3153
  dynamicFontSize?: {
3022
3154
  max: number;
3023
3155
  min: number;
3156
+ fit?: string | undefined;
3024
3157
  } | undefined;
3025
3158
  } | {
3026
3159
  type: "image";
@@ -3073,6 +3206,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3073
3206
  rotate: z.ZodOptional<z.ZodNumber>;
3074
3207
  type: z.ZodLiteral<"text">;
3075
3208
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3209
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
3076
3210
  fontSize: z.ZodOptional<z.ZodNumber>;
3077
3211
  fontName: z.ZodOptional<z.ZodString>;
3078
3212
  fontColor: z.ZodOptional<z.ZodString>;
@@ -3082,12 +3216,15 @@ export declare const DesignerReactProps: z.ZodObject<{
3082
3216
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
3083
3217
  max: z.ZodNumber;
3084
3218
  min: z.ZodNumber;
3219
+ fit: z.ZodOptional<z.ZodString>;
3085
3220
  }, "strip", z.ZodTypeAny, {
3086
3221
  max: number;
3087
3222
  min: number;
3223
+ fit?: string | undefined;
3088
3224
  }, {
3089
3225
  max: number;
3090
3226
  min: number;
3227
+ fit?: string | undefined;
3091
3228
  }>>;
3092
3229
  }, "strip", z.ZodTypeAny, {
3093
3230
  type: "text";
@@ -3099,6 +3236,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3099
3236
  };
3100
3237
  rotate?: number | undefined;
3101
3238
  alignment?: "center" | "left" | "right" | undefined;
3239
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3102
3240
  fontSize?: number | undefined;
3103
3241
  fontName?: string | undefined;
3104
3242
  fontColor?: string | undefined;
@@ -3108,6 +3246,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3108
3246
  dynamicFontSize?: {
3109
3247
  max: number;
3110
3248
  min: number;
3249
+ fit?: string | undefined;
3111
3250
  } | undefined;
3112
3251
  }, {
3113
3252
  type: "text";
@@ -3119,6 +3258,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3119
3258
  };
3120
3259
  rotate?: number | undefined;
3121
3260
  alignment?: "center" | "left" | "right" | undefined;
3261
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3122
3262
  fontSize?: number | undefined;
3123
3263
  fontName?: string | undefined;
3124
3264
  fontColor?: string | undefined;
@@ -3128,6 +3268,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3128
3268
  dynamicFontSize?: {
3129
3269
  max: number;
3130
3270
  min: number;
3271
+ fit?: string | undefined;
3131
3272
  } | undefined;
3132
3273
  }>, z.ZodObject<{
3133
3274
  height: z.ZodNumber;
@@ -3210,6 +3351,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3210
3351
  };
3211
3352
  rotate?: number | undefined;
3212
3353
  alignment?: "center" | "left" | "right" | undefined;
3354
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3213
3355
  fontSize?: number | undefined;
3214
3356
  fontName?: string | undefined;
3215
3357
  fontColor?: string | undefined;
@@ -3219,6 +3361,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3219
3361
  dynamicFontSize?: {
3220
3362
  max: number;
3221
3363
  min: number;
3364
+ fit?: string | undefined;
3222
3365
  } | undefined;
3223
3366
  } | {
3224
3367
  type: "image";
@@ -3253,6 +3396,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3253
3396
  };
3254
3397
  rotate?: number | undefined;
3255
3398
  alignment?: "center" | "left" | "right" | undefined;
3399
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3256
3400
  fontSize?: number | undefined;
3257
3401
  fontName?: string | undefined;
3258
3402
  fontColor?: string | undefined;
@@ -3262,6 +3406,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3262
3406
  dynamicFontSize?: {
3263
3407
  max: number;
3264
3408
  min: number;
3409
+ fit?: string | undefined;
3265
3410
  } | undefined;
3266
3411
  } | {
3267
3412
  type: "image";
@@ -3333,6 +3478,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3333
3478
  rotate: z.ZodOptional<z.ZodNumber>;
3334
3479
  type: z.ZodLiteral<"text">;
3335
3480
  alignment: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3481
+ verticalAlignment: z.ZodOptional<z.ZodEnum<["top", "middle", "bottom"]>>;
3336
3482
  fontSize: z.ZodOptional<z.ZodNumber>;
3337
3483
  fontName: z.ZodOptional<z.ZodString>;
3338
3484
  fontColor: z.ZodOptional<z.ZodString>;
@@ -3342,12 +3488,15 @@ export declare const DesignerReactProps: z.ZodObject<{
3342
3488
  dynamicFontSize: z.ZodOptional<z.ZodObject<{
3343
3489
  max: z.ZodNumber;
3344
3490
  min: z.ZodNumber;
3491
+ fit: z.ZodOptional<z.ZodString>;
3345
3492
  }, "strip", z.ZodTypeAny, {
3346
3493
  max: number;
3347
3494
  min: number;
3495
+ fit?: string | undefined;
3348
3496
  }, {
3349
3497
  max: number;
3350
3498
  min: number;
3499
+ fit?: string | undefined;
3351
3500
  }>>;
3352
3501
  }, "strip", z.ZodTypeAny, {
3353
3502
  type: "text";
@@ -3359,6 +3508,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3359
3508
  };
3360
3509
  rotate?: number | undefined;
3361
3510
  alignment?: "center" | "left" | "right" | undefined;
3511
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3362
3512
  fontSize?: number | undefined;
3363
3513
  fontName?: string | undefined;
3364
3514
  fontColor?: string | undefined;
@@ -3368,6 +3518,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3368
3518
  dynamicFontSize?: {
3369
3519
  max: number;
3370
3520
  min: number;
3521
+ fit?: string | undefined;
3371
3522
  } | undefined;
3372
3523
  }, {
3373
3524
  type: "text";
@@ -3379,6 +3530,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3379
3530
  };
3380
3531
  rotate?: number | undefined;
3381
3532
  alignment?: "center" | "left" | "right" | undefined;
3533
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3382
3534
  fontSize?: number | undefined;
3383
3535
  fontName?: string | undefined;
3384
3536
  fontColor?: string | undefined;
@@ -3388,6 +3540,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3388
3540
  dynamicFontSize?: {
3389
3541
  max: number;
3390
3542
  min: number;
3543
+ fit?: string | undefined;
3391
3544
  } | undefined;
3392
3545
  }>, z.ZodObject<{
3393
3546
  height: z.ZodNumber;
@@ -3470,6 +3623,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3470
3623
  };
3471
3624
  rotate?: number | undefined;
3472
3625
  alignment?: "center" | "left" | "right" | undefined;
3626
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3473
3627
  fontSize?: number | undefined;
3474
3628
  fontName?: string | undefined;
3475
3629
  fontColor?: string | undefined;
@@ -3479,6 +3633,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3479
3633
  dynamicFontSize?: {
3480
3634
  max: number;
3481
3635
  min: number;
3636
+ fit?: string | undefined;
3482
3637
  } | undefined;
3483
3638
  } | {
3484
3639
  type: "image";
@@ -3513,6 +3668,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3513
3668
  };
3514
3669
  rotate?: number | undefined;
3515
3670
  alignment?: "center" | "left" | "right" | undefined;
3671
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3516
3672
  fontSize?: number | undefined;
3517
3673
  fontName?: string | undefined;
3518
3674
  fontColor?: string | undefined;
@@ -3522,6 +3678,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3522
3678
  dynamicFontSize?: {
3523
3679
  max: number;
3524
3680
  min: number;
3681
+ fit?: string | undefined;
3525
3682
  } | undefined;
3526
3683
  } | {
3527
3684
  type: "image";
@@ -3568,6 +3725,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3568
3725
  };
3569
3726
  rotate?: number | undefined;
3570
3727
  alignment?: "center" | "left" | "right" | undefined;
3728
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3571
3729
  fontSize?: number | undefined;
3572
3730
  fontName?: string | undefined;
3573
3731
  fontColor?: string | undefined;
@@ -3577,6 +3735,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3577
3735
  dynamicFontSize?: {
3578
3736
  max: number;
3579
3737
  min: number;
3738
+ fit?: string | undefined;
3580
3739
  } | undefined;
3581
3740
  } | {
3582
3741
  type: "image";
@@ -3616,6 +3775,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3616
3775
  };
3617
3776
  rotate?: number | undefined;
3618
3777
  alignment?: "center" | "left" | "right" | undefined;
3778
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3619
3779
  fontSize?: number | undefined;
3620
3780
  fontName?: string | undefined;
3621
3781
  fontColor?: string | undefined;
@@ -3625,6 +3785,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3625
3785
  dynamicFontSize?: {
3626
3786
  max: number;
3627
3787
  min: number;
3788
+ fit?: string | undefined;
3628
3789
  } | undefined;
3629
3790
  } | {
3630
3791
  type: "image";
@@ -3669,6 +3830,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3669
3830
  };
3670
3831
  rotate?: number | undefined;
3671
3832
  alignment?: "center" | "left" | "right" | undefined;
3833
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3672
3834
  fontSize?: number | undefined;
3673
3835
  fontName?: string | undefined;
3674
3836
  fontColor?: string | undefined;
@@ -3678,6 +3840,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3678
3840
  dynamicFontSize?: {
3679
3841
  max: number;
3680
3842
  min: number;
3843
+ fit?: string | undefined;
3681
3844
  } | undefined;
3682
3845
  } | {
3683
3846
  type: "image";
@@ -3717,6 +3880,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3717
3880
  };
3718
3881
  rotate?: number | undefined;
3719
3882
  alignment?: "center" | "left" | "right" | undefined;
3883
+ verticalAlignment?: "top" | "bottom" | "middle" | undefined;
3720
3884
  fontSize?: number | undefined;
3721
3885
  fontName?: string | undefined;
3722
3886
  fontColor?: string | undefined;
@@ -3726,6 +3890,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3726
3890
  dynamicFontSize?: {
3727
3891
  max: number;
3728
3892
  min: number;
3893
+ fit?: string | undefined;
3729
3894
  } | undefined;
3730
3895
  } | {
3731
3896
  type: "image";