vue-data-ui 2.2.22 → 2.2.23
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.
|
@@ -5678,7 +5678,7 @@ function Mt(e) {
|
|
|
5678
5678
|
o = o || "a4";
|
|
5679
5679
|
var x = { COMPAT: "compat", ADVANCED: "advanced" }, w = x.COMPAT;
|
|
5680
5680
|
function V() {
|
|
5681
|
-
this.saveGraphicsState(), H(new $t(
|
|
5681
|
+
this.saveGraphicsState(), H(new $t(Le, 0, 0, -Le, 0, yr() * Le).toString() + " cm"), this.setFontSize(this.getFontSize() / Le), f = "n", w = x.ADVANCED;
|
|
5682
5682
|
}
|
|
5683
5683
|
function Y() {
|
|
5684
5684
|
this.restoreGraphicsState(), f = "S", w = x.COMPAT;
|
|
@@ -5701,10 +5701,10 @@ function Mt(e) {
|
|
|
5701
5701
|
if (w !== x.ADVANCED)
|
|
5702
5702
|
throw new Error(B + " is only available in 'advanced' API mode. You need to call advancedAPI() first.");
|
|
5703
5703
|
}, W = p.roundToPrecision = p.__private__.roundToPrecision = function(B, Ae) {
|
|
5704
|
-
var
|
|
5705
|
-
if (isNaN(B) || isNaN(
|
|
5704
|
+
var $e = t || Ae;
|
|
5705
|
+
if (isNaN(B) || isNaN($e))
|
|
5706
5706
|
throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
|
|
5707
|
-
return B.toFixed(
|
|
5707
|
+
return B.toFixed($e).replace(/0+$/, "");
|
|
5708
5708
|
};
|
|
5709
5709
|
O = p.hpf = p.__private__.hpf = typeof u == "number" ? function(B) {
|
|
5710
5710
|
if (isNaN(B))
|
|
@@ -5730,7 +5730,7 @@ function Mt(e) {
|
|
|
5730
5730
|
}, ee = p.scale = p.__private__.scale = function(B) {
|
|
5731
5731
|
if (isNaN(B))
|
|
5732
5732
|
throw new Error("Invalid argument passed to jsPDF.scale");
|
|
5733
|
-
return w === x.COMPAT ? B *
|
|
5733
|
+
return w === x.COMPAT ? B * Le : w === x.ADVANCED ? B : void 0;
|
|
5734
5734
|
}, ae = function(B) {
|
|
5735
5735
|
return w === x.COMPAT ? yr() - B : w === x.ADVANCED ? B : void 0;
|
|
5736
5736
|
}, R = function(B) {
|
|
@@ -5752,11 +5752,11 @@ function Mt(e) {
|
|
|
5752
5752
|
return re();
|
|
5753
5753
|
};
|
|
5754
5754
|
var j = p.__private__.convertDateToPDFDate = function(B) {
|
|
5755
|
-
var Ae = B.getTimezoneOffset(),
|
|
5755
|
+
var Ae = B.getTimezoneOffset(), $e = Ae < 0 ? "+" : "-", Me = Math.floor(Math.abs(Ae / 60)), Te = Math.abs(Ae % 60), je = [$e, $(Me), "'", $(Te), "'"].join("");
|
|
5756
5756
|
return ["D:", B.getFullYear(), $(B.getMonth() + 1), $(B.getDate()), $(B.getHours()), $(B.getMinutes()), $(B.getSeconds()), je].join("");
|
|
5757
5757
|
}, T = p.__private__.convertPDFDateToDate = function(B) {
|
|
5758
|
-
var Ae = parseInt(B.substr(2, 4), 10),
|
|
5759
|
-
return new Date(Ae,
|
|
5758
|
+
var Ae = parseInt(B.substr(2, 4), 10), $e = parseInt(B.substr(6, 2), 10) - 1, Me = parseInt(B.substr(8, 2), 10), Te = parseInt(B.substr(10, 2), 10), je = parseInt(B.substr(12, 2), 10), lt = parseInt(B.substr(14, 2), 10);
|
|
5759
|
+
return new Date(Ae, $e, Me, Te, je, lt, 0);
|
|
5760
5760
|
}, xe = p.__private__.setCreationDate = function(B) {
|
|
5761
5761
|
var Ae;
|
|
5762
5762
|
if (B === void 0 && (B = /* @__PURE__ */ new Date()), B instanceof Date)
|
|
@@ -5797,19 +5797,19 @@ function Mt(e) {
|
|
|
5797
5797
|
}, te = p.__private__.write = function(B) {
|
|
5798
5798
|
return H(arguments.length === 1 ? B.toString() : Array.prototype.join.call(arguments, " "));
|
|
5799
5799
|
}, U = p.__private__.getArrayBuffer = function(B) {
|
|
5800
|
-
for (var Ae = B.length,
|
|
5800
|
+
for (var Ae = B.length, $e = new ArrayBuffer(Ae), Me = new Uint8Array($e); Ae--; )
|
|
5801
5801
|
Me[Ae] = B.charCodeAt(Ae);
|
|
5802
|
-
return
|
|
5802
|
+
return $e;
|
|
5803
5803
|
}, Q = [["Helvetica", "helvetica", "normal", "WinAnsiEncoding"], ["Helvetica-Bold", "helvetica", "bold", "WinAnsiEncoding"], ["Helvetica-Oblique", "helvetica", "italic", "WinAnsiEncoding"], ["Helvetica-BoldOblique", "helvetica", "bolditalic", "WinAnsiEncoding"], ["Courier", "courier", "normal", "WinAnsiEncoding"], ["Courier-Bold", "courier", "bold", "WinAnsiEncoding"], ["Courier-Oblique", "courier", "italic", "WinAnsiEncoding"], ["Courier-BoldOblique", "courier", "bolditalic", "WinAnsiEncoding"], ["Times-Roman", "times", "normal", "WinAnsiEncoding"], ["Times-Bold", "times", "bold", "WinAnsiEncoding"], ["Times-Italic", "times", "italic", "WinAnsiEncoding"], ["Times-BoldItalic", "times", "bolditalic", "WinAnsiEncoding"], ["ZapfDingbats", "zapfdingbats", "normal", null], ["Symbol", "symbol", "normal", null]];
|
|
5804
5804
|
p.__private__.getStandardFonts = function() {
|
|
5805
5805
|
return Q;
|
|
5806
5806
|
};
|
|
5807
5807
|
var _ = e.fontSize || 16;
|
|
5808
5808
|
p.__private__.setFontSize = p.setFontSize = function(B) {
|
|
5809
|
-
return _ = w === x.ADVANCED ? B /
|
|
5809
|
+
return _ = w === x.ADVANCED ? B / Le : B, this;
|
|
5810
5810
|
};
|
|
5811
5811
|
var de, ne = p.__private__.getFontSize = p.getFontSize = function() {
|
|
5812
|
-
return w === x.COMPAT ? _ : _ *
|
|
5812
|
+
return w === x.COMPAT ? _ : _ * Le;
|
|
5813
5813
|
}, _e = e.R2L || !1;
|
|
5814
5814
|
p.__private__.setR2L = p.setR2L = function(B) {
|
|
5815
5815
|
return _e = B, this;
|
|
@@ -5845,8 +5845,8 @@ function Mt(e) {
|
|
|
5845
5845
|
};
|
|
5846
5846
|
p.__private__.getLayoutMode = function() {
|
|
5847
5847
|
return qe;
|
|
5848
|
-
}, p.__private__.setDisplayMode = p.setDisplayMode = function(B, Ae,
|
|
5849
|
-
return Re(B), nt(Ae), ut(
|
|
5848
|
+
}, p.__private__.setDisplayMode = p.setDisplayMode = function(B, Ae, $e) {
|
|
5849
|
+
return Re(B), nt(Ae), ut($e), this;
|
|
5850
5850
|
};
|
|
5851
5851
|
var it = { title: "", subject: "", author: "", keywords: "", creator: "" };
|
|
5852
5852
|
p.__private__.getDocumentProperty = function(B) {
|
|
@@ -5864,10 +5864,10 @@ function Mt(e) {
|
|
|
5864
5864
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
5865
5865
|
return it[B] = Ae;
|
|
5866
5866
|
};
|
|
5867
|
-
var wt,
|
|
5867
|
+
var wt, Le, ze, Ke, Bt, pt = {}, Lt = {}, Dt = [], zt = {}, vo = {}, cl = {}, so = {}, $a = null, Ll = 0, Ht = [], al = new Cf(p), Kr = e.hotfixes || [], io = {}, Ua = {}, Ma = [], $t = function B(Ae, $e, Me, Te, je, lt) {
|
|
5868
5868
|
if (!(this instanceof B))
|
|
5869
|
-
return new B(Ae,
|
|
5870
|
-
isNaN(Ae) && (Ae = 1), isNaN(
|
|
5869
|
+
return new B(Ae, $e, Me, Te, je, lt);
|
|
5870
|
+
isNaN(Ae) && (Ae = 1), isNaN($e) && ($e = 0), isNaN(Me) && (Me = 0), isNaN(Te) && (Te = 1), isNaN(je) && (je = 0), isNaN(lt) && (lt = 0), this._matrix = [Ae, $e, Me, Te, je, lt];
|
|
5871
5871
|
};
|
|
5872
5872
|
Object.defineProperty($t.prototype, "sx", { get: function() {
|
|
5873
5873
|
return this._matrix[0];
|
|
@@ -5928,27 +5928,27 @@ function Mt(e) {
|
|
|
5928
5928
|
} }), $t.prototype.join = function(B) {
|
|
5929
5929
|
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(O).join(B);
|
|
5930
5930
|
}, $t.prototype.multiply = function(B) {
|
|
5931
|
-
var Ae = B.sx * this.sx + B.shy * this.shx,
|
|
5932
|
-
return new $t(Ae,
|
|
5931
|
+
var Ae = B.sx * this.sx + B.shy * this.shx, $e = B.sx * this.shy + B.shy * this.sy, Me = B.shx * this.sx + B.sy * this.shx, Te = B.shx * this.shy + B.sy * this.sy, je = B.tx * this.sx + B.ty * this.shx + this.tx, lt = B.tx * this.shy + B.ty * this.sy + this.ty;
|
|
5932
|
+
return new $t(Ae, $e, Me, Te, je, lt);
|
|
5933
5933
|
}, $t.prototype.decompose = function() {
|
|
5934
|
-
var B = this.sx, Ae = this.shy,
|
|
5935
|
-
|
|
5936
|
-
var _t = Math.sqrt(
|
|
5937
|
-
return ft /= _t, B * (Me /= _t) < Ae * (
|
|
5934
|
+
var B = this.sx, Ae = this.shy, $e = this.shx, Me = this.sy, Te = this.tx, je = this.ty, lt = Math.sqrt(B * B + Ae * Ae), ft = (B /= lt) * $e + (Ae /= lt) * Me;
|
|
5935
|
+
$e -= B * ft, Me -= Ae * ft;
|
|
5936
|
+
var _t = Math.sqrt($e * $e + Me * Me);
|
|
5937
|
+
return ft /= _t, B * (Me /= _t) < Ae * ($e /= _t) && (B = -B, Ae = -Ae, ft = -ft, lt = -lt), { scale: new $t(lt, 0, 0, _t, 0, 0), translate: new $t(1, 0, 0, 1, Te, je), rotate: new $t(B, Ae, -Ae, B, 0, 0), skew: new $t(1, 0, ft, 1, 0, 0) };
|
|
5938
5938
|
}, $t.prototype.toString = function(B) {
|
|
5939
5939
|
return this.join(" ");
|
|
5940
5940
|
}, $t.prototype.inversed = function() {
|
|
5941
|
-
var B = this.sx, Ae = this.shy,
|
|
5941
|
+
var B = this.sx, Ae = this.shy, $e = this.shx, Me = this.sy, Te = this.tx, je = this.ty, lt = 1 / (B * Me - Ae * $e), ft = Me * lt, _t = -Ae * lt, Ot = -$e * lt, Wt = B * lt;
|
|
5942
5942
|
return new $t(ft, _t, Ot, Wt, -ft * Te - Ot * je, -_t * Te - Wt * je);
|
|
5943
5943
|
}, $t.prototype.applyToPoint = function(B) {
|
|
5944
|
-
var Ae = B.x * this.sx + B.y * this.shx + this.tx,
|
|
5945
|
-
return new Fn(Ae,
|
|
5944
|
+
var Ae = B.x * this.sx + B.y * this.shx + this.tx, $e = B.x * this.shy + B.y * this.sy + this.ty;
|
|
5945
|
+
return new Fn(Ae, $e);
|
|
5946
5946
|
}, $t.prototype.applyToRectangle = function(B) {
|
|
5947
|
-
var Ae = this.applyToPoint(B),
|
|
5948
|
-
return new Cs(Ae.x, Ae.y,
|
|
5947
|
+
var Ae = this.applyToPoint(B), $e = this.applyToPoint(new Fn(B.x + B.w, B.y + B.h));
|
|
5948
|
+
return new Cs(Ae.x, Ae.y, $e.x - Ae.x, $e.y - Ae.y);
|
|
5949
5949
|
}, $t.prototype.clone = function() {
|
|
5950
|
-
var B = this.sx, Ae = this.shy,
|
|
5951
|
-
return new $t(B, Ae,
|
|
5950
|
+
var B = this.sx, Ae = this.shy, $e = this.shx, Me = this.sy, Te = this.tx, je = this.ty;
|
|
5951
|
+
return new $t(B, Ae, $e, Me, Te, je);
|
|
5952
5952
|
}, p.Matrix = $t;
|
|
5953
5953
|
var ia = p.matrixMult = function(B, Ae) {
|
|
5954
5954
|
return Ae.multiply(B);
|
|
@@ -5956,8 +5956,8 @@ function Mt(e) {
|
|
|
5956
5956
|
p.unitMatrix = p.identityMatrix = Qa;
|
|
5957
5957
|
var $o = function(B, Ae) {
|
|
5958
5958
|
if (!vo[B]) {
|
|
5959
|
-
var
|
|
5960
|
-
Ae.id =
|
|
5959
|
+
var $e = (Ae instanceof an ? "Sh" : "P") + (Object.keys(zt).length + 1).toString(10);
|
|
5960
|
+
Ae.id = $e, vo[B] = $e, zt[$e] = Ae, al.publish("addPattern", Ae);
|
|
5961
5961
|
}
|
|
5962
5962
|
};
|
|
5963
5963
|
p.ShadingPattern = an, p.TilingPattern = ts, p.addShadingPattern = function(B, Ae) {
|
|
@@ -5985,8 +5985,8 @@ function Mt(e) {
|
|
|
5985
5985
|
if (Ae.length !== 2 || Ae[1] !== "g" && Ae[1] !== "G")
|
|
5986
5986
|
Ae.length === 5 && (Ae[4] === "k" || Ae[4] === "K") && (Ae = [(1 - Ae[0]) * (1 - Ae[3]), (1 - Ae[1]) * (1 - Ae[3]), (1 - Ae[2]) * (1 - Ae[3]), "r"]);
|
|
5987
5987
|
else {
|
|
5988
|
-
var
|
|
5989
|
-
Ae = [
|
|
5988
|
+
var $e = parseFloat(Ae[0]);
|
|
5989
|
+
Ae = [$e, $e, $e, "r"];
|
|
5990
5990
|
}
|
|
5991
5991
|
for (var Me = "#", Te = 0; Te < 3; Te++)
|
|
5992
5992
|
Me += ("0" + Math.floor(255 * parseFloat(Ae[Te])).toString(16)).slice(-2);
|
|
@@ -5994,68 +5994,68 @@ function Mt(e) {
|
|
|
5994
5994
|
}, ca = p.__private__.encodeColorString = function(B) {
|
|
5995
5995
|
var Ae;
|
|
5996
5996
|
typeof B == "string" && (B = { ch1: B });
|
|
5997
|
-
var
|
|
5998
|
-
if (typeof
|
|
5999
|
-
var ft = new Zv(
|
|
5997
|
+
var $e = B.ch1, Me = B.ch2, Te = B.ch3, je = B.ch4, lt = B.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
5998
|
+
if (typeof $e == "string" && $e.charAt(0) !== "#") {
|
|
5999
|
+
var ft = new Zv($e);
|
|
6000
6000
|
if (ft.ok)
|
|
6001
|
-
|
|
6002
|
-
else if (!/^\d*\.?\d*$/.test(
|
|
6003
|
-
throw new Error('Invalid color "' +
|
|
6001
|
+
$e = ft.toHex();
|
|
6002
|
+
else if (!/^\d*\.?\d*$/.test($e))
|
|
6003
|
+
throw new Error('Invalid color "' + $e + '" passed to jsPDF.encodeColorString.');
|
|
6004
6004
|
}
|
|
6005
|
-
if (typeof
|
|
6006
|
-
var _t = parseInt(
|
|
6007
|
-
|
|
6005
|
+
if (typeof $e == "string" && /^#[0-9A-Fa-f]{3}$/.test($e) && ($e = "#" + $e[1] + $e[1] + $e[2] + $e[2] + $e[3] + $e[3]), typeof $e == "string" && /^#[0-9A-Fa-f]{6}$/.test($e)) {
|
|
6006
|
+
var _t = parseInt($e.substr(1), 16);
|
|
6007
|
+
$e = _t >> 16 & 255, Me = _t >> 8 & 255, Te = 255 & _t;
|
|
6008
6008
|
}
|
|
6009
|
-
if (Me === void 0 || je === void 0 &&
|
|
6010
|
-
if (typeof
|
|
6011
|
-
Ae =
|
|
6009
|
+
if (Me === void 0 || je === void 0 && $e === Me && Me === Te)
|
|
6010
|
+
if (typeof $e == "string")
|
|
6011
|
+
Ae = $e + " " + lt[0];
|
|
6012
6012
|
else
|
|
6013
6013
|
switch (B.precision) {
|
|
6014
6014
|
case 2:
|
|
6015
|
-
Ae = be(
|
|
6015
|
+
Ae = be($e / 255) + " " + lt[0];
|
|
6016
6016
|
break;
|
|
6017
6017
|
case 3:
|
|
6018
6018
|
default:
|
|
6019
|
-
Ae = N(
|
|
6019
|
+
Ae = N($e / 255) + " " + lt[0];
|
|
6020
6020
|
}
|
|
6021
6021
|
else if (je === void 0 || Al(je) === "object") {
|
|
6022
6022
|
if (je && !isNaN(je.a) && je.a === 0)
|
|
6023
6023
|
return Ae = ["1.", "1.", "1.", lt[1]].join(" ");
|
|
6024
|
-
if (typeof
|
|
6025
|
-
Ae = [
|
|
6024
|
+
if (typeof $e == "string")
|
|
6025
|
+
Ae = [$e, Me, Te, lt[1]].join(" ");
|
|
6026
6026
|
else
|
|
6027
6027
|
switch (B.precision) {
|
|
6028
6028
|
case 2:
|
|
6029
|
-
Ae = [be(
|
|
6029
|
+
Ae = [be($e / 255), be(Me / 255), be(Te / 255), lt[1]].join(" ");
|
|
6030
6030
|
break;
|
|
6031
6031
|
default:
|
|
6032
6032
|
case 3:
|
|
6033
|
-
Ae = [N(
|
|
6033
|
+
Ae = [N($e / 255), N(Me / 255), N(Te / 255), lt[1]].join(" ");
|
|
6034
6034
|
}
|
|
6035
|
-
} else if (typeof
|
|
6036
|
-
Ae = [
|
|
6035
|
+
} else if (typeof $e == "string")
|
|
6036
|
+
Ae = [$e, Me, Te, je, lt[2]].join(" ");
|
|
6037
6037
|
else
|
|
6038
6038
|
switch (B.precision) {
|
|
6039
6039
|
case 2:
|
|
6040
|
-
Ae = [be(
|
|
6040
|
+
Ae = [be($e), be(Me), be(Te), be(je), lt[2]].join(" ");
|
|
6041
6041
|
break;
|
|
6042
6042
|
case 3:
|
|
6043
6043
|
default:
|
|
6044
|
-
Ae = [N(
|
|
6044
|
+
Ae = [N($e), N(Me), N(Te), N(je), lt[2]].join(" ");
|
|
6045
6045
|
}
|
|
6046
6046
|
return Ae;
|
|
6047
6047
|
}, Ea = p.__private__.getFilters = function() {
|
|
6048
6048
|
return s;
|
|
6049
6049
|
}, Yo = p.__private__.putStream = function(B) {
|
|
6050
|
-
var Ae = (B = B || {}).data || "",
|
|
6050
|
+
var Ae = (B = B || {}).data || "", $e = B.filters || Ea(), Me = B.alreadyAppliedFilters || [], Te = B.addLength1 || !1, je = Ae.length, lt = B.objectId, ft = function(yo) {
|
|
6051
6051
|
return yo;
|
|
6052
6052
|
};
|
|
6053
6053
|
if (b !== null && lt === void 0)
|
|
6054
6054
|
throw new Error("ObjectId must be passed to putStream for file encryption");
|
|
6055
6055
|
b !== null && (ft = go.encryptor(lt, 0));
|
|
6056
6056
|
var _t = {};
|
|
6057
|
-
|
|
6058
|
-
var Ot = B.additionalKeyValues || [], Wt = (_t = Mt.API.processDataByFilters !== void 0 ? Mt.API.processDataByFilters(Ae,
|
|
6057
|
+
$e === !0 && ($e = ["FlateEncode"]);
|
|
6058
|
+
var Ot = B.additionalKeyValues || [], Wt = (_t = Mt.API.processDataByFilters !== void 0 ? Mt.API.processDataByFilters(Ae, $e) : { data: Ae, reverseChain: [] }).reverseChain + (Array.isArray(Me) ? Me.join(" ") : Me.toString());
|
|
6059
6059
|
if (_t.data.length !== 0 && (Ot.push({ key: "Length", value: _t.data.length }), Te === !0 && Ot.push({ key: "Length1", value: je })), Wt.length != 0)
|
|
6060
6060
|
if (Wt.split("/").length - 1 == 1)
|
|
6061
6061
|
Ot.push({ key: "Filter", value: Wt });
|
|
@@ -6073,22 +6073,22 @@ function Mt(e) {
|
|
|
6073
6073
|
H("/" + Ot[Kl].key + " " + Ot[Kl].value);
|
|
6074
6074
|
H(">>"), _t.data.length !== 0 && (H("stream"), H(ft(_t.data)), H("endstream"));
|
|
6075
6075
|
}, Ia = p.__private__.putPage = function(B) {
|
|
6076
|
-
var Ae = B.number,
|
|
6077
|
-
Po(Me, !0), H("<</Type /Page"), H("/Parent " + B.rootDictionaryObjId + " 0 R"), H("/Resources " + B.resourceDictionaryObjId + " 0 R"), H("/MediaBox [" + parseFloat(O(B.mediaBox.bottomLeftX)) + " " + parseFloat(O(B.mediaBox.bottomLeftY)) + " " + O(B.mediaBox.topRightX) + " " + O(B.mediaBox.topRightY) + "]"), B.cropBox !== null && H("/CropBox [" + O(B.cropBox.bottomLeftX) + " " + O(B.cropBox.bottomLeftY) + " " + O(B.cropBox.topRightX) + " " + O(B.cropBox.topRightY) + "]"), B.bleedBox !== null && H("/BleedBox [" + O(B.bleedBox.bottomLeftX) + " " + O(B.bleedBox.bottomLeftY) + " " + O(B.bleedBox.topRightX) + " " + O(B.bleedBox.topRightY) + "]"), B.trimBox !== null && H("/TrimBox [" + O(B.trimBox.bottomLeftX) + " " + O(B.trimBox.bottomLeftY) + " " + O(B.trimBox.topRightX) + " " + O(B.trimBox.topRightY) + "]"), B.artBox !== null && H("/ArtBox [" + O(B.artBox.bottomLeftX) + " " + O(B.artBox.bottomLeftY) + " " + O(B.artBox.topRightX) + " " + O(B.artBox.topRightY) + "]"), typeof B.userUnit == "number" && B.userUnit !== 1 && H("/UserUnit " + B.userUnit), al.publish("putPage", { objId: Me, pageContext: Ht[Ae], pageNumber: Ae, page:
|
|
6078
|
-
var je =
|
|
6076
|
+
var Ae = B.number, $e = B.data, Me = B.objId, Te = B.contentsObjId;
|
|
6077
|
+
Po(Me, !0), H("<</Type /Page"), H("/Parent " + B.rootDictionaryObjId + " 0 R"), H("/Resources " + B.resourceDictionaryObjId + " 0 R"), H("/MediaBox [" + parseFloat(O(B.mediaBox.bottomLeftX)) + " " + parseFloat(O(B.mediaBox.bottomLeftY)) + " " + O(B.mediaBox.topRightX) + " " + O(B.mediaBox.topRightY) + "]"), B.cropBox !== null && H("/CropBox [" + O(B.cropBox.bottomLeftX) + " " + O(B.cropBox.bottomLeftY) + " " + O(B.cropBox.topRightX) + " " + O(B.cropBox.topRightY) + "]"), B.bleedBox !== null && H("/BleedBox [" + O(B.bleedBox.bottomLeftX) + " " + O(B.bleedBox.bottomLeftY) + " " + O(B.bleedBox.topRightX) + " " + O(B.bleedBox.topRightY) + "]"), B.trimBox !== null && H("/TrimBox [" + O(B.trimBox.bottomLeftX) + " " + O(B.trimBox.bottomLeftY) + " " + O(B.trimBox.topRightX) + " " + O(B.trimBox.topRightY) + "]"), B.artBox !== null && H("/ArtBox [" + O(B.artBox.bottomLeftX) + " " + O(B.artBox.bottomLeftY) + " " + O(B.artBox.topRightX) + " " + O(B.artBox.topRightY) + "]"), typeof B.userUnit == "number" && B.userUnit !== 1 && H("/UserUnit " + B.userUnit), al.publish("putPage", { objId: Me, pageContext: Ht[Ae], pageNumber: Ae, page: $e }), H("/Contents " + Te + " 0 R"), H(">>"), H("endobj");
|
|
6078
|
+
var je = $e.join(`
|
|
6079
6079
|
`);
|
|
6080
6080
|
return w === x.ADVANCED && (je += `
|
|
6081
6081
|
Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
6082
6082
|
}, jr = p.__private__.putPages = function() {
|
|
6083
|
-
var B, Ae,
|
|
6083
|
+
var B, Ae, $e = [];
|
|
6084
6084
|
for (B = 1; B <= Ll; B++)
|
|
6085
6085
|
Ht[B].objId = Wl(), Ht[B].contentsObjId = Wl();
|
|
6086
6086
|
for (B = 1; B <= Ll; B++)
|
|
6087
|
-
|
|
6087
|
+
$e.push(Ia({ number: B, data: ce[B], objId: Ht[B].objId, contentsObjId: Ht[B].contentsObjId, mediaBox: Ht[B].mediaBox, cropBox: Ht[B].cropBox, bleedBox: Ht[B].bleedBox, trimBox: Ht[B].trimBox, artBox: Ht[B].artBox, userUnit: Ht[B].userUnit, rootDictionaryObjId: Ga, resourceDictionaryObjId: Aa }));
|
|
6088
6088
|
Po(Ga, !0), H("<</Type /Pages");
|
|
6089
6089
|
var Me = "/Kids [";
|
|
6090
6090
|
for (Ae = 0; Ae < Ll; Ae++)
|
|
6091
|
-
Me +=
|
|
6091
|
+
Me += $e[Ae] + " 0 R ";
|
|
6092
6092
|
H(Me + "]"), H("/Count " + Ll), H(">>"), H("endobj"), al.publish("postPutPages");
|
|
6093
6093
|
}, vn = function(B) {
|
|
6094
6094
|
al.publish("putFont", { font: B, out: H, newObject: Yl, putStream: Yo }), B.isAlreadyPutted !== !0 && (B.objectNumber = Yl(), H("<<"), H("/Type /Font"), H("/BaseFont /" + Zn(B.postScriptName)), H("/Subtype /Type1"), typeof B.encoding == "string" && H("/Encoding /" + B.encoding), H("/FirstChar 32"), H("/LastChar 255"), H(">>"), H("endobj"));
|
|
@@ -6099,16 +6099,16 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6099
6099
|
B.objectNumber = Yl();
|
|
6100
6100
|
var Ae = [];
|
|
6101
6101
|
Ae.push({ key: "Type", value: "/XObject" }), Ae.push({ key: "Subtype", value: "/Form" }), Ae.push({ key: "BBox", value: "[" + [O(B.x), O(B.y), O(B.x + B.width), O(B.y + B.height)].join(" ") + "]" }), Ae.push({ key: "Matrix", value: "[" + B.matrix.toString() + "]" });
|
|
6102
|
-
var
|
|
6102
|
+
var $e = B.pages[1].join(`
|
|
6103
6103
|
`);
|
|
6104
|
-
Yo({ data:
|
|
6104
|
+
Yo({ data: $e, additionalKeyValues: Ae, objectId: B.objectNumber }), H("endobj");
|
|
6105
6105
|
}, pn = function() {
|
|
6106
6106
|
for (var B in io)
|
|
6107
6107
|
io.hasOwnProperty(B) && yn(io[B]);
|
|
6108
6108
|
}, yi = function(B, Ae) {
|
|
6109
|
-
var
|
|
6110
|
-
for (
|
|
6111
|
-
Me.push(
|
|
6109
|
+
var $e, Me = [], Te = 1 / (Ae - 1);
|
|
6110
|
+
for ($e = 0; $e < 1; $e += Te)
|
|
6111
|
+
Me.push($e);
|
|
6112
6112
|
if (Me.push(1), B[0].offset != 0) {
|
|
6113
6113
|
var je = { offset: 0, color: B[0].color };
|
|
6114
6114
|
B.unshift(je);
|
|
@@ -6118,23 +6118,23 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6118
6118
|
B.push(lt);
|
|
6119
6119
|
}
|
|
6120
6120
|
for (var ft = "", _t = 0, Ot = 0; Ot < Me.length; Ot++) {
|
|
6121
|
-
for (
|
|
6121
|
+
for ($e = Me[Ot]; $e > B[_t + 1].offset; )
|
|
6122
6122
|
_t++;
|
|
6123
|
-
var Wt = B[_t].offset, Yt = (
|
|
6123
|
+
var Wt = B[_t].offset, Yt = ($e - Wt) / (B[_t + 1].offset - Wt), Ul = B[_t].color, Ql = B[_t + 1].color;
|
|
6124
6124
|
ft += G(Math.round((1 - Yt) * Ul[0] + Yt * Ql[0]).toString(16)) + G(Math.round((1 - Yt) * Ul[1] + Yt * Ql[1]).toString(16)) + G(Math.round((1 - Yt) * Ul[2] + Yt * Ql[2]).toString(16));
|
|
6125
6125
|
}
|
|
6126
6126
|
return ft.trim();
|
|
6127
6127
|
}, gu = function(B, Ae) {
|
|
6128
6128
|
Ae || (Ae = 21);
|
|
6129
|
-
var
|
|
6130
|
-
Te.push({ key: "FunctionType", value: "0" }), Te.push({ key: "Domain", value: "[0.0 1.0]" }), Te.push({ key: "Size", value: "[" + Ae + "]" }), Te.push({ key: "BitsPerSample", value: "8" }), Te.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Te.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Yo({ data: Me, additionalKeyValues: Te, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId:
|
|
6129
|
+
var $e = Yl(), Me = yi(B.colors, Ae), Te = [];
|
|
6130
|
+
Te.push({ key: "FunctionType", value: "0" }), Te.push({ key: "Domain", value: "[0.0 1.0]" }), Te.push({ key: "Size", value: "[" + Ae + "]" }), Te.push({ key: "BitsPerSample", value: "8" }), Te.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Te.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), Yo({ data: Me, additionalKeyValues: Te, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: $e }), H("endobj"), B.objectNumber = Yl(), H("<< /ShadingType " + B.type), H("/ColorSpace /DeviceRGB");
|
|
6131
6131
|
var je = "/Coords [" + O(parseFloat(B.coords[0])) + " " + O(parseFloat(B.coords[1])) + " ";
|
|
6132
|
-
B.type === 2 ? je += O(parseFloat(B.coords[2])) + " " + O(parseFloat(B.coords[3])) : je += O(parseFloat(B.coords[2])) + " " + O(parseFloat(B.coords[3])) + " " + O(parseFloat(B.coords[4])) + " " + O(parseFloat(B.coords[5])), H(je += "]"), B.matrix && H("/Matrix [" + B.matrix.toString() + "]"), H("/Function " +
|
|
6132
|
+
B.type === 2 ? je += O(parseFloat(B.coords[2])) + " " + O(parseFloat(B.coords[3])) : je += O(parseFloat(B.coords[2])) + " " + O(parseFloat(B.coords[3])) + " " + O(parseFloat(B.coords[4])) + " " + O(parseFloat(B.coords[5])), H(je += "]"), B.matrix && H("/Matrix [" + B.matrix.toString() + "]"), H("/Function " + $e + " 0 R"), H("/Extend [true true]"), H(">>"), H("endobj");
|
|
6133
6133
|
}, yu = function(B, Ae) {
|
|
6134
|
-
var
|
|
6135
|
-
Ae.push({ resourcesOid:
|
|
6134
|
+
var $e = Wl(), Me = Yl();
|
|
6135
|
+
Ae.push({ resourcesOid: $e, objectOid: Me }), B.objectNumber = Me;
|
|
6136
6136
|
var Te = [];
|
|
6137
|
-
Te.push({ key: "Type", value: "/Pattern" }), Te.push({ key: "PatternType", value: "1" }), Te.push({ key: "PaintType", value: "1" }), Te.push({ key: "TilingType", value: "1" }), Te.push({ key: "BBox", value: "[" + B.boundingBox.map(O).join(" ") + "]" }), Te.push({ key: "XStep", value: O(B.xStep) }), Te.push({ key: "YStep", value: O(B.yStep) }), Te.push({ key: "Resources", value:
|
|
6137
|
+
Te.push({ key: "Type", value: "/Pattern" }), Te.push({ key: "PatternType", value: "1" }), Te.push({ key: "PaintType", value: "1" }), Te.push({ key: "TilingType", value: "1" }), Te.push({ key: "BBox", value: "[" + B.boundingBox.map(O).join(" ") + "]" }), Te.push({ key: "XStep", value: O(B.xStep) }), Te.push({ key: "YStep", value: O(B.yStep) }), Te.push({ key: "Resources", value: $e + " 0 R" }), B.matrix && Te.push({ key: "Matrix", value: "[" + B.matrix.toString() + "]" }), Yo({ data: B.stream, additionalKeyValues: Te, objectId: B.objectNumber }), H("endobj");
|
|
6138
6138
|
}, bn = function(B) {
|
|
6139
6139
|
var Ae;
|
|
6140
6140
|
for (Ae in zt)
|
|
@@ -6196,11 +6196,11 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6196
6196
|
al.publish("postPutAdditionalObjects");
|
|
6197
6197
|
}, Ci = function(B) {
|
|
6198
6198
|
Lt[B.fontName] = Lt[B.fontName] || {}, Lt[B.fontName][B.fontStyle] = B.id;
|
|
6199
|
-
}, hs = function(B, Ae,
|
|
6200
|
-
var je = { id: "F" + (Object.keys(pt).length + 1).toString(10), postScriptName: B, fontName: Ae, fontStyle:
|
|
6199
|
+
}, hs = function(B, Ae, $e, Me, Te) {
|
|
6200
|
+
var je = { id: "F" + (Object.keys(pt).length + 1).toString(10), postScriptName: B, fontName: Ae, fontStyle: $e, encoding: Me, isStandardFont: Te || !1, metadata: {} };
|
|
6201
6201
|
return al.publish("addFont", { font: je, instance: this }), pt[je.id] = je, Ci(je), je.id;
|
|
6202
6202
|
}, Cu = function(B) {
|
|
6203
|
-
for (var Ae = 0,
|
|
6203
|
+
for (var Ae = 0, $e = Q.length; Ae < $e; Ae++) {
|
|
6204
6204
|
var Me = hs.call(this, B[Ae][0], B[Ae][1], B[Ae][2], Q[Ae][3], !0);
|
|
6205
6205
|
d === !1 && (m[Me] = !0);
|
|
6206
6206
|
var Te = B[Ae][0].split("-");
|
|
@@ -6214,27 +6214,27 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6214
6214
|
} catch (Me) {
|
|
6215
6215
|
var Ae = Me.stack || "";
|
|
6216
6216
|
~Ae.indexOf(" at ") && (Ae = Ae.split(" at ")[1]);
|
|
6217
|
-
var
|
|
6217
|
+
var $e = "Error in function " + Ae.split(`
|
|
6218
6218
|
`)[0].split("<")[0] + ": " + Me.message;
|
|
6219
6219
|
if (!Et.console)
|
|
6220
|
-
throw new Error(
|
|
6221
|
-
Et.console.error(
|
|
6220
|
+
throw new Error($e);
|
|
6221
|
+
Et.console.error($e, Me), Et.alert && alert($e);
|
|
6222
6222
|
}
|
|
6223
6223
|
}, B.foo.bar = B, B.foo;
|
|
6224
6224
|
}, wn = function(B, Ae) {
|
|
6225
|
-
var
|
|
6225
|
+
var $e, Me, Te, je, lt, ft, _t, Ot, Wt;
|
|
6226
6226
|
if (Te = (Ae = Ae || {}).sourceEncoding || "Unicode", lt = Ae.outputEncoding, (Ae.autoencode || lt) && pt[wt].metadata && pt[wt].metadata[Te] && pt[wt].metadata[Te].encoding && (je = pt[wt].metadata[Te].encoding, !lt && pt[wt].encoding && (lt = pt[wt].encoding), !lt && je.codePages && (lt = je.codePages[0]), typeof lt == "string" && (lt = je[lt]), lt)) {
|
|
6227
|
-
for (_t = !1, ft = [],
|
|
6228
|
-
(Ot = lt[B.charCodeAt(
|
|
6227
|
+
for (_t = !1, ft = [], $e = 0, Me = B.length; $e < Me; $e++)
|
|
6228
|
+
(Ot = lt[B.charCodeAt($e)]) ? ft.push(String.fromCharCode(Ot)) : ft.push(B[$e]), ft[$e].charCodeAt(0) >> 8 && (_t = !0);
|
|
6229
6229
|
B = ft.join("");
|
|
6230
6230
|
}
|
|
6231
|
-
for (
|
|
6232
|
-
B.charCodeAt(
|
|
6231
|
+
for ($e = B.length; _t === void 0 && $e !== 0; )
|
|
6232
|
+
B.charCodeAt($e - 1) >> 8 && (_t = !0), $e--;
|
|
6233
6233
|
if (!_t)
|
|
6234
6234
|
return B;
|
|
6235
|
-
for (ft = Ae.noBOM ? [] : [254, 255],
|
|
6236
|
-
if ((Wt = (Ot = B.charCodeAt(
|
|
6237
|
-
throw new Error("Character at position " +
|
|
6235
|
+
for (ft = Ae.noBOM ? [] : [254, 255], $e = 0, Me = B.length; $e < Me; $e++) {
|
|
6236
|
+
if ((Wt = (Ot = B.charCodeAt($e)) >> 8) >> 8)
|
|
6237
|
+
throw new Error("Character at position " + $e + " of string '" + B + "' exceeds 16bits. Cannot be encoded into UCS-2 BE");
|
|
6238
6238
|
ft.push(Wt), ft.push(Ot - (Wt << 8));
|
|
6239
6239
|
}
|
|
6240
6240
|
return String.fromCharCode.apply(void 0, ft);
|
|
@@ -6243,8 +6243,8 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6243
6243
|
}, fs = p.__private__.beginPage = function(B) {
|
|
6244
6244
|
ce[++Ll] = [], Ht[Ll] = { objId: 0, contentsObjId: 0, userUnit: Number(i), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(B[0]), topRightY: Number(B[1]) } }, ki(Ll), ue(ce[q]);
|
|
6245
6245
|
}, xi = function(B, Ae) {
|
|
6246
|
-
var
|
|
6247
|
-
switch (a = Ae || a, typeof B == "string" && (
|
|
6246
|
+
var $e, Me, Te;
|
|
6247
|
+
switch (a = Ae || a, typeof B == "string" && ($e = k(B.toLowerCase()), Array.isArray($e) && (Me = $e[0], Te = $e[1])), Array.isArray(B) && (Me = B[0] * Le, Te = B[1] * Le), isNaN(Me) && (Me = o[0], Te = o[1]), (Me > 14400 || Te > 14400) && (gl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), Me = Math.min(14400, Me), Te = Math.min(14400, Te)), o = [Me, Te], a.substr(0, 1)) {
|
|
6248
6248
|
case "l":
|
|
6249
6249
|
Te > Me && (o = [Te, Me]);
|
|
6250
6250
|
break;
|
|
@@ -6258,15 +6258,15 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6258
6258
|
B > 0 && B <= Ll && (q = B);
|
|
6259
6259
|
}, ku = p.__private__.getNumberOfPages = p.getNumberOfPages = function() {
|
|
6260
6260
|
return ce.length - 1;
|
|
6261
|
-
}, Bi = function(B, Ae,
|
|
6261
|
+
}, Bi = function(B, Ae, $e) {
|
|
6262
6262
|
var Me, Te = void 0;
|
|
6263
|
-
return
|
|
6263
|
+
return $e = $e || {}, B = B !== void 0 ? B : pt[wt].fontName, Ae = Ae !== void 0 ? Ae : pt[wt].fontStyle, Me = B.toLowerCase(), Lt[Me] !== void 0 && Lt[Me][Ae] !== void 0 ? Te = Lt[Me][Ae] : Lt[B] !== void 0 && Lt[B][Ae] !== void 0 ? Te = Lt[B][Ae] : $e.disableWarning === !1 && gl.warn("Unable to look up font label for font '" + B + "', '" + Ae + "'. Refer to getFontList() for available fonts."), Te || $e.noFallback || (Te = Lt.times[Ae]) == null && (Te = Lt.times.normal), Te;
|
|
6264
6264
|
}, Bu = p.__private__.putInfo = function() {
|
|
6265
6265
|
var B = Yl(), Ae = function(Me) {
|
|
6266
6266
|
return Me;
|
|
6267
6267
|
};
|
|
6268
|
-
for (var
|
|
6269
|
-
it.hasOwnProperty(
|
|
6268
|
+
for (var $e in b !== null && (Ae = go.encryptor(B, 0)), H("<<"), H("/Producer (" + Uo(Ae("jsPDF " + Mt.version)) + ")"), it)
|
|
6269
|
+
it.hasOwnProperty($e) && it[$e] && H("/" + $e.substr(0, 1).toUpperCase() + $e.substr(1) + " (" + Uo(Ae(it[$e])) + ")");
|
|
6270
6270
|
H("/CreationDate (" + Uo(Ae(me)) + ")"), H(">>"), H("endobj");
|
|
6271
6271
|
}, vs = p.__private__.putCatalog = function(B) {
|
|
6272
6272
|
var Ae = (B = B || {}).rootDictionaryObjId || Ga;
|
|
@@ -6284,8 +6284,8 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6284
6284
|
H("/OpenAction [3 0 R /XYZ null null 1]");
|
|
6285
6285
|
break;
|
|
6286
6286
|
default:
|
|
6287
|
-
var
|
|
6288
|
-
|
|
6287
|
+
var $e = "" + de;
|
|
6288
|
+
$e.substr($e.length - 1) === "%" && (de = parseInt(de) / 100), typeof de == "number" && H("/OpenAction [3 0 R /XYZ null null " + be(de) + "]");
|
|
6289
6289
|
}
|
|
6290
6290
|
switch (qe || (qe = "continuous"), qe) {
|
|
6291
6291
|
case "continuous":
|
|
@@ -6337,13 +6337,13 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6337
6337
|
break;
|
|
6338
6338
|
case "datauristring":
|
|
6339
6339
|
case "dataurlstring":
|
|
6340
|
-
var
|
|
6340
|
+
var $e = "", Me = Xa();
|
|
6341
6341
|
try {
|
|
6342
|
-
|
|
6342
|
+
$e = dd(Me);
|
|
6343
6343
|
} catch {
|
|
6344
|
-
|
|
6344
|
+
$e = dd(unescape(encodeURIComponent(Me)));
|
|
6345
6345
|
}
|
|
6346
|
-
return "data:application/pdf;filename=" + Ae.filename + ";base64," +
|
|
6346
|
+
return "data:application/pdf;filename=" + Ae.filename + ";base64," + $e;
|
|
6347
6347
|
case "pdfobjectnewwindow":
|
|
6348
6348
|
if (Object.prototype.toString.call(Et) === "[object Window]") {
|
|
6349
6349
|
var Te = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", je = ' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';
|
|
@@ -6383,31 +6383,31 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6383
6383
|
};
|
|
6384
6384
|
switch (r) {
|
|
6385
6385
|
case "pt":
|
|
6386
|
-
|
|
6386
|
+
Le = 1;
|
|
6387
6387
|
break;
|
|
6388
6388
|
case "mm":
|
|
6389
|
-
|
|
6389
|
+
Le = 72 / 25.4;
|
|
6390
6390
|
break;
|
|
6391
6391
|
case "cm":
|
|
6392
|
-
|
|
6392
|
+
Le = 72 / 2.54;
|
|
6393
6393
|
break;
|
|
6394
6394
|
case "in":
|
|
6395
|
-
|
|
6395
|
+
Le = 72;
|
|
6396
6396
|
break;
|
|
6397
6397
|
case "px":
|
|
6398
|
-
|
|
6398
|
+
Le = _i("px_scaling") == 1 ? 0.75 : 96 / 72;
|
|
6399
6399
|
break;
|
|
6400
6400
|
case "pc":
|
|
6401
6401
|
case "em":
|
|
6402
|
-
|
|
6402
|
+
Le = 12;
|
|
6403
6403
|
break;
|
|
6404
6404
|
case "ex":
|
|
6405
|
-
|
|
6405
|
+
Le = 6;
|
|
6406
6406
|
break;
|
|
6407
6407
|
default:
|
|
6408
6408
|
if (typeof r != "number")
|
|
6409
6409
|
throw new Error("Invalid unit: " + r);
|
|
6410
|
-
|
|
6410
|
+
Le = r;
|
|
6411
6411
|
}
|
|
6412
6412
|
var go = null;
|
|
6413
6413
|
xe(), E();
|
|
@@ -6436,28 +6436,28 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6436
6436
|
}, p.insertPage = function(B) {
|
|
6437
6437
|
return this.addPage(), this.movePage(q, B), this;
|
|
6438
6438
|
}, p.movePage = function(B, Ae) {
|
|
6439
|
-
var
|
|
6439
|
+
var $e, Me;
|
|
6440
6440
|
if (B > Ae) {
|
|
6441
|
-
|
|
6441
|
+
$e = ce[B], Me = Ht[B];
|
|
6442
6442
|
for (var Te = B; Te > Ae; Te--)
|
|
6443
6443
|
ce[Te] = ce[Te - 1], Ht[Te] = Ht[Te - 1];
|
|
6444
|
-
ce[Ae] =
|
|
6444
|
+
ce[Ae] = $e, Ht[Ae] = Me, this.setPage(Ae);
|
|
6445
6445
|
} else if (B < Ae) {
|
|
6446
|
-
|
|
6446
|
+
$e = ce[B], Me = Ht[B];
|
|
6447
6447
|
for (var je = B; je < Ae; je++)
|
|
6448
6448
|
ce[je] = ce[je + 1], Ht[je] = Ht[je + 1];
|
|
6449
|
-
ce[Ae] =
|
|
6449
|
+
ce[Ae] = $e, Ht[Ae] = Me, this.setPage(Ae);
|
|
6450
6450
|
}
|
|
6451
6451
|
return this;
|
|
6452
6452
|
}, p.deletePage = function() {
|
|
6453
6453
|
return xu.apply(this, arguments), this;
|
|
6454
|
-
}, p.__private__.text = p.text = function(B, Ae,
|
|
6454
|
+
}, p.__private__.text = p.text = function(B, Ae, $e, Me, Te) {
|
|
6455
6455
|
var je, lt, ft, _t, Ot, Wt, Yt, Ul, Ql, Kl = (Me = Me || {}).scope || this;
|
|
6456
|
-
if (typeof B == "number" && typeof Ae == "number" && (typeof
|
|
6457
|
-
var yo =
|
|
6458
|
-
|
|
6456
|
+
if (typeof B == "number" && typeof Ae == "number" && (typeof $e == "string" || Array.isArray($e))) {
|
|
6457
|
+
var yo = $e;
|
|
6458
|
+
$e = Ae, Ae = B, B = yo;
|
|
6459
6459
|
}
|
|
6460
|
-
if (arguments[3] instanceof $t ? (z("The transform parameter of text() with a Matrix value"), Ql = Te) : (ft = arguments[4], _t = arguments[5], Al(Yt = arguments[3]) === "object" && Yt !== null || (typeof ft == "string" && (_t = ft, ft = null), typeof Yt == "string" && (_t = Yt, Yt = null), typeof Yt == "number" && (ft = Yt, Yt = null), Me = { flags: Yt, angle: ft, align: _t })), isNaN(Ae) || isNaN(
|
|
6460
|
+
if (arguments[3] instanceof $t ? (z("The transform parameter of text() with a Matrix value"), Ql = Te) : (ft = arguments[4], _t = arguments[5], Al(Yt = arguments[3]) === "object" && Yt !== null || (typeof ft == "string" && (_t = ft, ft = null), typeof Yt == "string" && (_t = Yt, Yt = null), typeof Yt == "number" && (ft = Yt, Yt = null), Me = { flags: Yt, angle: ft, align: _t })), isNaN(Ae) || isNaN($e) || B == null)
|
|
6461
6461
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
6462
6462
|
if (B.length === 0)
|
|
6463
6463
|
return Kl;
|
|
@@ -6497,20 +6497,20 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6497
6497
|
var Un = _ / Kl.internal.scaleFactor, Mn = Un * (zo - 1);
|
|
6498
6498
|
switch (Me.baseline) {
|
|
6499
6499
|
case "bottom":
|
|
6500
|
-
|
|
6500
|
+
$e -= Mn;
|
|
6501
6501
|
break;
|
|
6502
6502
|
case "top":
|
|
6503
|
-
|
|
6503
|
+
$e += Un - Mn;
|
|
6504
6504
|
break;
|
|
6505
6505
|
case "hanging":
|
|
6506
|
-
|
|
6506
|
+
$e += Un - 2 * Mn;
|
|
6507
6507
|
break;
|
|
6508
6508
|
case "middle":
|
|
6509
|
-
|
|
6509
|
+
$e += Un / 2 - Mn;
|
|
6510
6510
|
}
|
|
6511
6511
|
if ((Wt = Me.maxWidth || 0) > 0 && (typeof B == "string" ? B = Kl.splitTextToSize(B, Wt) : Object.prototype.toString.call(B) === "[object Array]" && (B = B.reduce(function(ml, wl) {
|
|
6512
6512
|
return ml.concat(Kl.splitTextToSize(wl, Wt));
|
|
6513
|
-
}, []))), je = { text: B, x: Ae, y:
|
|
6513
|
+
}, []))), je = { text: B, x: Ae, y: $e, options: Me, mutex: { pdfEscape: Uo, activeFontKey: wt, fonts: pt, activeFontSize: _ } }, al.publish("preProcessText", je), B = je.text, ft = (Me = je.options).angle, !(Ql instanceof $t) && ft && typeof ft == "number") {
|
|
6514
6514
|
ft *= Math.PI / 180, Me.rotationDirection === 0 && (ft = -ft), w === x.ADVANCED && (ft = -ft);
|
|
6515
6515
|
var Qn = Math.cos(ft), $s = Math.sin(ft);
|
|
6516
6516
|
Ql = new $t(Qn, $s, -$s, Qn, 0, 0);
|
|
@@ -6571,11 +6571,11 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6571
6571
|
if (_t === "right") {
|
|
6572
6572
|
Ae -= va[0], B = [], Mo = lt.length;
|
|
6573
6573
|
for (var Da = 0; Da < Mo; Da++)
|
|
6574
|
-
Da === 0 ? (ga = qa(Ae), Jo = vr(
|
|
6574
|
+
Da === 0 ? (ga = qa(Ae), Jo = vr($e)) : (ga = ee(br - va[Da]), Jo = -Ms), B.push([lt[Da], ga, Jo]), br = va[Da];
|
|
6575
6575
|
} else if (_t === "center") {
|
|
6576
6576
|
Ae -= va[0] / 2, B = [], Mo = lt.length;
|
|
6577
6577
|
for (var Ja = 0; Ja < Mo; Ja++)
|
|
6578
|
-
Ja === 0 ? (ga = qa(Ae), Jo = vr(
|
|
6578
|
+
Ja === 0 ? (ga = qa(Ae), Jo = vr($e)) : (ga = ee((br - va[Ja]) / 2), Jo = -Ms), B.push([lt[Ja], ga, Jo]), br = va[Ja];
|
|
6579
6579
|
} else if (_t === "left") {
|
|
6580
6580
|
B = [], Mo = lt.length;
|
|
6581
6581
|
for (var En = 0; En < Mo; En++)
|
|
@@ -6585,13 +6585,13 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6585
6585
|
throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
6586
6586
|
B = [], Mo = lt.length, Wt = Wt !== 0 ? Wt : zu;
|
|
6587
6587
|
for (var ya = 0; ya < Mo; ya++)
|
|
6588
|
-
Jo = ya === 0 ? vr(
|
|
6588
|
+
Jo = ya === 0 ? vr($e) : -Ms, ga = ya === 0 ? qa(Ae) : 0, ya < Mo - 1 ? pr.push(O(ee((Wt - va[ya]) / (lt[ya].split(" ").length - 1)))) : pr.push(0), B.push([lt[ya], ga, Jo]);
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
6591
6591
|
var In = typeof Me.R2L == "boolean" ? Me.R2L : _e;
|
|
6592
6592
|
In === !0 && (B = Fs(B, function(ml, wl, Dl) {
|
|
6593
6593
|
return [ml.split("").reverse().join(""), wl, Dl];
|
|
6594
|
-
})), je = { text: B, x: Ae, y:
|
|
6594
|
+
})), je = { text: B, x: Ae, y: $e, options: Me, mutex: { pdfEscape: Uo, activeFontKey: wt, fonts: pt, activeFontSize: _ } }, al.publish("postProcessText", je), B = je.text, fa = je.mutex.isHex || !1;
|
|
6595
6595
|
var Qs = pt[wt].encoding;
|
|
6596
6596
|
Qs !== "WinAnsiEncoding" && Qs !== "StandardEncoding" || (B = Fs(B, function(ml, wl, Dl) {
|
|
6597
6597
|
return [Ni(ml), wl, Dl];
|
|
@@ -6607,7 +6607,7 @@ Q`), Po(Te, !0), Yo({ data: je, filters: Ea(), objectId: Te }), H("endobj"), Me;
|
|
|
6607
6607
|
Za = (fa ? "<" : "(") + lt[Zo][0] + (fa ? ">" : ")"), mr = parseFloat(lt[Zo][1]), pa = parseFloat(lt[Zo][2]);
|
|
6608
6608
|
break;
|
|
6609
6609
|
case Jr:
|
|
6610
|
-
Za = (fa ? "<" : "(") + lt[Zo] + (fa ? ">" : ")"), mr = qa(Ae), pa = vr(
|
|
6610
|
+
Za = (fa ? "<" : "(") + lt[Zo] + (fa ? ">" : ")"), mr = qa(Ae), pa = vr($e);
|
|
6611
6611
|
}
|
|
6612
6612
|
pr !== void 0 && pr[Zo] !== void 0 && (wr = pr[Zo] + ` Tw
|
|
6613
6613
|
`), Zo === 0 ? B.push(wr + Es(mr, pa, Ql) + Za) : Zr === Jr ? B.push(wr + Za) : Zr === Nn && B.push(wr + Es(mr, pa, Ql) + Za);
|
|
@@ -6678,19 +6678,19 @@ T* `) : B.join(` Tj
|
|
|
6678
6678
|
}, gs = function(B) {
|
|
6679
6679
|
B === null || w === x.ADVANCED && B === void 0 || (B = Si(B), H(B));
|
|
6680
6680
|
};
|
|
6681
|
-
function Mu(B, Ae,
|
|
6682
|
-
var je = new ts(Ae || this.boundingBox,
|
|
6681
|
+
function Mu(B, Ae, $e, Me, Te) {
|
|
6682
|
+
var je = new ts(Ae || this.boundingBox, $e || this.xStep, Me || this.yStep, this.gState, Te || this.matrix);
|
|
6683
6683
|
je.stream = this.stream;
|
|
6684
6684
|
var lt = B + "$$" + this.cloneIndex++ + "$$";
|
|
6685
6685
|
return $o(lt, je), je;
|
|
6686
6686
|
}
|
|
6687
6687
|
var Qu = function(B, Ae) {
|
|
6688
|
-
var
|
|
6688
|
+
var $e = vo[B.key], Me = zt[$e];
|
|
6689
6689
|
if (Me instanceof an)
|
|
6690
|
-
H("q"), H(Eu(Ae)), Me.gState && p.setGState(Me.gState), H(B.matrix.toString() + " cm"), H("/" +
|
|
6690
|
+
H("q"), H(Eu(Ae)), Me.gState && p.setGState(Me.gState), H(B.matrix.toString() + " cm"), H("/" + $e + " sh"), H("Q");
|
|
6691
6691
|
else if (Me instanceof ts) {
|
|
6692
6692
|
var Te = new $t(1, 0, 0, -1, 0, yr());
|
|
6693
|
-
B.matrix && (Te = Te.multiply(B.matrix || Qa),
|
|
6693
|
+
B.matrix && (Te = Te.multiply(B.matrix || Qa), $e = Mu.call(Me, B.key, B.boundingBox, B.xStep, B.yStep, Te).id), H("q"), H("/Pattern cs"), H("/" + $e + " scn"), Me.gState && p.setGState(Me.gState), H(Ae), H("Q");
|
|
6694
6694
|
}
|
|
6695
6695
|
}, Eu = function(B) {
|
|
6696
6696
|
switch (B) {
|
|
@@ -6712,24 +6712,24 @@ T* `) : B.join(` Tj
|
|
|
6712
6712
|
return H(O(ee(B)) + " " + O(R(Ae)) + " m"), this;
|
|
6713
6713
|
}, Gr = p.lineTo = function(B, Ae) {
|
|
6714
6714
|
return H(O(ee(B)) + " " + O(R(Ae)) + " l"), this;
|
|
6715
|
-
}, fr = p.curveTo = function(B, Ae,
|
|
6716
|
-
return H([O(ee(B)), O(R(Ae)), O(ee(
|
|
6715
|
+
}, fr = p.curveTo = function(B, Ae, $e, Me, Te, je) {
|
|
6716
|
+
return H([O(ee(B)), O(R(Ae)), O(ee($e)), O(R(Me)), O(ee(Te)), O(R(je)), "c"].join(" ")), this;
|
|
6717
6717
|
};
|
|
6718
|
-
p.__private__.line = p.line = function(B, Ae,
|
|
6719
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6718
|
+
p.__private__.line = p.line = function(B, Ae, $e, Me, Te) {
|
|
6719
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || isNaN(Me) || !Na(Te))
|
|
6720
6720
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
6721
|
-
return w === x.COMPAT ? this.lines([[
|
|
6722
|
-
}, p.__private__.lines = p.lines = function(B, Ae,
|
|
6721
|
+
return w === x.COMPAT ? this.lines([[$e - B, Me - Ae]], B, Ae, [1, 1], Te || "S") : this.lines([[$e - B, Me - Ae]], B, Ae, [1, 1]).stroke();
|
|
6722
|
+
}, p.__private__.lines = p.lines = function(B, Ae, $e, Me, Te, je) {
|
|
6723
6723
|
var lt, ft, _t, Ot, Wt, Yt, Ul, Ql, Kl, yo, to, fa;
|
|
6724
|
-
if (typeof B == "number" && (fa =
|
|
6724
|
+
if (typeof B == "number" && (fa = $e, $e = Ae, Ae = B, B = fa), Me = Me || [1, 1], je = je || !1, isNaN(Ae) || isNaN($e) || !Array.isArray(B) || !Array.isArray(Me) || !Na(Te) || typeof je != "boolean")
|
|
6725
6725
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
6726
|
-
for (ys(Ae,
|
|
6726
|
+
for (ys(Ae, $e), lt = Me[0], ft = Me[1], Ot = B.length, yo = Ae, to = $e, _t = 0; _t < Ot; _t++)
|
|
6727
6727
|
(Wt = B[_t]).length === 2 ? (yo = Wt[0] * lt + yo, to = Wt[1] * ft + to, Gr(yo, to)) : (Yt = Wt[0] * lt + yo, Ul = Wt[1] * ft + to, Ql = Wt[2] * lt + yo, Kl = Wt[3] * ft + to, yo = Wt[4] * lt + yo, to = Wt[5] * ft + to, fr(Yt, Ul, Ql, Kl, yo, to));
|
|
6728
6728
|
return je && Li(), gs(Te), this;
|
|
6729
6729
|
}, p.path = function(B) {
|
|
6730
6730
|
for (var Ae = 0; Ae < B.length; Ae++) {
|
|
6731
|
-
var
|
|
6732
|
-
switch (
|
|
6731
|
+
var $e = B[Ae], Me = $e.c;
|
|
6732
|
+
switch ($e.op) {
|
|
6733
6733
|
case "m":
|
|
6734
6734
|
ys(Me[0], Me[1]);
|
|
6735
6735
|
break;
|
|
@@ -6744,44 +6744,44 @@ T* `) : B.join(` Tj
|
|
|
6744
6744
|
}
|
|
6745
6745
|
}
|
|
6746
6746
|
return this;
|
|
6747
|
-
}, p.__private__.rect = p.rect = function(B, Ae,
|
|
6748
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6747
|
+
}, p.__private__.rect = p.rect = function(B, Ae, $e, Me, Te) {
|
|
6748
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || isNaN(Me) || !Na(Te))
|
|
6749
6749
|
throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
6750
|
-
return w === x.COMPAT && (Me = -Me), H([O(ee(B)), O(R(Ae)), O(ee(
|
|
6751
|
-
}, p.__private__.triangle = p.triangle = function(B, Ae,
|
|
6752
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6750
|
+
return w === x.COMPAT && (Me = -Me), H([O(ee(B)), O(R(Ae)), O(ee($e)), O(ee(Me)), "re"].join(" ")), gs(Te), this;
|
|
6751
|
+
}, p.__private__.triangle = p.triangle = function(B, Ae, $e, Me, Te, je, lt) {
|
|
6752
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || isNaN(Me) || isNaN(Te) || isNaN(je) || !Na(lt))
|
|
6753
6753
|
throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
6754
|
-
return this.lines([[
|
|
6755
|
-
}, p.__private__.roundedRect = p.roundedRect = function(B, Ae,
|
|
6756
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6754
|
+
return this.lines([[$e - B, Me - Ae], [Te - $e, je - Me], [B - Te, Ae - je]], B, Ae, [1, 1], lt, !0), this;
|
|
6755
|
+
}, p.__private__.roundedRect = p.roundedRect = function(B, Ae, $e, Me, Te, je, lt) {
|
|
6756
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || isNaN(Me) || isNaN(Te) || isNaN(je) || !Na(lt))
|
|
6757
6757
|
throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
6758
6758
|
var ft = 4 / 3 * (Math.SQRT2 - 1);
|
|
6759
|
-
return Te = Math.min(Te, 0.5 *
|
|
6760
|
-
}, p.__private__.ellipse = p.ellipse = function(B, Ae,
|
|
6761
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6759
|
+
return Te = Math.min(Te, 0.5 * $e), je = Math.min(je, 0.5 * Me), this.lines([[$e - 2 * Te, 0], [Te * ft, 0, Te, je - je * ft, Te, je], [0, Me - 2 * je], [0, je * ft, -Te * ft, je, -Te, je], [2 * Te - $e, 0], [-Te * ft, 0, -Te, -je * ft, -Te, -je], [0, 2 * je - Me], [0, -je * ft, Te * ft, -je, Te, -je]], B + Te, Ae, [1, 1], lt, !0), this;
|
|
6760
|
+
}, p.__private__.ellipse = p.ellipse = function(B, Ae, $e, Me, Te) {
|
|
6761
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || isNaN(Me) || !Na(Te))
|
|
6762
6762
|
throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
6763
|
-
var je = 4 / 3 * (Math.SQRT2 - 1) *
|
|
6764
|
-
return ys(B +
|
|
6765
|
-
}, p.__private__.circle = p.circle = function(B, Ae,
|
|
6766
|
-
if (isNaN(B) || isNaN(Ae) || isNaN(
|
|
6763
|
+
var je = 4 / 3 * (Math.SQRT2 - 1) * $e, lt = 4 / 3 * (Math.SQRT2 - 1) * Me;
|
|
6764
|
+
return ys(B + $e, Ae), fr(B + $e, Ae - lt, B + je, Ae - Me, B, Ae - Me), fr(B - je, Ae - Me, B - $e, Ae - lt, B - $e, Ae), fr(B - $e, Ae + lt, B - je, Ae + Me, B, Ae + Me), fr(B + je, Ae + Me, B + $e, Ae + lt, B + $e, Ae), gs(Te), this;
|
|
6765
|
+
}, p.__private__.circle = p.circle = function(B, Ae, $e, Me) {
|
|
6766
|
+
if (isNaN(B) || isNaN(Ae) || isNaN($e) || !Na(Me))
|
|
6767
6767
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
6768
|
-
return this.ellipse(B, Ae,
|
|
6769
|
-
}, p.setFont = function(B, Ae,
|
|
6770
|
-
return
|
|
6768
|
+
return this.ellipse(B, Ae, $e, $e, Me);
|
|
6769
|
+
}, p.setFont = function(B, Ae, $e) {
|
|
6770
|
+
return $e && (Ae = oe(Ae, $e)), wt = Bi(B, Ae, { disableWarning: !1 }), this;
|
|
6771
6771
|
};
|
|
6772
6772
|
var Iu = p.__private__.getFont = p.getFont = function() {
|
|
6773
6773
|
return pt[Bi.apply(p, arguments)];
|
|
6774
6774
|
};
|
|
6775
6775
|
p.__private__.getFontList = p.getFontList = function() {
|
|
6776
|
-
var B, Ae,
|
|
6776
|
+
var B, Ae, $e = {};
|
|
6777
6777
|
for (B in Lt)
|
|
6778
6778
|
if (Lt.hasOwnProperty(B))
|
|
6779
|
-
for (Ae in
|
|
6780
|
-
Lt[B].hasOwnProperty(Ae) &&
|
|
6781
|
-
return
|
|
6782
|
-
}, p.addFont = function(B, Ae,
|
|
6779
|
+
for (Ae in $e[B] = [], Lt[B])
|
|
6780
|
+
Lt[B].hasOwnProperty(Ae) && $e[B].push(Ae);
|
|
6781
|
+
return $e;
|
|
6782
|
+
}, p.addFont = function(B, Ae, $e, Me, Te) {
|
|
6783
6783
|
var je = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
6784
|
-
return arguments[3] && je.indexOf(arguments[3]) !== -1 ? Te = arguments[3] : arguments[3] && je.indexOf(arguments[3]) == -1 && (
|
|
6784
|
+
return arguments[3] && je.indexOf(arguments[3]) !== -1 ? Te = arguments[3] : arguments[3] && je.indexOf(arguments[3]) == -1 && ($e = oe($e, Me)), Te = Te || "Identity-H", hs.call(this, B, Ae, $e, Te);
|
|
6785
6785
|
};
|
|
6786
6786
|
var Xr, ps = e.lineWidth || 0.200025, Bn = p.__private__.getLineWidth = p.getLineWidth = function() {
|
|
6787
6787
|
return ps;
|
|
@@ -6791,8 +6791,8 @@ T* `) : B.join(` Tj
|
|
|
6791
6791
|
p.__private__.setLineDash = Mt.API.setLineDash = Mt.API.setLineDashPattern = function(B, Ae) {
|
|
6792
6792
|
if (B = B || [], Ae = Ae || 0, isNaN(Ae) || !Array.isArray(B))
|
|
6793
6793
|
throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
6794
|
-
return B = B.map(function(
|
|
6795
|
-
return O(ee(
|
|
6794
|
+
return B = B.map(function($e) {
|
|
6795
|
+
return O(ee($e));
|
|
6796
6796
|
}).join(" "), Ae = O(ee(Ae)), H("[" + B + "] " + Ae + " d"), this;
|
|
6797
6797
|
};
|
|
6798
6798
|
var Ui = p.__private__.getLineHeight = p.getLineHeight = function() {
|
|
@@ -6818,20 +6818,20 @@ T* `) : B.join(` Tj
|
|
|
6818
6818
|
}, ha = e.strokeColor || "0 G";
|
|
6819
6819
|
p.__private__.getStrokeColor = p.getDrawColor = function() {
|
|
6820
6820
|
return ua(ha);
|
|
6821
|
-
}, p.__private__.setStrokeColor = p.setDrawColor = function(B, Ae,
|
|
6822
|
-
return ha = ca({ ch1: B, ch2: Ae, ch3:
|
|
6821
|
+
}, p.__private__.setStrokeColor = p.setDrawColor = function(B, Ae, $e, Me) {
|
|
6822
|
+
return ha = ca({ ch1: B, ch2: Ae, ch3: $e, ch4: Me, pdfColorType: "draw", precision: 2 }), H(ha), this;
|
|
6823
6823
|
};
|
|
6824
6824
|
var bs = e.fillColor || "0 g";
|
|
6825
6825
|
p.__private__.getFillColor = p.getFillColor = function() {
|
|
6826
6826
|
return ua(bs);
|
|
6827
|
-
}, p.__private__.setFillColor = p.setFillColor = function(B, Ae,
|
|
6828
|
-
return bs = ca({ ch1: B, ch2: Ae, ch3:
|
|
6827
|
+
}, p.__private__.setFillColor = p.setFillColor = function(B, Ae, $e, Me) {
|
|
6828
|
+
return bs = ca({ ch1: B, ch2: Ae, ch3: $e, ch4: Me, pdfColorType: "fill", precision: 2 }), H(bs), this;
|
|
6829
6829
|
};
|
|
6830
6830
|
var qr = e.textColor || "0 g", Du = p.__private__.getTextColor = p.getTextColor = function() {
|
|
6831
6831
|
return ua(qr);
|
|
6832
6832
|
};
|
|
6833
|
-
p.__private__.setTextColor = p.setTextColor = function(B, Ae,
|
|
6834
|
-
return qr = ca({ ch1: B, ch2: Ae, ch3:
|
|
6833
|
+
p.__private__.setTextColor = p.setTextColor = function(B, Ae, $e, Me) {
|
|
6834
|
+
return qr = ca({ ch1: B, ch2: Ae, ch3: $e, ch4: Me, pdfColorType: "text", precision: 3 }), this;
|
|
6835
6835
|
};
|
|
6836
6836
|
var _n = e.charSpace, Tu = p.__private__.getCharSpace = p.getCharSpace = function() {
|
|
6837
6837
|
return parseFloat(_n || 0);
|
|
@@ -6863,13 +6863,13 @@ T* `) : B.join(` Tj
|
|
|
6863
6863
|
};
|
|
6864
6864
|
var Ei = function(B, Ae) {
|
|
6865
6865
|
if (!B || !so[B]) {
|
|
6866
|
-
var
|
|
6866
|
+
var $e = !1;
|
|
6867
6867
|
for (var Me in cl)
|
|
6868
6868
|
if (cl.hasOwnProperty(Me) && cl[Me].equals(Ae)) {
|
|
6869
|
-
|
|
6869
|
+
$e = !0;
|
|
6870
6870
|
break;
|
|
6871
6871
|
}
|
|
6872
|
-
if (
|
|
6872
|
+
if ($e)
|
|
6873
6873
|
Ae = cl[Me];
|
|
6874
6874
|
else {
|
|
6875
6875
|
var Te = "GS" + (Object.keys(cl).length + 1).toString(10);
|
|
@@ -6892,11 +6892,11 @@ T* `) : B.join(` Tj
|
|
|
6892
6892
|
return H("#" + B), this;
|
|
6893
6893
|
};
|
|
6894
6894
|
var Fn = function(B, Ae) {
|
|
6895
|
-
var
|
|
6895
|
+
var $e = B || 0;
|
|
6896
6896
|
Object.defineProperty(this, "x", { enumerable: !0, get: function() {
|
|
6897
|
-
return
|
|
6897
|
+
return $e;
|
|
6898
6898
|
}, set: function(je) {
|
|
6899
|
-
isNaN(je) || (
|
|
6899
|
+
isNaN(je) || ($e = parseFloat(je));
|
|
6900
6900
|
} });
|
|
6901
6901
|
var Me = Ae || 0;
|
|
6902
6902
|
Object.defineProperty(this, "y", { enumerable: !0, get: function() {
|
|
@@ -6910,9 +6910,9 @@ T* `) : B.join(` Tj
|
|
|
6910
6910
|
}, set: function(je) {
|
|
6911
6911
|
Te = je.toString();
|
|
6912
6912
|
} }), this;
|
|
6913
|
-
}, Cs = function(B, Ae,
|
|
6913
|
+
}, Cs = function(B, Ae, $e, Me) {
|
|
6914
6914
|
Fn.call(this, B, Ae), this.type = "rect";
|
|
6915
|
-
var Te =
|
|
6915
|
+
var Te = $e || 0;
|
|
6916
6916
|
Object.defineProperty(this, "w", { enumerable: !0, get: function() {
|
|
6917
6917
|
return Te;
|
|
6918
6918
|
}, set: function(lt) {
|
|
@@ -6930,51 +6930,51 @@ T* `) : B.join(` Tj
|
|
|
6930
6930
|
xs.prototype.restore = function() {
|
|
6931
6931
|
Ll = this.page, q = this.currentPage, Ht = this.pagesContext, ce = this.pages, ze = this.x, Ke = this.y, Bt = this.matrix, ks(q, this.width), Bs(q, this.height), ge = this.outputDestination;
|
|
6932
6932
|
};
|
|
6933
|
-
var Ii = function(B, Ae,
|
|
6934
|
-
Ma.push(new xs()), Ll = q = 0, ce = [], ze = B, Ke = Ae, Bt = Te, fs([
|
|
6933
|
+
var Ii = function(B, Ae, $e, Me, Te) {
|
|
6934
|
+
Ma.push(new xs()), Ll = q = 0, ce = [], ze = B, Ke = Ae, Bt = Te, fs([$e, Me]);
|
|
6935
6935
|
}, Hu = function(B) {
|
|
6936
6936
|
if (Ua[B])
|
|
6937
6937
|
Ma.pop().restore();
|
|
6938
6938
|
else {
|
|
6939
|
-
var Ae = new xs(),
|
|
6940
|
-
Ae.id =
|
|
6939
|
+
var Ae = new xs(), $e = "Xo" + (Object.keys(io).length + 1).toString(10);
|
|
6940
|
+
Ae.id = $e, Ua[B] = $e, io[$e] = Ae, al.publish("addFormObject", Ae), Ma.pop().restore();
|
|
6941
6941
|
}
|
|
6942
6942
|
};
|
|
6943
|
-
for (var Sn in p.beginFormObject = function(B, Ae,
|
|
6944
|
-
return Ii(B, Ae,
|
|
6943
|
+
for (var Sn in p.beginFormObject = function(B, Ae, $e, Me, Te) {
|
|
6944
|
+
return Ii(B, Ae, $e, Me, Te), this;
|
|
6945
6945
|
}, p.endFormObject = function(B) {
|
|
6946
6946
|
return Hu(B), this;
|
|
6947
6947
|
}, p.doFormObject = function(B, Ae) {
|
|
6948
|
-
var
|
|
6949
|
-
return H("q"), H(Ae.toString() + " cm"), H("/" +
|
|
6948
|
+
var $e = io[Ua[B]];
|
|
6949
|
+
return H("q"), H(Ae.toString() + " cm"), H("/" + $e.id + " Do"), H("Q"), this;
|
|
6950
6950
|
}, p.getFormObject = function(B) {
|
|
6951
6951
|
var Ae = io[Ua[B]];
|
|
6952
6952
|
return { x: Ae.x, y: Ae.y, width: Ae.width, height: Ae.height, matrix: Ae.matrix };
|
|
6953
6953
|
}, p.save = function(B, Ae) {
|
|
6954
|
-
return B = B || "generated.pdf", (Ae = Ae || {}).returnPromise = Ae.returnPromise || !1, Ae.returnPromise === !1 ? (ln(Cn(Xa()), B), typeof ln.unload == "function" && Et.setTimeout && setTimeout(ln.unload, 911), this) : new Promise(function(
|
|
6954
|
+
return B = B || "generated.pdf", (Ae = Ae || {}).returnPromise = Ae.returnPromise || !1, Ae.returnPromise === !1 ? (ln(Cn(Xa()), B), typeof ln.unload == "function" && Et.setTimeout && setTimeout(ln.unload, 911), this) : new Promise(function($e, Me) {
|
|
6955
6955
|
try {
|
|
6956
6956
|
var Te = ln(Cn(Xa()), B);
|
|
6957
|
-
typeof ln.unload == "function" && Et.setTimeout && setTimeout(ln.unload, 911),
|
|
6957
|
+
typeof ln.unload == "function" && Et.setTimeout && setTimeout(ln.unload, 911), $e(Te);
|
|
6958
6958
|
} catch (je) {
|
|
6959
6959
|
Me(je.message);
|
|
6960
6960
|
}
|
|
6961
6961
|
});
|
|
6962
6962
|
}, Mt.API)
|
|
6963
6963
|
Mt.API.hasOwnProperty(Sn) && (Sn === "events" && Mt.API.events.length ? function(B, Ae) {
|
|
6964
|
-
var
|
|
6964
|
+
var $e, Me, Te;
|
|
6965
6965
|
for (Te = Ae.length - 1; Te !== -1; Te--)
|
|
6966
|
-
|
|
6966
|
+
$e = Ae[Te][0], Me = Ae[Te][1], B.subscribe.apply(B, [$e].concat(typeof Me == "function" ? [Me] : Me));
|
|
6967
6967
|
}(al, Mt.API.events) : p[Sn] = Mt.API[Sn]);
|
|
6968
6968
|
var Yr = p.getPageWidth = function(B) {
|
|
6969
|
-
return (Ht[B = B || q].mediaBox.topRightX - Ht[B].mediaBox.bottomLeftX) /
|
|
6969
|
+
return (Ht[B = B || q].mediaBox.topRightX - Ht[B].mediaBox.bottomLeftX) / Le;
|
|
6970
6970
|
}, ks = p.setPageWidth = function(B, Ae) {
|
|
6971
|
-
Ht[B].mediaBox.topRightX = Ae *
|
|
6971
|
+
Ht[B].mediaBox.topRightX = Ae * Le + Ht[B].mediaBox.bottomLeftX;
|
|
6972
6972
|
}, yr = p.getPageHeight = function(B) {
|
|
6973
|
-
return (Ht[B = B || q].mediaBox.topRightY - Ht[B].mediaBox.bottomLeftY) /
|
|
6973
|
+
return (Ht[B = B || q].mediaBox.topRightY - Ht[B].mediaBox.bottomLeftY) / Le;
|
|
6974
6974
|
}, Bs = p.setPageHeight = function(B, Ae) {
|
|
6975
|
-
Ht[B].mediaBox.topRightY = Ae *
|
|
6975
|
+
Ht[B].mediaBox.topRightY = Ae * Le + Ht[B].mediaBox.bottomLeftY;
|
|
6976
6976
|
};
|
|
6977
|
-
return p.internal = { pdfEscape: Uo, getStyle: Si, getFont: Iu, getFontSize: ne, getCharSpace: Tu, getTextColor: Du, getLineHeight: Ui, getLineHeightFactor: Qi, getLineWidth: Bn, write: te, getHorizontalCoordinate: qa, getVerticalCoordinate: vr, getCoordinateString: Nu, getVerticalCoordinateString: gr, collections: {}, newObject: Yl, newAdditionalObject: fn, newObjectDeferred: Wl, newObjectDeferredBegin: Po, getFilters: Ea, putStream: Yo, events: al, scaleFactor:
|
|
6977
|
+
return p.internal = { pdfEscape: Uo, getStyle: Si, getFont: Iu, getFontSize: ne, getCharSpace: Tu, getTextColor: Du, getLineHeight: Ui, getLineHeightFactor: Qi, getLineWidth: Bn, write: te, getHorizontalCoordinate: qa, getVerticalCoordinate: vr, getCoordinateString: Nu, getVerticalCoordinateString: gr, collections: {}, newObject: Yl, newAdditionalObject: fn, newObjectDeferred: Wl, newObjectDeferredBegin: Po, getFilters: Ea, putStream: Yo, events: al, scaleFactor: Le, pageSize: { getWidth: function() {
|
|
6978
6978
|
return Yr(q);
|
|
6979
6979
|
}, setWidth: function(B) {
|
|
6980
6980
|
ks(q, B);
|
|
@@ -8711,21 +8711,21 @@ var LA, Sf, Lf, Ec = ["times"];
|
|
|
8711
8711
|
var te = H[1], U = (H[2], H[3]), Q = H[4], _ = (H[5], H[6]), de = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Q)[2];
|
|
8712
8712
|
Q = Math.floor(de === "px" ? parseFloat(Q) * this.pdf.internal.scaleFactor : de === "em" ? parseFloat(Q) * this.pdf.getFontSize() : parseFloat(Q) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(Q);
|
|
8713
8713
|
var ne = function(it) {
|
|
8714
|
-
var wt,
|
|
8714
|
+
var wt, Le, ze = [], Ke = it.trim();
|
|
8715
8715
|
if (Ke === "")
|
|
8716
8716
|
return Ec;
|
|
8717
8717
|
if (Ke in Bf)
|
|
8718
8718
|
return [Bf[Ke]];
|
|
8719
8719
|
for (; Ke !== ""; ) {
|
|
8720
|
-
switch (
|
|
8720
|
+
switch (Le = null, wt = (Ke = Ff(Ke)).charAt(0)) {
|
|
8721
8721
|
case '"':
|
|
8722
8722
|
case "'":
|
|
8723
|
-
|
|
8723
|
+
Le = gm(Ke.substring(1), wt);
|
|
8724
8724
|
break;
|
|
8725
8725
|
default:
|
|
8726
|
-
|
|
8726
|
+
Le = ym(Ke);
|
|
8727
8727
|
}
|
|
8728
|
-
if (
|
|
8728
|
+
if (Le === null || (ze.push(Le[0]), (Ke = Ff(Le[1])) !== "" && Ke.charAt(0) !== ","))
|
|
8729
8729
|
return Ec;
|
|
8730
8730
|
Ke = Ke.replace(/^,/, "");
|
|
8731
8731
|
}
|
|
@@ -8956,13 +8956,13 @@ var LA, Sf, Lf, Ec = ["times"];
|
|
|
8956
8956
|
if (w(ne), this.autoPaging)
|
|
8957
8957
|
for (var Ue = ne[0], Re = ne[ne.length - 1], qe = Ue; qe < Re + 1; qe++) {
|
|
8958
8958
|
this.pdf.setPage(qe);
|
|
8959
|
-
var ut = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], nt = qe === 1 ? this.posY + this.margin[0] : this.margin[0], it = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], wt = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2],
|
|
8959
|
+
var ut = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], nt = qe === 1 ? this.posY + this.margin[0] : this.margin[0], it = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], wt = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], Le = qe === 1 ? 0 : it + (qe - 2) * wt;
|
|
8960
8960
|
if (this.ctx.clip_path.length !== 0) {
|
|
8961
8961
|
var ze = this.path;
|
|
8962
|
-
H = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(H, this.posX + this.margin[3],
|
|
8962
|
+
H = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(H, this.posX + this.margin[3], -Le + nt + this.ctx.prevPageLastElemOffset), Y.call(this, "fill", !0), this.path = ze;
|
|
8963
8963
|
}
|
|
8964
8964
|
var Ke = JSON.parse(JSON.stringify(_));
|
|
8965
|
-
Ke = x([Ke], this.posX + this.margin[3],
|
|
8965
|
+
Ke = x([Ke], this.posX + this.margin[3], -Le + nt + this.ctx.prevPageLastElemOffset)[0];
|
|
8966
8966
|
var Bt = (qe > Ue || qe < Re) && h.call(this);
|
|
8967
8967
|
Bt && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], ut, wt, null).clip().discardPath()), this.pdf.addImage(F, "JPEG", Ke.x, Ke.y, Ke.w, Ke.h, null, null, U), Bt && this.pdf.restoreGraphicsState();
|
|
8968
8968
|
}
|
|
@@ -9176,8 +9176,8 @@ var LA, Sf, Lf, Ec = ["times"];
|
|
|
9176
9176
|
var wt = this.autoPaging !== "text";
|
|
9177
9177
|
if (wt || it.y + it.h <= _e) {
|
|
9178
9178
|
if (wt || it.y >= de && it.x <= Re) {
|
|
9179
|
-
var
|
|
9180
|
-
Ke && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], qe, Ue, null).clip().discardPath()), this.pdf.text(
|
|
9179
|
+
var Le = wt ? F.text : this.pdf.splitTextToSize(F.text, F.maxWidth || Re - it.x)[0], ze = x([JSON.parse(JSON.stringify(ge))], this.posX + this.margin[3], -ut + de + this.ctx.prevPageLastElemOffset)[0], Ke = wt && (_ > U || _ < Q) && h.call(this);
|
|
9180
|
+
Ke && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], qe, Ue, null).clip().discardPath()), this.pdf.text(Le, ze.x, ze.y, { angle: F.angle, align: q, renderingMode: F.renderingMode }), Ke && this.pdf.restoreGraphicsState();
|
|
9181
9181
|
}
|
|
9182
9182
|
} else
|
|
9183
9183
|
it.y < _e && (this.ctx.prevPageLastElemOffset += _e - it.y);
|
|
@@ -10174,24 +10174,24 @@ function Ic(e) {
|
|
|
10174
10174
|
}
|
|
10175
10175
|
function T(F, q, $, G, I) {
|
|
10176
10176
|
for (var M, K = I[0], D = I[240], pe = function(Q, _) {
|
|
10177
|
-
var de, ne, _e, Ue, Re, qe, ut, nt, it, wt,
|
|
10177
|
+
var de, ne, _e, Ue, Re, qe, ut, nt, it, wt, Le = 0;
|
|
10178
10178
|
for (it = 0; it < 8; ++it) {
|
|
10179
|
-
de = Q[
|
|
10180
|
-
var ze = de + (nt = Q[
|
|
10181
|
-
Q[
|
|
10179
|
+
de = Q[Le], ne = Q[Le + 1], _e = Q[Le + 2], Ue = Q[Le + 3], Re = Q[Le + 4], qe = Q[Le + 5], ut = Q[Le + 6];
|
|
10180
|
+
var ze = de + (nt = Q[Le + 7]), Ke = de - nt, Bt = ne + ut, pt = ne - ut, Lt = _e + qe, Dt = _e - qe, zt = Ue + Re, vo = Ue - Re, cl = ze + zt, so = ze - zt, $a = Bt + Lt, Ll = Bt - Lt;
|
|
10181
|
+
Q[Le] = cl + $a, Q[Le + 4] = cl - $a;
|
|
10182
10182
|
var Ht = 0.707106781 * (Ll + so);
|
|
10183
|
-
Q[
|
|
10183
|
+
Q[Le + 2] = so + Ht, Q[Le + 6] = so - Ht;
|
|
10184
10184
|
var al = 0.382683433 * ((cl = vo + Dt) - (Ll = pt + Ke)), Kr = 0.5411961 * cl + al, io = 1.306562965 * Ll + al, Ua = 0.707106781 * ($a = Dt + pt), Ma = Ke + Ua, $t = Ke - Ua;
|
|
10185
|
-
Q[
|
|
10185
|
+
Q[Le + 5] = $t + Kr, Q[Le + 3] = $t - Kr, Q[Le + 1] = Ma + io, Q[Le + 7] = Ma - io, Le += 8;
|
|
10186
10186
|
}
|
|
10187
|
-
for (
|
|
10188
|
-
de = Q[
|
|
10189
|
-
var ia = de + (nt = Q[
|
|
10190
|
-
Q[
|
|
10187
|
+
for (Le = 0, it = 0; it < 8; ++it) {
|
|
10188
|
+
de = Q[Le], ne = Q[Le + 8], _e = Q[Le + 16], Ue = Q[Le + 24], Re = Q[Le + 32], qe = Q[Le + 40], ut = Q[Le + 48];
|
|
10189
|
+
var ia = de + (nt = Q[Le + 56]), Qa = de - nt, $o = ne + ut, Yl = ne - ut, Wl = _e + qe, Po = _e - qe, fn = Ue + Re, Ga = Ue - Re, Aa = ia + fn, ua = ia - fn, ca = $o + Wl, Ea = $o - Wl;
|
|
10190
|
+
Q[Le] = Aa + ca, Q[Le + 32] = Aa - ca;
|
|
10191
10191
|
var Yo = 0.707106781 * (Ea + ua);
|
|
10192
|
-
Q[
|
|
10192
|
+
Q[Le + 16] = ua + Yo, Q[Le + 48] = ua - Yo;
|
|
10193
10193
|
var Ia = 0.382683433 * ((Aa = Ga + Po) - (Ea = Yl + Qa)), jr = 0.5411961 * Aa + Ia, vn = 1.306562965 * Ea + Ia, gn = 0.707106781 * (ca = Po + Yl), yn = Qa + gn, pn = Qa - gn;
|
|
10194
|
-
Q[
|
|
10194
|
+
Q[Le + 40] = pn + jr, Q[Le + 24] = pn - jr, Q[Le + 8] = yn + vn, Q[Le + 56] = yn - vn, Le++;
|
|
10195
10195
|
}
|
|
10196
10196
|
for (it = 0; it < 64; ++it)
|
|
10197
10197
|
wt = Q[it] * _[it], p[it] = wt > 0 ? wt + 0.5 | 0 : wt - 0.5 | 0;
|
|
@@ -10566,7 +10566,7 @@ function Ef(e) {
|
|
|
10566
10566
|
z["VP8LMapColor" + L](Be, Se, Ze, We, Qe, He, ye, Ce, De);
|
|
10567
10567
|
};
|
|
10568
10568
|
}
|
|
10569
|
-
function
|
|
10569
|
+
function Le(v, C, L, X, ie) {
|
|
10570
10570
|
for (L = C + L; C < L; ) {
|
|
10571
10571
|
var fe = v[C++];
|
|
10572
10572
|
X[ie++] = fe >> 16 & 255, X[ie++] = fe >> 8 & 255, X[ie++] = fe >> 0 & 255;
|
|
@@ -10907,7 +10907,7 @@ function Ef(e) {
|
|
|
10907
10907
|
}
|
|
10908
10908
|
function Yo() {
|
|
10909
10909
|
var v = new Hu();
|
|
10910
|
-
return v == null ? null : (v.a = 0, v.xb = Kd, Dt("Predictor", "VP8LPredictors"), Dt("Predictor", "VP8LPredictors_C"), Dt("PredictorAdd", "VP8LPredictorsAdd"), Dt("PredictorAdd", "VP8LPredictorsAdd_C"), Di = ut, Jo = it, ga =
|
|
10910
|
+
return v == null ? null : (v.a = 0, v.xb = Kd, Dt("Predictor", "VP8LPredictors"), Dt("Predictor", "VP8LPredictors_C"), Dt("PredictorAdd", "VP8LPredictorsAdd"), Dt("PredictorAdd", "VP8LPredictorsAdd_C"), Di = ut, Jo = it, ga = Le, br = ze, Da = Ke, Ja = Bt, En = pt, z.VP8LMapColor32b = Ms, z.VP8LMapColor8b = Ou, v);
|
|
10911
10911
|
}
|
|
10912
10912
|
function Ia(v, C, L, X, ie) {
|
|
10913
10913
|
var fe = 1, ye = [v], Ce = [C], Be = X.m, Se = X.s, Qe = null, He = 0;
|
|
@@ -11858,7 +11858,7 @@ function Ef(e) {
|
|
|
11858
11858
|
C += ie;
|
|
11859
11859
|
}
|
|
11860
11860
|
}
|
|
11861
|
-
function
|
|
11861
|
+
function $e(v, C, L, X, ie, fe, ye, Ce) {
|
|
11862
11862
|
var Be, Se, Qe = 255;
|
|
11863
11863
|
for (Se = 0; Se < ie; ++Se) {
|
|
11864
11864
|
for (Be = 0; Be < X; ++Be) {
|
|
@@ -11875,7 +11875,7 @@ function Ef(e) {
|
|
|
11875
11875
|
L[X + fe] = v[C + fe] >> 8;
|
|
11876
11876
|
}
|
|
11877
11877
|
function Te() {
|
|
11878
|
-
Cr = B, Dn = Ae, Ti =
|
|
11878
|
+
Cr = B, Dn = Ae, Ti = $e, Nd = Me;
|
|
11879
11879
|
}
|
|
11880
11880
|
function je(v, C, L) {
|
|
11881
11881
|
z[v] = function(X, ie, fe, ye, Ce, Be, Se, Qe, He, Pe, De, Ze, We, Ee, Ne, Ye, et) {
|
|
@@ -12820,7 +12820,7 @@ function(e) {
|
|
|
12820
12820
|
*/
|
|
12821
12821
|
function(e) {
|
|
12822
12822
|
function t() {
|
|
12823
|
-
return (Et.canvg ? Promise.resolve(Et.canvg) : import("./index.es-
|
|
12823
|
+
return (Et.canvg ? Promise.resolve(Et.canvg) : import("./index.es-9abc3362.js")).catch(function(a) {
|
|
12824
12824
|
return Promise.reject(new Error("Could not load canvg: " + a));
|
|
12825
12825
|
}).then(function(a) {
|
|
12826
12826
|
return a.default ? a.default : a;
|
|
@@ -32990,16 +32990,16 @@ const _L = ["id"], FL = ["xmlns", "viewBox", "id"], SL = ["id"], LL = ["stop-col
|
|
|
32990
32990
|
qe.setAttribute("id", `xlabmaxnamevis_${l.value}`);
|
|
32991
32991
|
const ut = document.getElementById(`xLabelMin_${l.value}`), nt = document.getElementById(`xLabelMax_${l.value}`), it = document.getElementById(`xLabelMaxName_${l.value}`);
|
|
32992
32992
|
if (ut) {
|
|
32993
|
-
const
|
|
32994
|
-
Ue.setAttributeNS(null, "transform", `rotate(-90, ${
|
|
32993
|
+
const Le = ut.getBBox().height / 2 + w.value.padding * 0.6, ze = w.value.centerY;
|
|
32994
|
+
Ue.setAttributeNS(null, "transform", `rotate(-90, ${Le}, ${ze})`), Ue.setAttributeNS(null, "x", Le), Ue.setAttributeNS(null, "y", ze), Ue.innerHTML = ee.value.x.min, Ue.setAttribute("text-anchor", "middle"), Ue.setAttribute("fontSize", n.value.style.chart.layout.labels.axisLabels.fontSize), Ue.setAttributeNS(null, "fill", n.value.style.chart.layout.labels.axisLabels.color.negative), _e.appendChild(Ue);
|
|
32995
32995
|
}
|
|
32996
32996
|
if (nt) {
|
|
32997
|
-
const
|
|
32998
|
-
Re.setAttributeNS(null, "transform", `rotate(90, ${
|
|
32997
|
+
const Le = nt.getBBox().height / 2 + w.value.right, ze = w.value.centerY;
|
|
32998
|
+
Re.setAttributeNS(null, "transform", `rotate(90, ${Le}, ${ze})`), Re.setAttributeNS(null, "x", Le), Re.setAttributeNS(null, "y", ze), Re.innerHTML = ee.value.x.max, Re.setAttribute("text-anchor", "middle"), Re.setAttribute("fontSize", n.value.style.chart.layout.labels.axisLabels.fontSize), Re.setAttributeNS(null, "fill", n.value.style.chart.layout.labels.axisLabels.color.positive), _e.appendChild(Re);
|
|
32999
32999
|
}
|
|
33000
33000
|
if (it && n.value.style.chart.layout.grid.xAxis.name) {
|
|
33001
|
-
const
|
|
33002
|
-
qe.setAttributeNS(null, "transform", `rotate(90, ${
|
|
33001
|
+
const Le = it.getBBox().height / 2 + w.value.right + w.value.padding * 0.3, ze = w.value.centerY;
|
|
33002
|
+
qe.setAttributeNS(null, "transform", `rotate(90, ${Le}, ${ze})`), qe.setAttributeNS(null, "x", Le), qe.setAttributeNS(null, "y", ze), qe.innerHTML = n.value.style.chart.layout.grid.xAxis.name, qe.setAttribute("text-anchor", "middle"), qe.setAttribute("fontSize", n.value.style.chart.layout.labels.axisLabels.fontSize), qe.setAttributeNS(null, "fill", n.value.style.chart.layout.labels.axisLabels.color.positive), _e.appendChild(qe);
|
|
33003
33003
|
}
|
|
33004
33004
|
});
|
|
33005
33005
|
}
|
|
@@ -37793,8 +37793,8 @@ const uQ = ["id"], cQ = ["xmlns", "viewBox"], dQ = { key: 0 }, hQ = ["x1", "x2",
|
|
|
37793
37793
|
});
|
|
37794
37794
|
const U = ue - ke, Q = te - H, _ = U / we, de = Q / we, ne = Array(we).fill(0), _e = Array(we).fill(0);
|
|
37795
37795
|
ge.forEach(({ x: nt, y: it }) => {
|
|
37796
|
-
const wt = Math.floor((nt - ke) / _),
|
|
37797
|
-
ne[wt] || (ne[wt] = 0), _e[
|
|
37796
|
+
const wt = Math.floor((nt - ke) / _), Le = Math.floor((it - H) / de);
|
|
37797
|
+
ne[wt] || (ne[wt] = 0), _e[Le] || (_e[Le] = 0), ne[wt] += 1, _e[Le] += 1;
|
|
37798
37798
|
});
|
|
37799
37799
|
const Ue = [], Re = [];
|
|
37800
37800
|
for (let nt = 0; nt < we; nt += 1)
|
|
@@ -47631,10 +47631,10 @@ const nW = ["id"], sW = ["xmlns", "viewBox"], iW = ["id"], AW = ["stop-color"],
|
|
|
47631
47631
|
function R(ue) {
|
|
47632
47632
|
d.value.focus(), fl(() => {
|
|
47633
47633
|
ae.value && cancelAnimationFrame(ae.value);
|
|
47634
|
-
const H = O.value.split(" "), te = parseFloat(H[0]), U = parseFloat(H[1]), Q = parseFloat(H[2]), _ = parseFloat(H[3]), { x: de, y: ne } = ue.polygonPath.coordinates[0], { circleRadius: _e } = ue, Ue = 8.34, Re = de - _e * Ue, qe = ne - _e * Ue, ut = _e * Ue * 2, nt = _e * Ue * 2, it = Math.sqrt((Re - te) ** 2 + (qe - U) ** 2), wt = Math.min(1200, Math.max(20, Math.floor(it / 10))),
|
|
47634
|
+
const H = O.value.split(" "), te = parseFloat(H[0]), U = parseFloat(H[1]), Q = parseFloat(H[2]), _ = parseFloat(H[3]), { x: de, y: ne } = ue.polygonPath.coordinates[0], { circleRadius: _e } = ue, Ue = 8.34, Re = de - _e * Ue, qe = ne - _e * Ue, ut = _e * Ue * 2, nt = _e * Ue * 2, it = Math.sqrt((Re - te) ** 2 + (qe - U) ** 2), wt = Math.min(1200, Math.max(20, Math.floor(it / 10))), Le = (Re - te) / wt, ze = (qe - U) / wt, Ke = (ut - Q) / wt, Bt = (nt - _) / wt;
|
|
47635
47635
|
let pt = 0;
|
|
47636
47636
|
function Lt() {
|
|
47637
|
-
O.value = `${te +
|
|
47637
|
+
O.value = `${te + Le * pt} ${U + ze * pt} ${Q + Ke * pt} ${_ + Bt * pt}`, pt += k.value.style.chart.zoom.speed, pt <= wt && (ae.value = requestAnimationFrame(Lt));
|
|
47638
47638
|
}
|
|
47639
47639
|
Lt();
|
|
47640
47640
|
});
|
|
@@ -53915,27 +53915,27 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
53915
53915
|
emits: ["selectLegend"],
|
|
53916
53916
|
setup(e, { expose: t, emit: a }) {
|
|
53917
53917
|
const r = e, o = P(xt()), l = P(null), s = P(null), i = P(null), u = P(null), f = P(0), b = P(0), d = P(!1), m = P(null), p = P(""), g = P(null), h = P([]), n = P(1), k = P(!0), x = P(!0), w = P(null), V = P(0), Y = P(0), oe = P(!1), O = P(!1), z = P(!1), W = le(() => {
|
|
53918
|
-
const
|
|
53918
|
+
const Le = At({
|
|
53919
53919
|
userConfig: r.config,
|
|
53920
53920
|
defaultConfig: St.vue_ui_xy_canvas
|
|
53921
53921
|
});
|
|
53922
|
-
return
|
|
53922
|
+
return Le.theme ? {
|
|
53923
53923
|
...At({
|
|
53924
|
-
userConfig: Gt.vue_ui_xy_canvas[
|
|
53925
|
-
defaultConfig:
|
|
53924
|
+
userConfig: Gt.vue_ui_xy_canvas[Le.theme] || r.config,
|
|
53925
|
+
defaultConfig: Le
|
|
53926
53926
|
}),
|
|
53927
|
-
customPalette: xl[
|
|
53928
|
-
} :
|
|
53927
|
+
customPalette: xl[Le.theme] || Oe
|
|
53928
|
+
} : Le;
|
|
53929
53929
|
}), be = P({
|
|
53930
53930
|
showTable: W.value.table.show,
|
|
53931
53931
|
showDataLabels: W.value.style.chart.dataLabels.show,
|
|
53932
53932
|
stacked: W.value.style.chart.stacked
|
|
53933
53933
|
});
|
|
53934
|
-
function N(
|
|
53935
|
-
z.value =
|
|
53934
|
+
function N(Le) {
|
|
53935
|
+
z.value = Le, Y.value += 1;
|
|
53936
53936
|
}
|
|
53937
|
-
const ee = le(() => Fl(W.value.customPalette)), ae = le(() => Math.max(...r.dataset.filter((
|
|
53938
|
-
const
|
|
53937
|
+
const ee = le(() => Fl(W.value.customPalette)), ae = le(() => Math.max(...r.dataset.filter((Le, ze) => !h.value.includes(ze)).map((Le) => Le.series.length))), R = le(() => {
|
|
53938
|
+
const Le = f.value - f.value * (W.value.style.chart.paddingProportions.left + W.value.style.chart.paddingProportions.right);
|
|
53939
53939
|
return {
|
|
53940
53940
|
canvasWidth: f.value,
|
|
53941
53941
|
canvasHeight: b.value,
|
|
@@ -53943,16 +53943,16 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
53943
53943
|
top: b.value * W.value.style.chart.paddingProportions.top,
|
|
53944
53944
|
right: f.value - f.value * W.value.style.chart.paddingProportions.right,
|
|
53945
53945
|
bottom: b.value - b.value * W.value.style.chart.paddingProportions.bottom,
|
|
53946
|
-
width:
|
|
53946
|
+
width: Le,
|
|
53947
53947
|
height: b.value - b.value * (W.value.style.chart.paddingProportions.top + W.value.style.chart.paddingProportions.bottom),
|
|
53948
|
-
slot:
|
|
53948
|
+
slot: Le / (T.value.end - T.value.start)
|
|
53949
53949
|
};
|
|
53950
53950
|
});
|
|
53951
|
-
function me(
|
|
53952
|
-
return
|
|
53951
|
+
function me(Le, ze) {
|
|
53952
|
+
return Le / ze;
|
|
53953
53953
|
}
|
|
53954
|
-
function he({ series:
|
|
53955
|
-
return
|
|
53954
|
+
function he({ series: Le, min: ze, max: Ke, scale: Bt, stackIndex: pt = null }) {
|
|
53955
|
+
return Le.map((Lt, Dt) => {
|
|
53956
53956
|
const zt = Bt.min < 0 ? Math.abs(Bt.min) : 0, vo = me(Lt + zt, zt + Bt.max);
|
|
53957
53957
|
let cl = 0;
|
|
53958
53958
|
if (pt === null)
|
|
@@ -53969,7 +53969,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
53969
53969
|
});
|
|
53970
53970
|
}
|
|
53971
53971
|
const re = le(() => {
|
|
53972
|
-
const
|
|
53972
|
+
const Le = Math.min(...r.dataset.filter((Dt, zt) => !h.value.includes(zt)).flatMap((Dt) => Dt.series.slice(T.value.start, T.value.end))), ze = Math.max(...r.dataset.filter((Dt, zt) => !h.value.includes(zt)).flatMap((Dt) => Dt.series.slice(T.value.start, T.value.end))), Ke = Ra(Le < 0 ? Le : 0, ze === Le ? Le + 1 < 0 ? 0 : Le + 1 : ze < 0 ? 0 : ze, W.value.style.chart.scale.ticks), Bt = Ke.min < 0 ? Math.abs(Ke.min) : 0, pt = R.value.bottom - R.value.height * (Bt / (Ke.max + Bt)), Lt = Ke.ticks.map((Dt) => ({
|
|
53973
53973
|
y: R.value.bottom - R.value.height * ((Dt + Bt) / (Ke.max + Bt)),
|
|
53974
53974
|
x: R.value.left - 8,
|
|
53975
53975
|
value: Dt
|
|
@@ -53977,33 +53977,33 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
53977
53977
|
return {
|
|
53978
53978
|
absoluteMin: Bt,
|
|
53979
53979
|
max: ze,
|
|
53980
|
-
min:
|
|
53980
|
+
min: Le,
|
|
53981
53981
|
scale: Ke,
|
|
53982
53982
|
yLabels: Lt,
|
|
53983
53983
|
zero: pt
|
|
53984
53984
|
};
|
|
53985
|
-
}), E = le(() => j.value.map((
|
|
53985
|
+
}), E = le(() => j.value.map((Le) => `
|
|
53986
53986
|
<div>
|
|
53987
53987
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
53988
|
-
<circle cx="5" cy="5" r="5" fill="${
|
|
53988
|
+
<circle cx="5" cy="5" r="5" fill="${Le.color}"/>
|
|
53989
53989
|
</svg>
|
|
53990
|
-
<span>${
|
|
53990
|
+
<span>${Le.name ? Le.name + " : " : ""}</span>
|
|
53991
53991
|
<span>${at({
|
|
53992
|
-
p:
|
|
53993
|
-
v:
|
|
53994
|
-
s:
|
|
53995
|
-
r:
|
|
53992
|
+
p: Le.prefix || "",
|
|
53993
|
+
v: Le.series[m.value],
|
|
53994
|
+
s: Le.suffix || "",
|
|
53995
|
+
r: Le.rounding || 0
|
|
53996
53996
|
})}</span>
|
|
53997
53997
|
</div>
|
|
53998
53998
|
`)), j = le(() => {
|
|
53999
|
-
const
|
|
53999
|
+
const Le = R.value.height / r.dataset.filter((ze, Ke) => !h.value.includes(Ke)).length;
|
|
54000
54000
|
return r.dataset.map((ze, Ke) => ({
|
|
54001
54001
|
...ze,
|
|
54002
54002
|
series: ze.series.slice(T.value.start, T.value.end),
|
|
54003
54003
|
absoluteIndex: Ke
|
|
54004
54004
|
})).filter((ze, Ke) => !h.value.includes(Ke)).map((ze, Ke) => {
|
|
54005
|
-
const Bt = Math.min(...ze.series), pt = Math.max(...ze.series), Lt = Ra(Bt < 0 ? Bt : 0, pt === Bt ? Bt + 1 < 0 ? 0 : Bt + 1 : pt < 0 ? 0 : pt, ze.scaleSteps || W.value.style.chart.scale.ticks), Dt = Lt.min < 0 ? Math.abs(Lt.min) : 0, zt = R.value.bottom -
|
|
54006
|
-
y: R.value.bottom -
|
|
54005
|
+
const Bt = Math.min(...ze.series), pt = Math.max(...ze.series), Lt = Ra(Bt < 0 ? Bt : 0, pt === Bt ? Bt + 1 < 0 ? 0 : Bt + 1 : pt < 0 ? 0 : pt, ze.scaleSteps || W.value.style.chart.scale.ticks), Dt = Lt.min < 0 ? Math.abs(Lt.min) : 0, zt = R.value.bottom - Le * Ke - Le * q.value * (Dt / (Lt.max + Dt)), vo = Lt.ticks.map((so) => ({
|
|
54006
|
+
y: R.value.bottom - Le * Ke - Le * q.value * ((so + Dt) / (Lt.max + Dt)),
|
|
54007
54007
|
x: R.value.left - 8,
|
|
54008
54008
|
value: so
|
|
54009
54009
|
})), cl = he({
|
|
@@ -54035,14 +54035,14 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54035
54035
|
end: ae.value
|
|
54036
54036
|
}, V.value += 1;
|
|
54037
54037
|
}
|
|
54038
|
-
const F = le(() => r.dataset.length - h.value.length === 1), q = le(() => F.value ? 1 : W.value.style.chart.stackGapRatio), $ = le(() => j.value.filter((
|
|
54038
|
+
const F = le(() => r.dataset.length - h.value.length === 1), q = le(() => F.value ? 1 : W.value.style.chart.stackGapRatio), $ = le(() => j.value.filter((Le) => ["line", "plot", void 0].includes(Le.type))), G = le(() => j.value.filter((Le) => Le.type === "bar"));
|
|
54039
54039
|
function I() {
|
|
54040
|
-
const
|
|
54041
|
-
s.value.width =
|
|
54040
|
+
const Le = i.value.offsetWidth, ze = i.value.offsetHeight;
|
|
54041
|
+
s.value.width = Le * n.value * 2, s.value.height = ze * n.value * 2, f.value = Le * n.value * 2, b.value = ze * n.value * 2, u.value.scale(n.value, n.value), ue();
|
|
54042
54042
|
}
|
|
54043
54043
|
function M() {
|
|
54044
54044
|
if (u.value.fillStyle = W.value.style.chart.backgroundColor, u.value.fillRect(0, 0, R.value.canvasWidth, R.value.canvasHeight), be.value.stacked) {
|
|
54045
|
-
const
|
|
54045
|
+
const Le = R.value.height / r.dataset.filter((ze, Ke) => !h.value.includes(Ke)).length;
|
|
54046
54046
|
W.value.style.chart.grid.y.verticalLines.show && T.value.end - T.value.start < W.value.style.chart.grid.y.verticalLines.hideUnderXLength && j.value.forEach((ze, Ke) => {
|
|
54047
54047
|
for (let Bt = 0; Bt < T.value.end - T.value.start + 1; Bt += 1)
|
|
54048
54048
|
Wo(
|
|
@@ -54050,11 +54050,11 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54050
54050
|
[
|
|
54051
54051
|
{
|
|
54052
54052
|
x: R.value.left + R.value.slot * Bt,
|
|
54053
|
-
y: R.value.bottom -
|
|
54053
|
+
y: R.value.bottom - Le * Ke - Le * q.value
|
|
54054
54054
|
},
|
|
54055
54055
|
{
|
|
54056
54056
|
x: R.value.left + R.value.slot * Bt,
|
|
54057
|
-
y: R.value.bottom -
|
|
54057
|
+
y: R.value.bottom - Le * Ke
|
|
54058
54058
|
}
|
|
54059
54059
|
],
|
|
54060
54060
|
{
|
|
@@ -54106,8 +54106,8 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54106
54106
|
Wo(
|
|
54107
54107
|
u.value,
|
|
54108
54108
|
[
|
|
54109
|
-
{ x: R.value.left, y: R.value.bottom -
|
|
54110
|
-
{ x: R.value.left, y: R.value.bottom -
|
|
54109
|
+
{ x: R.value.left, y: R.value.bottom - Le * Ke },
|
|
54110
|
+
{ x: R.value.left, y: R.value.bottom - Le * Ke - Le * q.value }
|
|
54111
54111
|
],
|
|
54112
54112
|
{
|
|
54113
54113
|
color: ze.color
|
|
@@ -54135,7 +54135,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54135
54135
|
u.value,
|
|
54136
54136
|
ze.name,
|
|
54137
54137
|
f.value / 35,
|
|
54138
|
-
R.value.bottom -
|
|
54138
|
+
R.value.bottom - Le * Ke - Le * q.value / 2,
|
|
54139
54139
|
{
|
|
54140
54140
|
align: "center",
|
|
54141
54141
|
rotation: -90,
|
|
@@ -54146,23 +54146,23 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54146
54146
|
});
|
|
54147
54147
|
} else {
|
|
54148
54148
|
if (W.value.style.chart.grid.y.verticalLines.show && T.value.end - T.value.start < W.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
54149
|
-
for (let
|
|
54149
|
+
for (let Le = 0; Le < T.value.end - T.value.start + 1; Le += 1)
|
|
54150
54150
|
Wo(
|
|
54151
54151
|
u.value,
|
|
54152
54152
|
[
|
|
54153
|
-
{ x: R.value.left + R.value.slot *
|
|
54154
|
-
{ x: R.value.left + R.value.slot *
|
|
54153
|
+
{ x: R.value.left + R.value.slot * Le, y: R.value.top },
|
|
54154
|
+
{ x: R.value.left + R.value.slot * Le, y: R.value.bottom }
|
|
54155
54155
|
],
|
|
54156
54156
|
{
|
|
54157
54157
|
color: W.value.style.chart.grid.y.verticalLines.color
|
|
54158
54158
|
}
|
|
54159
54159
|
);
|
|
54160
|
-
W.value.style.chart.grid.x.horizontalLines.show && (W.value.style.chart.grid.x.horizontalLines.alternate ? re.value.yLabels.forEach((
|
|
54160
|
+
W.value.style.chart.grid.x.horizontalLines.show && (W.value.style.chart.grid.x.horizontalLines.alternate ? re.value.yLabels.forEach((Le, ze) => {
|
|
54161
54161
|
ze < re.value.yLabels.length - 1 && Dc(
|
|
54162
54162
|
u.value,
|
|
54163
54163
|
[
|
|
54164
|
-
{ x: R.value.left, y:
|
|
54165
|
-
{ x: R.value.right, y:
|
|
54164
|
+
{ x: R.value.left, y: Le.y },
|
|
54165
|
+
{ x: R.value.right, y: Le.y },
|
|
54166
54166
|
{ x: R.value.right, y: re.value.yLabels[ze + 1].y },
|
|
54167
54167
|
{ x: R.value.left, y: re.value.yLabels[ze + 1].y }
|
|
54168
54168
|
],
|
|
@@ -54171,12 +54171,12 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54171
54171
|
strokeColor: "transparent"
|
|
54172
54172
|
}
|
|
54173
54173
|
);
|
|
54174
|
-
}) : re.value.yLabels.forEach((
|
|
54174
|
+
}) : re.value.yLabels.forEach((Le) => {
|
|
54175
54175
|
Wo(
|
|
54176
54176
|
u.value,
|
|
54177
54177
|
[
|
|
54178
|
-
{ x: R.value.left, y:
|
|
54179
|
-
{ x: R.value.right, y:
|
|
54178
|
+
{ x: R.value.left, y: Le.y },
|
|
54179
|
+
{ x: R.value.right, y: Le.y }
|
|
54180
54180
|
],
|
|
54181
54181
|
{
|
|
54182
54182
|
color: W.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -54212,17 +54212,17 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54212
54212
|
color: W.value.style.chart.grid.zeroLine.color,
|
|
54213
54213
|
lineDash: W.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
54214
54214
|
}
|
|
54215
|
-
), W.value.style.chart.grid.y.axisLabels.show && re.value.yLabels.forEach((
|
|
54215
|
+
), W.value.style.chart.grid.y.axisLabels.show && re.value.yLabels.forEach((Le) => {
|
|
54216
54216
|
Mr(
|
|
54217
54217
|
u.value,
|
|
54218
54218
|
at({
|
|
54219
54219
|
p: W.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
54220
|
-
v:
|
|
54220
|
+
v: Le.value,
|
|
54221
54221
|
s: W.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
54222
54222
|
r: W.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
54223
54223
|
}),
|
|
54224
|
-
|
|
54225
|
-
|
|
54224
|
+
Le.x + W.value.style.chart.grid.y.axisLabels.offsetX,
|
|
54225
|
+
Le.y,
|
|
54226
54226
|
{
|
|
54227
54227
|
align: "right",
|
|
54228
54228
|
font: `${f.value / 40 * W.value.style.chart.grid.y.axisLabels.fontSizeRatio}px ${W.value.style.fontFamily}`,
|
|
@@ -54254,63 +54254,63 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54254
54254
|
}
|
|
54255
54255
|
);
|
|
54256
54256
|
}
|
|
54257
|
-
function K(
|
|
54258
|
-
for (let ze = 0; ze <
|
|
54257
|
+
function K(Le) {
|
|
54258
|
+
for (let ze = 0; ze < Le.coordinatesLine.length; ze += 1)
|
|
54259
54259
|
Vf(
|
|
54260
54260
|
u.value,
|
|
54261
|
-
{ x:
|
|
54261
|
+
{ x: Le.coordinatesLine[ze].x, y: Le.coordinatesLine[ze].y },
|
|
54262
54262
|
(m.value === ze ? f.value / 100 : f.value / 200) * W.value.style.chart.line.plots.radiusRatio,
|
|
54263
54263
|
{
|
|
54264
54264
|
color: W.value.style.chart.backgroundColor,
|
|
54265
|
-
fillStyle:
|
|
54265
|
+
fillStyle: Le.color,
|
|
54266
54266
|
strokeColor: "transparent"
|
|
54267
54267
|
}
|
|
54268
54268
|
);
|
|
54269
54269
|
}
|
|
54270
|
-
function D(
|
|
54271
|
-
for (let ze = 0; ze <
|
|
54270
|
+
function D(Le) {
|
|
54271
|
+
for (let ze = 0; ze < Le.coordinatesLine.length; ze += 1)
|
|
54272
54272
|
Mr(
|
|
54273
54273
|
u.value,
|
|
54274
54274
|
at({
|
|
54275
|
-
p:
|
|
54276
|
-
v:
|
|
54277
|
-
s:
|
|
54278
|
-
r:
|
|
54275
|
+
p: Le.prefix || "",
|
|
54276
|
+
v: Le.coordinatesLine[ze].value,
|
|
54277
|
+
s: Le.suffix || "",
|
|
54278
|
+
r: Le.rounding || 0
|
|
54279
54279
|
}),
|
|
54280
|
-
|
|
54281
|
-
|
|
54280
|
+
Le.coordinatesLine[ze].x,
|
|
54281
|
+
Le.coordinatesLine[ze].y + W.value.style.chart.dataLabels.offsetY,
|
|
54282
54282
|
{
|
|
54283
54283
|
align: "center",
|
|
54284
54284
|
font: `${f.value / 40 * W.value.style.chart.dataLabels.fontSizeRatio}px ${W.value.style.fontFamily}`,
|
|
54285
|
-
color: W.value.style.chart.dataLabels.useSerieColor ?
|
|
54285
|
+
color: W.value.style.chart.dataLabels.useSerieColor ? Le.color : W.value.style.chart.dataLabels.color,
|
|
54286
54286
|
strokeColor: W.value.style.chart.backgroundColor,
|
|
54287
54287
|
lineWidth: 0.8
|
|
54288
54288
|
}
|
|
54289
54289
|
);
|
|
54290
54290
|
}
|
|
54291
54291
|
function pe() {
|
|
54292
|
-
for (let
|
|
54293
|
-
(T.value.end - T.value.start < 12 || T.value.end - T.value.start >= 12 && (
|
|
54292
|
+
for (let Le = T.value.start; Le < T.value.end; Le += 1)
|
|
54293
|
+
(T.value.end - T.value.start < 12 || T.value.end - T.value.start >= 12 && (Le % Math.floor((T.value.end - T.value.start) / 12) === 0 || Le === m.value + T.value.start)) && Mr(
|
|
54294
54294
|
u.value,
|
|
54295
|
-
W.value.style.chart.grid.y.timeLabels.values[
|
|
54296
|
-
R.value.left + R.value.slot * (
|
|
54295
|
+
W.value.style.chart.grid.y.timeLabels.values[Le] || Le + 1,
|
|
54296
|
+
R.value.left + R.value.slot * (Le - T.value.start) + R.value.slot / 2,
|
|
54297
54297
|
R.value.bottom + f.value / W.value.style.chart.grid.y.timeLabels.offsetY,
|
|
54298
54298
|
{
|
|
54299
54299
|
align: W.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : W.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
54300
54300
|
font: `${f.value / 40 * W.value.style.chart.grid.y.timeLabels.fontSizeRatio}px ${W.value.style.fontFamily}`,
|
|
54301
|
-
color: W.value.style.chart.grid.y.timeLabels.color + st[m.value !== null ? m.value + T.value.start ===
|
|
54301
|
+
color: W.value.style.chart.grid.y.timeLabels.color + st[m.value !== null ? m.value + T.value.start === Le ? 100 : 20 : 100],
|
|
54302
54302
|
rotation: W.value.style.chart.grid.y.timeLabels.rotation
|
|
54303
54303
|
}
|
|
54304
54304
|
);
|
|
54305
54305
|
}
|
|
54306
54306
|
function ce() {
|
|
54307
|
-
const
|
|
54307
|
+
const Le = R.value.height / r.dataset.filter((ze, Ke) => !h.value.includes(Ke)).length;
|
|
54308
54308
|
be.value.stacked ? j.value.forEach((ze, Ke) => {
|
|
54309
54309
|
Wo(
|
|
54310
54310
|
u.value,
|
|
54311
54311
|
[
|
|
54312
|
-
{ x: R.value.left + R.value.slot * m.value + R.value.slot / 2, y: R.value.bottom -
|
|
54313
|
-
{ x: R.value.left + R.value.slot * m.value + R.value.slot / 2, y: R.value.bottom -
|
|
54312
|
+
{ x: R.value.left + R.value.slot * m.value + R.value.slot / 2, y: R.value.bottom - Le * Ke },
|
|
54313
|
+
{ x: R.value.left + R.value.slot * m.value + R.value.slot / 2, y: R.value.bottom - Le * Ke - Le * q.value }
|
|
54314
54314
|
],
|
|
54315
54315
|
{
|
|
54316
54316
|
color: W.value.style.chart.selector.color,
|
|
@@ -54332,26 +54332,26 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54332
54332
|
);
|
|
54333
54333
|
}
|
|
54334
54334
|
function we() {
|
|
54335
|
-
G.value.forEach((
|
|
54336
|
-
for (let Ke = 0; Ke <
|
|
54335
|
+
G.value.forEach((Le, ze) => {
|
|
54336
|
+
for (let Ke = 0; Ke < Le.coordinatesLine.length; Ke += 1)
|
|
54337
54337
|
Dc(
|
|
54338
54338
|
u.value,
|
|
54339
54339
|
[
|
|
54340
54340
|
{
|
|
54341
54341
|
x: R.value.left + R.value.slot * Ke + R.value.slot / 10 + (be.value.stacked ? 0 : R.value.slot / G.value.length * ze - (ze === 0 ? 0 : R.value.slot / (5 * G.value.length) * ze)),
|
|
54342
|
-
y: be.value.stacked ?
|
|
54342
|
+
y: be.value.stacked ? Le.localZero : re.value.zero
|
|
54343
54343
|
},
|
|
54344
54344
|
{
|
|
54345
54345
|
x: R.value.left + R.value.slot * Ke + R.value.slot / 10 + (be.value.stacked ? 0 : R.value.slot / G.value.length * ze - (ze === 0 ? 0 : R.value.slot / (5 * G.value.length) * ze)) + R.value.slot * 0.8 / (be.value.stacked ? 1 : G.value.length),
|
|
54346
|
-
y: be.value.stacked ?
|
|
54346
|
+
y: be.value.stacked ? Le.localZero : re.value.zero
|
|
54347
54347
|
},
|
|
54348
54348
|
{
|
|
54349
54349
|
x: R.value.left + R.value.slot * Ke + R.value.slot / 10 + (be.value.stacked ? 0 : R.value.slot / G.value.length * ze - (ze === 0 ? 0 : R.value.slot / (5 * G.value.length) * ze)) + R.value.slot * 0.8 / (be.value.stacked ? 1 : G.value.length),
|
|
54350
|
-
y:
|
|
54350
|
+
y: Le.coordinatesLine[Ke].y
|
|
54351
54351
|
},
|
|
54352
54352
|
{
|
|
54353
54353
|
x: R.value.left + R.value.slot * Ke + R.value.slot / 10 + (be.value.stacked ? 0 : R.value.slot / G.value.length * ze - (ze === 0 ? 0 : R.value.slot / (5 * G.value.length) * ze)),
|
|
54354
|
-
y:
|
|
54354
|
+
y: Le.coordinatesLine[Ke].y
|
|
54355
54355
|
}
|
|
54356
54356
|
],
|
|
54357
54357
|
{
|
|
@@ -54359,60 +54359,60 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54359
54359
|
gradient: {
|
|
54360
54360
|
type: "linear",
|
|
54361
54361
|
start: {
|
|
54362
|
-
x:
|
|
54363
|
-
y:
|
|
54362
|
+
x: Le.coordinatesLine[Ke].x,
|
|
54363
|
+
y: Le.coordinatesLine[Ke].y
|
|
54364
54364
|
},
|
|
54365
54365
|
end: {
|
|
54366
|
-
x:
|
|
54367
|
-
y: be.value.stacked ?
|
|
54366
|
+
x: Le.coordinatesLine[Ke].x,
|
|
54367
|
+
y: be.value.stacked ? Le.localZero : re.value.zero
|
|
54368
54368
|
},
|
|
54369
54369
|
stops: [
|
|
54370
|
-
{ offset: 0, color:
|
|
54371
|
-
{ offset: 1, color: Go(
|
|
54370
|
+
{ offset: 0, color: Le.color },
|
|
54371
|
+
{ offset: 1, color: Go(Le.color, 0.5) }
|
|
54372
54372
|
]
|
|
54373
54373
|
}
|
|
54374
54374
|
}
|
|
54375
|
-
), be.value.showDataLabels && [!0, void 0].includes(
|
|
54375
|
+
), be.value.showDataLabels && [!0, void 0].includes(Le.dataLabels) && Mr(
|
|
54376
54376
|
u.value,
|
|
54377
54377
|
at({
|
|
54378
|
-
p:
|
|
54379
|
-
v:
|
|
54380
|
-
s:
|
|
54381
|
-
r:
|
|
54378
|
+
p: Le.prefix || "",
|
|
54379
|
+
v: Le.coordinatesLine[Ke].value,
|
|
54380
|
+
s: Le.suffix || "",
|
|
54381
|
+
r: Le.rounding || 0
|
|
54382
54382
|
}),
|
|
54383
54383
|
R.value.left + R.value.slot * Ke + R.value.slot / 10 + (be.value.stacked ? 0 : R.value.slot / G.value.length * ze - (ze === 0 ? 0 : R.value.slot / (5 * G.value.length) * ze)) + R.value.slot * 0.4 / (be.value.stacked ? 1 : G.value.length),
|
|
54384
|
-
(
|
|
54384
|
+
(Le.coordinatesLine[Ke].value < 0 ? be.value.stacked ? Le.localZero : re.value.zero : Le.coordinatesLine[Ke].y) + W.value.style.chart.dataLabels.offsetY,
|
|
54385
54385
|
{
|
|
54386
54386
|
align: "center",
|
|
54387
54387
|
font: `${f.value / 40 * W.value.style.chart.dataLabels.fontSizeRatio}px ${W.value.style.fontFamily}`,
|
|
54388
|
-
color: W.value.style.chart.dataLabels.useSerieColor ?
|
|
54388
|
+
color: W.value.style.chart.dataLabels.useSerieColor ? Le.color : W.value.style.chart.dataLabels.color,
|
|
54389
54389
|
strokeColor: W.value.style.chart.backgroundColor,
|
|
54390
54390
|
lineWidth: 0.8
|
|
54391
54391
|
}
|
|
54392
54392
|
);
|
|
54393
54393
|
});
|
|
54394
54394
|
}
|
|
54395
|
-
function ge(
|
|
54396
|
-
|
|
54395
|
+
function ge(Le) {
|
|
54396
|
+
Le.useArea ? rY(
|
|
54397
54397
|
u.value,
|
|
54398
|
-
[{ x:
|
|
54398
|
+
[{ x: Le.coordinatesLine[0].x, y: re.value.zero }, ...Le.coordinatesLine, { x: Le.coordinatesLine.at(-1).x, y: re.value.zero }],
|
|
54399
54399
|
{
|
|
54400
|
-
fillColor:
|
|
54400
|
+
fillColor: Le.color + st[W.value.style.chart.area.opacity],
|
|
54401
54401
|
strokeColor: "transparent"
|
|
54402
54402
|
}
|
|
54403
|
-
) : Wo(u.value,
|
|
54404
|
-
color:
|
|
54403
|
+
) : Wo(u.value, Le.coordinatesLine, {
|
|
54404
|
+
color: Le.color,
|
|
54405
54405
|
lineWidth: 3
|
|
54406
54406
|
});
|
|
54407
54407
|
}
|
|
54408
54408
|
function ke() {
|
|
54409
|
-
const
|
|
54409
|
+
const Le = R.value.height / r.dataset.filter((ze, Ke) => !h.value.includes(Ke)).length;
|
|
54410
54410
|
j.value.forEach((ze, Ke) => {
|
|
54411
54411
|
Wo(
|
|
54412
54412
|
u.value,
|
|
54413
54413
|
[
|
|
54414
|
-
{ x: R.value.left, y: R.value.bottom -
|
|
54415
|
-
{ x: R.value.right, y: R.value.bottom -
|
|
54414
|
+
{ x: R.value.left, y: R.value.bottom - Le * Ke },
|
|
54415
|
+
{ x: R.value.right, y: R.value.bottom - Le * Ke }
|
|
54416
54416
|
],
|
|
54417
54417
|
{
|
|
54418
54418
|
color: ze.color,
|
|
@@ -54422,19 +54422,19 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54422
54422
|
});
|
|
54423
54423
|
}
|
|
54424
54424
|
function ue() {
|
|
54425
|
-
M(), k.value ? (x.value && m.value !== null && W.value.style.chart.selector.show && ce(), we(), be.value.stacked && W.value.style.chart.grid.x.showAxis && ke(), $.value.forEach((
|
|
54426
|
-
(
|
|
54427
|
-
}), w.value = sY(s.value)) : (u.value.drawImage(w.value, 0, 0), x.value && m.value !== null && W.value.style.chart.selector.show && ce(), x.value && m.value !== null && j.value.forEach((
|
|
54428
|
-
((
|
|
54425
|
+
M(), k.value ? (x.value && m.value !== null && W.value.style.chart.selector.show && ce(), we(), be.value.stacked && W.value.style.chart.grid.x.showAxis && ke(), $.value.forEach((Le) => {
|
|
54426
|
+
(Le.type === "line" || !Le.type) && ge(Le), x.value && ((W.value.style.chart.line.plots.show || Le.type === "plot") && K(Le), be.value.showDataLabels && [!0, void 0].includes(Le.dataLabels) && D(Le));
|
|
54427
|
+
}), w.value = sY(s.value)) : (u.value.drawImage(w.value, 0, 0), x.value && m.value !== null && W.value.style.chart.selector.show && ce(), x.value && m.value !== null && j.value.forEach((Le) => {
|
|
54428
|
+
((Le.type === "line" || !Le.type) && W.value.style.chart.line.plots.show || Le.type === "plot") && Le.coordinatesLine[m.value].x !== void 0 && Le.coordinatesLine[m.value].y !== void 0 && Vf(
|
|
54429
54429
|
u.value,
|
|
54430
54430
|
{
|
|
54431
|
-
x:
|
|
54432
|
-
y:
|
|
54431
|
+
x: Le.coordinatesLine[m.value].x,
|
|
54432
|
+
y: Le.coordinatesLine[m.value].y
|
|
54433
54433
|
},
|
|
54434
54434
|
f.value / 100 * W.value.style.chart.line.plots.radiusRatio,
|
|
54435
54435
|
{
|
|
54436
54436
|
color: W.value.style.chart.backgroundColor,
|
|
54437
|
-
fillStyle:
|
|
54437
|
+
fillStyle: Le.color,
|
|
54438
54438
|
strokeColor: "transparent"
|
|
54439
54439
|
}
|
|
54440
54440
|
);
|
|
@@ -54443,8 +54443,8 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54443
54443
|
const H = nY(() => {
|
|
54444
54444
|
x.value = !0, I();
|
|
54445
54445
|
}, ae.value > 200 ? 10 : 1, !x.value);
|
|
54446
|
-
function te(
|
|
54447
|
-
const { left: ze } = s.value.getBoundingClientRect(), Ke =
|
|
54446
|
+
function te(Le) {
|
|
54447
|
+
const { left: ze } = s.value.getBoundingClientRect(), Ke = Le.clientX - ze;
|
|
54448
54448
|
if (Ke * 2 < R.value.left || Ke * 2 > R.value.right) {
|
|
54449
54449
|
d.value = !1, m.value = null;
|
|
54450
54450
|
return;
|
|
@@ -54486,7 +54486,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54486
54486
|
deep: !0
|
|
54487
54487
|
}), Fo(() => be.value.showDataLabels, () => {
|
|
54488
54488
|
k.value = !0, ue();
|
|
54489
|
-
}), Fo(() => be.value.stacked, (
|
|
54489
|
+
}), Fo(() => be.value.stacked, (Le) => {
|
|
54490
54490
|
k.value = !0, x.value = !0, H();
|
|
54491
54491
|
});
|
|
54492
54492
|
function U() {
|
|
@@ -54501,18 +54501,18 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54501
54501
|
Ke.contentBoxSize && i.value && (k.value = !0, H());
|
|
54502
54502
|
}).observe(i.value);
|
|
54503
54503
|
});
|
|
54504
|
-
function Q(
|
|
54505
|
-
a("selectLegend", j.value[
|
|
54506
|
-
}
|
|
54507
|
-
const _ = le(() => r.dataset.map((
|
|
54508
|
-
name:
|
|
54509
|
-
color: kt(
|
|
54510
|
-
shape:
|
|
54511
|
-
prefix:
|
|
54512
|
-
suffix:
|
|
54513
|
-
rounding:
|
|
54514
|
-
})).map((
|
|
54515
|
-
|
|
54504
|
+
function Q(Le) {
|
|
54505
|
+
a("selectLegend", j.value[Le]), h.value.includes(Le) ? h.value = h.value.filter((ze) => ze !== Le) : h.value.push(Le), k.value = !0, H();
|
|
54506
|
+
}
|
|
54507
|
+
const _ = le(() => r.dataset.map((Le, ze) => ({
|
|
54508
|
+
name: Le.name,
|
|
54509
|
+
color: kt(Le.color) || ee.value[ze] || Oe[ze] || Oe[ze % Oe.length],
|
|
54510
|
+
shape: Le.shape || "circle",
|
|
54511
|
+
prefix: Le.prefix || "",
|
|
54512
|
+
suffix: Le.suffix || "",
|
|
54513
|
+
rounding: Le.rounding || 0
|
|
54514
|
+
})).map((Le, ze) => ({
|
|
54515
|
+
...Le,
|
|
54516
54516
|
opacity: h.value.includes(ze) ? 0.5 : 1,
|
|
54517
54517
|
segregate: () => Q(ze),
|
|
54518
54518
|
isSegregated: h.value.includes(ze)
|
|
@@ -54552,7 +54552,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54552
54552
|
}, 100);
|
|
54553
54553
|
}
|
|
54554
54554
|
const ut = le(() => {
|
|
54555
|
-
const
|
|
54555
|
+
const Le = [""].concat(j.value.map((pt) => pt.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
54556
54556
|
let ze = [];
|
|
54557
54557
|
for (let pt = 0; pt < ae.value; pt += 1) {
|
|
54558
54558
|
const Lt = j.value.map((Dt) => Dt.series[pt] ?? 0).reduce((Dt, zt) => Dt + zt, 0);
|
|
@@ -54571,11 +54571,11 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54571
54571
|
},
|
|
54572
54572
|
breakpoint: W.value.table.responsiveBreakpoint
|
|
54573
54573
|
}, Bt = [W.value.table.columnNames.period].concat(j.value.map((pt) => pt.name)).concat(W.value.table.columnNames.total);
|
|
54574
|
-
return { head:
|
|
54574
|
+
return { head: Le, body: ze.slice(0, T.value.end - T.value.start), config: Ke, colNames: Bt };
|
|
54575
54575
|
}), nt = le(() => {
|
|
54576
54576
|
if (j.value.length === 0)
|
|
54577
54577
|
return { head: [], body: [], config: {}, columnNames: [] };
|
|
54578
|
-
const
|
|
54578
|
+
const Le = j.value.map((Ke) => ({
|
|
54579
54579
|
label: Ke.name,
|
|
54580
54580
|
color: Ke.color,
|
|
54581
54581
|
type: Ke.type
|
|
@@ -54585,10 +54585,10 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54585
54585
|
j.value.forEach((Lt) => {
|
|
54586
54586
|
pt.push(Number((Lt.series[Bt] || 0).toFixed(W.value.table.rounding)));
|
|
54587
54587
|
}), ze.push(pt);
|
|
54588
|
-
}), { head:
|
|
54588
|
+
}), { head: Le, body: ze };
|
|
54589
54589
|
});
|
|
54590
54590
|
function it() {
|
|
54591
|
-
const
|
|
54591
|
+
const Le = [[W.value.style.chart.title.text], [W.value.style.chart.title.subtitle.text], [""]], ze = ["", ...nt.value.head.map((Lt) => Lt.label)], Ke = nt.value.body, Bt = Le.concat([ze]).concat(Ke), pt = pl(Bt);
|
|
54592
54592
|
yl({ csvContent: pt, title: W.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
54593
54593
|
}
|
|
54594
54594
|
function wt() {
|
|
@@ -54599,11 +54599,12 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54599
54599
|
generateCsv: it,
|
|
54600
54600
|
generatePdf: Ue,
|
|
54601
54601
|
generateImage: qe
|
|
54602
|
-
}), (
|
|
54602
|
+
}), (Le, ze) => (A(), c("div", {
|
|
54603
54603
|
style: { width: "100%", position: "relative" },
|
|
54604
54604
|
ref_key: "xy",
|
|
54605
54605
|
ref: l,
|
|
54606
|
-
id: `xy_canvas_${o.value}
|
|
54606
|
+
id: `xy_canvas_${o.value}`,
|
|
54607
|
+
class: Ie(`vue-ui-donut ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
54607
54608
|
}, [
|
|
54608
54609
|
W.value.style.chart.title.text ? (A(), c("div", {
|
|
54609
54610
|
key: 0,
|
|
@@ -54678,10 +54679,10 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54678
54679
|
isCustom: se(ul)(W.value.style.chart.tooltip.customFormat)
|
|
54679
54680
|
}, {
|
|
54680
54681
|
"tooltip-before": Ge(() => [
|
|
54681
|
-
Xe(
|
|
54682
|
+
Xe(Le.$slots, "tooltip-before", mt(Ct({ ...g.value })), void 0, !0)
|
|
54682
54683
|
]),
|
|
54683
54684
|
"tooltip-after": Ge(() => [
|
|
54684
|
-
Xe(
|
|
54685
|
+
Xe(Le.$slots, "tooltip-after", mt(Ct({ ...g.value })), void 0, !0)
|
|
54685
54686
|
]),
|
|
54686
54687
|
_: 3
|
|
54687
54688
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "parent", "content", "isCustom"])
|
|
@@ -54712,7 +54713,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54712
54713
|
onReset: xe
|
|
54713
54714
|
}, {
|
|
54714
54715
|
"reset-action": Ge(({ reset: Ke }) => [
|
|
54715
|
-
Xe(
|
|
54716
|
+
Xe(Le.$slots, "reset-action", mt(Ct({ reset: Ke })), void 0, !0)
|
|
54716
54717
|
]),
|
|
54717
54718
|
_: 3
|
|
54718
54719
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : S("", !0)
|
|
@@ -54731,7 +54732,7 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54731
54732
|
]),
|
|
54732
54733
|
_: 1
|
|
54733
54734
|
}, 8, ["legendSet", "config"])) : S("", !0),
|
|
54734
|
-
Xe(
|
|
54735
|
+
Xe(Le.$slots, "legend", { legend: _.value }, void 0, !0),
|
|
54735
54736
|
T.value.end - T.value.start < 200 ? (A(), Ve(Sl, {
|
|
54736
54737
|
key: 3,
|
|
54737
54738
|
hideDetails: "",
|
|
@@ -54768,9 +54769,9 @@ const iY = ["id"], AY = ["onClick"], uY = ["innerHTML"], cY = {
|
|
|
54768
54769
|
]),
|
|
54769
54770
|
_: 1
|
|
54770
54771
|
}, 8, ["config"])) : S("", !0)
|
|
54771
|
-
],
|
|
54772
|
+
], 10, iY));
|
|
54772
54773
|
}
|
|
54773
|
-
}, dY = /* @__PURE__ */ Qt(cY, [["__scopeId", "data-v-
|
|
54774
|
+
}, dY = /* @__PURE__ */ Qt(cY, [["__scopeId", "data-v-78d50e9b"]]), hY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54774
54775
|
__proto__: null,
|
|
54775
54776
|
default: dY
|
|
54776
54777
|
}, Symbol.toStringTag, { value: "Module" }));
|