@pdfme/common 2.1.0 → 2.2.1

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 (54) hide show
  1. package/dist/cjs/__tests__/barcode.test.js +107 -0
  2. package/dist/cjs/__tests__/barcode.test.js.map +1 -0
  3. package/dist/cjs/__tests__/font.test.js +77 -32
  4. package/dist/cjs/__tests__/font.test.js.map +1 -1
  5. package/dist/cjs/__tests__/helper.test.js +12 -0
  6. package/dist/cjs/__tests__/helper.test.js.map +1 -1
  7. package/dist/cjs/src/barcode.js +53 -0
  8. package/dist/cjs/src/barcode.js.map +1 -0
  9. package/dist/cjs/src/constants.js +8 -2
  10. package/dist/cjs/src/constants.js.map +1 -1
  11. package/dist/cjs/src/font.js +48 -19
  12. package/dist/cjs/src/font.js.map +1 -1
  13. package/dist/cjs/src/helper.js +6 -1
  14. package/dist/cjs/src/helper.js.map +1 -1
  15. package/dist/cjs/src/index.js +12 -2
  16. package/dist/cjs/src/index.js.map +1 -1
  17. package/dist/cjs/src/schema.js +16 -3
  18. package/dist/cjs/src/schema.js.map +1 -1
  19. package/dist/cjs/src/type.js.map +1 -1
  20. package/dist/esm/__tests__/barcode.test.js +102 -0
  21. package/dist/esm/__tests__/barcode.test.js.map +1 -0
  22. package/dist/esm/__tests__/font.test.js +78 -33
  23. package/dist/esm/__tests__/font.test.js.map +1 -1
  24. package/dist/esm/__tests__/helper.test.js +13 -1
  25. package/dist/esm/__tests__/helper.test.js.map +1 -1
  26. package/dist/esm/src/barcode.js +44 -0
  27. package/dist/esm/src/barcode.js.map +1 -0
  28. package/dist/esm/src/constants.js +7 -1
  29. package/dist/esm/src/constants.js.map +1 -1
  30. package/dist/esm/src/font.js +47 -19
  31. package/dist/esm/src/font.js.map +1 -1
  32. package/dist/esm/src/helper.js +5 -1
  33. package/dist/esm/src/helper.js.map +1 -1
  34. package/dist/esm/src/index.js +5 -4
  35. package/dist/esm/src/index.js.map +1 -1
  36. package/dist/esm/src/schema.js +15 -2
  37. package/dist/esm/src/schema.js.map +1 -1
  38. package/dist/esm/src/type.js.map +1 -1
  39. package/dist/types/__tests__/barcode.test.d.ts +1 -0
  40. package/dist/types/src/barcode.d.ts +19 -0
  41. package/dist/types/src/constants.d.ts +7 -1
  42. package/dist/types/src/font.d.ts +8 -10
  43. package/dist/types/src/helper.d.ts +1 -0
  44. package/dist/types/src/index.d.ts +6 -5
  45. package/dist/types/src/schema.d.ts +310 -29
  46. package/dist/types/src/type.d.ts +35 -24
  47. package/package.json +9 -4
  48. package/src/barcode.ts +51 -0
  49. package/src/constants.ts +7 -1
  50. package/src/font.ts +56 -30
  51. package/src/helper.ts +6 -1
  52. package/src/index.ts +21 -3
  53. package/src/schema.ts +17 -2
  54. package/src/type.ts +9 -0
