@pdfme/common 2.2.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 (50) 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 +33 -32
  4. package/dist/cjs/__tests__/font.test.js.map +1 -1
  5. package/dist/cjs/__tests__/helper.test.js +2 -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 +4 -2
  10. package/dist/cjs/src/constants.js.map +1 -1
  11. package/dist/cjs/src/font.js +14 -8
  12. package/dist/cjs/src/font.js.map +1 -1
  13. package/dist/cjs/src/helper.js +1 -0
  14. package/dist/cjs/src/helper.js.map +1 -1
  15. package/dist/cjs/src/index.js +5 -1
  16. package/dist/cjs/src/index.js.map +1 -1
  17. package/dist/cjs/src/schema.js +7 -2
  18. package/dist/cjs/src/schema.js.map +1 -1
  19. package/dist/esm/__tests__/barcode.test.js +102 -0
  20. package/dist/esm/__tests__/barcode.test.js.map +1 -0
  21. package/dist/esm/__tests__/font.test.js +33 -32
  22. package/dist/esm/__tests__/font.test.js.map +1 -1
  23. package/dist/esm/__tests__/helper.test.js +2 -0
  24. package/dist/esm/__tests__/helper.test.js.map +1 -1
  25. package/dist/esm/src/barcode.js +44 -0
  26. package/dist/esm/src/barcode.js.map +1 -0
  27. package/dist/esm/src/constants.js +3 -1
  28. package/dist/esm/src/constants.js.map +1 -1
  29. package/dist/esm/src/font.js +14 -8
  30. package/dist/esm/src/font.js.map +1 -1
  31. package/dist/esm/src/helper.js +1 -0
  32. package/dist/esm/src/helper.js.map +1 -1
  33. package/dist/esm/src/index.js +3 -2
  34. package/dist/esm/src/index.js.map +1 -1
  35. package/dist/esm/src/schema.js +7 -2
  36. package/dist/esm/src/schema.js.map +1 -1
  37. package/dist/types/__tests__/barcode.test.d.ts +1 -0
  38. package/dist/types/src/barcode.d.ts +19 -0
  39. package/dist/types/src/constants.d.ts +3 -1
  40. package/dist/types/src/font.d.ts +2 -2
  41. package/dist/types/src/index.d.ts +3 -2
  42. package/dist/types/src/schema.d.ts +239 -29
  43. package/dist/types/src/type.d.ts +28 -25
  44. package/package.json +9 -4
  45. package/src/barcode.ts +51 -0
  46. package/src/constants.ts +3 -1
  47. package/src/font.ts +14 -12
  48. package/src/helper.ts +1 -0
  49. package/src/index.ts +6 -0
  50. package/src/schema.ts +8 -2
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const barcode_1 = require("../src/barcode");
16
+ const jsqr_1 = __importDefault(require("jsqr"));
17
+ const pngjs_1 = require("pngjs");
18
+ /**
19
+ * 生成したQRコード(png)画像から入力データが正常に読み取れるかをテスト
20
+ */
21
+ describe('createBarCode', () => {
22
+ // テスト名, input, expected
23
+ const tests = [
24
+ ['URL', 'https://www.google.com/', 'https://www.google.com/'],
25
+ ['ひらがな', 'てすとです', 'てすとです'],
26
+ ['ひらがな2', 'あいうえおあいうえお2', 'あいうえおあいうえお2'],
27
+ ['カタカナ', 'テストです', 'テストです'],
28
+ ['漢字', 'お正月', 'お正月'],
29
+ ['中国語', '新年快乐', '新年快乐'],
30
+ ['タイ語', 'สวัสดีปีใหม่', 'สวัสดีปีใหม่'],
31
+ ];
32
+ const upcaCode = '416000336108';
33
+ describe('generate qrcode with default colours', () => {
34
+ for (const t of tests) {
35
+ // eslint-disable-next-line no-loop-func
36
+ test(`${t[0]}: ${t[1]}`, () => __awaiter(void 0, void 0, void 0, function* () {
37
+ const buffer = (yield (0, barcode_1.createBarCode)({
38
+ type: 'qrcode',
39
+ input: t[1],
40
+ width: 10,
41
+ height: 10,
42
+ backgroundcolor: '00000000', // 背景色を指定しないとjsQRでうまく解析できない
43
+ }));
44
+ const png = pngjs_1.PNG.sync.read(buffer);
45
+ const pngData = new Uint8ClampedArray(png.data);
46
+ const qr = (0, jsqr_1.default)(pngData, png.width, png.height);
47
+ expect(qr).not.toBeNull();
48
+ const dataBuffer = Buffer.from(qr.binaryData);
49
+ expect(dataBuffer.toString('utf8')).toEqual(t[2]);
50
+ }));
51
+ }
52
+ });
53
+ describe('generate qrcode with custom colours', () => {
54
+ for (const t of tests) {
55
+ // eslint-disable-next-line no-loop-func
56
+ test(`${t[0]}: ${t[1]}`, () => __awaiter(void 0, void 0, void 0, function* () {
57
+ const buffer = (yield (0, barcode_1.createBarCode)({
58
+ type: 'qrcode',
59
+ input: t[1],
60
+ width: 10,
61
+ height: 10,
62
+ backgroundcolor: 'ffffff',
63
+ barcolor: 'f50505',
64
+ }));
65
+ const png = pngjs_1.PNG.sync.read(buffer);
66
+ const pngData = new Uint8ClampedArray(png.data);
67
+ const qr = (0, jsqr_1.default)(pngData, png.width, png.height);
68
+ expect(qr).not.toBeNull();
69
+ const dataBuffer = Buffer.from(qr.binaryData);
70
+ expect(dataBuffer.toString('utf8')).toEqual(t[2]);
71
+ }));
72
+ }
73
+ });
74
+ });
75
+ describe('barCodeType2Bcid test', () => {
76
+ test('it maps the nw7 barcode type', () => {
77
+ expect((0, barcode_1.barCodeType2Bcid)('nw7')).toEqual('rationalizedCodabar');
78
+ });
79
+ test('it returns all other types as they are', () => {
80
+ expect((0, barcode_1.barCodeType2Bcid)('qrcode')).toEqual('qrcode');
81
+ expect((0, barcode_1.barCodeType2Bcid)('japanpost')).toEqual('japanpost');
82
+ expect((0, barcode_1.barCodeType2Bcid)('ean8')).toEqual('ean8');
83
+ expect((0, barcode_1.barCodeType2Bcid)('ean13')).toEqual('ean13');
84
+ expect((0, barcode_1.barCodeType2Bcid)('code39')).toEqual('code39');
85
+ expect((0, barcode_1.barCodeType2Bcid)('code128')).toEqual('code128');
86
+ expect((0, barcode_1.barCodeType2Bcid)('itf14')).toEqual('itf14');
87
+ expect((0, barcode_1.barCodeType2Bcid)('upca')).toEqual('upca');
88
+ expect((0, barcode_1.barCodeType2Bcid)('upce')).toEqual('upce');
89
+ expect((0, barcode_1.barCodeType2Bcid)('gs1datamatrix')).toEqual('gs1datamatrix');
90
+ });
91
+ });
92
+ describe('mapHexColorForBwipJsLib text', () => {
93
+ test('it strips a hex if there is one', () => {
94
+ expect((0, barcode_1.mapHexColorForBwipJsLib)('#ffffff')).toEqual('ffffff');
95
+ expect((0, barcode_1.mapHexColorForBwipJsLib)('#eee')).toEqual('eee');
96
+ expect((0, barcode_1.mapHexColorForBwipJsLib)('ffffff')).toEqual('ffffff');
97
+ });
98
+ test('it strips a hex from a fallback color if main color not defined', () => {
99
+ expect((0, barcode_1.mapHexColorForBwipJsLib)(undefined, '#ffffff')).toEqual('ffffff');
100
+ expect((0, barcode_1.mapHexColorForBwipJsLib)(undefined, '#eee')).toEqual('eee');
101
+ expect((0, barcode_1.mapHexColorForBwipJsLib)(undefined, 'ffffff')).toEqual('ffffff');
102
+ });
103
+ test('it defaults to black if neither color nor fallback passed', () => {
104
+ expect((0, barcode_1.mapHexColorForBwipJsLib)(undefined)).toEqual('000000');
105
+ });
106
+ });
107
+ //# sourceMappingURL=barcode.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barcode.test.js","sourceRoot":"","sources":["../../../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with Default font', () => {
296
296
  const font = (0, font_1.getDefaultFont)();
