pdf-factory 0.8.21 → 0.8.22
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 +4 -4
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +10 -10
- 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 -2
- package/dist/pdf-factory.js.map +1 -1
- package/package.json +3 -3
package/dist/parser.js
CHANGED
|
@@ -96845,7 +96845,7 @@ function kr(e) {
|
|
|
96845
96845
|
], this._originalRotate(e);
|
|
96846
96846
|
});
|
|
96847
96847
|
}
|
|
96848
|
-
var Ar
|
|
96848
|
+
var Ar = {}, jr = {
|
|
96849
96849
|
getCanvas: function(e, t, n, r) {
|
|
96850
96850
|
var i;
|
|
96851
96851
|
if (e in Ar) (i = Ar[e]).canvas.width = t, i.canvas.height = n, i.context.setTransform(1, 0, 0, 1, 0, 0);
|
|
@@ -96861,7 +96861,7 @@ var Ar, jr = (Ar = {}, {
|
|
|
96861
96861
|
clear: function() {
|
|
96862
96862
|
Ar = {};
|
|
96863
96863
|
}
|
|
96864
|
-
}
|
|
96864
|
+
}, Mr = function() {
|
|
96865
96865
|
function e(e) {
|
|
96866
96866
|
this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = Ie, this.fontMatrix = ue, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = de, this.textRise = 0, this.fillColorSpace = q.singletons.gray, this.fillColorSpaceObj = null, this.strokeColorSpace = q.singletons.gray, this.strokeColorSpaceObj = null, this.fillColorObj = null, this.strokeColorObj = null, this.fillColor = "#000000", this.strokeColor = "#000000", this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.paintFormXObjectDepth = 0, this.old = e;
|
|
96867
96867
|
}
|
|
@@ -101595,7 +101595,7 @@ var pa = {
|
|
|
101595
101595
|
return x("\udf06\ud834") !== "\"\\udf06\\ud834\"" || x("\udead") !== "\"\\udead\"";
|
|
101596
101596
|
}), I = P ? function(e, t) {
|
|
101597
101597
|
var n = h(arguments), r = te(t);
|
|
101598
|
-
if (
|
|
101598
|
+
if (u(r) || e !== void 0 && !f(e)) return n[1] = function(e, t) {
|
|
101599
101599
|
if (u(r) && (t = o(r, this, b(e), t)), !f(t)) return t;
|
|
101600
101600
|
}, a(x, null, n);
|
|
101601
101601
|
} : x, ee = function(e, t, n) {
|
|
@@ -103636,7 +103636,7 @@ var $o = class e {
|
|
|
103636
103636
|
let n = this.callbacks.get(this.#e(t));
|
|
103637
103637
|
if (!n) return;
|
|
103638
103638
|
let { callback: r, options: { bubbles: i = !1, args: a = [], checker: o = null } } = n;
|
|
103639
|
-
o
|
|
103639
|
+
(!o || o(e, t)) && (r.bind(e, ...a, t)(), i || Oo(t));
|
|
103640
103640
|
}
|
|
103641
103641
|
}, is = class e {
|
|
103642
103642
|
static _colorsMapping = /* @__PURE__ */ new Map([["CanvasText", [
|
|
@@ -104692,7 +104692,7 @@ var $o = class e {
|
|
|
104692
104692
|
let t = this.#c?.get(e.data.id);
|
|
104693
104693
|
if (!t) return;
|
|
104694
104694
|
let n = this.#s.getRawValue(t);
|
|
104695
|
-
n && (this.#I
|
|
104695
|
+
n && (this.#I !== Y.NONE || n.hasBeenModified) && n.renderAnnotationElement(e);
|
|
104696
104696
|
}
|
|
104697
104697
|
setMissingCanvas(e, t, n) {
|
|
104698
104698
|
let r = this.#P?.get(e);
|
|
@@ -106925,7 +106925,7 @@ var Ss = new Uint32Array(new Uint8Array([
|
|
|
106925
106925
|
this.nativeFontFaces.clear(), this.#e.clear(), this.styleElement &&= (this.styleElement.remove(), null);
|
|
106926
106926
|
}
|
|
106927
106927
|
async loadSystemFont({ systemFontInfo: e, disableFontFace: t, _inspectFont: n }) {
|
|
106928
|
-
if (
|
|
106928
|
+
if (e && !this.#e.has(e.loadedName)) {
|
|
106929
106929
|
if (La(!t, "loadSystemFont shouldn't be called when `disableFontFace` is set."), this.isFontLoadingAPISupported) {
|
|
106930
106930
|
let { loadedName: t, src: r, style: i } = e, a = new FontFace(t, r, i);
|
|
106931
106931
|
this.addNativeFontFace(a);
|
|
@@ -109240,8 +109240,8 @@ var Vc = [
|
|
|
109240
109240
|
n.x += i * h * u, a.restore(), this.compose();
|
|
109241
109241
|
return;
|
|
109242
109242
|
}
|
|
109243
|
-
let w = 0, T;
|
|
109244
|
-
for (
|
|
109243
|
+
let w = 0, T = 0;
|
|
109244
|
+
for (; T < d; ++T) {
|
|
109245
109245
|
let n = t[T];
|
|
109246
109246
|
if (typeof n == "number") {
|
|
109247
109247
|
w += p * n * i / 1e3;
|
|
@@ -115004,7 +115004,7 @@ var Ql = class {
|
|
|
115004
115004
|
this.#d && (this.#y({ highlightOutlines: this.#l.getNewOutline(e / 2) }), this.fixAndSetPosition(), this.setDims());
|
|
115005
115005
|
}
|
|
115006
115006
|
#C() {
|
|
115007
|
-
this.#u
|
|
115007
|
+
this.#u !== null && this.parent && (this.parent.drawLayer.remove(this.#u), this.#u = null, this.parent.drawLayer.remove(this.#m), this.#m = null);
|
|
115008
115008
|
}
|
|
115009
115009
|
#w(e = this.parent) {
|
|
115010
115010
|
this.#u === null && ({id: this.#u, clipPathId: this.#r} = e.drawLayer.draw({
|
|
@@ -115445,7 +115445,7 @@ var Ql = class {
|
|
|
115445
115445
|
this.parent && !e ? (this._uiManager.removeShouldRescale(this), this.#s()) : e && (this._uiManager.addShouldRescale(this), this.#c(e), t = !this.parent && this.div?.classList.contains("selectedEditor")), super.setParent(e), t && this.select();
|
|
115446
115446
|
}
|
|
115447
115447
|
#s() {
|
|
115448
|
-
this._drawId
|
|
115448
|
+
this._drawId !== null && this.parent && (this.parent.drawLayer.remove(this._drawId), this._drawId = null, this._drawingOptions.reset());
|
|
115449
115449
|
}
|
|
115450
115450
|
#c(e = this.parent) {
|
|
115451
115451
|
if (this._drawId === null || this.parent !== e) {
|