@@ -1 +1 @@
1
- {"version":3,"file":"font.js","sourceRoot":"","sources":["../../../src/font.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAA0B,YAAY,EAAc,MAAM,QAAQ,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,CAAA;AAEnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAU,EAAE,EAAE;IAChD,MAAM,OAAO,GAAG,EAAE,CAAC;IACnB,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAChE,MAAM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AAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAEhF,sDAAsD;IACtD,OAAO,mBAAmB,CAAC,cAAc,EAAE,eAAe,CAAC,EAAE;QAC3D,eAAe,IAAI,oBAAoB,CAAC;QACxC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC;QAEvG,IAAI,SAAS,GAAG,SAAS,EAAE;YACzB,cAAc,GAAG,QAAQ,CAAC;YAC1B,eAAe,GAAG,SAAS,CAAC;SAC7B;aAAM;YACL,eAAe,IAAI,oBAAoB,CAAC;YACxC,MAAM;SACP;KACF;IAED,wDAAwD;IACxD,OAAO,qBAAqB,CAAC,cAAc,EAAE,eAAe,CAAC,EAAE;QAC7D,eAAe,IAAI,oBAAoB,CAAC;QACxC,CAAC,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC;KAC/E;IAED,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { Buffer } from 'buffer';
3
3
  import { Inputs as InputsSchema, UIOptions as UIOptionsSchema, Template as TemplateSchema, PreviewProps as PreviewPropsSchema, DesignerProps as DesignerPropsSchema, GenerateProps as GeneratePropsSchema, UIProps as UIPropsSchema, } from './schema';
4
- import { MM_TO_PT_RATIO, PT_TO_MM_RATIO } from './constants';
4
+ import { MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO } from './constants';
5
5
  import { checkFont } from './font';
6
6
  export const mm2pt = (mm) => {
7
7
  return parseFloat(String(mm)) * MM_TO_PT_RATIO;
@@ -9,6 +9,9 @@ export const mm2pt = (mm) => {
9
9
  export const pt2mm = (pt) => {
10
10
  return pt * PT_TO_MM_RATIO;
11
11
  };
12
+ export const pt2px = (pt) => {
13
+ return pt * PT_TO_PX_RATIO;
14
+ };
12
15
  const blob2Base64Pdf = (blob) => {
13
16
  return new Promise((resolve, reject) => {
14
17
  const reader = new FileReader();
@@ -153,6 +156,7 @@ export const validateBarcodeInput = (type, input) => {
153
156
  const regexp = /\((01)\)(\d*)(\(|$)/;
154
157
  let res = input.match(regexp);
155
158
  if (res != null &&
159
+ input.length <= 52 && // 52 is the max length of a GS1 DataMatrix barcode before bwip-js throws an error
156
160
  res[1] === '01' &&
157
161
  (res[2].length === 14 || res[2].length === 8 || res[2].length === 12 || res[2].length === 13)) {
158
162
  let gtin = res[2];
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EACL,MAAM,IAAI,YAAY,EACtB,SAAS,IAAI,eAAe,EAC5B,QAAQ,IAAI,cAAc,EAC1B,YAAY,IAAI,kBAAkB,EAClC,aAAa,IAAI,mBAAmB,EACpC,aAAa,IAAI,mBAAmB,EACpC,OAAO,IAAI,aAAa,GACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAU,EAAE;IAC1C,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAU,EAAE;IAC1C,OAAO,EAAE,GAAG,cAAc,CAAC;AAC7B,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAU,EAAE,EAAE;IACpC,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC7C,MAAM,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{ DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, VERTICAL_ALIGN_TOP, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_BOTTOM, DEFAULT_VERTICAL_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DEFAULT_BARCODE_BG_COLOR, DEFAULT_BARCODE_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE, } from './constants.js';
2
+ import { createBarCode } from './barcode';
2
3
  import { schemaTypes, isImageSchema, isBarcodeSchema, isTextSchema } from './type.js';
3
- import { getB64BasePdf, b64toUint8Array, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, mm2pt, validateBarcodeInput, } from './helper.js';
4
- import { calculateDynamicFontSize, getFallbackFontName, getDefaultFont, heightOfFontAtSize, widthOfTextAtSize, checkFont, getFontKitFont, getFontAlignmentValue, getSplittedLines, } from './font.js';
5
- export { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE, schemaTypes, isTextSchema, isImageSchema, isBarcodeSchema, getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, getSplittedLines, heightOfFontAtSize, widthOfTextAtSize, mm2pt, checkFont, getFontKitFont, getFontAlignmentValue, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, calculateDynamicFontSize, };
4
+ import { getB64BasePdf, b64toUint8Array, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, mm2pt, pt2px, validateBarcodeInput, } from './helper.js';
5
+ import { calculateDynamicFontSize, getFallbackFontName, getDefaultFont, heightOfFontAtSize, widthOfTextAtSize, checkFont, getFontKitFont, getBrowserVerticalFontAdjustments, getFontDescentInPt, getSplittedLines, } from './font.js';
6
+ export { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, VERTICAL_ALIGN_TOP, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_BOTTOM, DEFAULT_VERTICAL_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DEFAULT_BARCODE_BG_COLOR, DEFAULT_BARCODE_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE, schemaTypes, isTextSchema, isImageSchema, isBarcodeSchema, getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, getSplittedLines, heightOfFontAtSize, widthOfTextAtSize, mm2pt, pt2px, checkFont, getBrowserVerticalFontAdjustments, getFontDescentInPt, getFontKitFont, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, calculateDynamicFontSize, createBarCode };
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,EACT,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AA0BtF,OAAO,EACL,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,EACL,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,gBAAgB,GAEjB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,GACzB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,i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AS,EACT,iCAAiC,EACjC,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACd,CAAC"}
@@ -1,10 +1,17 @@
1
1
  /* eslint dot-notation: "off"*/
2
2
  import { z } from 'zod';
3
- const langs = ['en', 'ja', 'ar', 'th', 'pl'];
3
+ import { VERTICAL_ALIGN_TOP, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_BOTTOM } from "./constants";
4
+ const langs = ['en', 'ja', 'ar', 'th', 'pl', 'it'];
4
5
  export const Lang = z.enum(langs);
5
6
  export const Size = z.object({ height: z.number(), width: z.number() });
6
7
  const alignments = ['left', 'center', 'right'];
7
8
  export const Alignment = z.enum(alignments);
9
+ const verticalAlignments = [
10
+ VERTICAL_ALIGN_TOP,
11
+ VERTICAL_ALIGN_MIDDLE,
12
+ VERTICAL_ALIGN_BOTTOM,
13
+ ];
14
+ export const VerticalAlignment = z.enum(verticalAlignments);
8
15
  // prettier-ignore
9
16
  export const barcodeSchemaTypes = ['qrcode', 'japanpost', 'ean13', 'ean8', 'code39', 'code128', 'nw7', 'itf14', 'upca', 'upce', 'gs1datamatrix'];
10
17
  const notBarcodeSchemaTypes = ['text', 'image'];
@@ -21,6 +28,7 @@ export const CommonSchema = z.object({
21
28
  export const TextSchema = CommonSchema.extend({
22
29
  type: z.literal(SchemaType.Enum.text),
23
30
  alignment: Alignment.optional(),
31
+ verticalAlignment: VerticalAlignment.optional(),
24
32
  fontSize: z.number().optional(),
25
33
  fontName: z.string().optional(),
26
34
  fontColor: z.string().optional(),
@@ -34,7 +42,12 @@ export const TextSchema = CommonSchema.extend({
34
42
  }).optional(),
35
43
  });
36
44
  export const ImageSchema = CommonSchema.extend({ type: z.literal(SchemaType.Enum.image) });
37
- export const BarcodeSchema = CommonSchema.extend({ type: BarcodeSchemaType });
45
+ export const BarcodeSchema = CommonSchema.extend({
46
+ type: BarcodeSchemaType,
47
+ backgroundcolor: z.string().optional(),
48
+ barcolor: z.string().optional(),
49
+ textcolor: z.string().optional(),
50
+ });
38
51
  export const Schema = z.union([TextSchema, ImageSchema, BarcodeSchema]);
39
52
  const SchemaForUIAdditionalInfo = z.object({
40
53
  id: z.string(), key: z.string(), data: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACtD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAE5C,kBAAkB;AAClB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAU,CAAC;AAC1J,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AACzD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAG,qBAAqB,EAAE,GAAG,kBAAkB,CAAU,CAAC;AAEtF,MAAM,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I,EAAE,CAAC;IAC7D,IAAI,EAAE,IAAI;CACX,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/type.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,kBAAkB,EAClB,WAAW,IAAI,YAAY,GAsB5B,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAiB,EAAqB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC1F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAiB,EAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC7F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAiB,EAAwB,EAAE,CACzE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/type.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,kBAAkB,EAClB,WAAW,IAAI,YAAY,GAsB5B,MAAM,aAAa,CAAC;AAUrB,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAiB,EAAqB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AAC1F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAiB,EAAsB,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC;AAC7F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAiB,EAAwB,EAAE,CACzE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { BarCodeType } from './type';
2
+ import { Buffer } from 'buffer';
3
+ /**
4
+ * The bwip.js lib has a different name for nw7 type barcodes
5
+ */
6
+ export declare const barCodeType2Bcid: (type: BarCodeType) => "qrcode" | "japanpost" | "ean13" | "ean8" | "code39" | "code128" | "itf14" | "upca" | "upce" | "gs1datamatrix" | "rationalizedCodabar";
7
+ /**
8
+ * Strip hash from the beginning of HTML hex color codes for the bwip.js lib
9
+ */
10
+ export declare const mapHexColorForBwipJsLib: (color: string | undefined, fallback?: string) => string;
11
+ export declare const createBarCode: (arg: {
12
+ type: BarCodeType;
13
+ input: string;
14
+ width: number;
15
+ height: number;
16
+ backgroundcolor?: string;
17
+ barcolor?: string;
18
+ textcolor?: string;
19
+ }) => Promise<Buffer>;
@@ -1,9 +1,15 @@
1
1
  export declare const DEFAULT_FONT_NAME = "Roboto";
2
2
  export declare const DEFAULT_FONT_SIZE = 13;
3
3
  export declare const DEFAULT_ALIGNMENT = "left";
4
+ export declare const VERTICAL_ALIGN_TOP = "top";
5
+ export declare const VERTICAL_ALIGN_MIDDLE = "middle";
6
+ export declare const VERTICAL_ALIGN_BOTTOM = "bottom";
7
+ export declare const DEFAULT_VERTICAL_ALIGNMENT = "top";
4
8
  export declare const DEFAULT_LINE_HEIGHT = 1;
5
9
  export declare const DEFAULT_CHARACTER_SPACING = 0;
6
- export declare const DEFAULT_FONT_COLOR = "#000";
10
+ export declare const DEFAULT_FONT_COLOR = "#000000";
11
+ export declare const DEFAULT_BARCODE_BG_COLOR = "#ffffff";
12
+ export declare const DEFAULT_BARCODE_COLOR = "#000000";
7
13
  export declare const DYNAMIC_FIT_VERTICAL = "vertical";
8
14
  export declare const DYNAMIC_FIT_HORIZONTAL = "horizontal";
9
15
  export declare const DEFAULT_DYNAMIC_FIT = "vertical";
@@ -1,22 +1,20 @@
1
1
  import * as fontkit from 'fontkit';
2
2
  import type { Font as FontKitFont } from 'fontkit';
3
- import { Template, Font, TextSchema } from './type';
3
+ import { FontWidthCalcValues, Template, Font, TextSchema } from './type';
4
4
  export declare const getFallbackFontName: (font: Font) => string;
5
5
  export declare const getDefaultFont: () => Font;
6
6
  export declare const checkFont: (arg: {
7
7
  font: Font;
8
8
  template: Template;
9
9
  }) => void;
10
- export declare const getFontAlignmentValue: (fontKitFont: FontKitFont, fontSize: number) => number;
10
+ export declare const getBrowserVerticalFontAdjustments: (fontKitFont: FontKitFont, fontSize: number, lineHeight: number, verticalAlignment: string) => {
11
+ topAdj: number;
12
+ bottomAdj: number;
13
+ };
14
+ export declare const getFontDescentInPt: (fontKitFont: FontKitFont, fontSize: number) => number;
11
15
  export declare const heightOfFontAtSize: (fontKitFont: FontKitFont, fontSize: number) => number;
12
16
  export declare const widthOfTextAtSize: (text: string, fontKitFont: FontKitFont, fontSize: number, characterSpacing: number) => number;
13
17
  export declare const getFontKitFont: (textSchema: TextSchema, font: Font) => Promise<fontkit.Font>;
14
- export declare type FontWidthCalcValues = {
15
- font: FontKitFont;
16
- fontSize: number;
17
- characterSpacing: number;
18
- boxWidthInPt: number;
19
- };
20
18
  /**
21
19
  * Recursively splits the line at getSplitPosition.
22
20
  * If there is some leftover, split the rest again in the same manner.
@@ -28,9 +26,9 @@ export declare const getSplittedLines: (textLine: string, calcValues: FontWidthC
28
26
  * Calculating space usage involves splitting lines where they exceed
29
27
  * the box width based on the proposed size.
30
28
  */
31
- export declare const calculateDynamicFontSize: ({ textSchema, font, input, startingFontSize, }: {
29
+ export declare const calculateDynamicFontSize: ({ textSchema, font, value, startingFontSize, }: {
32
30
  textSchema: TextSchema;
33
31
  font: Font;
34
- input: string;
32
+ value: string;
35
33
  startingFontSize?: number | undefined;
36
34
  }) => Promise<number>;
@@ -1,6 +1,7 @@
1
1
  import { BasePdf, BarCodeType } from './type';
2
2
  export declare const mm2pt: (mm: number) => number;
3
3
  export declare const pt2mm: (pt: number) => number;
4
+ export declare const pt2px: (pt: number) => number;
4
5
  export declare const getB64BasePdf: (basePdf: BasePdf) => string | Promise<string>;
5
6
  export declare const b64toUint8Array: (base64: string) => Uint8Array;
6
7
  export declare const checkInputs: (data: unknown) => void;
@@ -1,7 +1,8 @@
1
- import { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE } from './constants.js';
1
+ import { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, VERTICAL_ALIGN_TOP, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_BOTTOM, DEFAULT_VERTICAL_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DEFAULT_BARCODE_BG_COLOR, DEFAULT_BARCODE_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE } from './constants.js';
2
+ import { createBarCode } from './barcode';
2
3
  import { schemaTypes, isImageSchema, isBarcodeSchema, isTextSchema } from './type.js';
3
- import type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaInputs, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps } from './type.js';
4
- import { getB64BasePdf, b64toUint8Array, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, mm2pt, validateBarcodeInput } from './helper.js';
5
- import { calculateDynamicFontSize, getFallbackFontName, getDefaultFont, heightOfFontAtSize, widthOfTextAtSize, checkFont, getFontKitFont, getFontAlignmentValue, getSplittedLines, FontWidthCalcValues } from './font.js';
6
- export { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE, schemaTypes, isTextSchema, isImageSchema, isBarcodeSchema, getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, getSplittedLines, heightOfFontAtSize, widthOfTextAtSize, mm2pt, checkFont, getFontKitFont, getFontAlignmentValue, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, calculateDynamicFontSize, };
4
+ import type { FontWidthCalcValues, Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaInputs, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps } from './type.js';
5
+ import { getB64BasePdf, b64toUint8Array, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, mm2pt, pt2px, validateBarcodeInput } from './helper.js';
6
+ import { calculateDynamicFontSize, getFallbackFontName, getDefaultFont, heightOfFontAtSize, widthOfTextAtSize, checkFont, getFontKitFont, getBrowserVerticalFontAdjustments, getFontDescentInPt, getSplittedLines } from './font.js';
7
+ export { DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_ALIGNMENT, VERTICAL_ALIGN_TOP, VERTICAL_ALIGN_MIDDLE, VERTICAL_ALIGN_BOTTOM, DEFAULT_VERTICAL_ALIGNMENT, DEFAULT_LINE_HEIGHT, DEFAULT_CHARACTER_SPACING, DEFAULT_FONT_COLOR, DEFAULT_BARCODE_BG_COLOR, DEFAULT_BARCODE_COLOR, DYNAMIC_FIT_VERTICAL, DYNAMIC_FIT_HORIZONTAL, DEFAULT_DYNAMIC_FIT, FONT_SIZE_ADJUSTMENT, MM_TO_PT_RATIO, PT_TO_MM_RATIO, PT_TO_PX_RATIO, BLANK_PDF, DEFAULT_FONT_VALUE, schemaTypes, isTextSchema, isImageSchema, isBarcodeSchema, getB64BasePdf, b64toUint8Array, getFallbackFontName, getDefaultFont, getSplittedLines, heightOfFontAtSize, widthOfTextAtSize, mm2pt, pt2px, checkFont, getBrowserVerticalFontAdjustments, getFontDescentInPt, getFontKitFont, checkInputs, checkUIOptions, checkTemplate, checkUIProps, checkPreviewProps, checkDesignerProps, checkGenerateProps, validateBarcodeInput, calculateDynamicFontSize, createBarCode };
7
8
  export type { Lang, Size, Alignment, SchemaType, BarCodeType, TextSchema, ImageSchema, BarcodeSchema, Schema, SchemaInputs, SchemaForUI, Font, BasePdf, Template, CommonProps, GeneratorOptions, GenerateProps, UIOptions, UIProps, PreviewProps, PreviewReactProps, DesignerProps, DesignerReactProps, FontWidthCalcValues, };