297
297
  it('should return default font size when dynamicFontSizeSetting is not provided', () => __awaiter(void 0, void 0, void 0, function* () {
298
298
  const textSchema = getTextSchema();
299
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input: 'test' });
299
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value: 'test' });
300
300
  expect(result).toBe(14);
301
301
  }));
302
302
  it('should return default font size when dynamicFontSizeSetting max is less than min', () => __awaiter(void 0, void 0, void 0, function* () {
303
303
  const textSchema = getTextSchema();
304
304
  textSchema.dynamicFontSize = { min: 11, max: 10 };
305
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input: 'test' });
305
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value: 'test' });
306
306
  expect(result).toBe(14);
307
307
  }));
308
308
  it('should calculate a dynamic font size of vertical fit between min and max', () => __awaiter(void 0, void 0, void 0, function* () {
309
309
  const textSchema = getTextSchema();
310
310
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'vertical' };
311
- const input = 'test with a length string\n and a new line';
312
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
311
+ const value = 'test with a length string\n and a new line';
312
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
313
313
  expect(result).toBe(19.25);
314
314
  }));
315
315
  it('should calculate a dynamic font size of horizontal fit between min and max', () => __awaiter(void 0, void 0, void 0, function* () {
316
316
  const textSchema = getTextSchema();
317
317
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'horizontal' };
318
- const input = 'test with a length string\n and a new line';
319
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
318
+ const value = 'test with a length string\n and a new line';
319
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
320
320
  expect(result).toBe(11.25);
321
321
  }));
