file-viewer3 1.0.1 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/{ImageViewer-3aabb7c7.mjs → components/ImageViewer.js} +1 -1
- package/dist/{MarkdownViewer-11f6e7ed.mjs → components/MarkdownViewer.js} +1 -1
- package/dist/{PdfView-c5946833.mjs → components/PdfView.js} +17 -12
- package/dist/{PptxRender-f90c00c0.mjs → components/PptxRender.js} +127 -125
- package/dist/{XlsxTable-22ea834f.mjs → components/XlsxTable.js} +5210 -5207
- package/dist/{docx-preview.min-31358ab2.mjs → components/docx-preview.min.js} +2 -2
- package/dist/{index-59c602ca.mjs → components/index.js} +6 -6
- package/dist/components/worker-ref.js +21 -0
- package/dist/{main.mjs → index.mjs} +1 -1
- package/dist/{main.umd.js → index.umd.js} +12 -12
- package/dist/src/package/common/worker-ref.d.ts +12 -0
- package/dist/src/package/vendors/pdf/worker/index.d.ts +4 -0
- package/dist/src/package/vendors/pptx/worker/index.d.ts +4 -0
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -0
- package/dist/style.css +2 -2
- package/package.json +3 -3
- package/.vscode/extensions.json +0 -3
- /package/dist/{_commonjs-dynamic-modules-bed80856.mjs → components/_commonjs-dynamic-modules.js} +0 -0
- /package/dist/{_commonjsHelpers-92157f1b.mjs → components/_commonjsHelpers.js} +0 -0
- /package/dist/{assets/pdf.worker-909112bf.js → worker/pdf.worker.js} +0 -0
- /package/dist/{assets/pptx.worker-762bd091.js → worker/pptx.worker.js} +0 -0
- /package/dist/{assets/xlsx.worker-b50adc35.js → worker/xlsx.worker.js} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent as mf, ref as _f, onMounted as bf, openBlock as Tf, createElementBlock as wf } from "vue";
|
|
2
|
-
import { c as $f } from "./_commonjsHelpers
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { c as $f } from "./_commonjsHelpers.js";
|
|
3
|
+
import { r as Af } from "./worker-ref.js";
|
|
4
|
+
import { _ as Cf } from "./index.js";
|
|
5
|
+
var Oa = {}, Sf = {
|
|
5
6
|
get exports() {
|
|
6
7
|
return Oa;
|
|
7
8
|
},
|
|
@@ -3719,8 +3720,8 @@ var Oa = {}, Cf = {
|
|
|
3719
3720
|
return e.$ === g && (e.$ = rf), c && e.jQuery === g && (e.jQuery = nf), g;
|
|
3720
3721
|
}, typeof n > "u" && (e.jQuery = e.$ = g), g;
|
|
3721
3722
|
});
|
|
3722
|
-
})(
|
|
3723
|
-
const je = Oa,
|
|
3723
|
+
})(Sf);
|
|
3724
|
+
const je = Oa, kf = () => ({
|
|
3724
3725
|
// These are the defaults.
|
|
3725
3726
|
// pptxFileUrl: "",
|
|
3726
3727
|
// fileInputId: "",
|
|
@@ -3770,9 +3771,6 @@ const je = Oa, Sf = () => ({
|
|
|
3770
3771
|
},
|
|
3771
3772
|
revealjsConfig: {}
|
|
3772
3773
|
});
|
|
3773
|
-
function kf() {
|
|
3774
|
-
return new Worker("" + new URL("assets/pptx.worker-762bd091.js", import.meta.url).href);
|
|
3775
|
-
}
|
|
3776
3774
|
function lr(t, e) {
|
|
3777
3775
|
return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
3778
3776
|
}
|
|
@@ -13924,7 +13922,7 @@ var Ky = {
|
|
|
13924
13922
|
var n = this, i = n.config, r = n.state, a = r.hasAxis, o = r.hasTreemap, s = n.$el;
|
|
13925
13923
|
!o && n.transformMain(t, e), a && i.subchart_show && n.transformContext(t, e), s.legend && n.transformLegend(t);
|
|
13926
13924
|
}
|
|
13927
|
-
},
|
|
13925
|
+
}, tm = {
|
|
13928
13926
|
setTargetType: function(t, e) {
|
|
13929
13927
|
var n = this, i = n.config, r = n.state.withoutFadeIn;
|
|
13930
13928
|
n.mapToTargetIds(t).forEach(function(a) {
|
|
@@ -14339,9 +14337,9 @@ Ye(jr.prototype, [
|
|
|
14339
14337
|
Ky,
|
|
14340
14338
|
Qy,
|
|
14341
14339
|
Jy,
|
|
14342
|
-
|
|
14340
|
+
tm
|
|
14343
14341
|
]);
|
|
14344
|
-
function
|
|
14342
|
+
function em(t) {
|
|
14345
14343
|
var e = this.config, n, i, r, a = function() {
|
|
14346
14344
|
var o = i.shift();
|
|
14347
14345
|
if (o && n && Ke(n) && o in n)
|
|
@@ -14353,7 +14351,7 @@ function e0(t) {
|
|
|
14353
14351
|
n = t, i = o.split("_"), r = a(), Yt(r) && (e[o] = r);
|
|
14354
14352
|
}), this.api && (this.state.orgConfig = t);
|
|
14355
14353
|
}
|
|
14356
|
-
var
|
|
14354
|
+
var nm = {
|
|
14357
14355
|
/**
|
|
14358
14356
|
* Resize the chart.
|
|
14359
14357
|
* @function resize
|
|
@@ -14461,7 +14459,7 @@ var n0 = {
|
|
|
14461
14459
|
var i = this.internal, r = i.config, a = i.state, o = t == null ? void 0 : t.replace(/\./g, "_"), s;
|
|
14462
14460
|
return t && o in r ? Yt(e) ? (r[o] = e, s = e, n && this.flush()) : s = r[o] : (arguments.length === 0 || ui(t)) && (s = a.orgConfig), s;
|
|
14463
14461
|
}
|
|
14464
|
-
},
|
|
14462
|
+
}, im = {
|
|
14465
14463
|
/**
|
|
14466
14464
|
* Get the color
|
|
14467
14465
|
* @function color
|
|
@@ -14630,13 +14628,13 @@ Ye(al, {
|
|
|
14630
14628
|
return this.internal.getMinMaxData().max;
|
|
14631
14629
|
}
|
|
14632
14630
|
});
|
|
14633
|
-
var
|
|
14631
|
+
var rm = { data: al }, am = function(t) {
|
|
14634
14632
|
var e;
|
|
14635
14633
|
return (e = At.btoa) === null || e === void 0 ? void 0 : e.call(At, encodeURIComponent(t).replace(/%([0-9A-F]{2})/g, function(n, i) {
|
|
14636
14634
|
return String.fromCharCode(Number("0x".concat(i)));
|
|
14637
14635
|
}));
|
|
14638
14636
|
};
|
|
14639
|
-
function
|
|
14637
|
+
function om(t, e, n) {
|
|
14640
14638
|
var i = e || n, r = i.width, a = i.height, o = new XMLSerializer(), s = t.cloneNode(!0), u = ry(In(qt.styleSheets)).filter(function(y) {
|
|
14641
14639
|
return y.cssText;
|
|
14642
14640
|
}).map(function(y) {
|
|
@@ -14656,9 +14654,9 @@ function o0(t, e, n) {
|
|
|
14656
14654
|
`).concat(l.replace(/(url\()[^#]+/g, "$1"), `
|
|
14657
14655
|
</foreignObject></svg>`).replace(`/
|
|
14658
14656
|
/g`, "%0A");
|
|
14659
|
-
return "data:image/svg+xml;base64,".concat(
|
|
14657
|
+
return "data:image/svg+xml;base64,".concat(am(v));
|
|
14660
14658
|
}
|
|
14661
|
-
function
|
|
14659
|
+
function sm(t, e) {
|
|
14662
14660
|
var n = e.top, i = e.left, r = t.getBBox(), a = r.x, o = r.y, s = t.getScreenCTM(), u = s.a, l = s.b, h = s.c, d = s.d, v = s.e, y = s.f, m = t.getBoundingClientRect(), T = m.width, C = m.height;
|
|
14663
14661
|
return {
|
|
14664
14662
|
x: u * a + h * o + v - i,
|
|
@@ -14667,13 +14665,13 @@ function s0(t, e) {
|
|
|
14667
14665
|
height: C
|
|
14668
14666
|
};
|
|
14669
14667
|
}
|
|
14670
|
-
function
|
|
14668
|
+
function cm(t) {
|
|
14671
14669
|
var e = t.getBoundingClientRect(), n = e.left, i = e.top, r = function(o) {
|
|
14672
14670
|
return o.textContent || o.childElementCount;
|
|
14673
14671
|
}, a = [];
|
|
14674
14672
|
return In(t.querySelectorAll("text")).filter(r).forEach(function(o) {
|
|
14675
14673
|
var s = function(l) {
|
|
14676
|
-
var h, d = At.getComputedStyle(l), v = d.fill, y = d.fontFamily, m = d.fontSize, T = d.textAnchor, C = d.transform, A =
|
|
14674
|
+
var h, d = At.getComputedStyle(l), v = d.fill, y = d.fontFamily, m = d.fontSize, T = d.textAnchor, C = d.transform, A = sm(l, { left: n, top: i }), S = A.x, D = A.y, L = A.width, P = A.height;
|
|
14677
14675
|
return h = {}, h[l.textContent] = {
|
|
14678
14676
|
x: S,
|
|
14679
14677
|
y: D,
|
|
@@ -14695,7 +14693,7 @@ function c0(t) {
|
|
|
14695
14693
|
a.push(s(o));
|
|
14696
14694
|
}), a;
|
|
14697
14695
|
}
|
|
14698
|
-
function
|
|
14696
|
+
function um(t, e) {
|
|
14699
14697
|
e.forEach(function(n) {
|
|
14700
14698
|
Object.keys(n).forEach(function(i) {
|
|
14701
14699
|
var r = n[i], a = r.x, o = r.y, s = r.width, u = r.height, l = r.fill, h = r.fontFamily, d = r.fontSize, v = r.transform;
|
|
@@ -14711,7 +14709,7 @@ function u0(t, e) {
|
|
|
14711
14709
|
});
|
|
14712
14710
|
});
|
|
14713
14711
|
}
|
|
14714
|
-
var
|
|
14712
|
+
var lm = {
|
|
14715
14713
|
/**
|
|
14716
14714
|
* Export chart as an image.
|
|
14717
14715
|
* - **NOTE:**
|
|
@@ -14767,17 +14765,17 @@ var l0 = {
|
|
|
14767
14765
|
preserveAspectRatio: !0,
|
|
14768
14766
|
preserveFontStyle: !1,
|
|
14769
14767
|
mimeType: "image/png"
|
|
14770
|
-
}, t), v =
|
|
14768
|
+
}, t), v = om(o.node(), d, { width: l, height: h }), y = d.preserveFontStyle ? cm(s.node()) : [];
|
|
14771
14769
|
if (e && $t(e)) {
|
|
14772
14770
|
var m = new Image();
|
|
14773
14771
|
m.crossOrigin = "Anonymous", m.onload = function() {
|
|
14774
14772
|
var T = qt.createElement("canvas"), C = T.getContext("2d");
|
|
14775
|
-
T.width = d.width || l, T.height = d.height || h, C.drawImage(m, 0, 0), y.length && (
|
|
14773
|
+
T.width = d.width || l, T.height = d.height || h, C.drawImage(m, 0, 0), y.length && (um(C, y), y.length = 0), e.bind(n)(T.toDataURL(d.mimeType));
|
|
14776
14774
|
}, m.src = v;
|
|
14777
14775
|
}
|
|
14778
14776
|
return v;
|
|
14779
14777
|
}
|
|
14780
|
-
},
|
|
14778
|
+
}, fm = {
|
|
14781
14779
|
/**
|
|
14782
14780
|
* This API highlights specified targets and fade out the others.<br><br>
|
|
14783
14781
|
* You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be highlighted.
|
|
@@ -14847,7 +14845,7 @@ var l0 = {
|
|
|
14847
14845
|
return dt(this).classed(Ht.legendItemFocused);
|
|
14848
14846
|
}).classed(Ht.legendItemFocused, !1)), i.focusedTargetIds = [], i.defocusedTargetIds = [];
|
|
14849
14847
|
}
|
|
14850
|
-
},
|
|
14848
|
+
}, hm = {
|
|
14851
14849
|
/**
|
|
14852
14850
|
* Show legend for each target.
|
|
14853
14851
|
* - **NOTE:** Legend APIs aren't supported for `treemap` type.
|
|
@@ -14895,7 +14893,7 @@ var l0 = {
|
|
|
14895
14893
|
var e = this.internal;
|
|
14896
14894
|
e.hideLegend(e.mapToTargetIds(t)), e.updateAndRedraw({ withLegend: !0 });
|
|
14897
14895
|
}
|
|
14898
|
-
},
|
|
14896
|
+
}, dm = { legend: hm }, gm = {
|
|
14899
14897
|
/**
|
|
14900
14898
|
* Load data to the chart.<br><br>
|
|
14901
14899
|
* You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be toggles.
|
|
@@ -15089,7 +15087,7 @@ function Lc(t, e, n) {
|
|
|
15089
15087
|
withLegend: !0
|
|
15090
15088
|
}), r.state.toggling = !1;
|
|
15091
15089
|
}
|
|
15092
|
-
var
|
|
15090
|
+
var pm = {
|
|
15093
15091
|
/**
|
|
15094
15092
|
* Show data series on chart
|
|
15095
15093
|
* @function show
|
|
@@ -15163,7 +15161,7 @@ var p0 = {
|
|
|
15163
15161
|
return n.hide(r.hide, e);
|
|
15164
15162
|
}, 0);
|
|
15165
15163
|
}
|
|
15166
|
-
},
|
|
15164
|
+
}, vm = {
|
|
15167
15165
|
/**
|
|
15168
15166
|
* Show tooltip
|
|
15169
15167
|
* @function tooltip․show
|
|
@@ -15248,7 +15246,7 @@ var p0 = {
|
|
|
15248
15246
|
}
|
|
15249
15247
|
r === "touch" && i.callOverOutForTouch(), i.hideTooltip(!0), (t = i.hideGridFocus) === null || t === void 0 || t.call(i), (e = i.unexpandCircles) === null || e === void 0 || e.call(i), (n = i.expandBarTypeShapes) === null || n === void 0 || n.call(i, !1);
|
|
15250
15248
|
}
|
|
15251
|
-
},
|
|
15249
|
+
}, xm = { tooltip: vm }, Bo = (
|
|
15252
15250
|
/** @class */
|
|
15253
15251
|
function() {
|
|
15254
15252
|
function t(e) {
|
|
@@ -15259,21 +15257,21 @@ var p0 = {
|
|
|
15259
15257
|
var u = $t(r[s]), l = a !== o, h = Kt(r[s]), d = h && Object.keys(r[s]).length > 0;
|
|
15260
15258
|
u && (!l && d || l) ? a[s] = r[s].bind(o) : h && !u ? a[s] = {} : a[s] = r[s], d && i(r[s], a[s], o);
|
|
15261
15259
|
});
|
|
15262
|
-
}(t.prototype, this, this),
|
|
15260
|
+
}(t.prototype, this, this), em.call(n, e), n.beforeInit(), n.init();
|
|
15263
15261
|
}
|
|
15264
15262
|
return t;
|
|
15265
15263
|
}()
|
|
15266
15264
|
);
|
|
15267
15265
|
Ye(Bo.prototype, [
|
|
15268
|
-
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15266
|
+
nm,
|
|
15267
|
+
im,
|
|
15268
|
+
rm,
|
|
15269
|
+
lm,
|
|
15270
|
+
fm,
|
|
15271
|
+
dm,
|
|
15272
|
+
gm,
|
|
15273
|
+
pm,
|
|
15274
|
+
xm
|
|
15277
15275
|
]);
|
|
15278
15276
|
function Mc(t, e, n) {
|
|
15279
15277
|
var i = t.config, r = function(a, o) {
|
|
@@ -15297,7 +15295,7 @@ function Dc(t, e) {
|
|
|
15297
15295
|
y2: n["axis_y2_".concat(e)]
|
|
15298
15296
|
};
|
|
15299
15297
|
}
|
|
15300
|
-
var
|
|
15298
|
+
var ym = {
|
|
15301
15299
|
/**
|
|
15302
15300
|
* Get and set axis labels.
|
|
15303
15301
|
* @function axis․labels
|
|
@@ -15451,7 +15449,7 @@ var y0 = {
|
|
|
15451
15449
|
min: e.min()
|
|
15452
15450
|
};
|
|
15453
15451
|
}
|
|
15454
|
-
},
|
|
15452
|
+
}, mm = { axis: ym }, _m = {
|
|
15455
15453
|
/**
|
|
15456
15454
|
* Set specified category name on category axis.
|
|
15457
15455
|
* @function category
|
|
@@ -15534,7 +15532,7 @@ Ye(ol, {
|
|
|
15534
15532
|
this.internal.removeGridLines(t, !0);
|
|
15535
15533
|
}
|
|
15536
15534
|
});
|
|
15537
|
-
var
|
|
15535
|
+
var bm = { xgrids: ol }, sl = function(t) {
|
|
15538
15536
|
var e = this.internal, n = e.config;
|
|
15539
15537
|
return t && (n.grid_y_lines = t, e.redrawWithoutRescale()), n.grid_y_lines;
|
|
15540
15538
|
};
|
|
@@ -15587,7 +15585,7 @@ Ye(sl, {
|
|
|
15587
15585
|
this.internal.removeGridLines(t, !1);
|
|
15588
15586
|
}
|
|
15589
15587
|
});
|
|
15590
|
-
var
|
|
15588
|
+
var Tm = { ygrids: sl }, wm = {
|
|
15591
15589
|
/**
|
|
15592
15590
|
* Update groups for the targets.
|
|
15593
15591
|
* @function groups
|
|
@@ -15665,7 +15663,7 @@ Ye(cl, {
|
|
|
15665
15663
|
}), n.regions = o) : n.regions = [], o;
|
|
15666
15664
|
}
|
|
15667
15665
|
});
|
|
15668
|
-
var $
|
|
15666
|
+
var $m = { regions: cl }, Am = {
|
|
15669
15667
|
/**
|
|
15670
15668
|
* Get and set x values for the chart.
|
|
15671
15669
|
* @function x
|
|
@@ -15711,7 +15709,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
15711
15709
|
withUpdateXDomain: !0
|
|
15712
15710
|
})), e.data.xs;
|
|
15713
15711
|
}
|
|
15714
|
-
},
|
|
15712
|
+
}, Cm = {
|
|
15715
15713
|
/**
|
|
15716
15714
|
* Flow data to the chart.<br><br>
|
|
15717
15715
|
* By this API, you can append new data points to the chart.
|
|
@@ -15903,7 +15901,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
15903
15901
|
return i;
|
|
15904
15902
|
}, t;
|
|
15905
15903
|
}()
|
|
15906
|
-
),
|
|
15904
|
+
), Sm = (
|
|
15907
15905
|
/** @class */
|
|
15908
15906
|
function() {
|
|
15909
15907
|
function t(e) {
|
|
@@ -16089,11 +16087,11 @@ var $0 = { regions: cl }, A0 = {
|
|
|
16089
16087
|
return this.config.transition = e, this;
|
|
16090
16088
|
}, t;
|
|
16091
16089
|
}()
|
|
16092
|
-
),
|
|
16090
|
+
), km = {
|
|
16093
16091
|
getAxisInstance: function() {
|
|
16094
|
-
return this.axis || new
|
|
16092
|
+
return this.axis || new Em(this);
|
|
16095
16093
|
}
|
|
16096
|
-
},
|
|
16094
|
+
}, Em = (
|
|
16097
16095
|
/** @class */
|
|
16098
16096
|
function() {
|
|
16099
16097
|
function t(e) {
|
|
@@ -16202,7 +16200,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
16202
16200
|
orgXScale: o.scale.x
|
|
16203
16201
|
});
|
|
16204
16202
|
u || (C.tickStepSize = s["axis_".concat(l, "_tick_stepSize")]);
|
|
16205
|
-
var A = new
|
|
16203
|
+
var A = new Sm(C).scale(u && o.scale.zoom || n).orient(d);
|
|
16206
16204
|
if (u && this.isTimeSeries() && T && !$t(T)) {
|
|
16207
16205
|
var S = Qe.bind(o);
|
|
16208
16206
|
T = T.map(function(L) {
|
|
@@ -16418,7 +16416,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
16418
16416
|
});
|
|
16419
16417
|
}, t;
|
|
16420
16418
|
}()
|
|
16421
|
-
),
|
|
16419
|
+
), Rm = {
|
|
16422
16420
|
/**
|
|
16423
16421
|
* Initialize the area that detects the event.
|
|
16424
16422
|
* Add a container for the zone that detects the event.
|
|
@@ -16635,7 +16633,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
16635
16633
|
});
|
|
16636
16634
|
}
|
|
16637
16635
|
}
|
|
16638
|
-
},
|
|
16636
|
+
}, Lm = {
|
|
16639
16637
|
/**
|
|
16640
16638
|
* Generate flow
|
|
16641
16639
|
* @param {object} args option object
|
|
@@ -16727,7 +16725,7 @@ var $0 = { regions: cl }, A0 = {
|
|
|
16727
16725
|
var y = Li(d) / Li(v);
|
|
16728
16726
|
return "translate(".concat(h, ",0) scale(").concat(y, ",1)");
|
|
16729
16727
|
}
|
|
16730
|
-
},
|
|
16728
|
+
}, Mm = {
|
|
16731
16729
|
initClip: function() {
|
|
16732
16730
|
var t = this, e = t.state, n = e.clip, i = e.datetimeId;
|
|
16733
16731
|
n.id = "".concat(i, "-clip"), n.idXAxis = "".concat(n.id, "-xaxis"), n.idYAxis = "".concat(n.id, "-yaxis"), n.idGrid = "".concat(n.id, "-grid"), n.path = t.getClipPath(n.id), n.pathXAxis = t.getClipPath(n.idXAxis), n.pathYAxis = t.getClipPath(n.idYAxis), n.pathGrid = t.getClipPath(n.idGrid);
|
|
@@ -16799,7 +16797,7 @@ function Fc(t, e) {
|
|
|
16799
16797
|
});
|
|
16800
16798
|
});
|
|
16801
16799
|
}
|
|
16802
|
-
var
|
|
16800
|
+
var Dm = {
|
|
16803
16801
|
hasGrid: function() {
|
|
16804
16802
|
var t = this.config;
|
|
16805
16803
|
return ["x", "y"].some(function(e) {
|
|
@@ -16989,7 +16987,7 @@ var D0 = {
|
|
|
16989
16987
|
var l = "grid_".concat(e ? "x" : "y", "_lines");
|
|
16990
16988
|
i[l] = i[l].filter(o);
|
|
16991
16989
|
}
|
|
16992
|
-
},
|
|
16990
|
+
}, Nm = {
|
|
16993
16991
|
initRegion: function() {
|
|
16994
16992
|
var t = this, e = t.$el;
|
|
16995
16993
|
e.region.main = e.main.insert("g", ":first-child").attr("clip-path", t.state.clip.path).attr("class", Xi.regions);
|
|
@@ -17033,7 +17031,7 @@ var D0 = {
|
|
|
17033
17031
|
isRegionOnX: function(t) {
|
|
17034
17032
|
return !t.axis || t.axis === "x";
|
|
17035
17033
|
}
|
|
17036
|
-
},
|
|
17034
|
+
}, Im = {
|
|
17037
17035
|
/**
|
|
17038
17036
|
* Get Axis size according its position
|
|
17039
17037
|
* @param {string} id Axis id value - x, y or y2
|
|
@@ -17102,7 +17100,7 @@ var D0 = {
|
|
|
17102
17100
|
var t = this, e = t.state, n = e.axis, i = e.current, r = i.width - t.getCurrentPaddingLeft(!1) - t.getCurrentPaddingRight(), a = n.x.tickCount + n.x.padding.left + n.x.padding.right, o = t.axis.getMaxTickWidth("x"), s = a ? r / a : 0;
|
|
17103
17101
|
return o > s;
|
|
17104
17102
|
}
|
|
17105
|
-
},
|
|
17103
|
+
}, Pm = {
|
|
17106
17104
|
/**
|
|
17107
17105
|
* Specify the keys of the x values for each data.<br><br>
|
|
17108
17106
|
* This option can be used if we want to show the data that has different x values.
|
|
@@ -17240,7 +17238,7 @@ var D0 = {
|
|
|
17240
17238
|
* }
|
|
17241
17239
|
*/
|
|
17242
17240
|
data_stack_normalize: !1
|
|
17243
|
-
},
|
|
17241
|
+
}, Om = {
|
|
17244
17242
|
/**
|
|
17245
17243
|
* Set clip-path attribute for x axis element
|
|
17246
17244
|
* @name axis․x․clipPath
|
|
@@ -17887,7 +17885,7 @@ var D0 = {
|
|
|
17887
17885
|
* }
|
|
17888
17886
|
*/
|
|
17889
17887
|
axis_x_axes: []
|
|
17890
|
-
},
|
|
17888
|
+
}, Fm = {
|
|
17891
17889
|
/**
|
|
17892
17890
|
* Set clip-path attribute for y axis element
|
|
17893
17891
|
* - **NOTE**: `clip-path` attribute for y Axis is set only when `axis.y.inner` option is true.
|
|
@@ -18365,7 +18363,7 @@ var D0 = {
|
|
|
18365
18363
|
* }
|
|
18366
18364
|
*/
|
|
18367
18365
|
axis_y_axes: []
|
|
18368
|
-
},
|
|
18366
|
+
}, Xm = {
|
|
18369
18367
|
/**
|
|
18370
18368
|
* Show or hide y2 axis.
|
|
18371
18369
|
* - **NOTE**:
|
|
@@ -18805,7 +18803,7 @@ var D0 = {
|
|
|
18805
18803
|
* }
|
|
18806
18804
|
*/
|
|
18807
18805
|
axis_y2_axes: []
|
|
18808
|
-
},
|
|
18806
|
+
}, Bm = wt(wt(wt({
|
|
18809
18807
|
/**
|
|
18810
18808
|
* Switch x and y axis position.
|
|
18811
18809
|
* @name axis․rotated
|
|
@@ -18818,7 +18816,7 @@ var D0 = {
|
|
|
18818
18816
|
* }
|
|
18819
18817
|
*/
|
|
18820
18818
|
axis_rotated: !1
|
|
18821
|
-
},
|
|
18819
|
+
}, Om), Fm), Xm), zm = {
|
|
18822
18820
|
/**
|
|
18823
18821
|
* Set related options
|
|
18824
18822
|
* @name grid
|
|
@@ -18888,27 +18886,27 @@ var D0 = {
|
|
|
18888
18886
|
grid_focus_y: !1,
|
|
18889
18887
|
grid_front: !1,
|
|
18890
18888
|
grid_lines_front: !0
|
|
18891
|
-
},
|
|
18892
|
-
|
|
18893
|
-
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
$
|
|
18899
|
-
|
|
18900
|
-
],
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
],
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18889
|
+
}, Hm = [
|
|
18890
|
+
mm,
|
|
18891
|
+
_m,
|
|
18892
|
+
bm,
|
|
18893
|
+
Tm,
|
|
18894
|
+
Cm,
|
|
18895
|
+
wm,
|
|
18896
|
+
$m,
|
|
18897
|
+
Am
|
|
18898
|
+
], Ym = [
|
|
18899
|
+
km,
|
|
18900
|
+
Mm,
|
|
18901
|
+
Rm,
|
|
18902
|
+
Lm,
|
|
18903
|
+
Dm,
|
|
18904
|
+
Nm,
|
|
18905
|
+
Im
|
|
18906
|
+
], Um = [
|
|
18907
|
+
Pm,
|
|
18908
|
+
Bm,
|
|
18909
|
+
zm
|
|
18912
18910
|
];
|
|
18913
18911
|
function Xc(t) {
|
|
18914
18912
|
t === void 0 && (t = 0);
|
|
@@ -18964,7 +18962,7 @@ function Na(t) {
|
|
|
18964
18962
|
};
|
|
18965
18963
|
};
|
|
18966
18964
|
}
|
|
18967
|
-
var
|
|
18965
|
+
var Vm = {
|
|
18968
18966
|
initPie: function() {
|
|
18969
18967
|
var t = this, e = t.config, n = e.data_type, i = e["".concat(n, "_padding")], r = e["".concat(n, "_startingAngle")] || 0, a = (i ? i * 0.01 : e["".concat(n, "_padAngle")]) || 0;
|
|
18970
18968
|
t.pie = Dx().startAngle(r).endAngle(r + 2 * Math.PI).padAngle(a).value(function(o) {
|
|
@@ -19292,7 +19290,7 @@ var V0 = {
|
|
|
19292
19290
|
h && (l == null || l.attr("dy", "".concat(u ? 0 : Math.round(i.radius / 14)))), n.gauge_label_show && (o.select(".".concat(We.chartArcsGaugeUnit)).attr("dy", "".concat(h ? 1.5 : 0.75, "em")).text(n.gauge_units), o.select(".".concat(We.chartArcsGaugeMin)).attr("dx", "".concat(-1 * (i.innerRadius + (i.radius - i.innerRadius) / (h ? 1 : 2)), "px")).attr("dy", "1.2em").text(e.textForGaugeMinMax(n.gauge_min, !1)), !h && o.select(".".concat(We.chartArcsGaugeMax)).attr("dx", "".concat(i.innerRadius + (i.radius - i.innerRadius) / 2, "px")).attr("dy", "1.2em").text(e.textForGaugeMinMax(n.gauge_max, !0)));
|
|
19293
19291
|
}
|
|
19294
19292
|
}
|
|
19295
|
-
},
|
|
19293
|
+
}, Wm = {
|
|
19296
19294
|
initArea: function(t) {
|
|
19297
19295
|
var e = this, n = e.config;
|
|
19298
19296
|
t.insert("g", ".".concat(n.area_front ? ve.circles : vn.lines)).attr("class", e.getClass("areas", !0));
|
|
@@ -19378,7 +19376,7 @@ var V0 = {
|
|
|
19378
19376
|
];
|
|
19379
19377
|
};
|
|
19380
19378
|
}
|
|
19381
|
-
},
|
|
19379
|
+
}, jm = {
|
|
19382
19380
|
initBar: function() {
|
|
19383
19381
|
var t = this, e = t.$el, n = t.config, i = t.state.clip;
|
|
19384
19382
|
e.bar = e.main.select(".".concat(Mt.chart)).insert("g", ":first-child").attr("class", Be.chartBars).call(this.setCssRule(!1, ".".concat(Be.chartBars), ["pointer-events:none"])), n.clipPath === !1 && (n.bar_radius || n.bar_radius_ratio) && e.bar.attr("clip-path", i.pathXAxis.replace(/#[^)]*/, "#".concat(i.id)));
|
|
@@ -19526,7 +19524,7 @@ var V0 = {
|
|
|
19526
19524
|
];
|
|
19527
19525
|
};
|
|
19528
19526
|
}
|
|
19529
|
-
},
|
|
19527
|
+
}, qm = {
|
|
19530
19528
|
initLine: function() {
|
|
19531
19529
|
var t = this.$el;
|
|
19532
19530
|
t.line = t.main.select(".".concat(Mt.chart)).append("g").attr("class", vn.chartLines).call(this.setCssRule(!1, ".".concat(vn.chartLines), ["pointer-events:none"]));
|
|
@@ -20017,7 +20015,7 @@ var V0 = {
|
|
|
20017
20015
|
point_pattern: [],
|
|
20018
20016
|
point_select_r: void 0,
|
|
20019
20017
|
point_type: "circle"
|
|
20020
|
-
},
|
|
20018
|
+
}, Gm = {
|
|
20021
20019
|
/**
|
|
20022
20020
|
* Set area options
|
|
20023
20021
|
* @name area
|
|
@@ -20078,7 +20076,7 @@ var V0 = {
|
|
|
20078
20076
|
area_front: !0,
|
|
20079
20077
|
area_linearGradient: !1,
|
|
20080
20078
|
area_zerobased: !0
|
|
20081
|
-
},
|
|
20079
|
+
}, Zm = {
|
|
20082
20080
|
/**
|
|
20083
20081
|
* Set bar options
|
|
20084
20082
|
* @name bar
|
|
@@ -20197,7 +20195,7 @@ var V0 = {
|
|
|
20197
20195
|
bar_width_ratio: 0.6,
|
|
20198
20196
|
bar_width_max: void 0,
|
|
20199
20197
|
bar_zerobased: !0
|
|
20200
|
-
},
|
|
20198
|
+
}, Km = {
|
|
20201
20199
|
/**
|
|
20202
20200
|
* Set line options
|
|
20203
20201
|
* @name line
|
|
@@ -20246,7 +20244,7 @@ var V0 = {
|
|
|
20246
20244
|
line_zerobased: !1,
|
|
20247
20245
|
line_classes: void 0,
|
|
20248
20246
|
line_point: !0
|
|
20249
|
-
},
|
|
20247
|
+
}, Qm = {
|
|
20250
20248
|
/**
|
|
20251
20249
|
* Set scatter options
|
|
20252
20250
|
* @name scatter
|
|
@@ -20273,7 +20271,7 @@ var V0 = {
|
|
|
20273
20271
|
* }
|
|
20274
20272
|
*/
|
|
20275
20273
|
scatter_zerobased: !1
|
|
20276
|
-
},
|
|
20274
|
+
}, Jm = {
|
|
20277
20275
|
/**
|
|
20278
20276
|
* Set arc options
|
|
20279
20277
|
* @name arc
|
|
@@ -20310,7 +20308,7 @@ var V0 = {
|
|
|
20310
20308
|
*/
|
|
20311
20309
|
arc_cornerRadius: 0,
|
|
20312
20310
|
arc_cornerRadius_ratio: 0
|
|
20313
|
-
},
|
|
20311
|
+
}, t0 = {
|
|
20314
20312
|
/**
|
|
20315
20313
|
* Set pie options
|
|
20316
20314
|
* @name pie
|
|
@@ -20403,16 +20401,16 @@ var V0 = {
|
|
|
20403
20401
|
pie_startingAngle: 0
|
|
20404
20402
|
};
|
|
20405
20403
|
function zo(t, e) {
|
|
20406
|
-
Ye(jr.prototype,
|
|
20404
|
+
Ye(jr.prototype, Ym.concat(t)), Ye(Bo.prototype, Hm), Wr.setOptions(Um.concat(e || []));
|
|
20407
20405
|
}
|
|
20408
20406
|
function fl(t, e) {
|
|
20409
|
-
zo([ul,
|
|
20407
|
+
zo([ul, qm].concat(t || [])), Wr.setOptions([ll, Km].concat(e || []));
|
|
20410
20408
|
}
|
|
20411
|
-
function
|
|
20412
|
-
Ye(jr.prototype, [
|
|
20409
|
+
function e0(t, e) {
|
|
20410
|
+
Ye(jr.prototype, [Vm].concat(t || [])), Wr.setOptions(e);
|
|
20413
20411
|
}
|
|
20414
20412
|
var hl = function() {
|
|
20415
|
-
return fl(
|
|
20413
|
+
return fl(Wm, [Gm]), (hl = function() {
|
|
20416
20414
|
return Tt.AREA;
|
|
20417
20415
|
})();
|
|
20418
20416
|
}, dl = function() {
|
|
@@ -20420,19 +20418,19 @@ var hl = function() {
|
|
|
20420
20418
|
return Tt.LINE;
|
|
20421
20419
|
})();
|
|
20422
20420
|
}, gl = function() {
|
|
20423
|
-
return
|
|
20421
|
+
return e0(void 0, [Jm, t0]), (gl = function() {
|
|
20424
20422
|
return Tt.PIE;
|
|
20425
20423
|
})();
|
|
20426
20424
|
}, pl = function() {
|
|
20427
|
-
return zo([
|
|
20425
|
+
return zo([jm], Zm), (pl = function() {
|
|
20428
20426
|
return Tt.BAR;
|
|
20429
20427
|
})();
|
|
20430
20428
|
}, vl = function() {
|
|
20431
|
-
return zo([ul], [ll,
|
|
20429
|
+
return zo([ul], [ll, Qm]), (vl = function() {
|
|
20432
20430
|
return Tt.SCATTER;
|
|
20433
20431
|
})();
|
|
20434
20432
|
};
|
|
20435
|
-
function
|
|
20433
|
+
function n0(t, e, n) {
|
|
20436
20434
|
var i = n[0], r = n[1];
|
|
20437
20435
|
return t.every(function(a, o) {
|
|
20438
20436
|
return (o === 0 ? a >= i : a <= r) && !t.every(function(s, u) {
|
|
@@ -20440,12 +20438,12 @@ function nm(t, e, n) {
|
|
|
20440
20438
|
});
|
|
20441
20439
|
});
|
|
20442
20440
|
}
|
|
20443
|
-
var
|
|
20441
|
+
var i0 = function(t) {
|
|
20444
20442
|
var e, n = this.internal, i = n.$el, r = n.axis, a = n.config, o = n.org, s = n.scale, u = a.axis_rotated, l = r.isCategorized(), h = t;
|
|
20445
20443
|
if (a.zoom_enabled && h) {
|
|
20446
20444
|
if (r.isTimeSeries() && (h = h.map(function(m) {
|
|
20447
20445
|
return Qe.bind(n)(m);
|
|
20448
|
-
})),
|
|
20446
|
+
})), n0(h, n.getZoomDomain(!0), n.getZoomDomain())) {
|
|
20449
20447
|
if (l && (h = h.map(function(m, T) {
|
|
20450
20448
|
return Number(m) + (T === 0 ? 0 : 1);
|
|
20451
20449
|
})), n.api.tooltip.hide(), a.subchart_show) {
|
|
@@ -20461,7 +20459,7 @@ var im = function(t) {
|
|
|
20461
20459
|
h = s.zoom ? s.zoom.domain() : s.x.orgDomain();
|
|
20462
20460
|
return h;
|
|
20463
20461
|
};
|
|
20464
|
-
Ye(
|
|
20462
|
+
Ye(i0, {
|
|
20465
20463
|
/**
|
|
20466
20464
|
* Enable and disable zooming.
|
|
20467
20465
|
* @function zoom․enable
|
|
@@ -20543,7 +20541,7 @@ Ye(im, {
|
|
|
20543
20541
|
};
|
|
20544
20542
|
}
|
|
20545
20543
|
});
|
|
20546
|
-
var
|
|
20544
|
+
var r0 = {
|
|
20547
20545
|
/**
|
|
20548
20546
|
* Called when dragging.
|
|
20549
20547
|
* Data points can be selected.
|
|
@@ -20592,7 +20590,7 @@ var rm = {
|
|
|
20592
20590
|
t.hasArcType() || !e.data_selection_enabled || (i(n.select(".".concat(En.dragarea))).style("opacity", "0").remove(), n.selectAll(".".concat(me.shape)).classed(En.INCLUDED, !1), t.setDragStatus(!1));
|
|
20593
20591
|
}
|
|
20594
20592
|
};
|
|
20595
|
-
wt(wt({},
|
|
20593
|
+
wt(wt({}, r0), {
|
|
20596
20594
|
/**
|
|
20597
20595
|
* Select a point
|
|
20598
20596
|
* @param {object} target Target point
|
|
@@ -20699,7 +20697,7 @@ wt(wt({}, rm), {
|
|
|
20699
20697
|
}
|
|
20700
20698
|
}
|
|
20701
20699
|
});
|
|
20702
|
-
var Ia = {},
|
|
20700
|
+
var Ia = {}, a0 = {
|
|
20703
20701
|
/**
|
|
20704
20702
|
* Version information
|
|
20705
20703
|
* @property {string} version version
|
|
@@ -20829,11 +20827,11 @@ var Ia = {}, am = {
|
|
|
20829
20827
|
*/
|
|
20830
20828
|
plugin: {}
|
|
20831
20829
|
};
|
|
20832
|
-
const
|
|
20833
|
-
|
|
20830
|
+
const o0 = (t) => {
|
|
20831
|
+
s0(t.MsgQueue), Bc(je(".block")), Bc(je("table td"));
|
|
20834
20832
|
};
|
|
20835
|
-
function
|
|
20836
|
-
t.forEach((e) =>
|
|
20833
|
+
function s0(t) {
|
|
20834
|
+
t.forEach((e) => c0(e == null ? void 0 : e.data));
|
|
20837
20835
|
}
|
|
20838
20836
|
const Pa = (t, e = (n) => {
|
|
20839
20837
|
}) => ({
|
|
@@ -20847,7 +20845,7 @@ const Pa = (t, e = (n) => {
|
|
|
20847
20845
|
}
|
|
20848
20846
|
})
|
|
20849
20847
|
});
|
|
20850
|
-
function
|
|
20848
|
+
function c0(t) {
|
|
20851
20849
|
if (!t)
|
|
20852
20850
|
return;
|
|
20853
20851
|
const { chartID: e, chartType: n, chartData: i } = t, r = {
|
|
@@ -20920,7 +20918,7 @@ function cm(t) {
|
|
|
20920
20918
|
});
|
|
20921
20919
|
break;
|
|
20922
20920
|
}
|
|
20923
|
-
r.data &&
|
|
20921
|
+
r.data && a0.generate(r);
|
|
20924
20922
|
}
|
|
20925
20923
|
function Bc(t) {
|
|
20926
20924
|
const e = t;
|
|
@@ -20934,13 +20932,13 @@ function Bc(t) {
|
|
|
20934
20932
|
for (let h = 0; h < i.length; h++) {
|
|
20935
20933
|
const d = je(i[h]).data("bulltname"), v = je(i[h]).data("bulltlvl");
|
|
20936
20934
|
o == 0 ? (r = d, a = v, s[u] = o, l[u] = d, o++) : d == r && v == a ? (r = d, a = v, o++, s[u] = o, l[u] = d) : d != r && v == a || d != r && Number(v) > Number(a) ? (r = d, a = v, u++, s[u] = o, l[u] = d, o = 1) : d != r && Number(v) < Number(a) && (r = d, a = v, u--, o = s[u] + 1);
|
|
20937
|
-
const y =
|
|
20935
|
+
const y = u0(l[u], o);
|
|
20938
20936
|
je(i[h]).html(y);
|
|
20939
20937
|
}
|
|
20940
20938
|
}
|
|
20941
20939
|
}
|
|
20942
20940
|
}
|
|
20943
|
-
function
|
|
20941
|
+
function u0(t, e) {
|
|
20944
20942
|
let n = "";
|
|
20945
20943
|
switch (t) {
|
|
20946
20944
|
case "arabicPeriod":
|
|
@@ -20968,7 +20966,7 @@ function um(t, e) {
|
|
|
20968
20966
|
n = zc(e) + ") ";
|
|
20969
20967
|
break;
|
|
20970
20968
|
case "hebrew2Minus":
|
|
20971
|
-
n =
|
|
20969
|
+
n = l0.format(e) + "-";
|
|
20972
20970
|
break;
|
|
20973
20971
|
default:
|
|
20974
20972
|
n = String(e);
|
|
@@ -21015,7 +21013,7 @@ function zc(t) {
|
|
|
21015
21013
|
i = (n[+(e.pop() ?? "") + r * 10] || "") + i;
|
|
21016
21014
|
return Array(+e.join("") + 1).join("M") + i;
|
|
21017
21015
|
}
|
|
21018
|
-
const
|
|
21016
|
+
const l0 = f0([
|
|
21019
21017
|
[1e3, ""],
|
|
21020
21018
|
[400, "ת"],
|
|
21021
21019
|
[300, "ש"],
|
|
@@ -21044,7 +21042,7 @@ const lm = fm([
|
|
|
21044
21042
|
[/([א-ת])([א-ת])$/, "$1״$2"],
|
|
21045
21043
|
[/^([א-ת])$/, "$1׳"]
|
|
21046
21044
|
]);
|
|
21047
|
-
function
|
|
21045
|
+
function f0(t) {
|
|
21048
21046
|
return t.slice().sort(function(e, n) {
|
|
21049
21047
|
return n[1].length - e[1].length;
|
|
21050
21048
|
}), {
|
|
@@ -21066,11 +21064,15 @@ function ur(t, e) {
|
|
|
21066
21064
|
let n = "";
|
|
21067
21065
|
return e == "upperCase" ? n = ((t / 26 >= 1 ? String.fromCharCode(t / 26 + 64) : "") + String.fromCharCode(t % 26 + 65)).toUpperCase() : e == "lowerCase" && (n = ((t / 26 >= 1 ? String.fromCharCode(t / 26 + 64) : "") + String.fromCharCode(t % 26 + 65)).toLowerCase()), n;
|
|
21068
21066
|
}
|
|
21069
|
-
const
|
|
21067
|
+
const h0 = {
|
|
21068
|
+
create() {
|
|
21069
|
+
return Af("pptx.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pptx.worker.js", import.meta.url).href, self.location), { type: "module" }));
|
|
21070
|
+
}
|
|
21071
|
+
}, d0 = /* @__PURE__ */ mf({
|
|
21070
21072
|
__name: "PptxRender",
|
|
21071
21073
|
props: {
|
|
21072
21074
|
data: null,
|
|
21073
|
-
options: { type: Function, default:
|
|
21075
|
+
options: { type: Function, default: kf }
|
|
21074
21076
|
},
|
|
21075
21077
|
setup(t) {
|
|
21076
21078
|
const e = t, n = _f(null);
|
|
@@ -21084,7 +21086,7 @@ const hm = /* @__PURE__ */ mf({
|
|
|
21084
21086
|
// 启动worker逻辑
|
|
21085
21087
|
startWorker() {
|
|
21086
21088
|
i.worker && i.worker.terminate(), i.timer && clearInterval(i.timer);
|
|
21087
|
-
const a = i.worker =
|
|
21089
|
+
const a = i.worker = h0.create();
|
|
21088
21090
|
a.addEventListener("message", (o) => {
|
|
21089
21091
|
this.processMessage(o.data);
|
|
21090
21092
|
}, !1), a.addEventListener("error", (o) => {
|
|
@@ -21130,7 +21132,7 @@ const hm = /* @__PURE__ */ mf({
|
|
|
21130
21132
|
break;
|
|
21131
21133
|
case "ExecutionTime":
|
|
21132
21134
|
case "Done":
|
|
21133
|
-
console.log("pptx渲染完成,耗时", a.data),
|
|
21135
|
+
console.log("pptx渲染完成,耗时", a.data), o0(a.charts), i.isDone = !0;
|
|
21134
21136
|
break;
|
|
21135
21137
|
case "WARN":
|
|
21136
21138
|
console.warn("PPTX processing warning: ", a.data);
|
|
@@ -21157,7 +21159,7 @@ const hm = /* @__PURE__ */ mf({
|
|
|
21157
21159
|
}, null, 512));
|
|
21158
21160
|
}
|
|
21159
21161
|
});
|
|
21160
|
-
const
|
|
21162
|
+
const y0 = /* @__PURE__ */ Cf(d0, [["__scopeId", "data-v-1b0d57cb"]]);
|
|
21161
21163
|
export {
|
|
21162
|
-
|
|
21164
|
+
y0 as default
|
|
21163
21165
|
};
|