@connectedxm/zpl-generator 0.0.22 → 0.0.24
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.
- package/dist/index.es.js +564 -553
- package/dist/src/generate.d.ts +1 -1
- package/dist/src/validate.d.ts +8 -2
- package/package.json +1 -1
package/dist/src/generate.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function tokenizeWords(value: string): string[][];
|
|
|
20
20
|
* Width scales linearly with height: at half the height, each glyph is
|
|
21
21
|
* roughly half as wide, so twice as many characters fit per line.
|
|
22
22
|
*/
|
|
23
|
-
export declare function countLinesAtHeight(field: TextField, value: string, height: number): number;
|
|
23
|
+
export declare function countLinesAtHeight(field: TextField, value: string, height: number, safetyFactor?: number): number;
|
|
24
24
|
/**
|
|
25
25
|
* Counts how many lines the field data will occupy inside a ^FB field.
|
|
26
26
|
* Exported so consuming projects (e.g. React label previews) can reuse
|
package/dist/src/validate.d.ts
CHANGED
|
@@ -587,6 +587,8 @@ export declare const fontSchema: z.ZodObject<{
|
|
|
587
587
|
London: "London";
|
|
588
588
|
"GT Walsheim": "GT Walsheim";
|
|
589
589
|
"Domain Display": "Domain Display";
|
|
590
|
+
"Editors Note Light": "Editors Note Light";
|
|
591
|
+
"Editors Note Medium": "Editors Note Medium";
|
|
590
592
|
}>;
|
|
591
593
|
}, z.core.$strip>;
|
|
592
594
|
export type Font = z.infer<typeof fontSchema>;
|
|
@@ -604,6 +606,8 @@ export declare const FontFamilyToFontZPLName: {
|
|
|
604
606
|
London: string;
|
|
605
607
|
"GT Walsheim": string;
|
|
606
608
|
"Domain Display": string;
|
|
609
|
+
"Editors Note Light": string;
|
|
610
|
+
"Editors Note Medium": string;
|
|
607
611
|
};
|
|
608
612
|
export declare const badgeSchema: z.ZodObject<{
|
|
609
613
|
type: z.ZodLiteral<"thermal">;
|
|
@@ -857,6 +861,8 @@ export declare const badgeSchema: z.ZodObject<{
|
|
|
857
861
|
London: "London";
|
|
858
862
|
"GT Walsheim": "GT Walsheim";
|
|
859
863
|
"Domain Display": "Domain Display";
|
|
864
|
+
"Editors Note Light": "Editors Note Light";
|
|
865
|
+
"Editors Note Medium": "Editors Note Medium";
|
|
860
866
|
}>;
|
|
861
867
|
}, z.core.$strip>>;
|
|
862
868
|
}, z.core.$strip>;
|
|
@@ -984,7 +990,7 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
|
|
|
984
990
|
})[];
|
|
985
991
|
fonts: {
|
|
986
992
|
alias: string;
|
|
987
|
-
name: "Arial" | "Open Sans" | "Roboto" | "Lato" | "Montserrat" | "Inter" | "Oswald" | "Raleway" | "Raleway Bold" | "Paris" | "London" | "GT Walsheim" | "Domain Display";
|
|
993
|
+
name: "Arial" | "Open Sans" | "Roboto" | "Lato" | "Montserrat" | "Inter" | "Oswald" | "Raleway" | "Raleway Bold" | "Paris" | "London" | "GT Walsheim" | "Domain Display" | "Editors Note Light" | "Editors Note Medium";
|
|
988
994
|
}[];
|
|
989
995
|
}>;
|
|
990
996
|
/**
|
|
@@ -1099,6 +1105,6 @@ export declare function validateBadgeOrThrow(data: Badge): {
|
|
|
1099
1105
|
})[];
|
|
1100
1106
|
fonts: {
|
|
1101
1107
|
alias: string;
|
|
1102
|
-
name: "Arial" | "Open Sans" | "Roboto" | "Lato" | "Montserrat" | "Inter" | "Oswald" | "Raleway" | "Raleway Bold" | "Paris" | "London" | "GT Walsheim" | "Domain Display";
|
|
1108
|
+
name: "Arial" | "Open Sans" | "Roboto" | "Lato" | "Montserrat" | "Inter" | "Oswald" | "Raleway" | "Raleway Bold" | "Paris" | "London" | "GT Walsheim" | "Domain Display" | "Editors Note Light" | "Editors Note Medium";
|
|
1103
1109
|
}[];
|
|
1104
1110
|
};
|