322
322
  it('should calculate a dynamic font size between min and max regardless of current font size', () => __awaiter(void 0, void 0, void 0, function* () {
323
323
  const textSchema = getTextSchema();
324
324
  textSchema.fontSize = 2;
325
325
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'vertical' };
326
- const input = 'test with a length string\n and a new line';
327
- let result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
326
+ const value = 'test with a length string\n and a new line';
327
+ let result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
328
328
  expect(result).toBe(19.25);
329
329
  textSchema.fontSize = 40;
330
- result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
330
+ result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
331
331
  expect(result).toBe(19.25);
332
332
  }));
333
333
  it('should return min font size when content is too big to fit given constraints', () => __awaiter(void 0, void 0, void 0, function* () {
334
334
  const textSchema = getTextSchema();
335
335
  textSchema.width = 10;
336
336
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'vertical' };
337
- const input = 'test with a length string\n and a new line';
338
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
337
+ const value = 'test with a length string\n and a new line';
338
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
339
339
  expect(result).toBe(10);
340
340
  }));
341
341
  it('should return max font size when content is too small to fit given constraints', () => __awaiter(void 0, void 0, void 0, function* () {
342
342
  const textSchema = getTextSchema();
343
343
  textSchema.width = 1000;
344
+ textSchema.height = 200;
344
345
  textSchema.dynamicFontSize = { min: 10, max: 30 };
345
- const input = 'test with a length string\n and a new line';
346
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
346
+ const value = 'test with a length string\n and a new line';
347
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
347
348
  expect(result).toBe(30);
348
349
  }));
349
350
  it('should not reduce font size below 0', () => __awaiter(void 0, void 0, void 0, function* () {
@@ -351,31 +352,31 @@ describe('calculateDynamicFontSize with Default font', () => {
351
352
  textSchema.dynamicFontSize = { min: -5, max: 10 };
352
353
  textSchema.width = 4;
353
354
  textSchema.height = 1;
354
- const input = 'a very \nlong \nmulti-line \nstring\nto';
355
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
355
+ const value = 'a very \nlong \nmulti-line \nstring\nto';
356
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
356
357
  expect(result).toBeGreaterThan(0);
357
358
  }));
358
359
  it('should calculate a dynamic font size when a starting font size is passed that is lower than the eventual', () => __awaiter(void 0, void 0, void 0, function* () {
359
360
  const textSchema = getTextSchema();
360
361
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'vertical' };
361
- const input = 'test with a length string\n and a new line';
362
+ const value = 'test with a length string\n and a new line';
362
363
  const startingFontSize = 18;
363
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input, startingFontSize });
364
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value, startingFontSize });
364
365
  expect(result).toBe(19.25);
365
366
  }));
