@advt-gpt-chart/package 3.0.7 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Chart/ChartControllers/utils.d.ts +2 -2
- package/dist/Chart/DataSource/index.d.ts +2 -2
- package/dist/Chart/DataSource/metricInsight.d.ts +3 -2
- package/dist/index.es.js +305 -317
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.gz +0 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -11,7 +11,7 @@ var K_ = (i, e) => (e = Symbol[i]) ? e : Symbol.for("Symbol." + i), rH = (i) =>
|
|
|
11
11
|
for (var t of I8(e))
|
|
12
12
|
gfe.call(e, t) && nH(i, t, e[t]);
|
|
13
13
|
return i;
|
|
14
|
-
},
|
|
14
|
+
}, Di = (i, e) => yrt(i, _rt(e));
|
|
15
15
|
var nh = (i, e) => {
|
|
16
16
|
var t = {};
|
|
17
17
|
for (var n in i)
|
|
@@ -3653,7 +3653,7 @@ class eat {
|
|
|
3653
3653
|
return this._renderService || (this._renderService = dr.get(roe)), this._renderService;
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
|
-
const
|
|
3656
|
+
const Pi = new eat();
|
|
3657
3657
|
let $fe = 0;
|
|
3658
3658
|
class xIe {
|
|
3659
3659
|
constructor() {
|
|
@@ -3662,7 +3662,7 @@ class xIe {
|
|
|
3662
3662
|
const t = this.nextAnimationFrameCbs;
|
|
3663
3663
|
this.nextAnimationFrameCbs = /* @__PURE__ */ new Map(), t.forEach(((n) => n(e)));
|
|
3664
3664
|
}, this.tryRunAnimationFrameNextFrame = () => {
|
|
3665
|
-
this._rafHandle === null && this.nextAnimationFrameCbs.size !== 0 && (this._rafHandle =
|
|
3665
|
+
this._rafHandle === null && this.nextAnimationFrameCbs.size !== 0 && (this._rafHandle = Pi.global.getRequestAnimationFrame()(this.runAnimationFrame));
|
|
3666
3666
|
};
|
|
3667
3667
|
}
|
|
3668
3668
|
addAnimationFrameCb(e) {
|
|
@@ -5727,7 +5727,7 @@ function ost(i, e) {
|
|
|
5727
5727
|
}
|
|
5728
5728
|
function cM(i, e, t, n, r) {
|
|
5729
5729
|
if (i.length <= 1 || !e || e <= 0) return 0;
|
|
5730
|
-
const o =
|
|
5730
|
+
const o = Pi.graphicUtil.textMeasure;
|
|
5731
5731
|
let a = n, s = i.slice(0, a), l = Math.floor(o.measureText(s, t).width), u = i.slice(0, a + 1), c = Math.floor(o.measureText(u, t).width);
|
|
5732
5732
|
for (; l > e || c <= e; ) {
|
|
5733
5733
|
if (l > e ? a-- : a++, a > i.length) {
|
|
@@ -5760,7 +5760,7 @@ function xb(i, e, t = "actual") {
|
|
|
5760
5760
|
descent: 0,
|
|
5761
5761
|
width: 0
|
|
5762
5762
|
};
|
|
5763
|
-
const r =
|
|
5763
|
+
const r = Pi.graphicUtil.textMeasure.measureText(i, e), o = {
|
|
5764
5764
|
ascent: 0,
|
|
5765
5765
|
height: 0,
|
|
5766
5766
|
descent: 0,
|
|
@@ -6154,7 +6154,7 @@ let bx = class extends MQ {
|
|
|
6154
6154
|
bx = lst([Ji()], bx);
|
|
6155
6155
|
const $Ie = Symbol.for("CanvasFactory"), ust = Symbol.for("Context2dFactory");
|
|
6156
6156
|
function kQ(i) {
|
|
6157
|
-
return dr.getNamed($Ie,
|
|
6157
|
+
return dr.getNamed($Ie, Pi.global.env)(i);
|
|
6158
6158
|
}
|
|
6159
6159
|
const zIe = 1e-4, Qfe = Math.sqrt(3), $8 = 1 / 3;
|
|
6160
6160
|
function Tv(i) {
|
|
@@ -6460,7 +6460,7 @@ class Tst {
|
|
|
6460
6460
|
allocate(e) {
|
|
6461
6461
|
if (!this.pools.length) {
|
|
6462
6462
|
const n = kQ(Object.assign({
|
|
6463
|
-
nativeCanvas:
|
|
6463
|
+
nativeCanvas: Pi.global.createCanvas(e)
|
|
6464
6464
|
}, e));
|
|
6465
6465
|
return this.allocatedCanvas.push(n), n;
|
|
6466
6466
|
}
|
|
@@ -6474,7 +6474,7 @@ class Tst {
|
|
|
6474
6474
|
height: e.height / e.dpr,
|
|
6475
6475
|
dpr: e.dpr
|
|
6476
6476
|
}, r = kQ(Object.assign({
|
|
6477
|
-
nativeCanvas:
|
|
6477
|
+
nativeCanvas: Pi.global.createCanvas(n)
|
|
6478
6478
|
}, n));
|
|
6479
6479
|
return this.allocatedCanvas.push(r), r;
|
|
6480
6480
|
}
|
|
@@ -6525,7 +6525,7 @@ let OQ = class extends SIe {
|
|
|
6525
6525
|
}, this.active = () => {
|
|
6526
6526
|
const i = this.global;
|
|
6527
6527
|
!i.env || this.actived || (dr.getNamed(loe, i.env).configure(this, i), this.actived = !0);
|
|
6528
|
-
}, this._uid = Ts.GenAutoIncrementId(), this.global =
|
|
6528
|
+
}, this._uid = Ts.GenAutoIncrementId(), this.global = Pi.global, this.postInit();
|
|
6529
6529
|
}
|
|
6530
6530
|
_nativeAddEventListener(i, e, t) {
|
|
6531
6531
|
return this._handler.addEventListener(i, e, t);
|
|
@@ -6652,7 +6652,7 @@ let IQ = class {
|
|
|
6652
6652
|
return this.tryInitCanvas(), this._context;
|
|
6653
6653
|
}
|
|
6654
6654
|
constructor(i) {
|
|
6655
|
-
this.contributions = i, this.configured = !1, this.global =
|
|
6655
|
+
this.contributions = i, this.configured = !1, this.global = Pi.global, this._textMeasureMap = /* @__PURE__ */ new Map(), this.global.hooks.onSetEnv.tap("graphic-util", ((e, t, n) => {
|
|
6656
6656
|
this.configured = !1, this.configure(n, t);
|
|
6657
6657
|
}));
|
|
6658
6658
|
}
|
|
@@ -7803,19 +7803,19 @@ class Zo {
|
|
|
7803
7803
|
static GetImage(e, t) {
|
|
7804
7804
|
var n;
|
|
7805
7805
|
const r = Zo.cache.get(e);
|
|
7806
|
-
r ? r.loadState === "fail" ?
|
|
7806
|
+
r ? r.loadState === "fail" ? Pi.global.getRequestAnimationFrame()((() => {
|
|
7807
7807
|
t.imageLoadFail(e);
|
|
7808
7808
|
})) : r.loadState === "init" || r.loadState === "loading" ? (n = r.waitingMark) === null || n === void 0 || n.push(t) : t && t.imageLoadSuccess(e, r.data) : Zo.loadImage(e, t);
|
|
7809
7809
|
}
|
|
7810
7810
|
static GetSvg(e, t) {
|
|
7811
7811
|
var n;
|
|
7812
7812
|
let r = Zo.cache.get(e);
|
|
7813
|
-
r ? r.loadState === "fail" ?
|
|
7813
|
+
r ? r.loadState === "fail" ? Pi.global.getRequestAnimationFrame()((() => {
|
|
7814
7814
|
t.imageLoadFail(e);
|
|
7815
7815
|
})) : r.loadState === "init" || r.loadState === "loading" ? (n = r.waitingMark) === null || n === void 0 || n.push(t) : t && t.imageLoadSuccess(e, r.data) : (r = {
|
|
7816
7816
|
type: "image",
|
|
7817
7817
|
loadState: "init"
|
|
7818
|
-
}, Zo.cache.set(e, r), r.dataPromise =
|
|
7818
|
+
}, Zo.cache.set(e, r), r.dataPromise = Pi.global.loadSvg(e), r.dataPromise ? (r.waitingMark = [t], r.dataPromise.then(((o) => {
|
|
7819
7819
|
var a;
|
|
7820
7820
|
r.loadState = o != null && o.data ? "success" : "fail", r.data = o == null ? void 0 : o.data, (a = r.waitingMark) === null || a === void 0 || a.map(((s, l) => {
|
|
7821
7821
|
o != null && o.data ? (r.loadState = "success", r.data = o.data, s.imageLoadSuccess(e, o.data)) : (r.loadState = "fail", s.imageLoadFail(e));
|
|
@@ -7827,7 +7827,7 @@ class Zo {
|
|
|
7827
7827
|
return n ? n.loadState === "fail" ? Promise.reject() : n.loadState === "init" || n.loadState === "loading" ? n.dataPromise.then(((r) => r.data)) : Promise.resolve(n.data) : (n = {
|
|
7828
7828
|
type: t,
|
|
7829
7829
|
loadState: "init"
|
|
7830
|
-
}, Zo.cache.set(e, n), t === "arrayBuffer" ? n.dataPromise =
|
|
7830
|
+
}, Zo.cache.set(e, n), t === "arrayBuffer" ? n.dataPromise = Pi.global.loadArrayBuffer(e) : t === "blob" ? n.dataPromise = Pi.global.loadBlob(e) : t === "json" && (n.dataPromise = Pi.global.loadJson(e)), n.dataPromise.then(((r) => r.data)));
|
|
7831
7831
|
}
|
|
7832
7832
|
static loading() {
|
|
7833
7833
|
setTimeout((() => {
|
|
@@ -7839,7 +7839,7 @@ class Zo {
|
|
|
7839
7839
|
type: "image",
|
|
7840
7840
|
loadState: "init"
|
|
7841
7841
|
};
|
|
7842
|
-
if (Zo.cache.set(r, a), a.dataPromise =
|
|
7842
|
+
if (Zo.cache.set(r, a), a.dataPromise = Pi.global.loadImage(r), a.dataPromise) {
|
|
7843
7843
|
a.waitingMark = o;
|
|
7844
7844
|
const s = a.dataPromise.then(((l) => {
|
|
7845
7845
|
var u;
|
|
@@ -8634,7 +8634,7 @@ function Ylt(i) {
|
|
|
8634
8634
|
return qlt(this, void 0, void 0, (function* () {
|
|
8635
8635
|
const e = [], t = i.getChildren();
|
|
8636
8636
|
yield new Promise(((n) => {
|
|
8637
|
-
|
|
8637
|
+
Pi.global.getRequestAnimationFrame()((() => {
|
|
8638
8638
|
n(null);
|
|
8639
8639
|
}));
|
|
8640
8640
|
})), t.forEach(((n) => {
|
|
@@ -9231,7 +9231,7 @@ function moe(i, e, t) {
|
|
|
9231
9231
|
class wf {
|
|
9232
9232
|
static GetCanvas() {
|
|
9233
9233
|
try {
|
|
9234
|
-
return wf.canvas || (wf.canvas =
|
|
9234
|
+
return wf.canvas || (wf.canvas = Pi.global.createCanvas({})), wf.canvas;
|
|
9235
9235
|
} catch (e) {
|
|
9236
9236
|
return null;
|
|
9237
9237
|
}
|
|
@@ -9391,7 +9391,7 @@ class Us extends Dst {
|
|
|
9391
9391
|
}
|
|
9392
9392
|
getGraphicService() {
|
|
9393
9393
|
var e, t;
|
|
9394
|
-
return (t = (e = this.stage) === null || e === void 0 ? void 0 : e.graphicService) !== null && t !== void 0 ? t :
|
|
9394
|
+
return (t = (e = this.stage) === null || e === void 0 ? void 0 : e.graphicService) !== null && t !== void 0 ? t : Pi.graphicService;
|
|
9395
9395
|
}
|
|
9396
9396
|
getAttributes() {
|
|
9397
9397
|
return this.attribute;
|
|
@@ -9598,7 +9598,7 @@ class Us extends Dst {
|
|
|
9598
9598
|
}, this.attribute, I0e, o);
|
|
9599
9599
|
a && (e = a.x, t = a.y, delete a.x, delete a.y, this._setAttributes(a));
|
|
9600
9600
|
const s = this.attribute, l = s.postMatrix;
|
|
9601
|
-
return l ?
|
|
9601
|
+
return l ? Pi.transformUtil.fromMatrix(l, l).translate(e, t) : (s.x = ((n = s.x) !== null && n !== void 0 ? n : Fl.x) + e, s.y = ((r = s.y) !== null && r !== void 0 ? r : Fl.y) + t), this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(o), this;
|
|
9602
9602
|
}
|
|
9603
9603
|
translateTo(e, t) {
|
|
9604
9604
|
const n = this.attribute;
|
|
@@ -9625,7 +9625,7 @@ class Us extends Dst {
|
|
|
9625
9625
|
const l = this.attribute;
|
|
9626
9626
|
if (n) {
|
|
9627
9627
|
let { postMatrix: u } = this.attribute;
|
|
9628
|
-
u || (u = new Ua(), l.postMatrix = u),
|
|
9628
|
+
u || (u = new Ua(), l.postMatrix = u), Pi.transformUtil.fromMatrix(u, u).scale(e, t, n);
|
|
9629
9629
|
} else l.scaleX = ((r = l.scaleX) !== null && r !== void 0 ? r : Fl.scaleX) * e, l.scaleY = ((o = l.scaleY) !== null && o !== void 0 ? o : Fl.scaleY) * t;
|
|
9630
9630
|
return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(a), this;
|
|
9631
9631
|
}
|
|
@@ -9653,7 +9653,7 @@ class Us extends Dst {
|
|
|
9653
9653
|
const a = this.attribute;
|
|
9654
9654
|
if (t) {
|
|
9655
9655
|
let { postMatrix: s } = this.attribute;
|
|
9656
|
-
s || (s = new Ua(), a.postMatrix = s),
|
|
9656
|
+
s || (s = new Ua(), a.postMatrix = s), Pi.transformUtil.fromMatrix(s, s).rotate(e, t);
|
|
9657
9657
|
} else a.angle = ((n = a.angle) !== null && n !== void 0 ? n : Fl.angle) + e;
|
|
9658
9658
|
return this.addUpdatePositionTag(), this.addUpdateBoundTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(r), this;
|
|
9659
9659
|
}
|
|
@@ -9820,7 +9820,7 @@ class Us extends Dst {
|
|
|
9820
9820
|
if (s && o && (u = this.getAnchor(s, c)), !a || n === 1 && r === 1) _ot(this._transMatrix, this._transMatrix.reset(), e, t, n, r, o, s && u);
|
|
9821
9821
|
else {
|
|
9822
9822
|
const d = this._transMatrix;
|
|
9823
|
-
d.reset(), d.translate(u[0], u[1]), d.rotate(o), d.translate(-u[0], -u[1]), d.translate(e, t), u = this.getAnchor(a, c, !0),
|
|
9823
|
+
d.reset(), d.translate(u[0], u[1]), d.rotate(o), d.translate(-u[0], -u[1]), d.translate(e, t), u = this.getAnchor(a, c, !0), Pi.transformUtil.fromMatrix(d, d).scale(n, r, {
|
|
9824
9824
|
x: u[0],
|
|
9825
9825
|
y: u[1]
|
|
9826
9826
|
});
|
|
@@ -9870,7 +9870,7 @@ class Us extends Dst {
|
|
|
9870
9870
|
this._onSetStage = e, t && this.stage && e(this, this.stage);
|
|
9871
9871
|
}
|
|
9872
9872
|
attachShadow(e) {
|
|
9873
|
-
return e && (e.shadowHost = this), this.shadowRoot = e != null ? e :
|
|
9873
|
+
return e && (e.shadowHost = this), this.shadowRoot = e != null ? e : Pi.graphicService.creator.shadowRoot(this), this.addUpdateBoundTag(), this.shadowRoot.setStage(this.stage, this.layer), this.shadowRoot;
|
|
9874
9874
|
}
|
|
9875
9875
|
detachShadow() {
|
|
9876
9876
|
this.shadowRoot && (this.addUpdateBoundTag(), this.shadowRoot.release(!0), this.shadowRoot = null);
|
|
@@ -9921,7 +9921,7 @@ class Us extends Dst {
|
|
|
9921
9921
|
}));
|
|
9922
9922
|
}
|
|
9923
9923
|
release() {
|
|
9924
|
-
this.releaseStatus = "released", this.stopAnimates(),
|
|
9924
|
+
this.releaseStatus = "released", this.stopAnimates(), Pi.graphicService.onRelease(this);
|
|
9925
9925
|
}
|
|
9926
9926
|
_emitCustomEvent(e, t) {
|
|
9927
9927
|
var n, r;
|
|
@@ -9932,7 +9932,7 @@ class Us extends Dst {
|
|
|
9932
9932
|
}
|
|
9933
9933
|
toCustomPath() {
|
|
9934
9934
|
var e, t, n;
|
|
9935
|
-
const r = (n = (t = ((e = this.stage) === null || e === void 0 ? void 0 : e.renderService) ||
|
|
9935
|
+
const r = (n = (t = ((e = this.stage) === null || e === void 0 ? void 0 : e.renderService) || Pi.renderService) === null || t === void 0 ? void 0 : t.drawContribution) === null || n === void 0 ? void 0 : n.getRenderContribution(this);
|
|
9936
9936
|
if (r) {
|
|
9937
9937
|
const o = new FQ(null, 1);
|
|
9938
9938
|
return r.drawShape(this, o, 0, 0, {}, {}), o.path;
|
|
@@ -10015,7 +10015,7 @@ let $p = class NQ extends Us {
|
|
|
10015
10015
|
const { scrollX: u = 0, scrollY: c = 0 } = e;
|
|
10016
10016
|
n.translate(u, c);
|
|
10017
10017
|
}
|
|
10018
|
-
return
|
|
10018
|
+
return Pi.graphicService.updateTempAABBBounds(n), Pi.graphicService.transformAABBBounds(e, n, t, !1, this), r.copy(n), r;
|
|
10019
10019
|
}
|
|
10020
10020
|
doUpdateAABBBounds() {
|
|
10021
10021
|
this.updateAABBBoundsStamp++;
|
|
@@ -10101,7 +10101,7 @@ let $p = class NQ extends Us {
|
|
|
10101
10101
|
}
|
|
10102
10102
|
createOrUpdateChild(e, t, n) {
|
|
10103
10103
|
let r = this._getChildByName(e);
|
|
10104
|
-
return r ? r.setAttributes(t) : (r =
|
|
10104
|
+
return r ? r.setAttributes(t) : (r = Pi.graphicService.creator[n](t), r.name = e, this.add(r)), r;
|
|
10105
10105
|
}
|
|
10106
10106
|
clone() {
|
|
10107
10107
|
return new NQ(Object.assign({}, this.attribute));
|
|
@@ -10159,7 +10159,7 @@ class _ut extends $p {
|
|
|
10159
10159
|
this.layerHandler.merge(t.map(((n) => (n.layer.subLayers.size && n.layer.combineSubLayer(e), n.layer.getNativeHandler())))), e && t.forEach(((n) => {
|
|
10160
10160
|
n.group && (n.group.incremental = 0);
|
|
10161
10161
|
})), t.forEach(((n) => {
|
|
10162
|
-
|
|
10162
|
+
Pi.layerService.releaseLayer(this.stage, n.layer);
|
|
10163
10163
|
})), this.subLayers.clear();
|
|
10164
10164
|
}
|
|
10165
10165
|
getNativeHandler() {
|
|
@@ -10210,7 +10210,7 @@ class _ut extends $p {
|
|
|
10210
10210
|
}
|
|
10211
10211
|
release() {
|
|
10212
10212
|
super.release(), this.layerHandler.release(), this.subLayers && this.subLayers.forEach(((e) => {
|
|
10213
|
-
|
|
10213
|
+
Pi.layerService.releaseLayer(this.stage, e.layer);
|
|
10214
10214
|
}));
|
|
10215
10215
|
}
|
|
10216
10216
|
drawTo(e, t) {
|
|
@@ -10239,7 +10239,7 @@ let p6 = g6 = class {
|
|
|
10239
10239
|
return `${g6.idprefix}_${g6.prefix_count++}`;
|
|
10240
10240
|
}
|
|
10241
10241
|
constructor() {
|
|
10242
|
-
this.layerMap = /* @__PURE__ */ new Map(), this.global =
|
|
10242
|
+
this.layerMap = /* @__PURE__ */ new Map(), this.global = Pi.global;
|
|
10243
10243
|
}
|
|
10244
10244
|
tryInit() {
|
|
10245
10245
|
this.inited || (this.staticLayerCountInEnv = this.global.getStaticCanvasCount(), this.dynamicLayerCountInEnv = this.global.getDynamicCanvasCount(), this.inited = !0);
|
|
@@ -10579,8 +10579,8 @@ class Cx extends Us {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
updateAABBBounds(e, t, n, r) {
|
|
10581
10581
|
this.updatePathProxyAABBBounds(n) || (r ? this.updateCircleAABBBoundsImprecise(e, t, n) : this.updateCircleAABBBoundsAccurate(e, t, n));
|
|
10582
|
-
const { tb1: o, tb2: a } =
|
|
10583
|
-
return c5(e, t, o), n.union(o), o.setValue(a.x1, a.y1, a.x2, a.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1,
|
|
10582
|
+
const { tb1: o, tb2: a } = Pi.graphicService.updateTempAABBBounds(n);
|
|
10583
|
+
return c5(e, t, o), n.union(o), o.setValue(a.x1, a.y1, a.x2, a.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, Pi.graphicService.transformAABBBounds(e, n, t, !1, this), n;
|
|
10584
10584
|
}
|
|
10585
10585
|
updateCircleAABBBoundsImprecise(e, t, n) {
|
|
10586
10586
|
const { radius: r = t.radius } = e;
|
|
@@ -10775,12 +10775,12 @@ let Ul = class av extends Us {
|
|
|
10775
10775
|
updateAABBBounds(e, t, n) {
|
|
10776
10776
|
const { text: r = t.text } = this.attribute;
|
|
10777
10777
|
Array.isArray(r) ? this.updateMultilineAABBBounds(r) : this.updateSingallineAABBBounds(r);
|
|
10778
|
-
const { tb1: o } =
|
|
10778
|
+
const { tb1: o } = Pi.graphicService.updateTempAABBBounds(n), { scaleX: a = t.scaleX, scaleY: s = t.scaleY, shadowBlur: l = t.shadowBlur, strokeBoundsBuffer: u = t.strokeBoundsBuffer } = e;
|
|
10779
10779
|
if (l) {
|
|
10780
10780
|
const c = l / Math.abs(a + s);
|
|
10781
10781
|
Pk(o, c, !0, u), n.union(o);
|
|
10782
10782
|
}
|
|
10783
|
-
return
|
|
10783
|
+
return Pi.graphicService.combindShadowAABBBounds(n, this), e.forceBoundsHeight == null && e.forceBoundsWidth == null || Pi.graphicService.updateHTMLTextAABBBounds(e, t, n), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, Qre(n, n, this.transMatrix), n;
|
|
10784
10784
|
}
|
|
10785
10785
|
updateSingallineAABBBounds(e) {
|
|
10786
10786
|
this.updateMultilineAABBBounds([e]);
|
|
@@ -10806,7 +10806,7 @@ let Ul = class av extends Us {
|
|
|
10806
10806
|
const T = this.cache.layoutData.bbox;
|
|
10807
10807
|
return this._AABBBounds.set(T.xOffset, T.yOffset, T.xOffset + T.width, T.yOffset + T.height), f && this._AABBBounds.expand(m / 2), this._AABBBounds;
|
|
10808
10808
|
}
|
|
10809
|
-
const w =
|
|
10809
|
+
const w = Pi.graphicUtil.getTextMeasureInstance(this.textMeasureId || ((n = this.stage) === null || n === void 0 ? void 0 : n.textMeasureId)), E = new YQ(a, {
|
|
10810
10810
|
fontSize: u,
|
|
10811
10811
|
fontWeight: c,
|
|
10812
10812
|
fontFamily: a,
|
|
@@ -10826,7 +10826,7 @@ let Ul = class av extends Us {
|
|
|
10826
10826
|
const V = this.cache.layoutData.bbox;
|
|
10827
10827
|
return this._AABBBounds.set(V.xOffset, V.yOffset, V.xOffset + V.width, V.yOffset + V.height), f && this._AABBBounds.expand(g / 2), this._AABBBounds;
|
|
10828
10828
|
}
|
|
10829
|
-
const A =
|
|
10829
|
+
const A = Pi.graphicUtil.getTextMeasureInstance(this.textMeasureId || ((n = this.stage) === null || n === void 0 ? void 0 : n.textMeasureId)), T = {
|
|
10830
10830
|
fontSize: c,
|
|
10831
10831
|
fontWeight: m,
|
|
10832
10832
|
fontFamily: s,
|
|
@@ -10915,7 +10915,7 @@ let Ul = class av extends Us {
|
|
|
10915
10915
|
}
|
|
10916
10916
|
updateVerticalMultilineAABBBounds(e) {
|
|
10917
10917
|
var t, n, r;
|
|
10918
|
-
const o = this.getGraphicTheme(), a =
|
|
10918
|
+
const o = this.getGraphicTheme(), a = Pi.graphicUtil.getTextMeasureInstance(this.textMeasureId || ((t = this.stage) === null || t === void 0 ? void 0 : t.textMeasureId));
|
|
10919
10919
|
let s;
|
|
10920
10920
|
const l = this.attribute, { maxLineWidth: u = o.maxLineWidth, ellipsis: c = o.ellipsis, fontFamily: h = o.fontFamily, fontSize: d = o.fontSize, fontWeight: f = o.fontWeight, stroke: g = o.stroke, lineWidth: p = o.lineWidth, verticalMode: m = o.verticalMode, suffixPosition: v = o.suffixPosition } = l, b = this.getLineHeight(l, o, 0);
|
|
10921
10921
|
let { textAlign: y = o.textAlign, textBaseline: _ = o.textBaseline } = l;
|
|
@@ -11032,7 +11032,7 @@ class yoe extends Ul {
|
|
|
11032
11032
|
const F = this.cache.layoutData.bbox;
|
|
11033
11033
|
return this._AABBBounds.set(F.xOffset, F.yOffset, F.xOffset + F.width, F.yOffset + F.height), g && this._AABBBounds.expand(p / 2), this._AABBBounds;
|
|
11034
11034
|
}
|
|
11035
|
-
const E =
|
|
11035
|
+
const E = Pi.graphicUtil.getTextMeasureInstance(this.textMeasureId || ((r = this.stage) === null || r === void 0 ? void 0 : r.textMeasureId)), A = new YQ(l, {
|
|
11036
11036
|
fontSize: h,
|
|
11037
11037
|
fontWeight: v,
|
|
11038
11038
|
fontFamily: l
|
|
@@ -11176,10 +11176,10 @@ let _oe = class XQ extends Us {
|
|
|
11176
11176
|
}
|
|
11177
11177
|
updateAABBBounds(e, t, n, r) {
|
|
11178
11178
|
this.updatePathProxyAABBBounds(n) || (r ? this.updateSymbolAABBBoundsImprecise(e, t, n) : this.updateSymbolAABBBoundsAccurate(e, t, n));
|
|
11179
|
-
const { tb1: o, tb2: a } =
|
|
11179
|
+
const { tb1: o, tb2: a } = Pi.graphicService.updateTempAABBBounds(n);
|
|
11180
11180
|
Dut(e, t, o), n.union(o), o.setValue(a.x1, a.y1, a.x2, a.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, this.x1WithoutTransform = n.x1, this.y1WithoutTransform = n.y1;
|
|
11181
11181
|
const { lineJoin: s = t.lineJoin } = e;
|
|
11182
|
-
return
|
|
11182
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, s === "miter", this), n;
|
|
11183
11183
|
}
|
|
11184
11184
|
updateSymbolAABBBoundsImprecise(e, t, n) {
|
|
11185
11185
|
const { size: r = t.size } = e;
|
|
@@ -11239,9 +11239,9 @@ let hDe = class KQ extends Us {
|
|
|
11239
11239
|
return Dr(this).line;
|
|
11240
11240
|
}
|
|
11241
11241
|
updateAABBBounds(e, t, n) {
|
|
11242
|
-
this.updatePathProxyAABBBounds(n) || (e.segments ? this.updateLineAABBBoundsBySegments(e, t, n) : this.updateLineAABBBoundsByPoints(e, t, n)),
|
|
11242
|
+
this.updatePathProxyAABBBounds(n) || (e.segments ? this.updateLineAABBBoundsBySegments(e, t, n) : this.updateLineAABBBoundsByPoints(e, t, n)), Pi.graphicService.updateTempAABBBounds(n), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1;
|
|
11243
11243
|
const { lineJoin: r = t.lineJoin } = e;
|
|
11244
|
-
return
|
|
11244
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, r === "miter", this), n;
|
|
11245
11245
|
}
|
|
11246
11246
|
updateLineAABBBoundsByPoints(e, t, n, r) {
|
|
11247
11247
|
const { points: o = t.points, connectedType: a } = e, s = n;
|
|
@@ -11328,8 +11328,8 @@ let h5 = class ZQ extends Us {
|
|
|
11328
11328
|
const { x1: l, y1: u, x: c, y: h } = e;
|
|
11329
11329
|
a = a != null ? a : l - c, s = s != null ? s : u - h, (isFinite(a) || isFinite(s) || isFinite(c) || isFinite(h)) && n.set(0, 0, a || 0, s || 0);
|
|
11330
11330
|
}
|
|
11331
|
-
const { tb1: r, tb2: o } =
|
|
11332
|
-
return c5(e, t, r), n.union(r), r.setValue(o.x1, o.y1, o.x2, o.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1,
|
|
11331
|
+
const { tb1: r, tb2: o } = Pi.graphicService.updateTempAABBBounds(n);
|
|
11332
|
+
return c5(e, t, r), n.union(r), r.setValue(o.x1, o.y1, o.x2, o.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, Pi.graphicService.transformAABBBounds(e, n, t, !1, this), n;
|
|
11333
11333
|
}
|
|
11334
11334
|
needUpdateTags(e) {
|
|
11335
11335
|
return super.needUpdateTags(e, $0e);
|
|
@@ -11768,8 +11768,8 @@ let wy = class QQ extends Us {
|
|
|
11768
11768
|
}
|
|
11769
11769
|
this._actualWidth = l, this._actualHeight = u, n.set(0, 0, l, u);
|
|
11770
11770
|
}
|
|
11771
|
-
const { tb1: r, tb2: o } =
|
|
11772
|
-
return c5(e, t, r), n.union(r), r.setValue(o.x1, o.y1, o.x2, o.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1,
|
|
11771
|
+
const { tb1: r, tb2: o } = Pi.graphicService.updateTempAABBBounds(n);
|
|
11772
|
+
return c5(e, t, r), n.union(r), r.setValue(o.x1, o.y1, o.x2, o.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, Pi.graphicService.transformAABBBounds(e, n, t, !1, this), n;
|
|
11773
11773
|
}
|
|
11774
11774
|
getDefaultAttribute(e) {
|
|
11775
11775
|
return oA[e];
|
|
@@ -12101,7 +12101,7 @@ class _s extends Us {
|
|
|
12101
12101
|
case "right":
|
|
12102
12102
|
m = -n.width();
|
|
12103
12103
|
}
|
|
12104
|
-
return u || (this.verticalDirection === "middle" ? p -= n.height() / 2 : this.verticalDirection === "bottom" && (p -= n.height())), n.translate(m, p),
|
|
12104
|
+
return u || (this.verticalDirection === "middle" ? p -= n.height() / 2 : this.verticalDirection === "bottom" && (p -= n.height())), n.translate(m, p), Pi.graphicService.updateTempAABBBounds(n), e.forceBoundsHeight == null && e.forceBoundsWidth == null || Pi.graphicService.updateHTMLTextAABBBounds(e, t, n), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1, Pi.graphicService.transformAABBBounds(e, n, t, !1, this), n.width() === 0 && n.height() === 0 && n.clear(), n;
|
|
12105
12105
|
}
|
|
12106
12106
|
needUpdateTags(e) {
|
|
12107
12107
|
return super.needUpdateTags(e, W0e);
|
|
@@ -12270,10 +12270,10 @@ class dA extends Us {
|
|
|
12270
12270
|
const s = this.getParsedPathShape();
|
|
12271
12271
|
n.union(s.getBounds());
|
|
12272
12272
|
}
|
|
12273
|
-
const { tb1: r, tb2: o } =
|
|
12273
|
+
const { tb1: r, tb2: o } = Pi.graphicService.updateTempAABBBounds(n);
|
|
12274
12274
|
c5(e, t, r), n.union(r), r.setValue(o.x1, o.y1, o.x2, o.y2), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1;
|
|
12275
12275
|
const { lineJoin: a = t.lineJoin } = e;
|
|
12276
|
-
return
|
|
12276
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, a === "miter", this), n;
|
|
12277
12277
|
}
|
|
12278
12278
|
doUpdateAABBBounds(e) {
|
|
12279
12279
|
return this.doUpdatePathShape(), super.doUpdateAABBBounds(e);
|
|
@@ -12322,9 +12322,9 @@ let gDe = class eJ extends Us {
|
|
|
12322
12322
|
return Dr(this).area;
|
|
12323
12323
|
}
|
|
12324
12324
|
updateAABBBounds(e, t, n) {
|
|
12325
|
-
this.updatePathProxyAABBBounds(n) || (e.segments ? this.updateAreaAABBBoundsBySegments(e, t, n) : this.updateAreaAABBBoundsByPoints(e, t, n)),
|
|
12325
|
+
this.updatePathProxyAABBBounds(n) || (e.segments ? this.updateAreaAABBBoundsBySegments(e, t, n) : this.updateAreaAABBBoundsByPoints(e, t, n)), Pi.graphicService.updateTempAABBBounds(n), this.setWidthHeightWithoutTransform(n);
|
|
12326
12326
|
const { lineJoin: r = t.lineJoin } = e;
|
|
12327
|
-
return
|
|
12327
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, r === "miter", this), n;
|
|
12328
12328
|
}
|
|
12329
12329
|
updateAreaAABBBoundsByPoints(e, t, n, r) {
|
|
12330
12330
|
const { points: o = t.points } = e, a = n;
|
|
@@ -12469,10 +12469,10 @@ class xx extends Us {
|
|
|
12469
12469
|
}
|
|
12470
12470
|
updateAABBBounds(e, t, n, r) {
|
|
12471
12471
|
this.updatePathProxyAABBBounds(n) || (r ? this.updateArcAABBBoundsImprecise(e, t, n) : this.updateArcAABBBoundsAccurate(e, t, n));
|
|
12472
|
-
const { tb1: o, tb2: a } =
|
|
12472
|
+
const { tb1: o, tb2: a } = Pi.graphicService.updateTempAABBBounds(n);
|
|
12473
12473
|
c5(e, t, o), n.union(o), o.setValue(a.x1, a.y1, a.x2, a.y2), this.setWidthHeightWithoutTransform(n);
|
|
12474
12474
|
const { lineJoin: s = t.lineJoin } = e;
|
|
12475
|
-
return
|
|
12475
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, s === "miter", this), n;
|
|
12476
12476
|
}
|
|
12477
12477
|
updateArcAABBBoundsImprecise(e, t, n) {
|
|
12478
12478
|
let { outerRadius: r = t.outerRadius, innerRadius: o = t.innerRadius } = e;
|
|
@@ -12547,9 +12547,9 @@ class fA extends Us {
|
|
|
12547
12547
|
return Dr(this).polygon;
|
|
12548
12548
|
}
|
|
12549
12549
|
updateAABBBounds(e, t, n) {
|
|
12550
|
-
this.updatePathProxyAABBBounds(n) || this.updatePolygonAABBBoundsImprecise(e, t, n),
|
|
12550
|
+
this.updatePathProxyAABBBounds(n) || this.updatePolygonAABBBoundsImprecise(e, t, n), Pi.graphicService.updateTempAABBBounds(n), this.widthWithoutTransform = n.x2 - n.x1, this.heightWithoutTransform = n.y2 - n.y1;
|
|
12551
12551
|
const { lineJoin: r = t.lineJoin } = e;
|
|
12552
|
-
return
|
|
12552
|
+
return Pi.graphicService.transformAABBBounds(e, n, t, r === "miter", this), n;
|
|
12553
12553
|
}
|
|
12554
12554
|
updatePolygonAABBBoundsImprecise(e, t, n) {
|
|
12555
12555
|
const { points: r = t.points } = e;
|
|
@@ -14229,7 +14229,7 @@ let nJ = class {
|
|
|
14229
14229
|
if (!a) return;
|
|
14230
14230
|
const { clip: s, baseOpacity: l = 1, drawMode: u } = i.attribute, c = a.nativeContext, h = a.canvas.nativeCanvas;
|
|
14231
14231
|
if (u > 0) {
|
|
14232
|
-
const { x: v, y: b, width: y, height: _ } = i.attribute, S = a.canvas, x =
|
|
14232
|
+
const { x: v, y: b, width: y, height: _ } = i.attribute, S = a.canvas, x = Pi.global.createCanvas({
|
|
14233
14233
|
width: S.width,
|
|
14234
14234
|
height: S.height,
|
|
14235
14235
|
dpr: 1
|
|
@@ -14691,7 +14691,7 @@ var ght = function(i, e, t, n) {
|
|
|
14691
14691
|
};
|
|
14692
14692
|
let rO = class {
|
|
14693
14693
|
constructor() {
|
|
14694
|
-
this.type = "static", this.offscreen = !1, this.global =
|
|
14694
|
+
this.type = "static", this.offscreen = !1, this.global = Pi.global;
|
|
14695
14695
|
}
|
|
14696
14696
|
setDpr(i) {
|
|
14697
14697
|
this.canvas.dpr = i;
|
|
@@ -14880,7 +14880,7 @@ let oO = class {
|
|
|
14880
14880
|
})) : EDe(n, Ga.zIndex, ((s) => {
|
|
14881
14881
|
r.break || (s.isContainer ? this.renderGroup(s, r, o) : this.renderItem(s, r));
|
|
14882
14882
|
}), !1, !!(!((a = r.context) === null || a === void 0) && a.camera));
|
|
14883
|
-
}, this.currentRenderMap = /* @__PURE__ */ new Map(), this.defaultRenderMap = /* @__PURE__ */ new Map(), this.styleRenderMap = /* @__PURE__ */ new Map(), this.dirtyBounds = new Kf(), this.backupDirtyBounds = new Kf(), this.global =
|
|
14883
|
+
}, this.currentRenderMap = /* @__PURE__ */ new Map(), this.defaultRenderMap = /* @__PURE__ */ new Map(), this.styleRenderMap = /* @__PURE__ */ new Map(), this.dirtyBounds = new Kf(), this.backupDirtyBounds = new Kf(), this.global = Pi.global, this.layerService = Pi.layerService, ni(this.contributions) || (this.contributions = [this.contributions]), this.init();
|
|
14884
14884
|
}
|
|
14885
14885
|
reInit() {
|
|
14886
14886
|
this.init(), this.contributions.forEach(((i) => {
|
|
@@ -15250,15 +15250,15 @@ function bA() {
|
|
|
15250
15250
|
}
|
|
15251
15251
|
bA.__loaded = !1, bA();
|
|
15252
15252
|
const Fn = dr.get(noe);
|
|
15253
|
-
|
|
15253
|
+
Pi.global = Fn;
|
|
15254
15254
|
const Rht = dr.get(rDe);
|
|
15255
|
-
|
|
15255
|
+
Pi.graphicUtil = Rht;
|
|
15256
15256
|
const Mht = dr.get(nDe);
|
|
15257
|
-
|
|
15257
|
+
Pi.transformUtil = Mht;
|
|
15258
15258
|
const kht = dr.get(foe);
|
|
15259
|
-
|
|
15259
|
+
Pi.graphicService = kht;
|
|
15260
15260
|
const Oht = dr.get(voe);
|
|
15261
|
-
|
|
15261
|
+
Pi.layerService = Oht;
|
|
15262
15262
|
class Iht {
|
|
15263
15263
|
constructor() {
|
|
15264
15264
|
this.name = "AutoRenderPlugin", this.activeEvent = "onRegister", this._uid = Ts.GenAutoIncrementId(), this.key = this.name + this._uid, this.handleChange = (e) => {
|
|
@@ -15282,15 +15282,15 @@ class Dht {
|
|
|
15282
15282
|
};
|
|
15283
15283
|
}
|
|
15284
15284
|
activate(e) {
|
|
15285
|
-
this.pluginService = e, this.dpr =
|
|
15285
|
+
this.pluginService = e, this.dpr = Pi.global.devicePixelRatio, this.refresh();
|
|
15286
15286
|
}
|
|
15287
15287
|
refresh() {
|
|
15288
15288
|
this._refreshByMediaQuery() || this._refreshByRaf();
|
|
15289
15289
|
}
|
|
15290
15290
|
_refreshByRaf() {
|
|
15291
|
-
const e =
|
|
15291
|
+
const e = Pi.global.getRequestAnimationFrame();
|
|
15292
15292
|
this.rafId = e((() => {
|
|
15293
|
-
|
|
15293
|
+
Pi.global.devicePixelRatio !== this.dpr && (this.dpr = Pi.global.devicePixelRatio, this.pluginService.stage.setDpr(this.dpr, !0)), this.refresh();
|
|
15294
15294
|
}));
|
|
15295
15295
|
}
|
|
15296
15296
|
_refreshByMediaQuery() {
|
|
@@ -15308,7 +15308,7 @@ class Dht {
|
|
|
15308
15308
|
}
|
|
15309
15309
|
deactivate(e) {
|
|
15310
15310
|
var t;
|
|
15311
|
-
const n =
|
|
15311
|
+
const n = Pi.global.getCancelAnimationFrame();
|
|
15312
15312
|
n && this.rafId && n(this.rafId), (t = this.autoRefreshCbs) === null || t === void 0 || t.forEach(((r) => {
|
|
15313
15313
|
r();
|
|
15314
15314
|
})), this.autoRefreshCbs = void 0;
|
|
@@ -15332,7 +15332,7 @@ class Pht {
|
|
|
15332
15332
|
t && (t.graphicService.hooks.onAddIncremental.taps = t.graphicService.hooks.onAddIncremental.taps.filter(((n) => n.name !== this.key)), t.graphicService.hooks.onClearIncremental.taps = t.graphicService.hooks.onClearIncremental.taps.filter(((n) => n.name !== this.key)));
|
|
15333
15333
|
}
|
|
15334
15334
|
renderNextFrame(e) {
|
|
15335
|
-
this.nextFrameRenderGroupSet.add(e), this.willNextFrameRender || (this.willNextFrameRender = !0,
|
|
15335
|
+
this.nextFrameRenderGroupSet.add(e), this.willNextFrameRender || (this.willNextFrameRender = !0, Pi.global.getRequestAnimationFrame()((() => {
|
|
15336
15336
|
this._doRenderInThisFrame(), this.willNextFrameRender = !1;
|
|
15337
15337
|
})));
|
|
15338
15338
|
}
|
|
@@ -15393,12 +15393,12 @@ function ADe() {
|
|
|
15393
15393
|
}
|
|
15394
15394
|
function gL() {
|
|
15395
15395
|
ADe();
|
|
15396
|
-
const i =
|
|
15396
|
+
const i = Pi.global && Pi.global.env;
|
|
15397
15397
|
return i ? i === "browser" : wb;
|
|
15398
15398
|
}
|
|
15399
15399
|
function Bht() {
|
|
15400
15400
|
ADe();
|
|
15401
|
-
const i =
|
|
15401
|
+
const i = Pi.global && Pi.global.env;
|
|
15402
15402
|
return i ? i === "node" : !wb;
|
|
15403
15403
|
}
|
|
15404
15404
|
let D1 = class hJ {
|
|
@@ -15508,7 +15508,7 @@ class TDe extends $p {
|
|
|
15508
15508
|
afterRender: new $u(["stage"]),
|
|
15509
15509
|
afterClearScreen: new $u(["stage"]),
|
|
15510
15510
|
afterClearRect: new $u(["stage"])
|
|
15511
|
-
}, this.global =
|
|
15511
|
+
}, this.global = Pi.global, !this.global.env && gL() && this.global.setEnv("browser"), this.window = dr.get(sA), this.renderService = dr.get(roe), this.pluginService = dr.get(SDe), this.layerService = dr.get(voe), this.graphicService = dr.get(foe), this.pluginService.active(this, e), this._beforeRenderList = [], this._afterRenderList = [], this.window.create({
|
|
15512
15512
|
width: e.width,
|
|
15513
15513
|
height: e.height,
|
|
15514
15514
|
viewBox: e.viewBox,
|
|
@@ -16081,7 +16081,7 @@ var Wht = function(i, e, t, n) {
|
|
|
16081
16081
|
};
|
|
16082
16082
|
let dJ = class {
|
|
16083
16083
|
constructor(i, e) {
|
|
16084
|
-
this.pickItemInterceptorContributions = i, this.pickServiceInterceptorContributions = e, this.type = "default", this.global =
|
|
16084
|
+
this.pickItemInterceptorContributions = i, this.pickServiceInterceptorContributions = e, this.type = "default", this.global = Pi.global;
|
|
16085
16085
|
}
|
|
16086
16086
|
reInit() {
|
|
16087
16087
|
this._init();
|
|
@@ -16746,8 +16746,8 @@ class Ndt {
|
|
|
16746
16746
|
}
|
|
16747
16747
|
getWrapContainer(e, t, n) {
|
|
16748
16748
|
let r;
|
|
16749
|
-
return r = t ? typeof t == "string" ?
|
|
16750
|
-
wrapContainer:
|
|
16749
|
+
return r = t ? typeof t == "string" ? Pi.global.getElementById(t) : t : e.window.getContainer(), {
|
|
16750
|
+
wrapContainer: Pi.global.createDom(Object.assign({
|
|
16751
16751
|
tagName: "div",
|
|
16752
16752
|
parent: r
|
|
16753
16753
|
}, n)),
|
|
@@ -16802,7 +16802,7 @@ class Ndt {
|
|
|
16802
16802
|
const b = tIe(h, d);
|
|
16803
16803
|
u = b.x, c = b.y;
|
|
16804
16804
|
}
|
|
16805
|
-
const f =
|
|
16805
|
+
const f = Pi.global.getElementTopLeft(r, !1), g = t.window.getTopLeft(!1), p = t.viewBox, m = u + g.left - f.left + p.x1, v = c + g.top - f.top + p.y1;
|
|
16806
16806
|
if (l.left = `${m}px`, l.top = `${v}px`, e.type === "text" && d === "position" && (l = Object.assign(Object.assign({}, l), this.getTransformOfText(e))), mi(o.style)) {
|
|
16807
16807
|
const b = o.style({
|
|
16808
16808
|
top: v,
|
|
@@ -16812,7 +16812,7 @@ class Ndt {
|
|
|
16812
16812
|
}, e, n);
|
|
16813
16813
|
b && (l = Object.assign(Object.assign({}, l), b));
|
|
16814
16814
|
} else Ar(o.style) ? l = Object.assign(Object.assign({}, l), o.style) : rr(o.style) && o.style && (l = Object.assign(Object.assign({}, l), Rot(o.style)));
|
|
16815
|
-
|
|
16815
|
+
Pi.global.updateDom(n, {
|
|
16816
16816
|
width: o.width,
|
|
16817
16817
|
height: o.height,
|
|
16818
16818
|
style: l
|
|
@@ -16824,7 +16824,7 @@ class Ndt {
|
|
|
16824
16824
|
})), this.renderId += 1;
|
|
16825
16825
|
}
|
|
16826
16826
|
drawHTML(e) {
|
|
16827
|
-
|
|
16827
|
+
Pi.global.env === "browser" && (e.sort(((t, n) => {
|
|
16828
16828
|
var r, o;
|
|
16829
16829
|
return ((r = t.attribute.zIndex) !== null && r !== void 0 ? r : Ga.zIndex) - ((o = n.attribute.zIndex) !== null && o !== void 0 ? o : Ga.zIndex);
|
|
16830
16830
|
})).forEach(((t) => {
|
|
@@ -16839,7 +16839,7 @@ class Ndt {
|
|
|
16839
16839
|
removeElement(e) {
|
|
16840
16840
|
if (!this.htmlMap || !this.htmlMap[e]) return;
|
|
16841
16841
|
const { wrapContainer: t } = this.htmlMap[e];
|
|
16842
|
-
t &&
|
|
16842
|
+
t && Pi.global.removeDom(t), this.htmlMap[e] = null;
|
|
16843
16843
|
}
|
|
16844
16844
|
removeWrapContainerEventListener(e) {
|
|
16845
16845
|
e.removeEventListener("wheel", this.onWheel);
|
|
@@ -16868,7 +16868,7 @@ class Ndt {
|
|
|
16868
16868
|
this.updateStyleOfWrapContainer(e, r, l, u, n), this.htmlMap[s].renderId = this.renderId;
|
|
16869
16869
|
}
|
|
16870
16870
|
release() {
|
|
16871
|
-
|
|
16871
|
+
Pi.global.env === "browser" && this.removeAllDom(this.pluginService.stage.defaultLayer);
|
|
16872
16872
|
}
|
|
16873
16873
|
removeAllDom(e) {
|
|
16874
16874
|
this.htmlMap && (Object.keys(this.htmlMap).forEach(((t) => {
|
|
@@ -16883,9 +16883,9 @@ class Hdt extends Ndt {
|
|
|
16883
16883
|
removeElement(e) {
|
|
16884
16884
|
if (!this.htmlMap || !this.htmlMap[e]) return;
|
|
16885
16885
|
const { root: t, wrapContainer: n, unmount: r } = this.htmlMap[e];
|
|
16886
|
-
t ?
|
|
16886
|
+
t ? Pi.global.getRequestAnimationFrame()((() => {
|
|
16887
16887
|
t.unmount();
|
|
16888
|
-
})) : r && r(), n &&
|
|
16888
|
+
})) : r && r(), n && Pi.global.removeDom(n), this.htmlMap[e] = null;
|
|
16889
16889
|
}
|
|
16890
16890
|
renderGraphicHTML(e) {
|
|
16891
16891
|
var t;
|
|
@@ -17439,8 +17439,8 @@ class MDe extends h0 {
|
|
|
17439
17439
|
triggerEvent(e, t) {
|
|
17440
17440
|
this.pushEvent(e, t);
|
|
17441
17441
|
const { throttleTimer: n, emitThrottles: r } = this;
|
|
17442
|
-
n || (this.throttleTimer =
|
|
17443
|
-
|
|
17442
|
+
n || (this.throttleTimer = Pi.global.getRequestAnimationFrame()((() => {
|
|
17443
|
+
Pi.global.getCancelAnimationFrame()(this.throttleTimer), this.throttleTimer = null;
|
|
17444
17444
|
for (let o = 0, a = r.length; o < a; o++) {
|
|
17445
17445
|
const { type: s, ev: l } = r[o];
|
|
17446
17446
|
this.emitEvent(s, l);
|
|
@@ -17801,10 +17801,10 @@ let B3 = class {
|
|
|
17801
17801
|
isPointInStroke(i, e) {
|
|
17802
17802
|
return this.nativeContext.isPointInStroke(i, e);
|
|
17803
17803
|
}
|
|
17804
|
-
measureText(i, e =
|
|
17804
|
+
measureText(i, e = Pi.global.measureTextMethod) {
|
|
17805
17805
|
var t, n;
|
|
17806
17806
|
if (!e || e === "native") return this.nativeContext.measureText(i);
|
|
17807
|
-
this.mathTextMeasure || (this.mathTextMeasure =
|
|
17807
|
+
this.mathTextMeasure || (this.mathTextMeasure = Pi.graphicUtil.createTextMeasureInstance({}, {}, (() => this.canvas.nativeCanvas)));
|
|
17808
17808
|
const r = (t = this.fontFamily) !== null && t !== void 0 ? t : qh.fontFamily, o = (n = this.fontSize) !== null && n !== void 0 ? n : qh.fontSize;
|
|
17809
17809
|
return this.mathTextMeasure.textSpec.fontFamily === r && this.mathTextMeasure.textSpec.fontSize === o || (this.mathTextMeasure.textSpec.fontFamily = r, this.mathTextMeasure.textSpec.fontSize = o, this.mathTextMeasure._numberCharSize = null, this.mathTextMeasure._fullCharSize = null, this.mathTextMeasure._letterCharSize = null, this.mathTextMeasure._specialCharSizeMap = {}), this.mathTextMeasure.measure(i, e);
|
|
17810
17810
|
}
|
|
@@ -17936,7 +17936,7 @@ let F3 = class extends poe {
|
|
|
17936
17936
|
init(i) {
|
|
17937
17937
|
const { container: e } = i;
|
|
17938
17938
|
if (typeof e == "string") {
|
|
17939
|
-
const t =
|
|
17939
|
+
const t = Pi.global.getElementById(e);
|
|
17940
17940
|
t && (this._container = t);
|
|
17941
17941
|
} else this._container = e;
|
|
17942
17942
|
this._context = new B3(this, this._dpr), this.initStyle();
|
|
@@ -18076,7 +18076,7 @@ let yv = m6 = class extends uO {
|
|
|
18076
18076
|
return `${m6.idprefix}_${m6.prefix_count++}`;
|
|
18077
18077
|
}
|
|
18078
18078
|
constructor() {
|
|
18079
|
-
super(), this.type = "browser", this._canvasIsIntersecting = !0, this.global =
|
|
18079
|
+
super(), this.type = "browser", this._canvasIsIntersecting = !0, this.global = Pi.global, this.viewBox = new qa(), this.modelMatrix = new Ua(1, 0, 0, 1, 0, 0);
|
|
18080
18080
|
}
|
|
18081
18081
|
getTitle() {
|
|
18082
18082
|
return this.canvas.id && this.canvas.id.toString();
|
|
@@ -18275,7 +18275,7 @@ class lft {
|
|
|
18275
18275
|
}
|
|
18276
18276
|
function ope(i, e = !1) {
|
|
18277
18277
|
const t = document.createElement("img");
|
|
18278
|
-
if (
|
|
18278
|
+
if (Pi.global.isImageAnonymous && (t.crossOrigin = "anonymous"), e) {
|
|
18279
18279
|
const n = new Blob([i], {
|
|
18280
18280
|
type: "image/svg+xml"
|
|
18281
18281
|
});
|
|
@@ -22608,9 +22608,9 @@ class gPe extends h0 {
|
|
|
22608
22608
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(0.2 * this.interval, 6), 0.7 * this.interval);
|
|
22609
22609
|
}
|
|
22610
22610
|
init() {
|
|
22611
|
-
this.interval = 16, this.status = Lh.INITIAL,
|
|
22611
|
+
this.interval = 16, this.status = Lh.INITIAL, Pi.global.hooks.onSetEnv.tap("graph-ticker", (() => {
|
|
22612
22612
|
this.initHandler(!1);
|
|
22613
|
-
})),
|
|
22613
|
+
})), Pi.global.env && this.initHandler(!1);
|
|
22614
22614
|
}
|
|
22615
22615
|
addTimeline(e) {
|
|
22616
22616
|
this.timelines.push(e);
|
|
@@ -23547,7 +23547,7 @@ const Foe = (i) => {
|
|
|
23547
23547
|
r.setTheme({
|
|
23548
23548
|
rect: n
|
|
23549
23549
|
}), new Array(t).fill(0).forEach(((l) => {
|
|
23550
|
-
const u =
|
|
23550
|
+
const u = Pi.graphicService.creator.rect({
|
|
23551
23551
|
x: 0,
|
|
23552
23552
|
y: 0,
|
|
23553
23553
|
width: a,
|
|
@@ -23563,22 +23563,22 @@ const Foe = (i) => {
|
|
|
23563
23563
|
const s = {
|
|
23564
23564
|
path: new ja().fromCustomPath2D(o)
|
|
23565
23565
|
};
|
|
23566
|
-
n.push(
|
|
23566
|
+
n.push(Pi.graphicService.creator.path(t ? s : Object.assign({}, r, s)));
|
|
23567
23567
|
}
|
|
23568
23568
|
return t && SPe(i, n, e), n;
|
|
23569
23569
|
}, EPe = (i, e, t) => {
|
|
23570
23570
|
const n = [], r = t ? null : Foe(i.attribute);
|
|
23571
23571
|
if (i.type === "rect")
|
|
23572
23572
|
Jht(i, e).forEach(((o) => {
|
|
23573
|
-
n.push(
|
|
23573
|
+
n.push(Pi.graphicService.creator.rect(t ? o : Object.assign({}, r, o)));
|
|
23574
23574
|
}));
|
|
23575
23575
|
else if (i.type === "arc")
|
|
23576
23576
|
edt(i, e).forEach(((o) => {
|
|
23577
|
-
n.push(
|
|
23577
|
+
n.push(Pi.graphicService.creator.arc(t ? o : Object.assign({}, r, o)));
|
|
23578
23578
|
}));
|
|
23579
23579
|
else if (i.type === "circle")
|
|
23580
23580
|
tdt(i, e).forEach(((o) => {
|
|
23581
|
-
n.push(
|
|
23581
|
+
n.push(Pi.graphicService.creator.arc(t ? o : Object.assign({}, r, o)));
|
|
23582
23582
|
}));
|
|
23583
23583
|
else if (i.type === "line") {
|
|
23584
23584
|
const o = ndt(i, e), a = {
|
|
@@ -23586,14 +23586,14 @@ const Foe = (i) => {
|
|
|
23586
23586
|
symbolType: "circle"
|
|
23587
23587
|
};
|
|
23588
23588
|
o.forEach(((s) => {
|
|
23589
|
-
n.push(
|
|
23589
|
+
n.push(Pi.graphicService.creator.symbol(t ? Object.assign({}, s, a) : Object.assign({}, r, s, a)));
|
|
23590
23590
|
}));
|
|
23591
23591
|
} else i.type === "polygon" ? adt(i, e).forEach(((o) => {
|
|
23592
|
-
n.push(
|
|
23592
|
+
n.push(Pi.graphicService.creator.polygon(t ? o : Object.assign({}, r, o)));
|
|
23593
23593
|
})) : i.type === "area" ? idt(i, e).forEach(((o) => {
|
|
23594
|
-
n.push(
|
|
23594
|
+
n.push(Pi.graphicService.creator.polygon(t ? o : Object.assign({}, r, o)));
|
|
23595
23595
|
})) : i.type === "path" && sdt(i, e).forEach(((o) => {
|
|
23596
|
-
"path" in o ? n.push(
|
|
23596
|
+
"path" in o ? n.push(Pi.graphicService.creator.path(t ? o : Object.assign({}, r, o))) : n.push(Pi.graphicService.creator.polygon(t ? o : Object.assign({}, r, o)));
|
|
23597
23597
|
}));
|
|
23598
23598
|
return t && SPe(i, n, e), n;
|
|
23599
23599
|
}, dpt = (i, e, t) => {
|
|
@@ -23703,7 +23703,7 @@ class fpt extends APe {
|
|
|
23703
23703
|
const b = (s = (a = o == null ? void 0 : o.group) === null || a === void 0 ? void 0 : a.attribute) !== null && s !== void 0 ? s : {}, y = (l = b.width) !== null && l !== void 0 ? l : 0, _ = (u = b.height) !== null && u !== void 0 ? u : 0, S = (c = o == null ? void 0 : o.animationType) !== null && c !== void 0 ? c : "in", x = (h = o == null ? void 0 : o.startAngle) !== null && h !== void 0 ? h : 0, w = (d = o == null ? void 0 : o.orient) !== null && d !== void 0 ? d : "clockwise";
|
|
23704
23704
|
let E = 0, A = 0;
|
|
23705
23705
|
w === "anticlockwise" ? (A = S === "in" ? x + 2 * Math.PI : x, A = x + 2 * Math.PI) : (E = x, A = S === "out" ? x + 2 * Math.PI : x);
|
|
23706
|
-
const T =
|
|
23706
|
+
const T = Pi.graphicService.creator.arc({
|
|
23707
23707
|
x: (g = (f = o == null ? void 0 : o.center) === null || f === void 0 ? void 0 : f.x) !== null && g !== void 0 ? g : y / 2,
|
|
23708
23708
|
y: (m = (p = o == null ? void 0 : o.center) === null || p === void 0 ? void 0 : p.y) !== null && m !== void 0 ? m : _ / 2,
|
|
23709
23709
|
outerRadius: (v = o == null ? void 0 : o.radius) !== null && v !== void 0 ? v : (y + _) / 2,
|
|
@@ -23730,7 +23730,7 @@ class fpt extends APe {
|
|
|
23730
23730
|
class t1e extends APe {
|
|
23731
23731
|
constructor(e, t, n, r, o) {
|
|
23732
23732
|
var a, s, l, u, c, h, d, f, g;
|
|
23733
|
-
const p = (s = (a = o == null ? void 0 : o.group) === null || a === void 0 ? void 0 : a.attribute) !== null && s !== void 0 ? s : {}, m = (u = (l = o == null ? void 0 : o.width) !== null && l !== void 0 ? l : p.width) !== null && u !== void 0 ? u : 0, v = (h = (c = o == null ? void 0 : o.height) !== null && c !== void 0 ? c : p.height) !== null && h !== void 0 ? h : 0, b = (d = o == null ? void 0 : o.animationType) !== null && d !== void 0 ? d : "in", y = (f = o == null ? void 0 : o.direction) !== null && f !== void 0 ? f : "x", _ = (g = o == null ? void 0 : o.orient) !== null && g !== void 0 ? g : "positive", S =
|
|
23733
|
+
const p = (s = (a = o == null ? void 0 : o.group) === null || a === void 0 ? void 0 : a.attribute) !== null && s !== void 0 ? s : {}, m = (u = (l = o == null ? void 0 : o.width) !== null && l !== void 0 ? l : p.width) !== null && u !== void 0 ? u : 0, v = (h = (c = o == null ? void 0 : o.height) !== null && c !== void 0 ? c : p.height) !== null && h !== void 0 ? h : 0, b = (d = o == null ? void 0 : o.animationType) !== null && d !== void 0 ? d : "in", y = (f = o == null ? void 0 : o.direction) !== null && f !== void 0 ? f : "x", _ = (g = o == null ? void 0 : o.orient) !== null && g !== void 0 ? g : "positive", S = Pi.graphicService.creator.rect({
|
|
23734
23734
|
x: 0,
|
|
23735
23735
|
y: 0,
|
|
23736
23736
|
width: b === "in" && y === "x" ? 0 : m,
|
|
@@ -26110,12 +26110,12 @@ class o1t extends Wr {
|
|
|
26110
26110
|
}
|
|
26111
26111
|
onStartLineOrArea(e) {
|
|
26112
26112
|
var t;
|
|
26113
|
-
const n = this.target.attachShadow(), r =
|
|
26113
|
+
const n = this.target.attachShadow(), r = Pi.graphicService.creator[e](Object.assign({}, (t = this.params) === null || t === void 0 ? void 0 : t.attribute));
|
|
26114
26114
|
this[e] = r, r.pathProxy = new ja(), n.add(r);
|
|
26115
26115
|
}
|
|
26116
26116
|
onStartRect() {
|
|
26117
26117
|
var e, t, n;
|
|
26118
|
-
const r = this.target.attachShadow(), o = (t = (e = this.params) === null || e === void 0 ? void 0 : e.isHorizontal) === null || t === void 0 || t, a = o ? "height" : "width", s = o ? "width" : "height", l = this.target.AABBBounds[a](), u = o ? 0 : this.target.AABBBounds.y1, c =
|
|
26118
|
+
const r = this.target.attachShadow(), o = (t = (e = this.params) === null || e === void 0 ? void 0 : e.isHorizontal) === null || t === void 0 || t, a = o ? "height" : "width", s = o ? "width" : "height", l = this.target.AABBBounds[a](), u = o ? 0 : this.target.AABBBounds.y1, c = Pi.graphicService.creator.rect(Object.assign(Object.assign({
|
|
26119
26119
|
[a]: l,
|
|
26120
26120
|
fill: "#bcdeff",
|
|
26121
26121
|
shadowBlur: 30,
|
|
@@ -60587,7 +60587,7 @@ const OTt = (i, e) => {
|
|
|
60587
60587
|
const a = lg(n.type), s = (l, u) => l && u.includes(l);
|
|
60588
60588
|
if (a === "cartesian") {
|
|
60589
60589
|
let l, u, c;
|
|
60590
|
-
return n.type === "heatmap" ? (l = o && s(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && s(n == null ? void 0 : n.yField, e) ? n.yField : e[1], c = o && s(n == null ? void 0 : n.valField, i) ? n.valField : i[0]) : n.type === "rank" ? (l = o && s(n == null ? void 0 : n.xField, i) ? n.xField : i[0], u = o && s(n == null ? void 0 : n.yField, e) ? n.yField : e[0]) : (l = o && s(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && s(n == null ? void 0 : n.yField, i) ? n.yField : i[0]),
|
|
60590
|
+
return n.type === "heatmap" ? (l = o && s(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && s(n == null ? void 0 : n.yField, e) ? n.yField : e[1], c = o && s(n == null ? void 0 : n.valField, i) ? n.valField : i[0]) : n.type === "rank" ? (l = o && s(n == null ? void 0 : n.xField, i) ? n.xField : i[0], u = o && s(n == null ? void 0 : n.yField, e) ? n.yField : e[0]) : (l = o && s(n == null ? void 0 : n.xField, e) ? n.xField : e[0], u = o && s(n == null ? void 0 : n.yField, i) ? n.yField : i[0]), Di(Me({}, n), {
|
|
60591
60591
|
metrics: i,
|
|
60592
60592
|
dimensions: e,
|
|
60593
60593
|
timeGrain: t,
|
|
@@ -60598,7 +60598,7 @@ const OTt = (i, e) => {
|
|
|
60598
60598
|
});
|
|
60599
60599
|
} else if (a === "polar") {
|
|
60600
60600
|
const l = o && s(n == null ? void 0 : n.nameField, e) ? n.nameField : e[0], u = o && s(n == null ? void 0 : n.valField, i) ? n.valField : i[0];
|
|
60601
|
-
return
|
|
60601
|
+
return Di(Me({}, n), {
|
|
60602
60602
|
metrics: i,
|
|
60603
60603
|
dimensions: e,
|
|
60604
60604
|
data: r,
|
|
@@ -60606,7 +60606,7 @@ const OTt = (i, e) => {
|
|
|
60606
60606
|
valField: u
|
|
60607
60607
|
});
|
|
60608
60608
|
}
|
|
60609
|
-
return
|
|
60609
|
+
return Di(Me({}, n), {
|
|
60610
60610
|
metrics: i,
|
|
60611
60611
|
dimensions: e,
|
|
60612
60612
|
data: r
|
|
@@ -60620,7 +60620,7 @@ const OTt = (i, e) => {
|
|
|
60620
60620
|
const r = lg(t.type), o = (i == null ? void 0 : i.map((l) => l.label)) || [], a = (e == null ? void 0 : e.map((l) => l.value === "metricTime" ? "metricTime" : l.label)) || [], s = (l, u) => l && u.includes(l);
|
|
60621
60621
|
if (r === "cartesian") {
|
|
60622
60622
|
let l, u, c;
|
|
60623
|
-
return t.type === "heatmap" ? (l = n && s(t == null ? void 0 : t.xField, a) ? t.xField : a[0], u = n && s(t == null ? void 0 : t.yField, a) ? t.yField : a[1], c = n && s(t == null ? void 0 : t.valField, o) ? t.valField : o[0]) : t.type === "rank" ? (l = n && s(t == null ? void 0 : t.xField, o) ? t.xField : o[0], u = n && s(t == null ? void 0 : t.yField, a) ? t.yField : a[0]) : (l = n && s(t == null ? void 0 : t.xField, a) ? t.xField : a[0], u = n && s(t == null ? void 0 : t.yField, o) ? t.yField : o[0]),
|
|
60623
|
+
return t.type === "heatmap" ? (l = n && s(t == null ? void 0 : t.xField, a) ? t.xField : a[0], u = n && s(t == null ? void 0 : t.yField, a) ? t.yField : a[1], c = n && s(t == null ? void 0 : t.valField, o) ? t.valField : o[0]) : t.type === "rank" ? (l = n && s(t == null ? void 0 : t.xField, o) ? t.xField : o[0], u = n && s(t == null ? void 0 : t.yField, a) ? t.yField : a[0]) : (l = n && s(t == null ? void 0 : t.xField, a) ? t.xField : a[0], u = n && s(t == null ? void 0 : t.yField, o) ? t.yField : o[0]), Di(Me({}, t), {
|
|
60624
60624
|
metrics: o,
|
|
60625
60625
|
dimensions: a,
|
|
60626
60626
|
xField: l,
|
|
@@ -60629,14 +60629,14 @@ const OTt = (i, e) => {
|
|
|
60629
60629
|
});
|
|
60630
60630
|
} else if (r === "polar") {
|
|
60631
60631
|
const l = n && s(t == null ? void 0 : t.nameField, a) ? t.nameField : a[0], u = n && s(t == null ? void 0 : t.valField, o) ? t.valField : o[0];
|
|
60632
|
-
return
|
|
60632
|
+
return Di(Me({}, t), {
|
|
60633
60633
|
metrics: o,
|
|
60634
60634
|
dimensions: a,
|
|
60635
60635
|
nameField: l,
|
|
60636
60636
|
valField: u
|
|
60637
60637
|
});
|
|
60638
60638
|
}
|
|
60639
|
-
return
|
|
60639
|
+
return Di(Me({}, t), {
|
|
60640
60640
|
metrics: o,
|
|
60641
60641
|
dimensions: a
|
|
60642
60642
|
});
|
|
@@ -63134,7 +63134,7 @@ const $He = (i) => {
|
|
|
63134
63134
|
}
|
|
63135
63135
|
}
|
|
63136
63136
|
li.isString(A) || (A = A ? "include" : "omit");
|
|
63137
|
-
const F = o && "credentials" in t.prototype, W =
|
|
63137
|
+
const F = o && "credentials" in t.prototype, W = Di(Me({}, T), {
|
|
63138
63138
|
signal: k,
|
|
63139
63139
|
method: m.toUpperCase(),
|
|
63140
63140
|
headers: E.normalize().toJSON(),
|
|
@@ -65654,7 +65654,7 @@ const oB = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
|
|
|
65654
65654
|
return i.forEach((s) => {
|
|
65655
65655
|
e.forEach((l) => {
|
|
65656
65656
|
const u = o ? s : o$e(s, e);
|
|
65657
|
-
a.push(
|
|
65657
|
+
a.push(Di(Me({}, u), {
|
|
65658
65658
|
[t]: r ? r[l] : l,
|
|
65659
65659
|
[n]: s[l]
|
|
65660
65660
|
}));
|
|
@@ -65693,7 +65693,7 @@ const oB = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
|
|
|
65693
65693
|
if (c.length > 0) {
|
|
65694
65694
|
s = s.map((y) => {
|
|
65695
65695
|
const _ = c.map((S) => y[S]).join("-");
|
|
65696
|
-
return
|
|
65696
|
+
return Di(Me({}, y), {
|
|
65697
65697
|
[Ma]: _
|
|
65698
65698
|
});
|
|
65699
65699
|
});
|
|
@@ -65738,7 +65738,7 @@ const oB = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
|
|
|
65738
65738
|
const d = aB(u, !1).map((f) => f.join("-"));
|
|
65739
65739
|
return o = o.map((f) => {
|
|
65740
65740
|
const g = l.map((p) => f[p]).join("-");
|
|
65741
|
-
return
|
|
65741
|
+
return Di(Me({}, f), {
|
|
65742
65742
|
[EM]: g
|
|
65743
65743
|
});
|
|
65744
65744
|
}), r[EM] = "细分", {
|
|
@@ -65781,7 +65781,7 @@ const oB = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
|
|
|
65781
65781
|
if (s.length > 0) {
|
|
65782
65782
|
o = o.map((p) => {
|
|
65783
65783
|
const m = s.map((v) => p[v]).join("-");
|
|
65784
|
-
return
|
|
65784
|
+
return Di(Me({}, p), {
|
|
65785
65785
|
[Ma]: m
|
|
65786
65786
|
});
|
|
65787
65787
|
});
|
|
@@ -65836,7 +65836,7 @@ const oB = (i) => i.length === 0 ? 0 : i.map((e) => e.length).reduce((e, t) => e
|
|
|
65836
65836
|
if (f.length > 0) {
|
|
65837
65837
|
a = a.map((S) => {
|
|
65838
65838
|
const x = f.map((w) => S[w]).join("-");
|
|
65839
|
-
return
|
|
65839
|
+
return Di(Me({}, S), {
|
|
65840
65840
|
[Ma]: x
|
|
65841
65841
|
});
|
|
65842
65842
|
});
|
|
@@ -66540,21 +66540,21 @@ const Gee = (i, e) => (i || []).find((t) => e.includes(t.type)), l$e = (i, e) =>
|
|
|
66540
66540
|
}, v0 = (i, e) => {
|
|
66541
66541
|
const { cell: t } = i, n = Mse(i, e);
|
|
66542
66542
|
return Ne(n) ? {
|
|
66543
|
-
cell:
|
|
66543
|
+
cell: Di(Me({}, t), {
|
|
66544
66544
|
color: n
|
|
66545
66545
|
})
|
|
66546
66546
|
} : { cell: t };
|
|
66547
66547
|
}, Up = (i, e) => {
|
|
66548
66548
|
const { cell: t } = i, n = fB(i, e);
|
|
66549
66549
|
return Ne(n) ? {
|
|
66550
|
-
cell:
|
|
66550
|
+
cell: Di(Me({}, t), {
|
|
66551
66551
|
size: n
|
|
66552
66552
|
})
|
|
66553
66553
|
} : { cell: t };
|
|
66554
66554
|
}, mg = (i) => {
|
|
66555
66555
|
const { cell: e } = i, t = Mse(i, ["x"]);
|
|
66556
66556
|
return Ne(t) ? {
|
|
66557
|
-
cell:
|
|
66557
|
+
cell: Di(Me({}, e), {
|
|
66558
66558
|
x: t
|
|
66559
66559
|
})
|
|
66560
66560
|
} : { cell: e };
|
|
@@ -66595,7 +66595,7 @@ const Gee = (i, e) => (i || []).find((t) => e.includes(t.type)), l$e = (i, e) =>
|
|
|
66595
66595
|
}, gB = (i) => {
|
|
66596
66596
|
const { spec: e, fieldInfo: t, cell: n, label: r } = i, { y: o } = n;
|
|
66597
66597
|
return r !== !1 && (e.label = sy(r, (a) => {
|
|
66598
|
-
const s =
|
|
66598
|
+
const s = Di(Me({}, a), { visible: !0 });
|
|
66599
66599
|
if (!(qt(o) && o.length > 1)) {
|
|
66600
66600
|
if (o) {
|
|
66601
66601
|
const l = qt(o) ? o[0] : o, u = t.find((c) => c.fieldName === l);
|
|
@@ -66606,12 +66606,12 @@ const Gee = (i, e) => (i || []).find((t) => e.includes(t.type)), l$e = (i, e) =>
|
|
|
66606
66606
|
})), { spec: e };
|
|
66607
66607
|
}, rf = (i) => {
|
|
66608
66608
|
const { spec: e, label: t } = i;
|
|
66609
|
-
return t !== !1 && Ne(t) && (e.label = sy(t, (n) =>
|
|
66609
|
+
return t !== !1 && Ne(t) && (e.label = sy(t, (n) => Di(Me({}, n), {
|
|
66610
66610
|
visible: !0
|
|
66611
66611
|
}))), { spec: e };
|
|
66612
66612
|
}, X5 = (i) => {
|
|
66613
66613
|
const { spec: e, label: t } = i;
|
|
66614
|
-
return t !== !1 && (e.label = sy(t, (n) =>
|
|
66614
|
+
return t !== !1 && (e.label = sy(t, (n) => Di(Me({}, n), {
|
|
66615
66615
|
visible: !0
|
|
66616
66616
|
}))), { spec: e };
|
|
66617
66617
|
}, Ose = (i) => {
|
|
@@ -66708,7 +66708,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66708
66708
|
});
|
|
66709
66709
|
const t = [];
|
|
66710
66710
|
return Object.values(e).forEach((n) => {
|
|
66711
|
-
n.length === 2 && n.every((r) => Cr(r.text)) ? t.push(
|
|
66711
|
+
n.length === 2 && n.every((r) => Cr(r.text)) ? t.push(Di(Me({}, n[0]), {
|
|
66712
66712
|
text: n[0].text,
|
|
66713
66713
|
subtext: n[1].text
|
|
66714
66714
|
})) : n.forEach((r) => {
|
|
@@ -66719,7 +66719,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66719
66719
|
const { title: e, spec: t, dataZoom: n, markArea: r, markLine: o, markPoint: a } = i;
|
|
66720
66720
|
return qt(e) && e.length >= 2 ? t.title = H9t(e) : Ne(e) && e !== !1 && (t.title = Zs(e)[0]), Ne(n) && n !== !1 && (t.dataZoom = n), Ne(a) && a !== !1 && (t.markPoint = sy(a, (s) => {
|
|
66721
66721
|
const c = s, { label: l } = c, u = nh(c, ["label"]);
|
|
66722
|
-
return
|
|
66722
|
+
return Di(Me({}, u), {
|
|
66723
66723
|
visible: !0,
|
|
66724
66724
|
itemContent: {
|
|
66725
66725
|
confine: !0,
|
|
@@ -66731,7 +66731,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66731
66731
|
});
|
|
66732
66732
|
})), Ne(o) && o !== !1 && (t.markLine = sy(o, (s) => {
|
|
66733
66733
|
const c = s, { label: l } = c, u = nh(c, ["label"]);
|
|
66734
|
-
return
|
|
66734
|
+
return Di(Me({}, u), {
|
|
66735
66735
|
visible: !0,
|
|
66736
66736
|
label: {
|
|
66737
66737
|
text: s.label
|
|
@@ -66739,7 +66739,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66739
66739
|
});
|
|
66740
66740
|
})), Ne(r) && r !== !1 && (t.markArea = sy(r, (s) => {
|
|
66741
66741
|
const c = s, { label: l } = c, u = nh(c, ["label"]);
|
|
66742
|
-
return
|
|
66742
|
+
return Di(Me({}, u), {
|
|
66743
66743
|
visible: !0,
|
|
66744
66744
|
label: {
|
|
66745
66745
|
text: s.label
|
|
@@ -66830,12 +66830,12 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66830
66830
|
}, v$e = (i) => {
|
|
66831
66831
|
const { cell: e, transpose: t, fieldInfo: n } = i;
|
|
66832
66832
|
if (t) {
|
|
66833
|
-
const { x: r, y: o } = e, a = Zs(r), s = Zs(o), l = n.reduce((u, c) =>
|
|
66833
|
+
const { x: r, y: o } = e, a = Zs(r), s = Zs(o), l = n.reduce((u, c) => Di(Me({}, u), {
|
|
66834
66834
|
[c.fieldName]: c
|
|
66835
66835
|
}), {});
|
|
66836
66836
|
if (a.every((u) => !!l[u] && l[u].role === _o.MEASURE) && s.every((u) => !!l[u] && l[u].role === _o.DIMENSION))
|
|
66837
|
-
return
|
|
66838
|
-
cell:
|
|
66837
|
+
return Di(Me({}, i), {
|
|
66838
|
+
cell: Di(Me({}, e), {
|
|
66839
66839
|
x: o,
|
|
66840
66840
|
y: r
|
|
66841
66841
|
})
|
|
@@ -66885,7 +66885,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66885
66885
|
}, _$e = (i) => {
|
|
66886
66886
|
const { transpose: e, spec: t } = i;
|
|
66887
66887
|
return e ? {
|
|
66888
|
-
spec:
|
|
66888
|
+
spec: Di(Me({}, t), { xField: t.yField, yField: t.xField, direction: "horizontal" })
|
|
66889
66889
|
} : i;
|
|
66890
66890
|
}, z9t = (i) => {
|
|
66891
66891
|
var e;
|
|
@@ -66961,7 +66961,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66961
66961
|
}, w$e = (i) => {
|
|
66962
66962
|
var e;
|
|
66963
66963
|
let { cell: t } = v0(i, ["color", "x", "label"]);
|
|
66964
|
-
t = Up(
|
|
66964
|
+
t = Up(Di(Me({}, i), { cell: t }), ["size", "value", "y", "radius"]).cell;
|
|
66965
66965
|
const { spec: n } = i;
|
|
66966
66966
|
return n.categoryField = (e = t.color) !== null && e !== void 0 ? e : t.x, t.size && (n.valueField = t.size), { spec: n, cell: t };
|
|
66967
66967
|
}, E$e = (i) => {
|
|
@@ -66977,7 +66977,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66977
66977
|
X5
|
|
66978
66978
|
], A$e = (i) => {
|
|
66979
66979
|
let { cell: e } = v0(i, ["color", "x", "label"]);
|
|
66980
|
-
e = Up(
|
|
66980
|
+
e = Up(Di(Me({}, i), { cell: e }), ["size", "value", "y"]).cell;
|
|
66981
66981
|
const { spec: t } = i;
|
|
66982
66982
|
return t.categoryField = e.color, t.valueField = e.size, t.seriesField = e.color, t.radius = 0.8, t.innerRadius = 0.7, t.roundCap = !0, t.cornerRadius = 20, { spec: t, cell: e };
|
|
66983
66983
|
}, U9t = [
|
|
@@ -66995,7 +66995,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
66995
66995
|
}, R$e = (i) => {
|
|
66996
66996
|
var e;
|
|
66997
66997
|
const { cell: t, spec: n, series: r } = i, { color: o } = t, a = n.data.values;
|
|
66998
|
-
return r ? (n.series = r.map((s) =>
|
|
66998
|
+
return r ? (n.series = r.map((s) => Di(Me({}, s), {
|
|
66999
66999
|
data: {
|
|
67000
67000
|
id: `data_${s.type}`,
|
|
67001
67001
|
values: s.data
|
|
@@ -67009,7 +67009,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67009
67009
|
id: g$e,
|
|
67010
67010
|
data: {
|
|
67011
67011
|
id: n.data.id + "_bar",
|
|
67012
|
-
values: o ? a : a.map((s) =>
|
|
67012
|
+
values: o ? a : a.map((s) => Di(Me({}, s), { [S9]: t.y[0] }))
|
|
67013
67013
|
},
|
|
67014
67014
|
dataIndex: 0,
|
|
67015
67015
|
label: { visible: !0 },
|
|
@@ -67023,7 +67023,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67023
67023
|
dataIndex: 0,
|
|
67024
67024
|
data: {
|
|
67025
67025
|
id: n.data.id + "_line",
|
|
67026
|
-
values: o ? a : a.map((s) =>
|
|
67026
|
+
values: o ? a : a.map((s) => Di(Me({}, s), { [S9]: t.y[1] }))
|
|
67027
67027
|
},
|
|
67028
67028
|
label: { visible: !0 },
|
|
67029
67029
|
xField: t.x,
|
|
@@ -67089,7 +67089,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67089
67089
|
return t.categoryField = e.color || e.x, t.valueField = e.value || e.y, { spec: t };
|
|
67090
67090
|
}, q9t = [mg, k$e, Ps, O$e, dd, gB], I$e = (i) => {
|
|
67091
67091
|
let { cell: e } = v0(i, ["color", "label"]);
|
|
67092
|
-
e = Up(
|
|
67092
|
+
e = Up(Di(Me({}, i), { cell: e }), ["size", "value"]).cell;
|
|
67093
67093
|
const { spec: t } = i;
|
|
67094
67094
|
return t.valueField = e.size, t.categoryField = e.color, { spec: t, cell: e };
|
|
67095
67095
|
}, D$e = (i) => {
|
|
@@ -67167,7 +67167,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67167
67167
|
if (qt(t) && t.length >= 2) {
|
|
67168
67168
|
const r = t.find((o) => o.type === "color");
|
|
67169
67169
|
e.legends = [
|
|
67170
|
-
|
|
67170
|
+
Di(Me({
|
|
67171
67171
|
visible: !0,
|
|
67172
67172
|
orient: "right",
|
|
67173
67173
|
position: "start"
|
|
@@ -67177,7 +67177,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67177
67177
|
...t.filter((o) => o !== r)
|
|
67178
67178
|
];
|
|
67179
67179
|
} else
|
|
67180
|
-
e.legends =
|
|
67180
|
+
e.legends = Di(Me({
|
|
67181
67181
|
visible: !0,
|
|
67182
67182
|
orient: "right",
|
|
67183
67183
|
position: "start",
|
|
@@ -67309,7 +67309,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67309
67309
|
rf
|
|
67310
67310
|
], V$e = (i) => {
|
|
67311
67311
|
const { spec: e, cell: t } = i, n = fB(i, ["value", "size"]);
|
|
67312
|
-
return e.valueField = n, e.indicatorSmartInvert = !0, { spec: e, cell: Ne(n) ?
|
|
67312
|
+
return e.valueField = n, e.indicatorSmartInvert = !0, { spec: e, cell: Ne(n) ? Di(Me({}, t), { value: n }) : t };
|
|
67313
67313
|
}, J9t = [Ou, Ps, V$e, Ose, vg], j$e = {
|
|
67314
67314
|
regionProjectType: null,
|
|
67315
67315
|
regionCoordinate: "geo",
|
|
@@ -67332,7 +67332,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67332
67332
|
], n.map = (e = t.mapName) !== null && e !== void 0 ? e : "map", { spec: n };
|
|
67333
67333
|
}, G$e = (i) => {
|
|
67334
67334
|
let { cell: e } = v0(i, ["color", "label"]);
|
|
67335
|
-
e = Up(
|
|
67335
|
+
e = Up(Di(Me({}, i), { cell: e }), ["size", "value", "y"]).cell;
|
|
67336
67336
|
const { spec: t } = i;
|
|
67337
67337
|
return t.nameField = e.color, t.valueField = e.size, t.nameProperty = e.color, { spec: t, cell: e };
|
|
67338
67338
|
}, q$e = (i) => {
|
|
@@ -67344,7 +67344,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67344
67344
|
if (qt(n) && n.length >= 2) {
|
|
67345
67345
|
const r = n.find((o) => o.type === "color");
|
|
67346
67346
|
e.legends = [
|
|
67347
|
-
|
|
67347
|
+
Di(Me({
|
|
67348
67348
|
visible: !0,
|
|
67349
67349
|
type: "color",
|
|
67350
67350
|
orient: "bottom",
|
|
@@ -67355,7 +67355,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67355
67355
|
...n.filter((o) => o !== r)
|
|
67356
67356
|
];
|
|
67357
67357
|
} else
|
|
67358
|
-
e.legends =
|
|
67358
|
+
e.legends = Di(Me({
|
|
67359
67359
|
visible: !0,
|
|
67360
67360
|
type: "color",
|
|
67361
67361
|
orient: "bottom",
|
|
@@ -67703,7 +67703,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67703
67703
|
], { spec: e };
|
|
67704
67704
|
}, aze = (i) => {
|
|
67705
67705
|
const { spec: e, label: t } = i;
|
|
67706
|
-
return t !== !1 && (e.label =
|
|
67706
|
+
return t !== !1 && (e.label = Di(Me({}, Zs(t)[0]), {
|
|
67707
67707
|
visible: !0,
|
|
67708
67708
|
style: {
|
|
67709
67709
|
fill: "#FFFFFF",
|
|
@@ -67787,7 +67787,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67787
67787
|
values: [
|
|
67788
67788
|
{
|
|
67789
67789
|
nodes: l,
|
|
67790
|
-
links: a.map((u) =>
|
|
67790
|
+
links: a.map((u) => Di(Me({}, u), {
|
|
67791
67791
|
[r]: s.indexOf(u[r]),
|
|
67792
67792
|
[o]: s.indexOf(u[o])
|
|
67793
67793
|
}))
|
|
@@ -67796,7 +67796,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67796
67796
|
}, { spec: t };
|
|
67797
67797
|
}, cze = (i) => {
|
|
67798
67798
|
const { spec: e, cell: t } = i, n = fB(i, ["value", "size"]);
|
|
67799
|
-
return e.sourceField = t.source, e.targetField = t.target, e.valueField = n, e.categoryField = "name", { spec: e, cell: Ne(n) ?
|
|
67799
|
+
return e.sourceField = t.source, e.targetField = t.target, e.valueField = n, e.categoryField = "name", { spec: e, cell: Ne(n) ? Di(Me({}, t), { value: n }) : t };
|
|
67800
67800
|
}, s7t = [uze, Ps, cze, X5, dd], hze = (i) => {
|
|
67801
67801
|
const { spec: e, cell: t } = i;
|
|
67802
67802
|
return e.xField = t.x, e.yField = t.y, Ne(t.color) && (e.seriesField = t.color), Ne(t.size) && (e.sizeField = t.size, e.size = {
|
|
@@ -67847,7 +67847,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67847
67847
|
rf
|
|
67848
67848
|
], fze = (i) => {
|
|
67849
67849
|
let { cell: e } = v0(i, ["color", "label"]);
|
|
67850
|
-
e = Up(
|
|
67850
|
+
e = Up(Di(Me({}, i), { cell: e }), ["size", "value"]).cell;
|
|
67851
67851
|
const { dataTable: t, spec: n } = i;
|
|
67852
67852
|
return n.data = {
|
|
67853
67853
|
id: "data",
|
|
@@ -67860,7 +67860,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67860
67860
|
style: {
|
|
67861
67861
|
fillOpacity: (n) => n.isLeaf ? 0.4 : 0.8
|
|
67862
67862
|
}
|
|
67863
|
-
}, t !== !1 && (e.label =
|
|
67863
|
+
}, t !== !1 && (e.label = Di(Me({}, Zs(t)[0]), {
|
|
67864
67864
|
visible: !0,
|
|
67865
67865
|
style: {
|
|
67866
67866
|
fillOpacity: (n) => n.isLeaf ? 0.4 : 0.8
|
|
@@ -67877,7 +67877,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67877
67877
|
}, { spec: e };
|
|
67878
67878
|
}, c7t = [fze, Ps, Ise, gze, vg], pze = (i) => {
|
|
67879
67879
|
let { cell: e } = v0(i, ["color", "label"]);
|
|
67880
|
-
e = Up(
|
|
67880
|
+
e = Up(Di(Me({}, i), { cell: e }), ["size", "value"]).cell;
|
|
67881
67881
|
const { dataTable: t, spec: n } = i;
|
|
67882
67882
|
return n.data = {
|
|
67883
67883
|
id: "data",
|
|
@@ -67886,7 +67886,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67886
67886
|
}, h7t = [pze, Ps, Ise, X5, vg], mze = (i) => {
|
|
67887
67887
|
const { dataTable: e, spec: t } = i;
|
|
67888
67888
|
let { cell: n } = v0(i, ["color", "x", "label", "sets"]);
|
|
67889
|
-
n = Up(
|
|
67889
|
+
n = Up(Di(Me({}, i), { cell: n }), ["size", "value"]).cell;
|
|
67890
67890
|
const r = n.color;
|
|
67891
67891
|
if (qt(r) && r.length === 2) {
|
|
67892
67892
|
const o = {}, a = r[0], s = r[1];
|
|
@@ -67898,7 +67898,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67898
67898
|
} else da(r) && (t.data = {
|
|
67899
67899
|
values: e.map((o) => {
|
|
67900
67900
|
const s = `${o[r]}`.split(/[,&]/).map((l) => l.trim());
|
|
67901
|
-
return
|
|
67901
|
+
return Di(Me({}, o), {
|
|
67902
67902
|
[r]: s
|
|
67903
67903
|
});
|
|
67904
67904
|
})
|
|
@@ -67927,7 +67927,7 @@ const m$e = (i) => (e) => e.__CHARTSPACE_DEFAULT_DATA_INDEX % d$e * i, F9t = (i)
|
|
|
67927
67927
|
rf
|
|
67928
67928
|
], yze = (i) => {
|
|
67929
67929
|
let { cell: e } = i;
|
|
67930
|
-
return (Cr(e.size) || Cr(e.color) || e.color === e.size) && (Cr(e.color) && (e = v0(i, ["text", "word", "label", "x"]).cell), (Cr(e.size) || e.size === e.color) && (e = Up(
|
|
67930
|
+
return (Cr(e.size) || Cr(e.color) || e.color === e.size) && (Cr(e.color) && (e = v0(i, ["text", "word", "label", "x"]).cell), (Cr(e.size) || e.size === e.color) && (e = Up(Di(Me({}, i), { cell: e }), ["weight", "fontSize"]).cell)), {
|
|
67931
67931
|
cell: e
|
|
67932
67932
|
};
|
|
67933
67933
|
}, _ze = (i) => {
|
|
@@ -73597,7 +73597,7 @@ Expecting ` + O8.join(", ") + ", got '" + (this.terminals_[wl] || wl) + "'" : Xw
|
|
|
73597
73597
|
case "INDEX":
|
|
73598
73598
|
if (B.length === 0) return;
|
|
73599
73599
|
const ae = I && I.length > 0 ? I[0].columnid : Object.keys(B[0])[0], Y = I && I.length > 1 ? I[1].columnid : Object.keys(B[0])[1];
|
|
73600
|
-
return B.reduce((be, me) =>
|
|
73600
|
+
return B.reduce((be, me) => Di(Me({}, be), { [me[ae]]: me[Y] }), {});
|
|
73601
73601
|
case "RECORDSET":
|
|
73602
73602
|
return new t.Recordset({ columns: I, data: B });
|
|
73603
73603
|
case "TEXTSTRING":
|
|
@@ -113361,7 +113361,7 @@ function gje(i) {
|
|
|
113361
113361
|
let r;
|
|
113362
113362
|
const o = (l = n == null ? void 0 : n.chartAdvistorRes) == null ? void 0 : l[0];
|
|
113363
113363
|
r = (u = o == null ? void 0 : o.spec) == null ? void 0 : u.type, (!r || !bw[r]) && (r = al.Table);
|
|
113364
|
-
const a = lg(r), s =
|
|
113364
|
+
const a = lg(r), s = Di(Me({}, i), { type: r });
|
|
113365
113365
|
if (a === "cartesian") {
|
|
113366
113366
|
const p = (c = n == null ? void 0 : n.spec) == null ? void 0 : c.xField;
|
|
113367
113367
|
s.xField = p, s.yField = (h = n == null ? void 0 : n.spec) == null ? void 0 : h.yield, bl(p) && (s.xField = p[0]);
|
|
@@ -113468,7 +113468,7 @@ const zI = ",", Tqt = "fold-key", nte = "megre-column-name", Rqt = () => {
|
|
|
113468
113468
|
};
|
|
113469
113469
|
function Oqt(i, e, t) {
|
|
113470
113470
|
let n = "";
|
|
113471
|
-
return e != null && e.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) ? n = "metric" : t != null && t.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) && (n = "dimension"), !n && i.role === "measure" && (i.role = "metric"),
|
|
113471
|
+
return e != null && e.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) ? n = "metric" : t != null && t.includes((i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName)) && (n = "dimension"), !n && i.role === "measure" && (i.role = "metric"), Di(Me({}, i), {
|
|
113472
113472
|
fieldName: (i == null ? void 0 : i.name) || (i == null ? void 0 : i.fieldName),
|
|
113473
113473
|
role: n || (i == null ? void 0 : i.role)
|
|
113474
113474
|
});
|
|
@@ -113522,7 +113522,7 @@ const Iqt = (i, e, t, n = [], r = []) => {
|
|
|
113522
113522
|
let o = t;
|
|
113523
113523
|
if (n !== r || (i == null ? void 0 : i.timeGrain) !== (e == null ? void 0 : e.timeGrain)) {
|
|
113524
113524
|
const s = mje((a = t == null ? void 0 : t.transfromData) == null ? void 0 : a.foldData, t == null ? void 0 : t.fieldInfo, e);
|
|
113525
|
-
return o =
|
|
113525
|
+
return o = Di(Me({}, t), {
|
|
113526
113526
|
transfromData: Me(Me({}, t == null ? void 0 : t.transfromData), s)
|
|
113527
113527
|
}), {
|
|
113528
113528
|
dataset: o,
|
|
@@ -113588,7 +113588,7 @@ const Iqt = (i, e, t, n = [], r = []) => {
|
|
|
113588
113588
|
updateChartJson: (n, r) => t((o) => {
|
|
113589
113589
|
const a = o.chartJson[n];
|
|
113590
113590
|
return JSON.stringify(a) === JSON.stringify(r) ? o : {
|
|
113591
|
-
chartJson:
|
|
113591
|
+
chartJson: Di(Me({}, o.chartJson), {
|
|
113592
113592
|
[n]: r
|
|
113593
113593
|
})
|
|
113594
113594
|
};
|
|
@@ -113629,7 +113629,7 @@ const Iqt = (i, e, t, n = [], r = []) => {
|
|
|
113629
113629
|
if (!(r != null && r.length) || !(o != null && o.length))
|
|
113630
113630
|
for (const h of a)
|
|
113631
113631
|
h.role === "metric" && (h != null && h.fieldName) && u.push(h.fieldName), h.role === "dimension" && (h != null && h.fieldName) && c.push(h.fieldName);
|
|
113632
|
-
return u = r != null && r.length ? r : u, c = o != null && o.length ? o : c, l === "cartesian" && (s =
|
|
113632
|
+
return u = r != null && r.length ? r : u, c = o != null && o.length ? o : c, l === "cartesian" && (s = Di(Me({}, s), {
|
|
113633
113633
|
metrics: u,
|
|
113634
113634
|
dimensions: c,
|
|
113635
113635
|
xField: i.xField || (c == null ? void 0 : c[0]),
|
|
@@ -113643,7 +113643,7 @@ const Iqt = (i, e, t, n = [], r = []) => {
|
|
|
113643
113643
|
}, fd = () => Nqt().store, Hqt = ({ chartProps: i, children: e }) => {
|
|
113644
113644
|
const t = hs(() => {
|
|
113645
113645
|
const r = (i == null ? void 0 : i.chartId) || vse(10);
|
|
113646
|
-
return
|
|
113646
|
+
return Di(Me({}, i), {
|
|
113647
113647
|
chartId: r
|
|
113648
113648
|
});
|
|
113649
113649
|
}, [i]), n = Bqt(t.chartId, t, (r) => r);
|
|
@@ -113784,7 +113784,7 @@ const NB = (i, e) => {
|
|
|
113784
113784
|
const { formatValue: n } = Rm(), r = {
|
|
113785
113785
|
key: (a) => t ? a[t] : (a == null ? void 0 : a.key) === null ? void 0 : e,
|
|
113786
113786
|
value: (a) => n(e, a[e])
|
|
113787
|
-
}, o = (a) =>
|
|
113787
|
+
}, o = (a) => Di(Me({}, a), {
|
|
113788
113788
|
value: n(i, a == null ? void 0 : a.value)
|
|
113789
113789
|
});
|
|
113790
113790
|
return {
|
|
@@ -113915,7 +113915,7 @@ const _je = () => {
|
|
|
113915
113915
|
var s = a, { children: r } = s, o = nh(s, ["children"]);
|
|
113916
113916
|
return /* @__PURE__ */ Se.jsx(
|
|
113917
113917
|
"svg",
|
|
113918
|
-
|
|
113918
|
+
Di(Me({
|
|
113919
113919
|
style: {
|
|
113920
113920
|
margin: "0px 4px",
|
|
113921
113921
|
transform: "translate(0px, 0.125em)"
|
|
@@ -152375,7 +152375,7 @@ const Xgi = (i) => {
|
|
|
152375
152375
|
valueField: l,
|
|
152376
152376
|
tooltip: hR({ categoryField: s, valueField: l }),
|
|
152377
152377
|
// funnel style
|
|
152378
|
-
legends:
|
|
152378
|
+
legends: Di(Me({}, NB(!0, s)), {
|
|
152379
152379
|
visible: !0,
|
|
152380
152380
|
padding: {
|
|
152381
152381
|
top: 40
|
|
@@ -152783,7 +152783,7 @@ const pD = {
|
|
|
152783
152783
|
}, lpi = (i) => {
|
|
152784
152784
|
var l;
|
|
152785
152785
|
const e = "lineData", { data: t, dataset: n, xField: r = "time", yField: o = "value", dimensions: a } = i, s = gR(n, { xField: r, yField: o, dimensions: a });
|
|
152786
|
-
return
|
|
152786
|
+
return Di(Me({
|
|
152787
152787
|
type: "line",
|
|
152788
152788
|
data: [
|
|
152789
152789
|
{
|
|
@@ -152909,9 +152909,9 @@ const pD = {
|
|
|
152909
152909
|
xField: o,
|
|
152910
152910
|
yField: r,
|
|
152911
152911
|
dimensions: a
|
|
152912
|
-
}), u = [...((h = n == null ? void 0 : n.transfromData) == null ? void 0 : h.data) || t].sort((d, f) => Number(f[s.yField]) - Number(d[s.yField])), c = dR({ xField: s.yField, yField: o }).map((d) =>
|
|
152912
|
+
}), u = [...((h = n == null ? void 0 : n.transfromData) == null ? void 0 : h.data) || t].sort((d, f) => Number(f[s.yField]) - Number(d[s.yField])), c = dR({ xField: s.yField, yField: o }).map((d) => Di(Me({}, d), {
|
|
152913
152913
|
maxWidth: 150,
|
|
152914
|
-
label:
|
|
152914
|
+
label: Di(Me({}, d.label), {
|
|
152915
152915
|
autoRotate: !0,
|
|
152916
152916
|
autoHide: !0
|
|
152917
152917
|
}),
|
|
@@ -181456,7 +181456,7 @@ const Bxi = {
|
|
|
181456
181456
|
);
|
|
181457
181457
|
}, zQe = (i) => {
|
|
181458
181458
|
const { transformedProps: e } = yKe("Table", i), t = Nxi(e);
|
|
181459
|
-
return /* @__PURE__ */ Se.jsx(Hxi,
|
|
181459
|
+
return /* @__PURE__ */ Se.jsx(Hxi, Di(Me({}, e), { options: t }));
|
|
181460
181460
|
}, bw = {
|
|
181461
181461
|
[al.Line]: upi,
|
|
181462
181462
|
[al.Pie]: hpi,
|
|
@@ -181673,7 +181673,7 @@ function VQe() {
|
|
|
181673
181673
|
throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");
|
|
181674
181674
|
return i;
|
|
181675
181675
|
}
|
|
181676
|
-
const Yxi = "3.0.
|
|
181676
|
+
const Yxi = "3.0.9", Sce = /* @__PURE__ */ Qy({});
|
|
181677
181677
|
function jQe(i) {
|
|
181678
181678
|
var e, t, n = "";
|
|
181679
181679
|
if (typeof i == "string" || typeof i == "number") n += i;
|
|
@@ -182347,7 +182347,7 @@ function aSi(i, e) {
|
|
|
182347
182347
|
}
|
|
182348
182348
|
function sSi(i, e, t = {}) {
|
|
182349
182349
|
var l, u, c;
|
|
182350
|
-
const n = wce(t), r = Ece(n), o =
|
|
182350
|
+
const n = wce(t), r = Ece(n), o = Di(Me({}, t), {
|
|
182351
182351
|
styles: r
|
|
182352
182352
|
});
|
|
182353
182353
|
aSi(n, o);
|
|
@@ -182550,9 +182550,9 @@ const yw = (i) => {
|
|
|
182550
182550
|
}), eJe(l), wne(D9e(e), `icon should be icon definiton, but got ${e}`), !D9e(e))
|
|
182551
182551
|
return null;
|
|
182552
182552
|
let c = e;
|
|
182553
|
-
return c && typeof c.icon == "function" && (c =
|
|
182553
|
+
return c && typeof c.icon == "function" && (c = Di(Me({}, c), {
|
|
182554
182554
|
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
182555
|
-
})), Ene(c.icon, `svg-${c.name}`,
|
|
182555
|
+
})), Ene(c.icon, `svg-${c.name}`, Di(Me({
|
|
182556
182556
|
className: t,
|
|
182557
182557
|
onClick: n,
|
|
182558
182558
|
style: r,
|
|
@@ -182851,7 +182851,7 @@ const Bf = /* @__PURE__ */ M.forwardRef((i, e) => {
|
|
|
182851
182851
|
}), v = a ? {
|
|
182852
182852
|
msTransform: `rotate(${a}deg)`,
|
|
182853
182853
|
transform: `rotate(${a}deg)`
|
|
182854
|
-
} : void 0, b =
|
|
182854
|
+
} : void 0, b = Di(Me({}, mSi), {
|
|
182855
182855
|
className: m,
|
|
182856
182856
|
style: v,
|
|
182857
182857
|
viewBox: r
|
|
@@ -182871,7 +182871,7 @@ const Bf = /* @__PURE__ */ M.forwardRef((i, e) => {
|
|
|
182871
182871
|
}), y());
|
|
182872
182872
|
});
|
|
182873
182873
|
YSi.NODE_ENV !== "production" && (Bf.displayName = "AntdIcon");
|
|
182874
|
-
const XSi = (i) => /* @__PURE__ */ M.createElement("svg", Me({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.00028 11.8082V1.66675H3.33354V11.8092C2.34223 12.1619 1.66699 13.1013 1.66699 14.1658C1.66699 15.2257 2.34399 16.1735 3.33354 16.5233V18.3336H5.00028V16.5235C5.99061 16.1731 6.66721 15.2267 6.66721 14.1658C6.66721 13.1042 5.99648 12.1607 5.00028 11.8082ZM16.6671 7.64242V1.66675H15.0003V7.64339C14.0088 7.99609 13.3338 8.9355 13.3338 10.0001C13.3338 11.0599 14.0108 12.0079 15.0003 12.3575V18.3336H16.6671V12.3577C17.6574 12.0074 18.3338 11.0609 18.3338 10.0001C18.3338 8.93844 17.6633 7.99492 16.6671 7.64242ZM4.1672 13.3326C3.70464 13.3326 3.33393 13.7029 3.33393 14.1658C3.33393 14.639 3.69896 14.9991 4.1672 14.9991C4.62996 14.9991 5.00028 14.6282 5.00028 14.1658C5.00028 13.7054 4.6276 13.3326 4.1672 13.3326ZM12.5007 5.83272C12.5007 4.7713 11.83 3.82777 10.8338 3.47527V1.66675H9.16703V3.47625C8.17572 3.82895 7.50048 4.76836 7.50048 5.83272C7.50048 6.89276 8.17748 7.8406 9.16703 8.19036V18.3336H10.8338V8.19055C11.8241 7.84021 12.5007 6.89374 12.5007 5.83272ZM10.0007 4.99964C9.53813 4.99964 9.16723 5.36996 9.16723 5.83272C9.16723 6.29528 9.53794 6.66618 10.0007 6.66618C10.4634 6.66618 10.8338 6.29528 10.8338 5.83272C10.8338 5.37231 10.4611 4.99964 10.0007 4.99964ZM15.0005 10.0001C15.0005 9.5373 15.3714 9.16678 15.834 9.16678C16.2944 9.16678 16.6671 9.53965 16.6671 10.0001C16.6671 10.4624 16.2967 10.8333 15.834 10.8333C15.3712 10.8333 15.0005 10.4624 15.0005 10.0001Z", fill: "#89898A" })), KSi = (i) => /* @__PURE__ */ M.createElement("svg", Me({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { d: "M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z", fill: "#89898A" })), Nd = (i) => (i == null ? void 0 : i.map((e) =>
|
|
182874
|
+
const XSi = (i) => /* @__PURE__ */ M.createElement("svg", Me({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.00028 11.8082V1.66675H3.33354V11.8092C2.34223 12.1619 1.66699 13.1013 1.66699 14.1658C1.66699 15.2257 2.34399 16.1735 3.33354 16.5233V18.3336H5.00028V16.5235C5.99061 16.1731 6.66721 15.2267 6.66721 14.1658C6.66721 13.1042 5.99648 12.1607 5.00028 11.8082ZM16.6671 7.64242V1.66675H15.0003V7.64339C14.0088 7.99609 13.3338 8.9355 13.3338 10.0001C13.3338 11.0599 14.0108 12.0079 15.0003 12.3575V18.3336H16.6671V12.3577C17.6574 12.0074 18.3338 11.0609 18.3338 10.0001C18.3338 8.93844 17.6633 7.99492 16.6671 7.64242ZM4.1672 13.3326C3.70464 13.3326 3.33393 13.7029 3.33393 14.1658C3.33393 14.639 3.69896 14.9991 4.1672 14.9991C4.62996 14.9991 5.00028 14.6282 5.00028 14.1658C5.00028 13.7054 4.6276 13.3326 4.1672 13.3326ZM12.5007 5.83272C12.5007 4.7713 11.83 3.82777 10.8338 3.47527V1.66675H9.16703V3.47625C8.17572 3.82895 7.50048 4.76836 7.50048 5.83272C7.50048 6.89276 8.17748 7.8406 9.16703 8.19036V18.3336H10.8338V8.19055C11.8241 7.84021 12.5007 6.89374 12.5007 5.83272ZM10.0007 4.99964C9.53813 4.99964 9.16723 5.36996 9.16723 5.83272C9.16723 6.29528 9.53794 6.66618 10.0007 6.66618C10.4634 6.66618 10.8338 6.29528 10.8338 5.83272C10.8338 5.37231 10.4611 4.99964 10.0007 4.99964ZM15.0005 10.0001C15.0005 9.5373 15.3714 9.16678 15.834 9.16678C16.2944 9.16678 16.6671 9.53965 16.6671 10.0001C16.6671 10.4624 16.2967 10.8333 15.834 10.8333C15.3712 10.8333 15.0005 10.4624 15.0005 10.0001Z", fill: "#89898A" })), KSi = (i) => /* @__PURE__ */ M.createElement("svg", Me({ width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i), /* @__PURE__ */ M.createElement("path", { d: "M11.667 10.9998V18.3337H8.33398V10.9998L1.66699 1.66675H18.334L11.667 10.9998ZM10 10.4656L15.0947 3.33374H4.90527L10 10.4656Z", fill: "#89898A" })), Nd = (i) => (i == null ? void 0 : i.map((e) => Di(Me({}, e), {
|
|
182875
182875
|
label: /* @__PURE__ */ Se.jsx(po, { id: e.key })
|
|
182876
182876
|
}))) || [], ZSi = {
|
|
182877
182877
|
components: {
|
|
@@ -183013,27 +183013,27 @@ class twi {
|
|
|
183013
183013
|
}
|
|
183014
183014
|
get(e) {
|
|
183015
183015
|
return aa(this, null, function* () {
|
|
183016
|
-
return this.request(
|
|
183016
|
+
return this.request(Di(Me({}, e), { method: "GET" }));
|
|
183017
183017
|
});
|
|
183018
183018
|
}
|
|
183019
183019
|
delete(e) {
|
|
183020
183020
|
return aa(this, null, function* () {
|
|
183021
|
-
return this.request(
|
|
183021
|
+
return this.request(Di(Me({}, e), { method: "DELETE" }));
|
|
183022
183022
|
});
|
|
183023
183023
|
}
|
|
183024
183024
|
put(e) {
|
|
183025
183025
|
return aa(this, null, function* () {
|
|
183026
|
-
return this.request(
|
|
183026
|
+
return this.request(Di(Me({}, e), { method: "PUT" }));
|
|
183027
183027
|
});
|
|
183028
183028
|
}
|
|
183029
183029
|
post(e) {
|
|
183030
183030
|
return aa(this, null, function* () {
|
|
183031
|
-
return this.request(
|
|
183031
|
+
return this.request(Di(Me({}, e), { method: "POST" }));
|
|
183032
183032
|
});
|
|
183033
183033
|
}
|
|
183034
183034
|
patch(e) {
|
|
183035
183035
|
return aa(this, null, function* () {
|
|
183036
|
-
return this.request(
|
|
183036
|
+
return this.request(Di(Me({}, e), { method: "PATCH" }));
|
|
183037
183037
|
});
|
|
183038
183038
|
}
|
|
183039
183039
|
ping() {
|
|
@@ -183112,7 +183112,7 @@ const awi = (i) => i ? i == null ? void 0 : i.map((e) => Me({}, e.subFilter)) :
|
|
|
183112
183112
|
var n;
|
|
183113
183113
|
return ((n = t == null ? void 0 : t.data) == null ? void 0 : n.items) || [];
|
|
183114
183114
|
});
|
|
183115
|
-
}, uwi = (i) => WR.post({ url: "/metricInsight/api/v1/mql/params", data: i }).then((t) => (t == null ? void 0 : t.data) || []), cwi = (i, e) => i
|
|
183115
|
+
}, uwi = (i) => WR.post({ url: "/metricInsight/api/v1/mql/params", data: i }).then((t) => (t == null ? void 0 : t.data) || []), cwi = (i, e) => i != null && i.mql ? dwi(i, e) : hwi(e), hwi = ({
|
|
183116
183116
|
timeRange: i,
|
|
183117
183117
|
metrics: e,
|
|
183118
183118
|
dimensions: t,
|
|
@@ -183138,40 +183138,32 @@ const awi = (i) => i ? i == null ? void 0 : i.map((e) => Me({}, e.subFilter)) :
|
|
|
183138
183138
|
})));
|
|
183139
183139
|
const d = `/metricInsight/api/v1/metric/${s}/preview`;
|
|
183140
183140
|
return WR.post({ url: d, data: h }).then((f) => (f == null ? void 0 : f.data) || []);
|
|
183141
|
-
}, dwi = ({
|
|
183142
|
-
|
|
183143
|
-
metrics: e,
|
|
183144
|
-
dimensions: t,
|
|
183145
|
-
timeGrain: n,
|
|
183146
|
-
filters: r,
|
|
183147
|
-
queryMetricOrgId: o,
|
|
183148
|
-
queryType: a
|
|
183149
|
-
}) => {
|
|
183150
|
-
const s = {
|
|
183141
|
+
}, dwi = (i, { timeRange: e, metrics: t, dimensions: n, timeGrain: r, filters: o, queryMetricOrgId: a, queryType: s }) => {
|
|
183142
|
+
const l = i == null ? void 0 : i.mql, u = {
|
|
183151
183143
|
dimensions: [],
|
|
183152
183144
|
metricDefinitions: {},
|
|
183153
183145
|
metrics: [],
|
|
183154
183146
|
timeConstraint: {},
|
|
183155
183147
|
filters: {},
|
|
183156
|
-
orders: {},
|
|
183157
|
-
|
|
183158
|
-
orgId:
|
|
183159
|
-
queryType:
|
|
183160
|
-
},
|
|
183161
|
-
let
|
|
183162
|
-
return
|
|
183148
|
+
orders: (l == null ? void 0 : l.orders) || {},
|
|
183149
|
+
limits: (l == null ? void 0 : l.limits) || {},
|
|
183150
|
+
orgId: a,
|
|
183151
|
+
queryType: s
|
|
183152
|
+
}, c = n == null ? void 0 : n.map((f) => {
|
|
183153
|
+
let g = (f == null ? void 0 : f.englishName) || (f == null ? void 0 : f.label);
|
|
183154
|
+
return f.value === "metricTime" && (g = "metric_time__" + r), g;
|
|
183163
183155
|
});
|
|
183164
|
-
|
|
183165
|
-
let
|
|
183166
|
-
var
|
|
183167
|
-
return
|
|
183168
|
-
}).filter((
|
|
183169
|
-
return
|
|
183170
|
-
const
|
|
183171
|
-
|
|
183172
|
-
}), WR.post({ url: "/metricInsight/api/v1/mql/query", data:
|
|
183173
|
-
var
|
|
183174
|
-
return ((
|
|
183156
|
+
u.dimensions = {};
|
|
183157
|
+
let h = o == null ? void 0 : o.map((f) => {
|
|
183158
|
+
var g;
|
|
183159
|
+
return f.type === "basic" ? gwi(f == null ? void 0 : f.basic) : f.type === "customSql" ? (g = f == null ? void 0 : f.sql) == null ? void 0 : g.filterCondition : null;
|
|
183160
|
+
}).filter((f) => f !== null && f.trim() !== "");
|
|
183161
|
+
return t == null || t.forEach((f) => {
|
|
183162
|
+
const g = (f == null ? void 0 : f.displayName) || (f == null ? void 0 : f.label);
|
|
183163
|
+
u.metrics.push(g), u.dimensions[g] = c, u.metricDefinitions[g] = f.metricDefinitions, u.filters[g] = h || [], u.timeConstraint[g] = e || {};
|
|
183164
|
+
}), WR.post({ url: "/metricInsight/api/v1/mql/query", data: u }).then((f) => {
|
|
183165
|
+
var g;
|
|
183166
|
+
return ((g = f == null ? void 0 : f.data) == null ? void 0 : g[0]) || [];
|
|
183175
183167
|
});
|
|
183176
183168
|
}, fwi = (i) => {
|
|
183177
183169
|
const { data: e } = i;
|
|
@@ -183308,11 +183300,11 @@ function bwi(i, e) {
|
|
|
183308
183300
|
}), { metricsOptions: r, dataFormat: o };
|
|
183309
183301
|
}
|
|
183310
183302
|
function ywi(i, e, t, n) {
|
|
183311
|
-
const { metricsOptions: r, dataFormat: o } = e, { dimensions: a, timeDimension: s = {}, filters: l = [] } = i, u =
|
|
183312
|
-
(f) =>
|
|
183313
|
-
(g) => (
|
|
183314
|
-
)
|
|
183315
|
-
);
|
|
183303
|
+
const { metricsOptions: r, dataFormat: o } = e, { dimensions: a, timeDimension: s = {}, filters: l = [] } = i, u = Di(Me({}, n), { dataType: "TIMESTAMP" }), c = uJe(r), h = Ice(t, c, n), d = a == null ? void 0 : a.map(
|
|
183304
|
+
(f) => h.find(
|
|
183305
|
+
(g) => (f == null ? void 0 : f.displayName) === g.label || (f == null ? void 0 : f.dimensionId) === g.value
|
|
183306
|
+
)
|
|
183307
|
+
).filter(Boolean);
|
|
183316
183308
|
return (s == null ? void 0 : s.dimensionName) === (n == null ? void 0 : n.value) && d.unshift(u), {
|
|
183317
183309
|
metrics: r,
|
|
183318
183310
|
dataFormat: o,
|
|
@@ -183404,7 +183396,7 @@ function Ice(i, e, t) {
|
|
|
183404
183396
|
disabled: o || a
|
|
183405
183397
|
};
|
|
183406
183398
|
})) || [];
|
|
183407
|
-
return n.unshift(
|
|
183399
|
+
return n.unshift(Di(Me({}, t), {
|
|
183408
183400
|
dataType: "TIMESTAMP",
|
|
183409
183401
|
englishName: t.label,
|
|
183410
183402
|
datasetName: void 0,
|
|
@@ -183573,89 +183565,89 @@ const xwi = [
|
|
|
183573
183565
|
}
|
|
183574
183566
|
} : i;
|
|
183575
183567
|
}, Dce = (i) => {
|
|
183576
|
-
const e = gd(), t = i.type,
|
|
183568
|
+
const e = gd(), t = i.type, { queryChartData: n, transformData: r } = sJe(t), { chartJson: o, drillBy: a, setLoading: s, setChartJson: l, setError: u, setDataSourceQueryInfo: c, setChartDrillBy: h } = fd();
|
|
183577
183569
|
return {
|
|
183578
|
-
queryChartDataFromDatasource: (
|
|
183579
|
-
var
|
|
183580
|
-
console.log("queryChartDataFromDatasource",
|
|
183581
|
-
const { metrics:
|
|
183582
|
-
if (
|
|
183570
|
+
queryChartDataFromDatasource: (p, m) => aa(null, null, function* () {
|
|
183571
|
+
var S;
|
|
183572
|
+
console.log("queryChartDataFromDatasource", p);
|
|
183573
|
+
const { metrics: v, dimensions: b, timeGrain: y, dataFormat: _ } = p;
|
|
183574
|
+
if (u({
|
|
183583
183575
|
visible: !1,
|
|
183584
183576
|
title: "",
|
|
183585
183577
|
message: ""
|
|
183586
|
-
}),
|
|
183587
|
-
const
|
|
183588
|
-
|
|
183578
|
+
}), p.timeRange = Owi(p.timeRange), v != null && v.length) {
|
|
183579
|
+
const x = yield n(i, p).catch((R) => {
|
|
183580
|
+
u({
|
|
183589
183581
|
visible: !0,
|
|
183590
183582
|
title: e.formatMessage({ id: "chartDataLoadingFailed" }),
|
|
183591
|
-
message:
|
|
183592
|
-
}),
|
|
183583
|
+
message: R.message
|
|
183584
|
+
}), s(!1);
|
|
183593
183585
|
});
|
|
183594
|
-
|
|
183595
|
-
fieldInfo: (
|
|
183596
|
-
fieldName:
|
|
183597
|
-
type:
|
|
183586
|
+
c({
|
|
183587
|
+
fieldInfo: (S = x == null ? void 0 : x.columns) == null ? void 0 : S.map((R) => ({
|
|
183588
|
+
fieldName: R == null ? void 0 : R.name,
|
|
183589
|
+
type: R.type
|
|
183598
183590
|
}))
|
|
183599
183591
|
});
|
|
183600
|
-
const
|
|
183601
|
-
let
|
|
183602
|
-
fje(
|
|
183603
|
-
let
|
|
183604
|
-
chartJson:
|
|
183605
|
-
metrics:
|
|
183606
|
-
dimensions:
|
|
183607
|
-
isInit:
|
|
183592
|
+
const w = r(x);
|
|
183593
|
+
let E = o;
|
|
183594
|
+
fje(o) && (E = yield gje(Di(Me({}, o), { data: w })));
|
|
183595
|
+
let A = l2e({
|
|
183596
|
+
chartJson: E,
|
|
183597
|
+
metrics: v,
|
|
183598
|
+
dimensions: b,
|
|
183599
|
+
isInit: m
|
|
183608
183600
|
});
|
|
183609
|
-
const
|
|
183610
|
-
data:
|
|
183611
|
-
timeGrain:
|
|
183612
|
-
dataFormat:
|
|
183601
|
+
const T = Di(Me({}, A), {
|
|
183602
|
+
data: w,
|
|
183603
|
+
timeGrain: y,
|
|
183604
|
+
dataFormat: _
|
|
183613
183605
|
});
|
|
183614
|
-
|
|
183606
|
+
l(T), s(!1), x && u({
|
|
183615
183607
|
visible: !1,
|
|
183616
183608
|
title: "",
|
|
183617
183609
|
message: ""
|
|
183618
183610
|
});
|
|
183619
183611
|
}
|
|
183620
183612
|
}),
|
|
183621
|
-
queryDrillByChartData: (
|
|
183622
|
-
var
|
|
183623
|
-
const { metrics:
|
|
183624
|
-
if (
|
|
183625
|
-
const
|
|
183626
|
-
|
|
183613
|
+
queryDrillByChartData: (b) => aa(null, [b], function* ({ queryData: p, setDrillLoading: m, setDrillError: v }) {
|
|
183614
|
+
var S;
|
|
183615
|
+
const { metrics: y, dimensions: _ } = p;
|
|
183616
|
+
if (y != null && y.length) {
|
|
183617
|
+
const x = yield n(i, p).catch((k) => {
|
|
183618
|
+
v({
|
|
183627
183619
|
visible: !0,
|
|
183628
183620
|
title: e.formatMessage({ id: "drillDataLoadingFailed" }),
|
|
183629
|
-
message:
|
|
183630
|
-
}),
|
|
183631
|
-
}),
|
|
183632
|
-
chartJson:
|
|
183633
|
-
metrics:
|
|
183634
|
-
dimensions:
|
|
183635
|
-
}),
|
|
183636
|
-
data:
|
|
183637
|
-
}),
|
|
183638
|
-
|
|
183621
|
+
message: k.message
|
|
183622
|
+
}), m(!1);
|
|
183623
|
+
}), w = r(x), E = l2e({
|
|
183624
|
+
chartJson: o,
|
|
183625
|
+
metrics: y,
|
|
183626
|
+
dimensions: _
|
|
183627
|
+
}), A = Di(Me({}, E), {
|
|
183628
|
+
data: w
|
|
183629
|
+
}), T = vle(A), R = a;
|
|
183630
|
+
h(Di(Me({}, R), {
|
|
183639
183631
|
chartState: {
|
|
183640
|
-
chartJson:
|
|
183641
|
-
dataset:
|
|
183632
|
+
chartJson: A,
|
|
183633
|
+
dataset: T,
|
|
183642
183634
|
history: [
|
|
183643
|
-
...((
|
|
183635
|
+
...((S = R.chartState) == null ? void 0 : S.history) || [],
|
|
183644
183636
|
{
|
|
183645
|
-
chartJson:
|
|
183646
|
-
dataset:
|
|
183637
|
+
chartJson: A,
|
|
183638
|
+
dataset: T
|
|
183647
183639
|
}
|
|
183648
183640
|
]
|
|
183649
183641
|
}
|
|
183650
|
-
})),
|
|
183642
|
+
})), m(!1), x && v({
|
|
183651
183643
|
visible: !1,
|
|
183652
183644
|
title: "",
|
|
183653
183645
|
message: ""
|
|
183654
183646
|
});
|
|
183655
183647
|
}
|
|
183656
183648
|
}),
|
|
183657
|
-
queyDetailTableData: (
|
|
183658
|
-
return
|
|
183649
|
+
queyDetailTableData: (p) => aa(null, null, function* () {
|
|
183650
|
+
return n(i, Di(Me({}, p), { queryType: "detailed" })).then((m) => r(m));
|
|
183659
183651
|
})
|
|
183660
183652
|
};
|
|
183661
183653
|
}, Iwi = Ms(fl)`
|
|
@@ -183666,7 +183658,7 @@ const xwi = [
|
|
|
183666
183658
|
font-weight: 700;
|
|
183667
183659
|
}
|
|
183668
183660
|
`}
|
|
183669
|
-
`, Ap = ic((i, e) => /* @__PURE__ */ Se.jsx(Iwi,
|
|
183661
|
+
`, Ap = ic((i, e) => /* @__PURE__ */ Se.jsx(Iwi, Di(Me({}, i), { ref: e }))), hJe = 1024;
|
|
183670
183662
|
let Dwi = 0, gZ = class {
|
|
183671
183663
|
constructor(e, t) {
|
|
183672
183664
|
this.from = e, this.to = t;
|
|
@@ -196702,7 +196694,7 @@ function OAi(i = {}) {
|
|
|
196702
196694
|
initialSpacer() {
|
|
196703
196695
|
return new DZ(e, !1);
|
|
196704
196696
|
},
|
|
196705
|
-
domEventHandlers:
|
|
196697
|
+
domEventHandlers: Di(Me({}, o), {
|
|
196706
196698
|
click: (a, s, l) => {
|
|
196707
196699
|
if (o.click && o.click(a, s, l))
|
|
196708
196700
|
return !0;
|
|
@@ -198415,7 +198407,7 @@ function ltt(i, e) {
|
|
|
198415
198407
|
const utt = /* @__PURE__ */ Xp.define();
|
|
198416
198408
|
function sTi(i, e, t, n) {
|
|
198417
198409
|
let { main: r } = i.selection, o = t - r.from, a = n - r.from;
|
|
198418
|
-
return
|
|
198410
|
+
return Di(Me({}, i.changeByRange((s) => {
|
|
198419
198411
|
if (s != r && t != n && i.sliceDoc(s.from + o, s.from + a) != i.sliceDoc(t, n))
|
|
198420
198412
|
return { range: s };
|
|
198421
198413
|
let l = i.toText(e);
|
|
@@ -198824,7 +198816,7 @@ class M3 {
|
|
|
198824
198816
|
}, r ? r.timestamp : Date.now(), l, !1);
|
|
198825
198817
|
}
|
|
198826
198818
|
map(e) {
|
|
198827
|
-
return new M3(this.options, this.attrs,
|
|
198819
|
+
return new M3(this.options, this.attrs, Di(Me({}, this.tooltip), { pos: e.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);
|
|
198828
198820
|
}
|
|
198829
198821
|
setDisabled() {
|
|
198830
198822
|
return new M3(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
|
|
@@ -199004,7 +198996,7 @@ const ihe = /* @__PURE__ */ ro.define({
|
|
|
199004
198996
|
function nhe(i, e) {
|
|
199005
198997
|
const t = e.completion.apply || e.completion.label;
|
|
199006
198998
|
let n = i.state.field(Uh).active.find((r) => r.source == e.source);
|
|
199007
|
-
return n instanceof fx ? (typeof t == "string" ? i.dispatch(
|
|
198999
|
+
return n instanceof fx ? (typeof t == "string" ? i.dispatch(Di(Me({}, sTi(i.state, t, n.from, n.to)), {
|
|
199008
199000
|
annotations: utt.of(e.completion)
|
|
199009
199001
|
})) : t(i, e.completion, n.from, n.to), !0) : !1;
|
|
199010
199002
|
}
|
|
@@ -199791,7 +199783,7 @@ function _5i(i, e) {
|
|
|
199791
199783
|
return n;
|
|
199792
199784
|
}
|
|
199793
199785
|
function C5i(i, e, t) {
|
|
199794
|
-
return t.map((n) =>
|
|
199786
|
+
return t.map((n) => Di(Me({}, n), { label: n.label[0] == i ? n.label : i + n.label + e, apply: void 0 }));
|
|
199795
199787
|
}
|
|
199796
199788
|
const x5i = /^\w*$/, S5i = /^[`'"\[]?\w*[`'"\]]?$/;
|
|
199797
199789
|
function bMe(i) {
|
|
@@ -202643,23 +202635,23 @@ const e9i = Ms.div`
|
|
|
202643
202635
|
}
|
|
202644
202636
|
}
|
|
202645
202637
|
`, n9i = ({ filter: i, onCancel: e, onApply: t }) => {
|
|
202646
|
-
var v;
|
|
202638
|
+
var v, b;
|
|
202647
202639
|
const n = gd(), [r, o] = Jn((i == null ? void 0 : i.type) || "basic"), [a, s] = Jn(!0), [l, u] = Jn("WHERE"), [c, h] = Jn(""), [d] = Fo.useForm(), f = Fo.useWatch(null, d), g = Fo.useWatch("condition", d), { dataSourceQueryInfo: p } = fd();
|
|
202648
202640
|
vr(() => {
|
|
202649
202641
|
o(i.type), i.type === "basic" && d.setFieldsValue(i.basic), i.type === "customSql" && (i != null && i.sql) && (u(i.sql.conditionType), h(i.sql.filterCondition));
|
|
202650
202642
|
}, [i]), vr(() => {
|
|
202651
202643
|
if (r === "basic") {
|
|
202652
|
-
const
|
|
202653
|
-
s(!
|
|
202644
|
+
const y = d.getFieldsValue(), _ = Object.values(y).every((S) => S !== null && S !== "" && S !== void 0);
|
|
202645
|
+
s(!_);
|
|
202654
202646
|
} else r === "customSql" && s(!c || !l);
|
|
202655
202647
|
}, [r, f, c]);
|
|
202656
202648
|
const m = () => {
|
|
202657
202649
|
if (r === "basic") {
|
|
202658
|
-
const
|
|
202650
|
+
const y = {
|
|
202659
202651
|
type: "basic",
|
|
202660
202652
|
basic: Me({}, f)
|
|
202661
202653
|
};
|
|
202662
|
-
t(
|
|
202654
|
+
t(y);
|
|
202663
202655
|
}
|
|
202664
202656
|
r === "customSql" && t({
|
|
202665
202657
|
type: "customSql",
|
|
@@ -202678,14 +202670,19 @@ const e9i = Ms.div`
|
|
|
202678
202670
|
mode: "inline",
|
|
202679
202671
|
theme: "light",
|
|
202680
202672
|
items: Nd(nwi),
|
|
202681
|
-
onClick: ({ key:
|
|
202682
|
-
o(
|
|
202673
|
+
onClick: ({ key: y }) => {
|
|
202674
|
+
o(y);
|
|
202683
202675
|
}
|
|
202684
202676
|
}
|
|
202685
202677
|
) }),
|
|
202686
202678
|
/* @__PURE__ */ Se.jsx("div", { className: "right-content", children: /* @__PURE__ */ Se.jsxs(Fo, { layout: "vertical", form: d, children: [
|
|
202687
202679
|
r === "basic" && /* @__PURE__ */ Se.jsxs(cg, { vertical: !0, children: [
|
|
202688
|
-
/* @__PURE__ */ Se.jsx(Fo.Item, { label: /* @__PURE__ */ Se.jsx(po, { id: "dimension" }), name: "dimensionId", children: /* @__PURE__ */ Se.jsx(
|
|
202680
|
+
/* @__PURE__ */ Se.jsx(Fo.Item, { label: /* @__PURE__ */ Se.jsx(po, { id: "dimension" }), name: "dimensionId", children: /* @__PURE__ */ Se.jsx(
|
|
202681
|
+
Vh,
|
|
202682
|
+
{
|
|
202683
|
+
options: (b = (v = p == null ? void 0 : p.dimensions) == null ? void 0 : v.filter((y) => y.value !== "metricTime")) == null ? void 0 : b.map((y) => Di(Me({}, y), { disabled: !1 }))
|
|
202684
|
+
}
|
|
202685
|
+
) }),
|
|
202689
202686
|
/* @__PURE__ */ Se.jsx(Fo.Item, { label: /* @__PURE__ */ Se.jsx(po, { id: "condition" }), name: "condition", children: /* @__PURE__ */ Se.jsx(Vh, { options: Nd(Oce) }) }),
|
|
202690
202687
|
!["is null", "is not null"].includes(g) && /* @__PURE__ */ Se.jsx(Fo.Item, { label: /* @__PURE__ */ Se.jsx(po, { id: "value" }), name: "value", colon: !1, children: /* @__PURE__ */ Se.jsx(pm, { allowClear: !0 }) })
|
|
202691
202688
|
] }),
|
|
@@ -202695,7 +202692,7 @@ const e9i = Ms.div`
|
|
|
202695
202692
|
{
|
|
202696
202693
|
options: owi,
|
|
202697
202694
|
value: l,
|
|
202698
|
-
onChange: (
|
|
202695
|
+
onChange: (y) => u(y)
|
|
202699
202696
|
}
|
|
202700
202697
|
) }),
|
|
202701
202698
|
/* @__PURE__ */ Se.jsx(Fo.Item, { label: /* @__PURE__ */ Se.jsx(po, { id: "filterConditionSQL" }), colon: !1, className: "code-sql", children: /* @__PURE__ */ Se.jsx(
|
|
@@ -202705,7 +202702,7 @@ const e9i = Ms.div`
|
|
|
202705
202702
|
value: c,
|
|
202706
202703
|
height: "276px",
|
|
202707
202704
|
extensions: [I5i()],
|
|
202708
|
-
onChange: (
|
|
202705
|
+
onChange: (y) => h(y)
|
|
202709
202706
|
}
|
|
202710
202707
|
) })
|
|
202711
202708
|
] })
|
|
@@ -203193,7 +203190,7 @@ const e9i = Ms.div`
|
|
|
203193
203190
|
`}
|
|
203194
203191
|
`, UMe = (i) => /* @__PURE__ */ Se.jsx(g9i, { children: /* @__PURE__ */ Se.jsx(
|
|
203195
203192
|
ZYe,
|
|
203196
|
-
|
|
203193
|
+
Di(Me({}, i), {
|
|
203197
203194
|
fullscreen: !1,
|
|
203198
203195
|
headerRender: ({ value: e, onChange: t }) => {
|
|
203199
203196
|
const n = e.year(), r = e.format("MMM");
|
|
@@ -203524,30 +203521,22 @@ const e9i = Ms.div`
|
|
|
203524
203521
|
] });
|
|
203525
203522
|
};
|
|
203526
203523
|
function C9i({ theme: i, dataSource: e }) {
|
|
203527
|
-
const t = gd(), [n, r] = Jn([]), [o, a] = Jn([]), s = { label: t.formatMessage({ id: "metricTime" }), value: "metricTime" }, {
|
|
203528
|
-
chartJson: l,
|
|
203529
|
-
setDataSourceQueryInfo: u,
|
|
203530
|
-
setLoading: c,
|
|
203531
|
-
setError: h,
|
|
203532
|
-
setControllerConfig: d,
|
|
203533
|
-
setChartDrillBy: f
|
|
203534
|
-
} = fd(), [g, p] = Jn({
|
|
203524
|
+
const t = gd(), [n, r] = Jn([]), [o, a] = Jn([]), s = { label: t.formatMessage({ id: "metricTime" }), value: "metricTime" }, { chartJson: l, setDataSourceQueryInfo: u, setLoading: c, setError: h, setControllerConfig: d, setChartDrillBy: f } = fd(), [g, p] = Jn({
|
|
203535
203525
|
metrics: [],
|
|
203536
203526
|
dimensions: []
|
|
203537
203527
|
}), { queryDimensions: m, queryMql2Params: v, queryMetricId: b } = sJe(e == null ? void 0 : e.type), { queryChartDataFromDatasource: y } = Dce(e), _ = (L) => {
|
|
203538
|
-
const F = {
|
|
203528
|
+
const F = Me({
|
|
203539
203529
|
metrics: (L == null ? void 0 : L.metrics) || [],
|
|
203540
203530
|
dimensions: (L == null ? void 0 : L.dimensions) || [],
|
|
203541
203531
|
timeRange: kwi(L == null ? void 0 : L.timeRange, e) || {},
|
|
203542
203532
|
timeGrain: Mwi(L == null ? void 0 : L.timeDimension) || (L == null ? void 0 : L.timeGrain) || (l == null ? void 0 : l.timeGrain),
|
|
203543
|
-
filters: awi(L == null ? void 0 : L.filters)
|
|
203544
|
-
|
|
203545
|
-
};
|
|
203533
|
+
filters: awi(L == null ? void 0 : L.filters)
|
|
203534
|
+
}, L);
|
|
203546
203535
|
p(F), r(L == null ? void 0 : L.metrics), a((L == null ? void 0 : L.dissionOptions) || []), u({
|
|
203547
203536
|
metrics: (L == null ? void 0 : L.metrics) || [],
|
|
203548
203537
|
dimensions: (L == null ? void 0 : L.dissionOptions) || []
|
|
203549
203538
|
}), d(F);
|
|
203550
|
-
const W =
|
|
203539
|
+
const W = Di(Me({}, F), {
|
|
203551
203540
|
dataFormat: L == null ? void 0 : L.dataFormat
|
|
203552
203541
|
});
|
|
203553
203542
|
y(W, !0);
|
|
@@ -203570,7 +203559,7 @@ function C9i({ theme: i, dataSource: e }) {
|
|
|
203570
203559
|
return;
|
|
203571
203560
|
}
|
|
203572
203561
|
const F = yield b((G = L == null ? void 0 : L.metricIds) == null ? void 0 : G[0]), W = vwi(F, l, s);
|
|
203573
|
-
_(
|
|
203562
|
+
_(Di(Me({}, W), {
|
|
203574
203563
|
timeGrain: L == null ? void 0 : L.timeGrain,
|
|
203575
203564
|
timeRange: L == null ? void 0 : L.timeRange,
|
|
203576
203565
|
filters: L == null ? void 0 : L.filters
|
|
@@ -203580,12 +203569,12 @@ function C9i({ theme: i, dataSource: e }) {
|
|
|
203580
203569
|
(e == null ? void 0 : e.type) === "metricInsight" && (e != null && e.mql ? S(e.mql) : e != null && e.params ? x(e.params) : (c(!1), h({ visible: !0, title: "Error", message: "mql or params is missing " })));
|
|
203581
203570
|
}, [e]);
|
|
203582
203571
|
const w = () => {
|
|
203583
|
-
c(!0), f({ visible: !1, config: {}, chartState: {} }), d(Me({}, g)), y(
|
|
203572
|
+
c(!0), f({ visible: !1, config: {}, chartState: {} }), d(Me({}, g)), y(Di(Me({}, g), { dataFormat: l == null ? void 0 : l.dataFormat }));
|
|
203584
203573
|
}, E = () => {
|
|
203585
203574
|
const { metrics: L } = g;
|
|
203586
203575
|
return !(L != null && L.length);
|
|
203587
203576
|
}, A = (L, F) => {
|
|
203588
|
-
p((W) =>
|
|
203577
|
+
p((W) => Di(Me({}, W), { [L]: F }));
|
|
203589
203578
|
};
|
|
203590
203579
|
if (e != null && e.hideControls)
|
|
203591
203580
|
return null;
|
|
@@ -203622,7 +203611,6 @@ function C9i({ theme: i, dataSource: e }) {
|
|
|
203622
203611
|
Vh,
|
|
203623
203612
|
{
|
|
203624
203613
|
mode: "multiple",
|
|
203625
|
-
allowClear: !0,
|
|
203626
203614
|
prefix: /* @__PURE__ */ Se.jsx(po, { id: "dimension" }),
|
|
203627
203615
|
value: k,
|
|
203628
203616
|
options: o,
|
|
@@ -203693,10 +203681,10 @@ const mit = (i) => /* @__PURE__ */ M.createElement("svg", Me({ width: "1em", hei
|
|
|
203693
203681
|
`, S9i = ({ dataSource: i }) => {
|
|
203694
203682
|
const { dataDetail: e, setDataDetail: t, controllerConfig: n } = fd(), { queyDetailTableData: r } = Dce(i), [o, a] = Jn([]), s = gd();
|
|
203695
203683
|
return vr(() => {
|
|
203696
|
-
e != null && e.visible && (t(
|
|
203697
|
-
a(l), t(
|
|
203684
|
+
e != null && e.visible && (t(Di(Me({}, e), { loading: !0 })), r(n).then((l) => {
|
|
203685
|
+
a(l), t(Di(Me({}, e), { error: "", loading: !1 }));
|
|
203698
203686
|
}).catch((l) => {
|
|
203699
|
-
a([]), t(
|
|
203687
|
+
a([]), t(Di(Me({}, e), { error: l == null ? void 0 : l.message }));
|
|
203700
203688
|
}));
|
|
203701
203689
|
}, [e == null ? void 0 : e.visible, n]), /* @__PURE__ */ Se.jsxs(x9i, { children: [
|
|
203702
203690
|
/* @__PURE__ */ Se.jsxs("div", { className: "header", children: [
|
|
@@ -203835,7 +203823,7 @@ const A9i = () => {
|
|
|
203835
203823
|
const b = (y) => {
|
|
203836
203824
|
if (s.visible) {
|
|
203837
203825
|
const _ = y.target;
|
|
203838
|
-
!_.closest(".chart-content") && e.current && !e.current.contains(_) && l(
|
|
203826
|
+
!_.closest(".chart-content") && e.current && !e.current.contains(_) && l(Di(Me({}, s), { visible: !1 }));
|
|
203839
203827
|
}
|
|
203840
203828
|
};
|
|
203841
203829
|
return s != null && s.visible && document.addEventListener("mousedown", b), () => {
|
|
@@ -204772,7 +204760,7 @@ const $9i = Ms.div`
|
|
|
204772
204760
|
}
|
|
204773
204761
|
return A;
|
|
204774
204762
|
}, S = (w, E) => {
|
|
204775
|
-
d((A) =>
|
|
204763
|
+
d((A) => Di(Me({}, A), {
|
|
204776
204764
|
[o]: {
|
|
204777
204765
|
formatType: E.formatType,
|
|
204778
204766
|
decimalPlaces: E.decimalPlaces
|
|
@@ -204916,7 +204904,7 @@ const $9i = Ms.div`
|
|
|
204916
204904
|
flexDirection: "column",
|
|
204917
204905
|
height: "100%",
|
|
204918
204906
|
width: "100%",
|
|
204919
|
-
".chart-container":
|
|
204907
|
+
".chart-container": Di(Me({
|
|
204920
204908
|
position: "relative",
|
|
204921
204909
|
boxSizing: "border-box",
|
|
204922
204910
|
overflow: "hidden",
|
|
@@ -205135,13 +205123,13 @@ function G9i({ theme: i, isFullScreen: e, setFullScreen: t, dataSource: n }) {
|
|
|
205135
205123
|
}
|
|
205136
205124
|
const q9i = ({ className: i, chartStyle: e, components: t = bw }) => {
|
|
205137
205125
|
var E, A;
|
|
205138
|
-
const { chartJson: n, dataset: r, drillBy: o, chartLoading: a, error: s, dataDetail: l, setLoading: u } = fd(), c = un(null), h = ((E = VQe()) == null ? void 0 : E.theme) || "light", [d, f] = Jn(null), [g, p] = Jn(!1), [m, v] = Jn(
|
|
205126
|
+
const { chartJson: n, dataset: r, drillBy: o, chartLoading: a, error: s, dataDetail: l, setLoading: u } = fd(), c = un(null), h = ((E = VQe()) == null ? void 0 : E.theme) || "light", [d, f] = Jn(null), [g, p] = Jn(!1), [m, v] = Jn(Di(Me({}, n), { dataset: r })), [b, y] = Jn(!((A = r == null ? void 0 : r.data) != null && A.length)), _ = op((T) => {
|
|
205139
205127
|
T.preventDefault();
|
|
205140
205128
|
}, []);
|
|
205141
205129
|
vr(() => {
|
|
205142
205130
|
var R, k, O;
|
|
205143
205131
|
(R = n == null ? void 0 : n.dataSource) != null && R.type ? f(n.dataSource) : (f(null), u(!1));
|
|
205144
|
-
const T =
|
|
205132
|
+
const T = Di(Me({}, n), { dataset: r });
|
|
205145
205133
|
v(T), y(!((O = (k = T == null ? void 0 : T.dataset) == null ? void 0 : k.data) != null && O.length));
|
|
205146
205134
|
}, [n, r]);
|
|
205147
205135
|
const S = t[m.type] || "table", x = ft(i, "chart-container", g ? "full-screen" : ""), w = !s.visible && !a;
|
|
@@ -205248,7 +205236,7 @@ const q9i = ({ className: i, chartStyle: e, components: t = bw }) => {
|
|
|
205248
205236
|
}
|
|
205249
205237
|
), Q9i = (i) => {
|
|
205250
205238
|
const o = i, { children: e, className: t = "", node: n } = o, r = nh(o, ["children", "className", "node"]);
|
|
205251
|
-
return /* @__PURE__ */ Se.jsx("code",
|
|
205239
|
+
return /* @__PURE__ */ Se.jsx("code", Di(Me({}, r), { className: t, children: e }));
|
|
205252
205240
|
}, J9i = (i) => function(t) {
|
|
205253
205241
|
var m;
|
|
205254
205242
|
const { children: n, className: r = "" } = t, o = String(n).trim(), a = r.includes("language-vis-chart"), {
|
|
@@ -205272,7 +205260,7 @@ const q9i = ({ className: i, chartStyle: e, components: t = bw }) => {
|
|
|
205272
205260
|
);
|
|
205273
205261
|
const f = ((m = r.match(/language-(.*)/)) == null ? void 0 : m[1]) || "", g = l, p = g && g[f];
|
|
205274
205262
|
return p ? /* @__PURE__ */ Se.jsx(p, Me({}, t)) : u ? /* @__PURE__ */ Se.jsx(u, Me({}, t)) : /* @__PURE__ */ Se.jsx(Q9i, Me({}, t));
|
|
205275
|
-
}, e7i = (i) => J9i(i), t7i = (i) => e7i(
|
|
205263
|
+
}, e7i = (i) => J9i(i), t7i = (i) => e7i(Di(Me({}, i), {
|
|
205276
205264
|
components: Me(Me({}, bw), fp(i, "components", {}))
|
|
205277
205265
|
})), i7i = {
|
|
205278
205266
|
timeRange: "Time range",
|
|
@@ -211470,7 +211458,7 @@ function DOi(i) {
|
|
|
211470
211458
|
const e = this;
|
|
211471
211459
|
e.parser = t;
|
|
211472
211460
|
function t(n) {
|
|
211473
|
-
return kOi(n,
|
|
211461
|
+
return kOi(n, Di(Me(Me({}, e.data("settings")), i), {
|
|
211474
211462
|
// Note: these options are not in the readme.
|
|
211475
211463
|
// The goal is for them to be set by plugins on `data` instead of being
|
|
211476
211464
|
// passed by users.
|
|
@@ -212055,7 +212043,7 @@ function dIi(i) {
|
|
|
212055
212043
|
{
|
|
212056
212044
|
type: "element",
|
|
212057
212045
|
tagName: o,
|
|
212058
|
-
properties:
|
|
212046
|
+
properties: Di(Me({}, mS(a)), {
|
|
212059
212047
|
id: "footnote-label"
|
|
212060
212048
|
}),
|
|
212061
212049
|
children: [{ type: "text", value: r }]
|
|
@@ -217612,7 +217600,7 @@ class ROe {
|
|
|
217612
217600
|
/** @protected */
|
|
217613
217601
|
_attachElementToTree(e, t) {
|
|
217614
217602
|
if (this.options.sourceCodeLocationInfo) {
|
|
217615
|
-
const n = t &&
|
|
217603
|
+
const n = t && Di(Me({}, t), {
|
|
217616
217604
|
startTag: t
|
|
217617
217605
|
});
|
|
217618
217606
|
this.treeAdapter.setNodeSourceCodeLocation(e, n);
|
|
@@ -219868,7 +219856,7 @@ function cBi(i, e) {
|
|
|
219868
219856
|
r === ey.html && t === "svg" && (r = ey.svg);
|
|
219869
219857
|
const o = bDi(
|
|
219870
219858
|
// Shallow clone to not delve into `children`: we only need the attributes.
|
|
219871
|
-
|
|
219859
|
+
Di(Me({}, i), { children: [] }),
|
|
219872
219860
|
{ space: r === ey.svg ? "svg" : "html" }
|
|
219873
219861
|
), a = {
|
|
219874
219862
|
type: So.START_TAG,
|
|
@@ -219927,13 +219915,13 @@ function i8(i) {
|
|
|
219927
219915
|
};
|
|
219928
219916
|
}
|
|
219929
219917
|
function fBi(i) {
|
|
219930
|
-
return "children" in i ? mS(
|
|
219918
|
+
return "children" in i ? mS(Di(Me({}, i), { children: [] })) : mS(i);
|
|
219931
219919
|
}
|
|
219932
219920
|
function gBi(i) {
|
|
219933
219921
|
return function(e, t) {
|
|
219934
219922
|
return (
|
|
219935
219923
|
/** @type {Root} */
|
|
219936
|
-
Wnt(e,
|
|
219924
|
+
Wnt(e, Di(Me({}, i), { file: t }))
|
|
219937
219925
|
);
|
|
219938
219926
|
};
|
|
219939
219927
|
}
|
|
@@ -220263,7 +220251,7 @@ function YBi(i) {
|
|
|
220263
220251
|
function Xnt(i, e, t, n) {
|
|
220264
220252
|
const r = t.createTracker(n), o = t.enter("strikethrough");
|
|
220265
220253
|
let a = r.move("~~");
|
|
220266
|
-
return a += t.containerPhrasing(i,
|
|
220254
|
+
return a += t.containerPhrasing(i, Di(Me({}, r.current()), {
|
|
220267
220255
|
before: a,
|
|
220268
220256
|
after: "~"
|
|
220269
220257
|
})), a += r.move("~~"), o(), a;
|
|
@@ -220550,7 +220538,7 @@ function cFi(i, e) {
|
|
|
220550
220538
|
function hFi(i, e, t, n) {
|
|
220551
220539
|
const r = Math.max(Math.min(6, i.depth || 1), 1), o = t.createTracker(n);
|
|
220552
220540
|
if (cFi(i, t)) {
|
|
220553
|
-
const c = t.enter("headingSetext"), h = t.enter("phrasing"), d = t.containerPhrasing(i,
|
|
220541
|
+
const c = t.enter("headingSetext"), h = t.enter("phrasing"), d = t.containerPhrasing(i, Di(Me({}, o.current()), {
|
|
220554
220542
|
before: `
|
|
220555
220543
|
`,
|
|
220556
220544
|
after: `
|
|
@@ -221009,7 +220997,7 @@ function FFi(i) {
|
|
|
221009
220997
|
`));
|
|
221010
220998
|
}
|
|
221011
220999
|
function l(f, g, p, m) {
|
|
221012
|
-
const v = p.enter("tableCell"), b = p.enter("phrasing"), y = p.containerPhrasing(f,
|
|
221000
|
+
const v = p.enter("tableCell"), b = p.enter("phrasing"), y = p.containerPhrasing(f, Di(Me({}, m), {
|
|
221013
221001
|
before: o,
|
|
221014
221002
|
after: o
|
|
221015
221003
|
}));
|
|
@@ -221867,7 +221855,7 @@ const r$i = () => {
|
|
|
221867
221855
|
}, [u, o]), /* @__PURE__ */ Se.jsxs(WQe.Provider, { value: c, children: [
|
|
221868
221856
|
i === "md" && /* @__PURE__ */ Se.jsx(
|
|
221869
221857
|
QIi,
|
|
221870
|
-
|
|
221858
|
+
Di(Me({
|
|
221871
221859
|
components: t,
|
|
221872
221860
|
rehypePlugins: [gBi, ...n || []],
|
|
221873
221861
|
remarkPlugins: [SNi, ...r || []]
|
|
@@ -221894,7 +221882,7 @@ const r$i = () => {
|
|
|
221894
221882
|
}, RNi = (n) => {
|
|
221895
221883
|
var r = n, { children: i, components: e } = r, t = nh(r, ["children", "components"]);
|
|
221896
221884
|
const o = lt.Children.toArray(i).join("").trim(), a = TNi(o) ? "json" : "md";
|
|
221897
|
-
return /* @__PURE__ */ Se.jsx(ENi,
|
|
221885
|
+
return /* @__PURE__ */ Se.jsx(ENi, Di(Me({ renderMode: a, components: Me({ code: ANi }, e) }, t), { children: o }));
|
|
221898
221886
|
}, o$i = XP(RNi);
|
|
221899
221887
|
export {
|
|
221900
221888
|
m0i as Area,
|