@pdfme/common 2.2.1 → 3.0.0-beta.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.
- package/dist/cjs/__tests__/helper.test.js +292 -233
- package/dist/cjs/__tests__/helper.test.js.map +1 -1
- package/dist/cjs/src/constants.js +3 -17
- package/dist/cjs/src/constants.js.map +1 -1
- package/dist/cjs/src/helper.js +72 -99
- package/dist/cjs/src/helper.js.map +1 -1
- package/dist/cjs/src/index.js +7 -37
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/schema.js +17 -71
- package/dist/cjs/src/schema.js.map +1 -1
- package/dist/cjs/src/types.js +3 -0
- package/dist/cjs/src/types.js.map +1 -0
- package/dist/esm/__tests__/helper.test.js +270 -234
- package/dist/esm/__tests__/helper.test.js.map +1 -1
- package/dist/esm/src/constants.js +2 -16
- package/dist/esm/src/constants.js.map +1 -1
- package/dist/esm/src/helper.js +68 -98
- package/dist/esm/src/helper.js.map +1 -1
- package/dist/esm/src/index.js +3 -6
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/schema.js +14 -68
- package/dist/esm/src/schema.js.map +1 -1
- package/dist/esm/src/types.js +2 -0
- package/dist/esm/src/types.js.map +1 -0
- package/dist/types/src/constants.d.ts +2 -16
- package/dist/types/src/helper.d.ts +11 -2
- package/dist/types/src/index.d.ts +5 -8
- package/dist/types/src/schema.d.ts +696 -3574
- package/dist/types/src/types.d.ts +127 -0
- package/package.json +5 -11
- package/src/constants.ts +2 -18
- package/src/helper.ts +108 -116
- package/src/index.ts +28 -87
- package/src/schema.ts +18 -84
- package/src/types.ts +124 -0
- package/tsconfig.cjs.json +3 -2
- package/tsconfig.esm.json +3 -2
- package/dist/cjs/__tests__/barcode.test.js +0 -107
- package/dist/cjs/__tests__/barcode.test.js.map +0 -1
- package/dist/cjs/__tests__/font.test.js +0 -465
- package/dist/cjs/__tests__/font.test.js.map +0 -1
- package/dist/cjs/src/barcode.js +0 -53
- package/dist/cjs/src/barcode.js.map +0 -1
- package/dist/cjs/src/font.js +0 -310
- package/dist/cjs/src/font.js.map +0 -1
- package/dist/cjs/src/type.js +0 -12
- package/dist/cjs/src/type.js.map +0 -1
- package/dist/esm/__tests__/barcode.test.js +0 -102
- package/dist/esm/__tests__/barcode.test.js.map +0 -1
- package/dist/esm/__tests__/font.test.js +0 -440
- package/dist/esm/__tests__/font.test.js.map +0 -1
- package/dist/esm/src/barcode.js +0 -44
- package/dist/esm/src/barcode.js.map +0 -1
- package/dist/esm/src/font.js +0 -274
- package/dist/esm/src/font.js.map +0 -1
- package/dist/esm/src/type.js +0 -6
- package/dist/esm/src/type.js.map +0 -1
- package/dist/types/__tests__/barcode.test.d.ts +0 -1
- package/dist/types/__tests__/font.test.d.ts +0 -1
- package/dist/types/src/barcode.d.ts +0 -19
- package/dist/types/src/font.d.ts +0 -34
- package/dist/types/src/type.d.ts +0 -81
- package/src/barcode.ts +0 -51
- package/src/font.ts +0 -352
- package/src/type.ts +0 -69
@@ -1,240 +1,66 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
32
|
+
});
|
33
|
+
};
|
2
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
35
|
+
const fs_1 = require("fs");
|
36
|
+
const path = __importStar(require("path"));
|
3
37
|
const helper_1 = require("../src/helper");
|
4
38
|
const src_1 = require("../src");
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
31
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
32
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
33
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
34
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid4)).toEqual(false);
|
35
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
36
|
-
});
|
37
|
-
test('ean13', () => {
|
38
|
-
// https://barcode-place.azurewebsites.net/Barcode/jan
|
39
|
-
// 有効文字は数値(0-9)のみ。標準タイプはチェックデジットを含まない12桁orチェックデジットを含む13桁
|
40
|
-
const type = 'ean13';
|
41
|
-
const valid1 = '111111111111';
|
42
|
-
const valid2 = '1111111111116';
|
43
|
-
const valid3 = '2822224229221';
|
44
|
-
const valid4 = '3433333133331';
|
45
|
-
const valid5 = '8434244447413';
|
46
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
47
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
48
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
49
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
50
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid5)).toEqual(true);
|
51
|
-
const invalid1 = '111';
|
52
|
-
const invalid2 = '111111111111111111111111';
|
53
|
-
const invalid3 = 'invalid';
|
54
|
-
const invalid4 = '11111a111111';
|
55
|
-
const invalid5 = '1111111111111';
|
56
|
-
const blank = '';
|
57
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
58
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
59
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
60
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid4)).toEqual(false);
|
61
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid5)).toEqual(false);
|
62
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
63
|
-
});
|
64
|
-
test('ean8', () => {
|
65
|
-
// https://barcode-place.azurewebsites.net/Barcode/jan
|
66
|
-
// 有効文字は数値(0-9)のみ。短縮タイプはチェックデジットを含まない7桁orチェックデジットを含む8桁
|
67
|
-
const type = 'ean8';
|
68
|
-
const valid1 = '1111111';
|
69
|
-
const valid2 = '11111115';
|
70
|
-
const valid3 = '22222220';
|
71
|
-
const valid4 = '33333335';
|
72
|
-
const valid5 = '44444440';
|
73
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
74
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
75
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
76
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
77
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid5)).toEqual(true);
|
78
|
-
const invalid1 = '111';
|
79
|
-
const invalid2 = '11111111111111111111';
|
80
|
-
const invalid3 = 'invalid';
|
81
|
-
const invalid4 = '111a111';
|
82
|
-
const invalid5 = '44444441';
|
83
|
-
const blank = '';
|
84
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
85
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
86
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
87
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid4)).toEqual(false);
|
88
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid5)).toEqual(false);
|
89
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
90
|
-
});
|
91
|
-
test('code39', () => {
|
92
|
-
// https://barcode-place.azurewebsites.net/Barcode/code39
|
93
|
-
// CODE39は数字(0-9)、アルファベット大文字(A-Z)、記号(-.$/+%)、半角スペースに対応しています。
|
94
|
-
const type = 'code39';
|
95
|
-
const valid1 = '12345';
|
96
|
-
const valid2 = 'ABCDE';
|
97
|
-
const valid3 = '1A2B3C4D5G';
|
98
|
-
const valid4 = '1-A $2/B+3%C4D5G';
|
99
|
-
const invalid1 = '123a45';
|
100
|
-
const invalid2 = '1-A$2/B+3%C4=D5G';
|
101
|
-
const blank = '';
|
102
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
103
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
104
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
105
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
106
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
107
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
108
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
109
|
-
});
|
110
|
-
test('code128', () => {
|
111
|
-
// https://www.keyence.co.jp/ss/products/autoid/codereader/basic_code128.jsp
|
112
|
-
// コンピュータのキーボードから打てる文字(漢字、ひらがな、カタカナ以外)可能
|
113
|
-
const type = 'code128';
|
114
|
-
const valid1 = '12345';
|
115
|
-
const valid2 = '1-A$2/B+3%C4=D5G';
|
116
|
-
const valid3 = '1-A$2/B+3%C4=D5Ga~';
|
117
|
-
const invalid1 = '1-A$2/B+3%C4=D5Gひらがな';
|
118
|
-
const invalid2 = '1-A$2/B+3%C4=D5G〜';
|
119
|
-
const invalid3 = '1ーA$2・B+3%C4=D5G〜';
|
120
|
-
const blank = '';
|
121
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
122
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
123
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
124
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
125
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
126
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
127
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
128
|
-
});
|
129
|
-
test('nw7', () => {
|
130
|
-
// https://barcode-place.azurewebsites.net/Barcode/nw7
|
131
|
-
// https://en.wikipedia.org/wiki/Codabar
|
132
|
-
// NW-7は数字(0-9)と記号(-.$:/+)に対応しています。
|
133
|
-
// スタートコード/ストップコードとして、コードの始まりと終わりはアルファベット(A-D)のいずれかを使用してください。
|
134
|
-
const type = 'nw7';
|
135
|
-
const valid1 = 'A12345D';
|
136
|
-
const valid2 = 'A$2/+345D';
|
137
|
-
const valid3 = 'a4321D';
|
138
|
-
const invalid1 = 'A12345G';
|
139
|
-
const invalid2 = 'A12a45D';
|
140
|
-
const blank = '';
|
141
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
142
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
143
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
144
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
145
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
146
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
147
|
-
});
|
148
|
-
test('itf14', () => {
|
149
|
-
// https://barcode-place.azurewebsites.net/Barcode/itf
|
150
|
-
// 有効文字は数値(0-9)のみ。 チェックデジットを含まない13桁orチェックデジットを含む14桁
|
151
|
-
const type = 'itf14';
|
152
|
-
const valid1 = '1111111111111';
|
153
|
-
const valid2 = '11111111111113';
|
154
|
-
const valid3 = '22222222222226';
|
155
|
-
const valid4 = '33333333333339';
|
156
|
-
const valid5 = '44444444444442';
|
157
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
158
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
159
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
160
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
161
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid5)).toEqual(true);
|
162
|
-
const invalid1 = '111';
|
163
|
-
const invalid2 = '11111111111111111111111111111';
|
164
|
-
const invalid3 = '11111111111112';
|
165
|
-
const blank = '';
|
166
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
167
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
168
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
169
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
170
|
-
});
|
171
|
-
test('upca', () => {
|
172
|
-
// https://barcode-place.azurewebsites.net/Barcode/upc
|
173
|
-
// 有効文字は数値(0-9)のみ。 チェックデジットを含まない11桁orチェックデジットを含む12桁。
|
174
|
-
const type = 'upca';
|
175
|
-
const valid1 = '12345678901';
|
176
|
-
const valid2 = '123456789012';
|
177
|
-
const valid3 = '123456789036';
|
178
|
-
const valid4 = '126456789013';
|
179
|
-
const valid5 = '123456759015';
|
180
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
181
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
182
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
183
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
184
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid5)).toEqual(true);
|
185
|
-
const invalid1 = '1234567890';
|
186
|
-
const invalid2 = '1234567890123';
|
187
|
-
const invalid3 = '123456789011';
|
188
|
-
const invalid4 = '126456789014';
|
189
|
-
const blank = '';
|
190
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
191
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
192
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
193
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid4)).toEqual(false);
|
194
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
195
|
-
});
|
196
|
-
test('upce', () => {
|
197
|
-
// https://barcode-place.azurewebsites.net/Barcode/upc
|
198
|
-
// 有効文字は数値(0-9)のみ。 1桁目に指定できる数字(ナンバーシステムキャラクタ)は0のみ。
|
199
|
-
// チェックデジットを含まない7桁orチェックデジットを含む8桁。
|
200
|
-
const type = 'upce';
|
201
|
-
const valid1 = '0111111';
|
202
|
-
const valid2 = '01111118';
|
203
|
-
const valid3 = '01111125';
|
204
|
-
const valid4 = '01114126';
|
205
|
-
const valid5 = '01101126';
|
206
|
-
const blank = '';
|
207
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid1)).toEqual(true);
|
208
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid2)).toEqual(true);
|
209
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid3)).toEqual(true);
|
210
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid4)).toEqual(true);
|
211
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid5)).toEqual(true);
|
212
|
-
const invalid1 = '1111111';
|
213
|
-
const invalid2 = '011111111';
|
214
|
-
const invalid3 = '01111128';
|
215
|
-
const invalid4 = '01114125';
|
216
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid1)).toEqual(false);
|
217
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid2)).toEqual(false);
|
218
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid3)).toEqual(false);
|
219
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid4)).toEqual(false);
|
220
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
221
|
-
});
|
222
|
-
test('gs1datamatrix', () => {
|
223
|
-
// https://www.gs1.org/docs/barcodes/GS1_DataMatrix_Guideline.pdf
|
224
|
-
// find the GTIN application identifier, regex for "(01)" and the digits after it until
|
225
|
-
// another "(" or end of string
|
226
|
-
const type = 'gs1datamatrix';
|
227
|
-
let valid = "(01)12244668801011(17)250712(10)22322SSD3";
|
228
|
-
let valid_12 = "(01)1224466880108(17)250712(10)22322SSD3";
|
229
|
-
let invalid_bad_checkdigit = "(01)12244668801014(17)250712(10)22322SSD3";
|
230
|
-
let invalid_input_length = "(01)12244668801011(17)250712(10)22322SSD3(10)22322SSD3";
|
231
|
-
const blank = '';
|
232
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid)).toEqual(true);
|
233
|
-
expect((0, helper_1.validateBarcodeInput)(type, valid_12)).toEqual(true);
|
234
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid_bad_checkdigit)).toEqual(false);
|
235
|
-
expect((0, helper_1.validateBarcodeInput)(type, blank)).toEqual(false);
|
236
|
-
expect((0, helper_1.validateBarcodeInput)(type, invalid_input_length)).toEqual(false);
|
237
|
-
});
|
39
|
+
const sansData = (0, fs_1.readFileSync)(path.join(__dirname, `/assets/fonts/SauceHanSansJP.ttf`));
|
40
|
+
const serifData = (0, fs_1.readFileSync)(path.join(__dirname, `/assets/fonts/SauceHanSerifJP.ttf`));
|
41
|
+
const getSampleFont = () => ({
|
42
|
+
SauceHanSansJP: { fallback: true, data: sansData },
|
43
|
+
SauceHanSerifJP: { data: serifData },
|
44
|
+
});
|
45
|
+
const getTemplate = () => ({
|
46
|
+
basePdf: src_1.BLANK_PDF,
|
47
|
+
schemas: [
|
48
|
+
{
|
49
|
+
a: {
|
50
|
+
type: 'text',
|
51
|
+
fontName: 'SauceHanSansJP',
|
52
|
+
position: { x: 0, y: 0 },
|
53
|
+
width: 100,
|
54
|
+
height: 100,
|
55
|
+
},
|
56
|
+
b: {
|
57
|
+
type: 'text',
|
58
|
+
position: { x: 0, y: 0 },
|
59
|
+
width: 100,
|
60
|
+
height: 100,
|
61
|
+
},
|
62
|
+
},
|
63
|
+
],
|
238
64
|
});
|
239
65
|
describe('mm2pt test', () => {
|
240
66
|
it('converts millimeters to points', () => {
|
@@ -260,4 +86,237 @@ describe('pt2px test', () => {
|
|
260
86
|
expect((0, helper_1.pt2px)(5322.98)).toEqual(7095.532339999999);
|
261
87
|
});
|
262
88
|
});
|
89
|
+
describe('checkFont test', () => {
|
90
|
+
test('success test: no fontName in Schemas', () => {
|
91
|
+
const _getTemplate = () => ({
|
92
|
+
basePdf: src_1.BLANK_PDF,
|
93
|
+
schemas: [
|
94
|
+
{
|
95
|
+
a: {
|
96
|
+
type: 'text',
|
97
|
+
position: { x: 0, y: 0 },
|
98
|
+
width: 100,
|
99
|
+
height: 100,
|
100
|
+
},
|
101
|
+
b: {
|
102
|
+
type: 'text',
|
103
|
+
position: { x: 0, y: 0 },
|
104
|
+
width: 100,
|
105
|
+
height: 100,
|
106
|
+
},
|
107
|
+
},
|
108
|
+
],
|
109
|
+
});
|
110
|
+
try {
|
111
|
+
(0, helper_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
112
|
+
expect.anything();
|
113
|
+
}
|
114
|
+
catch (e) {
|
115
|
+
fail();
|
116
|
+
}
|
117
|
+
});
|
118
|
+
test('success test: fontName in Schemas(fallback font)', () => {
|
119
|
+
try {
|
120
|
+
(0, helper_1.checkFont)({ template: getTemplate(), font: getSampleFont() });
|
121
|
+
expect.anything();
|
122
|
+
}
|
123
|
+
catch (e) {
|
124
|
+
fail();
|
125
|
+
}
|
126
|
+
});
|
127
|
+
test('success test: fontName in Schemas(not fallback font)', () => {
|
128
|
+
const getFont = () => ({
|
129
|
+
SauceHanSansJP: { data: sansData },
|
130
|
+
SauceHanSerifJP: { fallback: true, data: serifData },
|
131
|
+
});
|
132
|
+
try {
|
133
|
+
(0, helper_1.checkFont)({ template: getTemplate(), font: getFont() });
|
134
|
+
expect.anything();
|
135
|
+
}
|
136
|
+
catch (e) {
|
137
|
+
fail();
|
138
|
+
}
|
139
|
+
});
|
140
|
+
test('fail test: no fallback font', () => {
|
141
|
+
const getFont = () => ({
|
142
|
+
SauceHanSansJP: { data: sansData },
|
143
|
+
SauceHanSerifJP: { data: serifData },
|
144
|
+
});
|
145
|
+
try {
|
146
|
+
(0, helper_1.checkFont)({ template: getTemplate(), font: getFont() });
|
147
|
+
fail();
|
148
|
+
}
|
149
|
+
catch (e) {
|
150
|
+
expect(e.message).toEqual(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
|
151
|
+
Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);
|
152
|
+
}
|
153
|
+
});
|
154
|
+
test('fail test: too many fallback font', () => {
|
155
|
+
const getFont = () => ({
|
156
|
+
SauceHanSansJP: { data: sansData, fallback: true },
|
157
|
+
SauceHanSerifJP: { data: serifData, fallback: true },
|
158
|
+
});
|
159
|
+
try {
|
160
|
+
(0, helper_1.checkFont)({ template: getTemplate(), font: getFont() });
|
161
|
+
fail();
|
162
|
+
}
|
163
|
+
catch (e) {
|
164
|
+
expect(e.message).toEqual(`[@pdfme/common] 2 fallback flags found in font. true fallback flag must be only one.
|
165
|
+
Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);
|
166
|
+
}
|
167
|
+
});
|
168
|
+
test('fail test: fontName in Schemas not found in font(single)', () => {
|
169
|
+
const _getTemplate = () => ({
|
170
|
+
basePdf: src_1.BLANK_PDF,
|
171
|
+
schemas: [
|
172
|
+
{
|
173
|
+
a: {
|
174
|
+
type: 'text',
|
175
|
+
fontName: 'SauceHanSansJP2',
|
176
|
+
position: { x: 0, y: 0 },
|
177
|
+
width: 100,
|
178
|
+
height: 100,
|
179
|
+
},
|
180
|
+
b: {
|
181
|
+
type: 'text',
|
182
|
+
position: { x: 0, y: 0 },
|
183
|
+
width: 100,
|
184
|
+
height: 100,
|
185
|
+
},
|
186
|
+
},
|
187
|
+
],
|
188
|
+
});
|
189
|
+
try {
|
190
|
+
(0, helper_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
191
|
+
fail();
|
192
|
+
}
|
193
|
+
catch (e) {
|
194
|
+
expect(e.message).toEqual(`[@pdfme/common] SauceHanSansJP2 of template.schemas is not found in font.
|
195
|
+
Check this document: https://pdfme.com/docs/custom-fonts`);
|
196
|
+
}
|
197
|
+
});
|
198
|
+
test('fail test: fontName in Schemas not found in font(single)', () => {
|
199
|
+
const _getTemplate = () => ({
|
200
|
+
basePdf: src_1.BLANK_PDF,
|
201
|
+
schemas: [
|
202
|
+
{
|
203
|
+
a: {
|
204
|
+
type: 'text',
|
205
|
+
fontName: 'SauceHanSansJP2',
|
206
|
+
position: { x: 0, y: 0 },
|
207
|
+
width: 100,
|
208
|
+
height: 100,
|
209
|
+
},
|
210
|
+
b: {
|
211
|
+
type: 'text',
|
212
|
+
fontName: 'SauceHanSerifJP2',
|
213
|
+
position: { x: 0, y: 0 },
|
214
|
+
width: 100,
|
215
|
+
height: 100,
|
216
|
+
},
|
217
|
+
},
|
218
|
+
],
|
219
|
+
});
|
220
|
+
try {
|
221
|
+
(0, helper_1.checkFont)({ template: _getTemplate(), font: getSampleFont() });
|
222
|
+
fail();
|
223
|
+
}
|
224
|
+
catch (e) {
|
225
|
+
expect(e.message).toEqual(`[@pdfme/common] SauceHanSansJP2,SauceHanSerifJP2 of template.schemas is not found in font.
|
226
|
+
Check this document: https://pdfme.com/docs/custom-fonts`);
|
227
|
+
}
|
228
|
+
});
|
229
|
+
});
|
230
|
+
describe('checkPlugins test', () => {
|
231
|
+
const plugins = {
|
232
|
+
myText: {
|
233
|
+
pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
|
234
|
+
ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
|
235
|
+
propPanel: {
|
236
|
+
propPanelSchema: {},
|
237
|
+
defaultValue: '',
|
238
|
+
defaultSchema: { type: 'myText', position: { x: 0, y: 0 }, width: 100, height: 100 },
|
239
|
+
},
|
240
|
+
},
|
241
|
+
myImage: {
|
242
|
+
pdf: () => __awaiter(void 0, void 0, void 0, function* () { }),
|
243
|
+
ui: () => __awaiter(void 0, void 0, void 0, function* () { }),
|
244
|
+
propPanel: {
|
245
|
+
propPanelSchema: {},
|
246
|
+
defaultValue: '',
|
247
|
+
defaultSchema: { type: 'myImage', position: { x: 0, y: 0 }, width: 100, height: 100 },
|
248
|
+
},
|
249
|
+
},
|
250
|
+
};
|
251
|
+
test('success test: no type in Schemas(no plugins)', () => {
|
252
|
+
try {
|
253
|
+
const template = getTemplate();
|
254
|
+
template.schemas = [];
|
255
|
+
(0, helper_1.checkPlugins)({ template, plugins: {} });
|
256
|
+
expect.anything();
|
257
|
+
}
|
258
|
+
catch (e) {
|
259
|
+
fail();
|
260
|
+
}
|
261
|
+
});
|
262
|
+
test('success test: no type in Schemas(with plugins)', () => {
|
263
|
+
try {
|
264
|
+
const template = getTemplate();
|
265
|
+
template.schemas = [];
|
266
|
+
(0, helper_1.checkPlugins)({ template, plugins });
|
267
|
+
expect.anything();
|
268
|
+
}
|
269
|
+
catch (e) {
|
270
|
+
fail();
|
271
|
+
}
|
272
|
+
});
|
273
|
+
test('success test: type in Schemas(single)', () => {
|
274
|
+
try {
|
275
|
+
const template = getTemplate();
|
276
|
+
template.schemas[0].a.type = 'myText';
|
277
|
+
template.schemas[0].b.type = 'myText';
|
278
|
+
(0, helper_1.checkPlugins)({ template, plugins });
|
279
|
+
expect.anything();
|
280
|
+
}
|
281
|
+
catch (e) {
|
282
|
+
fail();
|
283
|
+
}
|
284
|
+
});
|
285
|
+
test('success test: type in Schemas(multiple)', () => {
|
286
|
+
try {
|
287
|
+
const template = getTemplate();
|
288
|
+
template.schemas[0].a.type = 'myText';
|
289
|
+
template.schemas[0].b.type = 'myImage';
|
290
|
+
(0, helper_1.checkPlugins)({ template, plugins });
|
291
|
+
expect.anything();
|
292
|
+
}
|
293
|
+
catch (e) {
|
294
|
+
fail();
|
295
|
+
}
|
296
|
+
});
|
297
|
+
test('fail test: type in Schemas not found in plugins(single)', () => {
|
298
|
+
try {
|
299
|
+
const template = getTemplate();
|
300
|
+
template.schemas[0].a.type = 'fail';
|
301
|
+
template.schemas[0].b.type = 'myImage';
|
302
|
+
(0, helper_1.checkPlugins)({ template, plugins });
|
303
|
+
fail();
|
304
|
+
}
|
305
|
+
catch (e) {
|
306
|
+
expect(e.message).toEqual(`[@pdfme/common] fail of template.schemas is not found in plugins.`);
|
307
|
+
}
|
308
|
+
});
|
309
|
+
test('fail test: type in Schemas not found in plugins(multiple)', () => {
|
310
|
+
try {
|
311
|
+
const template = getTemplate();
|
312
|
+
template.schemas[0].a.type = 'fail';
|
313
|
+
template.schemas[0].b.type = 'fail2';
|
314
|
+
(0, helper_1.checkPlugins)({ template, plugins });
|
315
|
+
fail();
|
316
|
+
}
|
317
|
+
catch (e) {
|
318
|
+
expect(e.message).toEqual(`[@pdfme/common] fail,fail2 of template.schemas is not found in plugins.`);
|
319
|
+
}
|
320
|
+
});
|
321
|
+
});
|
263
322
|
//# sourceMappingURL=helper.test.js.map
|
@@ -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,K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