366
367
  it('should calculate a dynamic font size when a starting font size is passed that is higher than the eventual', () => __awaiter(void 0, void 0, void 0, function* () {
367
368
  const textSchema = getTextSchema();
368
369
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'horizontal' };
369
- const input = 'test with a length string\n and a new line';
370
+ const value = 'test with a length string\n and a new line';
370
371
  const startingFontSize = 36;
371
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input, startingFontSize });
372
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value, startingFontSize });
372
373
  expect(result).toBe(11.25);
373
374
  }));
374
375
  it('should calculate a dynamic font size using vertical fit as a default if no fit provided', () => __awaiter(void 0, void 0, void 0, function* () {
375
376
  const textSchema = getTextSchema();
376
377
  textSchema.dynamicFontSize = { min: 10, max: 30 };
377
- const input = 'test with a length string\n and a new line';
378
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
378
+ const value = 'test with a length string\n and a new line';
379
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
379
380
  expect(result).toBe(19.25);
380
381
  }));
381
382
  });
@@ -384,36 +385,36 @@ describe('calculateDynamicFontSize with Custom font', () => {
384
385
  it('should return smaller font size when dynamicFontSizeSetting is provided with horizontal fit', () => __awaiter(void 0, void 0, void 0, function* () {
385
386
  const textSchema = getTextSchema();
386
387
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'horizontal' };
387
- const input = 'あいうあいうあい';
388
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
388
+ const value = 'あいうあいうあい';
389
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
389
390
  expect(result).toBe(16.75);
390
391
  }));
391
392
  it('should return smaller font size when dynamicFontSizeSetting is provided with vertical fit', () => __awaiter(void 0, void 0, void 0, function* () {
392
393
  const textSchema = getTextSchema();
393
394
  textSchema.dynamicFontSize = { min: 10, max: 30, fit: 'vertical' };
394
- const input = 'あいうあいうあい';
395
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
396
- expect(result).toBe(24.25);
395
+ const value = 'あいうあいうあい';
396
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
397
+ expect(result).toBe(26);
397
398
  }));
398
399
  it('should return min font size when content is too big to fit given constraints', () => __awaiter(void 0, void 0, void 0, function* () {
399
400
  const textSchema = getTextSchema();
400
401
  textSchema.dynamicFontSize = { min: 20, max: 30 };
401
- const input = 'あいうあいうあいうあいうあいうあいうあいうあいうあいう';
402
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
402
+ const value = 'あいうあいうあいうあいうあいうあいうあいうあいうあいう';
403
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
403
404
  expect(result).toBe(20);
404
405
  }));
405
406
  it('should return max font size when content is too small to fit given constraints', () => __awaiter(void 0, void 0, void 0, function* () {
406
407
  const textSchema = getTextSchema();
407
408
  textSchema.dynamicFontSize = { min: 10, max: 30 };
408
- const input = 'あ';
409
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
409
+ const value = 'あ';
410
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
410
411
  expect(result).toBe(30);
411
412
  }));
412
413
  it('should return min font size when content is multi-line with too many lines for the container', () => __awaiter(void 0, void 0, void 0, function* () {
413
414
  const textSchema = getTextSchema();
414
415
  textSchema.dynamicFontSize = { min: 5, max: 20 };
415
- const input = 'あ\nいう\nあ\nいう\nあ\nいう\nあ\nいう\nあ\nいう\nあ\nいう';
416
- const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, input });
416
+ const value = 'あ\nいう\nあ\nいう\nあ\nいう\nあ\nいう\nあ\nいう\nあ\nいう';
417
+ const result = yield (0, font_1.calculateDynamicFontSize)({ textSchema, font, value });
417
418
  expect(result).toBe(5);
418
419
  }));
419
420
  });
