pdf-factory 1.1.1 → 1.1.2
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/parser.cjs +16 -16
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +7078 -7478
- package/dist/parser.js.map +1 -1
- package/dist/pdf-factory.cjs +2 -2
- package/dist/pdf-factory.cjs.map +1 -1
- package/dist/pdf-factory.js +2 -16
- package/dist/pdf-factory.js.map +1 -1
- package/package.json +2 -2
package/dist/pdf-factory.js
CHANGED
|
@@ -3878,11 +3878,7 @@ function ti(e, t = ei, n) {
|
|
|
3878
3878
|
return i;
|
|
3879
3879
|
}
|
|
3880
3880
|
function ni(e, t) {
|
|
3881
|
-
|
|
3882
|
-
R(e, I.SMALL, F.ITALIC), e.setTextColor(150), e.text("Bye", t.x + 2, t.y + t.height / 2 + 1.5), e.setTextColor(0);
|
|
3883
|
-
return;
|
|
3884
|
-
}
|
|
3885
|
-
t.participantName && (t.seed ? (R(e, I.TINY, F.BOLD), e.text(`[${t.seed}]`, t.x + 1, t.y + t.height / 2 + 1), R(e, I.SMALL, F.NORMAL), e.text(t.participantName, t.x + 9, t.y + t.height / 2 + 1)) : (R(e, I.SMALL, F.NORMAL), e.text(t.participantName, t.x + 2, t.y + t.height / 2 + 1)), t.nationality && (R(e, I.TINY, F.NORMAL), e.setTextColor(100), e.text(t.nationality, t.x + t.width - 2, t.y + t.height / 2 + 1, { align: "right" }), e.setTextColor(0)));
|
|
3881
|
+
e.setDrawColor(150), e.setLineWidth(.3), e.rect(t.x, t.y, t.width, t.height), t.isBye ? (R(e, I.SMALL, F.ITALIC), e.setTextColor(150), e.text("Bye", t.x + 2, t.y + t.height / 2 + 1.5), e.setTextColor(0)) : t.participantName && (t.seed ? (R(e, I.TINY, F.BOLD), e.text(`[${t.seed}]`, t.x + 1, t.y + t.height / 2 + 1), R(e, I.SMALL, F.NORMAL), e.text(t.participantName, t.x + 9, t.y + t.height / 2 + 1)) : (R(e, I.SMALL, F.NORMAL), e.text(t.participantName, t.x + 2, t.y + t.height / 2 + 1)), t.nationality && (R(e, I.TINY, F.NORMAL), e.setTextColor(100), e.text(t.nationality, t.x + t.width - 2, t.y + t.height / 2 + 1, { align: "right" }), e.setTextColor(0)));
|
|
3886
3882
|
}
|
|
3887
3883
|
function ri(e, t, n) {
|
|
3888
3884
|
e.setDrawColor(100), e.setLineWidth(.3);
|
|
@@ -4259,17 +4255,7 @@ function Di(e) {
|
|
|
4259
4255
|
return t.innerHTML = e, t.textContent || "";
|
|
4260
4256
|
}
|
|
4261
4257
|
let t = "", n = !1;
|
|
4262
|
-
for (let r of e)
|
|
4263
|
-
if (r === "<") {
|
|
4264
|
-
n = !0;
|
|
4265
|
-
continue;
|
|
4266
|
-
}
|
|
4267
|
-
if (r === ">") {
|
|
4268
|
-
n = !1;
|
|
4269
|
-
continue;
|
|
4270
|
-
}
|
|
4271
|
-
n || (t += r);
|
|
4272
|
-
}
|
|
4258
|
+
for (let r of e) r === "<" ? n = !0 : r === ">" ? n = !1 : n || (t += r);
|
|
4273
4259
|
return t.trim();
|
|
4274
4260
|
}
|
|
4275
4261
|
function Q(e, t, n) {
|