@@ -1 +1 @@
1
- {"version":3,"file":"font.test.js","sourceRoot":"","sources":["../../../__tests__/font.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAkC;AAClC,2CAA6B;AAE7B,sCAQoB;AAEpB,gCAAmC;AAEnC,MAAM,QAAQ,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SAAS,GAAG,IAAA,iBAAY,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAE1F,MAAM,aAAa,GAAG,GAAS,EAAE,CAAC,CAAC;IACjC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,GAAa,EAAE,CAAC,CAAC;IACnC,OAAO,EAAE,eAAS;IAClB,OAAO,EAAE;QACP;YACE,CAAC,EAAE;gBAC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C;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,uEAAuE,EAAE,GAAG,EAAE;QACjF,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YACzE,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,QAAQ;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,kBAAkB;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,CAAC,IAAA,wCAAiC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,QAAQ,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAiB,CAAC;QAChF,MAAM,CAAC,IAAA,wCAAiC,EAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC7E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -227,11 +227,13 @@ describe('validateBarcodeInput test', () => {
227
227
  let valid = "(01)12244668801011(17)250712(10)22322SSD3";
228
228
  let valid_12 = "(01)1224466880108(17)250712(10)22322SSD3";
229
229
  let invalid_bad_checkdigit = "(01)12244668801014(17)250712(10)22322SSD3";
230
+ let invalid_input_length = "(01)12244668801011(17)250712(10)22322SSD3(10)22322SSD3";
230
231
  const blank = '';
231
232
  expect((0, helper_1.validateBarcodeInput)(type, valid)).toEqual(true);
232
233
  expect((0, helper_1.validateBarcodeInput)(type, valid_12)).toEqual(true);
233
234
  expect((0, helper_1.validateBarcodeInput)(type, invalid_bad_checkdigit)).toEqual(false);
234
235
  expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
236
+ expect((0, helper_1.validateBarcodeInput)(type, invalid_input_length)).toEqual(false);
235
237
  });
236
238
  });
237
239
  describe('mm2pt test', () => {
@@ -1 +1 @@
1
- {"version":3,"file":"helper.test.js","sourceRoot":"","sources":["../../../__tests__/helper.test.ts"],"names":[],"mappings":";;AAAA,0CAA0E;AAC1E,gCAAwC;AAExC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE;QAClB,UAAU;QACV,MAAM,IAAI,GAAG,QAAQ,CAAC;QAEtB,MAAM,KAAK,GAAG,yBAAyB,CAAC;QACxC,MAAM,MAAM,GAAG,UAAU,CAAC;QAC1B,MAAM,QAAQ,GACZ,kkDAAkkD,CAAC;QACrkD,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxD,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5D,MAAM,CAAC,IAAA,6BAAoB,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CA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,CAAC,UAAU,CAAC,CAAC,CAAC,gBAAgB;QAC3D,MAAM,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,CAAC,IAAA,cAAK,EAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,oBAAc,CAAC,CAAC;QACzC,MAAM,CAAC,IAAA,cAAK,EAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,MAAM,CAAC,IAAA,cAAK,EAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACzC,MAAM,CAAC,IAAA,cAAK,EAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.createBarCode = exports.mapHexColorForBwipJsLib = exports.barCodeType2Bcid = void 0;
16
+ const helper_1 = require("./helper");
17
+ const bwip_js_1 = __importDefault(require("bwip-js"));
18
+ /**
19
+ * The bwip.js lib has a different name for nw7 type barcodes
20
+ */
21
+ const barCodeType2Bcid = (type) => type === 'nw7' ? 'rationalizedCodabar' : type;
22
+ exports.barCodeType2Bcid = barCodeType2Bcid;
23
+ /**
24
+ * Strip hash from the beginning of HTML hex color codes for the bwip.js lib
25
+ */
26
+ const mapHexColorForBwipJsLib = (color, fallback) => color ? color.replace('#', '') : fallback ? fallback.replace('#', '') : '000000';
27
+ exports.mapHexColorForBwipJsLib = mapHexColorForBwipJsLib;
28
+ const createBarCode = (arg) => __awaiter(void 0, void 0, void 0, function* () {
29
+ const { type, input, width, height, backgroundcolor, barcolor, textcolor } = arg;
30
+ const bcid = (0, exports.barCodeType2Bcid)(type);
31
+ const includetext = true;
32
+ const scale = 5;
33
+ const bwipjsArg = { bcid, text: input, width, height, scale, includetext };
34
+ if (backgroundcolor)
35
+ bwipjsArg.backgroundcolor = (0, exports.mapHexColorForBwipJsLib)(backgroundcolor);
36
+ if (barcolor)
37
+ bwipjsArg.barcolor = (0, exports.mapHexColorForBwipJsLib)(barcolor);
38
+ if (textcolor)
39
+ bwipjsArg.textcolor = (0, exports.mapHexColorForBwipJsLib)(textcolor);
40
+ let res;
41
+ if (typeof window !== 'undefined') {
42
+ const canvas = document.createElement('canvas');
43
+ bwip_js_1.default.toCanvas(canvas, bwipjsArg);
44
+ const dataUrl = canvas.toDataURL('image/png');
45
+ res = (0, helper_1.b64toUint8Array)(dataUrl).buffer;
46
+ }
47
+ else {
48
+ res = yield bwip_js_1.default.toBuffer(bwipjsArg);
49
+ }
50
+ return res;
51
+ });
52
+ exports.createBarCode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uB,EAAC,QAAQ,CAAC,CAAC;IACrE,IAAI,SAAS;QAAE,SAAS,CAAC,SAAS,GAAG,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC;IAExE,IAAI,GAAW,CAAC;IAEhB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,iBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAC9C,GAAG,GAAG,IAAA,wBAAe,EAAC,OAAO,CAAC,CAAC,MAAgB,CAAC;KACjD;SAAM;QACL,GAAG,GAAG,MAAM,iBAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;KACxC;IAED,OAAO,GAAG,CAAC;AACb,CAAC,CAAA,CAAC;AA/BW,QAAA,aAAa,iBA+BxB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.MM_TO_PT_RATIO = exports.PT_TO_MM_RATIO = exports.PT_TO_PX_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
3
+ exports.DEFAULT_FONT_VALUE = exports.BLANK_PDF = exports.MM_TO_PT_RATIO = exports.PT_TO_MM_RATIO = exports.PT_TO_PX_RATIO = exports.FONT_SIZE_ADJUSTMENT = exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_HORIZONTAL = exports.DYNAMIC_FIT_VERTICAL = exports.DEFAULT_BARCODE_COLOR = exports.DEFAULT_BARCODE_BG_COLOR = exports.DEFAULT_FONT_COLOR = exports.DEFAULT_CHARACTER_SPACING = exports.DEFAULT_LINE_HEIGHT = exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.DEFAULT_ALIGNMENT = exports.DEFAULT_FONT_SIZE = exports.DEFAULT_FONT_NAME = void 0;
4
4
  exports.DEFAULT_FONT_NAME = 'Roboto';
5
5
  exports.DEFAULT_FONT_SIZE = 13;
6
6
  exports.DEFAULT_ALIGNMENT = 'left';
@@ -10,7 +10,9 @@ exports.VERTICAL_ALIGN_BOTTOM = 'bottom';
10
10
  exports.DEFAULT_VERTICAL_ALIGNMENT = exports.VERTICAL_ALIGN_TOP;
11
11
  exports.DEFAULT_LINE_HEIGHT = 1;
12
12
  exports.DEFAULT_CHARACTER_SPACING = 0;
13
- exports.DEFAULT_FONT_COLOR = '#000';
13
+ exports.DEFAULT_FONT_COLOR = '#000000';
14
+ exports.DEFAULT_BARCODE_BG_COLOR = '#ffffff';
15
+ exports.DEFAULT_BARCODE_COLOR = '#000000';
14
16
  exports.DYNAMIC_FIT_VERTICAL = 'vertical';
15
17
  exports.DYNAMIC_FIT_HORIZONTAL = 'horizontal';
16
18
  exports.DEFAULT_DYNAMIC_FIT = exports.DYNAMIC_FIT_VERTICAL;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,QAAQ,CAAC;AAC7B,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,iBAAiB,GAAG,MAAM,CAAC;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AC;AAClC,QAAA,sBAAsB,GAAG,YAAY,CAAC;AACtC,QAAA,mBAAmB,GAAG,4BAAoB,CAAC;AAC3C,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAC5B,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,cAAc,GAAG,MAAM,CAAC;AACxB,QAAA,cAAc,GAAG,MAAM,CAAC,CAAC,2DAA2D;AAEpF,QAAA,SAAS,GACpB,8kCAA8kC,CAAC;AAEpkC,QAAA,kBAAkB,GAC7B,mwxKAAmwxK,CAAC"}
@@ -65,7 +65,7 @@ const getFontNamesInSchemas = (schemas) => uniq(schemas
65
65
  .reduce((acc, cur) => acc.concat(cur), [])
66
66
  .filter(Boolean));
67
67
  const checkFont = (arg) => {
68
- const { font, template: { schemas }, } = arg;
68
+ const { font, template: { schemas } } = arg;
69
69
  const fontValues = Object.values(font);
70
70
  const fallbackFontNum = fontValues.reduce((acc, cur) => (cur.fallback ? acc + 1 : acc), 0);
71
71
  if (fallbackFontNum === 0) {
@@ -214,7 +214,7 @@ exports.getSplittedLines = getSplittedLines;
214
214
  * Calculating space usage involves splitting lines where they exceed
215
215
  * the box width based on the proposed size.
216
216
  */
217
- const calculateDynamicFontSize = ({ textSchema, font, input, startingFontSize, }) => __awaiter(void 0, void 0, void 0, function* () {
217
+ const calculateDynamicFontSize = ({ textSchema, font, value, startingFontSize, }) => __awaiter(void 0, void 0, void 0, function* () {
218
218
  var _a;
219
219
  const { fontSize: schemaFontSize, dynamicFontSize: dynamicFontSizeSetting, characterSpacing: schemaCharacterSpacing, width: boxWidth, height: boxHeight, lineHeight = constants_1.DEFAULT_LINE_HEIGHT, } = textSchema;
220
220
  const fontSize = startingFontSize || schemaFontSize || constants_1.DEFAULT_FONT_SIZE;
@@ -224,7 +224,7 @@ const calculateDynamicFontSize = ({ textSchema, font, input, startingFontSize, }
224
224
  return fontSize;
225
225
  const characterSpacing = schemaCharacterSpacing !== null && schemaCharacterSpacing !== void 0 ? schemaCharacterSpacing : constants_1.DEFAULT_CHARACTER_SPACING;
226
226
  const fontKitFont = yield (0, exports.getFontKitFont)(textSchema, font);
227
- const textContentRows = input.split('\n');
227
+ const paragraphs = value.split('\n');
228
228
  let dynamicFontSize = fontSize;
229
229
  if (dynamicFontSize < dynamicFontSizeSetting.min) {
230
230
  dynamicFontSize = dynamicFontSizeSetting.min;
@@ -237,23 +237,29 @@ const calculateDynamicFontSize = ({ textSchema, font, input, startingFontSize, }
237
237
  let totalWidthInMm = 0;
238
238
  let totalHeightInMm = 0;
239
239
  const boxWidthInPt = (0, helper_1.mm2pt)(boxWidth);
240
- const textHeight = (0, exports.heightOfFontAtSize)(fontKitFont, size);
241
- const textHeightInMm = (0, helper_1.pt2mm)(textHeight * lineHeight);
242
- textContentRows.forEach((paragraph) => {
240
+ const firstLineTextHeight = (0, exports.heightOfFontAtSize)(fontKitFont, size);
241
+ const firstLineHeightInMm = (0, helper_1.pt2mm)(firstLineTextHeight * lineHeight);
242
+ const otherRowHeightInMm = (0, helper_1.pt2mm)(size * lineHeight);
243
+ paragraphs.forEach((paragraph, paraIndex) => {
243
244
  const lines = (0, exports.getSplittedLines)(paragraph, {
244
245
  font: fontKitFont,
245
246
  fontSize: size,
246
247
  characterSpacing,
247
248
  boxWidthInPt,
248
249
  });
249
- lines.forEach((line) => {
250
+ lines.forEach((line, lineIndex) => {
250
251
  if (dynamicFontFit === constants_1.DYNAMIC_FIT_VERTICAL) {
251
252
  // For vertical fit we want to consider the width of text lines where we detect a split
252
253
  const textWidth = (0, exports.widthOfTextAtSize)(line, fontKitFont, size, characterSpacing);
253
254
  const textWidthInMm = (0, helper_1.pt2mm)(textWidth);
254
255
  totalWidthInMm = Math.max(totalWidthInMm, textWidthInMm);
255
256
  }
256
- totalHeightInMm += textHeightInMm;
257
+ if (paraIndex + lineIndex === 0) {
258
+ totalHeightInMm += firstLineHeightInMm;
259
+ }
260
+ else {
261
+ totalHeightInMm += otherRowHeightInMm;
262
+ }
257
263
  });
258
264
  if (dynamicFontFit === constants_1.DYNAMIC_FIT_HORIZONTAL) {
259
265
  // For horizontal fit we want to consider the line's width 'unsplit'