@orbcharts/plugins-basic 3.0.0-alpha.52 → 3.0.0-alpha.54

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.
@@ -26,7 +26,7 @@ const Ux = {
26
26
  barPadding: 1,
27
27
  barGroupPadding: 40,
28
28
  barRadius: !1
29
- }, XR = {
29
+ }, ZR = {
30
30
  ...ef
31
31
  }, qx = {
32
32
  barWidth: 0,
@@ -17018,7 +17018,7 @@ const Dx = (t, {
17018
17018
  }), () => {
17019
17019
  x.next(void 0);
17020
17020
  };
17021
- }, Wg = "Lines", KR = le(Wg, Ux)(({ selection: t, name: e, observer: n, subject: r }) => {
17021
+ }, Wg = "Lines", QR = le(Wg, Ux)(({ selection: t, name: e, observer: n, subject: r }) => {
17022
17022
  const i = new et(), o = Dx(Wg, {
17023
17023
  selection: t,
17024
17024
  computedData$: n.computedData$,
@@ -17343,7 +17343,7 @@ const Px = (t, {
17343
17343
  }), () => {
17344
17344
  v.next(void 0);
17345
17345
  };
17346
- }, jg = "LineAreas", QR = le(jg, Hx)(({ selection: t, name: e, observer: n, subject: r }) => {
17346
+ }, jg = "LineAreas", JR = le(jg, Hx)(({ selection: t, name: e, observer: n, subject: r }) => {
17347
17347
  const i = new et(), o = Px(jg, {
17348
17348
  selection: t,
17349
17349
  computedData$: n.computedData$,
@@ -17698,7 +17698,7 @@ const Wh = (t, {
17698
17698
  }), () => {
17699
17699
  v.next(void 0);
17700
17700
  };
17701
- }, Vg = "Bars", JR = le(Vg, ef)(({ selection: t, name: e, subject: n, observer: r }) => {
17701
+ }, Vg = "Bars", tI = le(Vg, ef)(({ selection: t, name: e, subject: n, observer: r }) => {
17702
17702
  const i = new et(), o = Wh(Vg, {
17703
17703
  selection: t,
17704
17704
  computedData$: r.computedData$,
@@ -17722,7 +17722,7 @@ const Wh = (t, {
17722
17722
  return () => {
17723
17723
  i.next(void 0), o();
17724
17724
  };
17725
- }), Xg = "BarsPN", tI = le(Xg, ef)(({ selection: t, name: e, subject: n, observer: r }) => {
17725
+ }), Xg = "BarsPN", eI = le(Xg, ef)(({ selection: t, name: e, subject: n, observer: r }) => {
17726
17726
  const i = new et(), o = Wh(Xg, {
17727
17727
  selection: t,
17728
17728
  computedData$: r.computedData$,
@@ -18104,7 +18104,7 @@ const Lx = (t, {
18104
18104
  }), () => {
18105
18105
  y.next(void 0);
18106
18106
  };
18107
- }, Zg = "BarStack", eI = le(Zg, qx)(({ selection: t, name: e, subject: n, observer: r }) => {
18107
+ }, Zg = "BarStack", nI = le(Zg, qx)(({ selection: t, name: e, subject: n, observer: r }) => {
18108
18108
  const i = new et(), o = Lx(Zg, {
18109
18109
  selection: t,
18110
18110
  computedData$: r.computedData$,
@@ -18479,7 +18479,7 @@ const Ex = (t, {
18479
18479
  }), () => {
18480
18480
  v.next(void 0);
18481
18481
  };
18482
- }, Qg = "BarsTriangle", nI = le(Qg, Vx)(({ selection: t, name: e, subject: n, observer: r }) => {
18482
+ }, Qg = "BarsTriangle", rI = le(Qg, Vx)(({ selection: t, name: e, subject: n, observer: r }) => {
18483
18483
  const i = new et(), o = Ex(Qg, {
18484
18484
  selection: t,
18485
18485
  computedData$: r.computedData$,
@@ -18732,7 +18732,7 @@ const Rx = (t, {
18732
18732
  }), () => {
18733
18733
  x.next(void 0);
18734
18734
  };
18735
- }, Jg = "Dots", rI = le(Jg, Wx)(({ selection: t, name: e, subject: n, observer: r }) => {
18735
+ }, Jg = "Dots", iI = le(Jg, Wx)(({ selection: t, name: e, subject: n, observer: r }) => {
18736
18736
  const i = new et(), o = Rx(Jg, {
18737
18737
  selection: t,
18738
18738
  computedData$: r.computedData$,
@@ -18984,7 +18984,7 @@ const ku = (t, {
18984
18984
  ).subscribe(), () => {
18985
18985
  f.next(void 0);
18986
18986
  };
18987
- }, e0 = "GridLegend", iI = le(e0, Qx)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
18987
+ }, e0 = "GridLegend", oI = le(e0, Qx)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
18988
18988
  const i = new et(), o = n.SeriesDataMap$.pipe(
18989
18989
  I(i),
18990
18990
  O((u) => Array.from(u.keys()))
@@ -19169,7 +19169,7 @@ const Ix = (t, {
19169
19169
  }), () => {
19170
19170
  f.next(void 0);
19171
19171
  };
19172
- }, n0 = "GroupAxis", oI = le(n0, Xx)(({ selection: t, name: e, observer: n, subject: r }) => {
19172
+ }, n0 = "GroupAxis", aI = le(n0, Xx)(({ selection: t, name: e, observer: n, subject: r }) => {
19173
19173
  const i = new et(), o = Ix(n0, {
19174
19174
  selection: t,
19175
19175
  computedData$: n.computedData$,
@@ -19339,7 +19339,7 @@ const ii = (t, {
19339
19339
  }), () => {
19340
19340
  f.next(void 0);
19341
19341
  };
19342
- }, i0 = "ValueAxis", aI = le(i0, D0)(({ selection: t, name: e, observer: n, subject: r }) => {
19342
+ }, i0 = "ValueAxis", sI = le(i0, D0)(({ selection: t, name: e, observer: n, subject: r }) => {
19343
19343
  const i = new et(), o = ii(i0, {
19344
19344
  selection: t,
19345
19345
  computedData$: n.computedData$,
@@ -19355,7 +19355,7 @@ const ii = (t, {
19355
19355
  return () => {
19356
19356
  i.next(void 0), o();
19357
19357
  };
19358
- }), o0 = "ValueStackAxis", sI = le(o0, Zx)(({ selection: t, name: e, observer: n, subject: r }) => {
19358
+ }), o0 = "ValueStackAxis", uI = le(o0, Zx)(({ selection: t, name: e, observer: n, subject: r }) => {
19359
19359
  const i = new et(), o = ii(o0, {
19360
19360
  selection: t,
19361
19361
  computedData$: n.computedStackedData$,
@@ -19372,7 +19372,7 @@ const ii = (t, {
19372
19372
  return () => {
19373
19373
  i.next(void 0), o();
19374
19374
  };
19375
- }), Nx = "ScalingArea", WE = ot(Nx, "rect"), uI = le(Nx, Kx)(({ selection: t, rootSelection: e, name: n, observer: r, subject: i }) => {
19375
+ }), Nx = "ScalingArea", WE = ot(Nx, "rect"), lI = le(Nx, Kx)(({ selection: t, rootSelection: e, name: n, observer: r, subject: i }) => {
19376
19376
  const o = new et(), a = e.insert("rect", "g").classed(WE, !0).attr("opacity", 0);
19377
19377
  let s = {
19378
19378
  k: 1,
@@ -19481,7 +19481,7 @@ function ZE({ selection: t, labelData: e, fullParams: n, fullDataFormatter: r, f
19481
19481
  function KE(t) {
19482
19482
  t.selectAll(`g.${Yc}`).data([]).exit().remove();
19483
19483
  }
19484
- const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, observer: i }) => {
19484
+ const cI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, observer: i }) => {
19485
19485
  const o = new et();
19486
19486
  let a = !1;
19487
19487
  const s = e.insert("rect", "g").classed(ot(Da, "rect"), !0).attr("opacity", 0), {
@@ -19745,7 +19745,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19745
19745
  tickTextRotate: 0,
19746
19746
  tickTextColorType: "primary",
19747
19747
  gridIndexes: [0]
19748
- }, cI = {
19748
+ }, fI = {
19749
19749
  ...jh
19750
19750
  }, tR = {
19751
19751
  barWidth: 0,
@@ -19813,7 +19813,9 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19813
19813
  tickTextColorType: "primary"
19814
19814
  },
19815
19815
  gridIndexes: [0, 1]
19816
- }, s0 = "MultiGridLegend", fI = be(s0, QE)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
19816
+ }, aR = {
19817
+ ...Fx
19818
+ }, s0 = "MultiGridLegend", hI = be(s0, QE)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
19817
19819
  const i = new et(), o = n.multiGridEachDetail$.pipe(
19818
19820
  I(i),
19819
19821
  O((l) => l.map((f, h) => f.SeriesDataMap$.pipe(
@@ -19868,9 +19870,9 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19868
19870
  multiGridEachDetail: t.multiGridEachDetail$,
19869
19871
  gridIndexes: e
19870
19872
  }).pipe(
19871
- O((n) => n.gridIndexes.map((r) => n.multiGridEachDetail[r] ?? n.multiGridEachDetail[0]))
19873
+ O((n) => n.gridIndexes === "all" ? n.multiGridEachDetail : n.gridIndexes.map((r) => n.multiGridEachDetail[r] ?? n.multiGridEachDetail[0]))
19872
19874
  );
19873
- }, Uc = "MultiBars", u0 = ot(Uc, "grid"), hI = be(Uc, tR)(({ selection: t, name: e, subject: n, observer: r }) => {
19875
+ }, Uc = "MultiBars", u0 = ot(Uc, "grid"), pI = be(Uc, tR)(({ selection: t, name: e, subject: n, observer: r }) => {
19874
19876
  const i = new et(), o = [];
19875
19877
  return Ce(r).pipe(
19876
19878
  I(i)
@@ -19906,7 +19908,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19906
19908
  }), () => {
19907
19909
  i.next(void 0), o.forEach((s) => s());
19908
19910
  };
19909
- }), Hc = "MultiBarStack", l0 = ot(Hc, "grid"), pI = be(Hc, eR)(({ selection: t, name: e, subject: n, observer: r }) => {
19911
+ }), Hc = "MultiBarStack", l0 = ot(Hc, "grid"), dI = be(Hc, eR)(({ selection: t, name: e, subject: n, observer: r }) => {
19910
19912
  const i = new et(), o = [];
19911
19913
  return Ce(r).pipe(
19912
19914
  I(i)
@@ -19943,7 +19945,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19943
19945
  }), () => {
19944
19946
  i.next(void 0), o.forEach((s) => s());
19945
19947
  };
19946
- }), Wc = "MultiBarsTriangle", c0 = ot(Wc, "grid"), dI = be(Wc, nR)(({ selection: t, name: e, subject: n, observer: r }) => {
19948
+ }), Wc = "MultiBarsTriangle", c0 = ot(Wc, "grid"), gI = be(Wc, nR)(({ selection: t, name: e, subject: n, observer: r }) => {
19947
19949
  const i = new et(), o = [];
19948
19950
  return Ce(r).pipe(
19949
19951
  I(i)
@@ -19979,7 +19981,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
19979
19981
  }), () => {
19980
19982
  i.next(void 0), o.forEach((s) => s());
19981
19983
  };
19982
- }), jc = "MultiLines", f0 = ot(jc, "grid"), gI = be(jc, rR)(({ selection: t, name: e, subject: n, observer: r }) => {
19984
+ }), jc = "MultiLines", f0 = ot(jc, "grid"), mI = be(jc, rR)(({ selection: t, name: e, subject: n, observer: r }) => {
19983
19985
  const i = new et(), o = [];
19984
19986
  return Ce(r).pipe(
19985
19987
  I(i)
@@ -20009,7 +20011,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20009
20011
  }), () => {
20010
20012
  i.next(void 0), o.forEach((s) => s());
20011
20013
  };
20012
- }), qc = "MultiLineAreas", h0 = ot(qc, "grid"), mI = be(qc, iR)(({ selection: t, name: e, subject: n, observer: r }) => {
20014
+ }), qc = "MultiLineAreas", h0 = ot(qc, "grid"), yI = be(qc, iR)(({ selection: t, name: e, subject: n, observer: r }) => {
20013
20015
  const i = new et(), o = [];
20014
20016
  return Ce(r).pipe(
20015
20017
  I(i)
@@ -20040,7 +20042,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20040
20042
  }), () => {
20041
20043
  i.next(void 0), o.forEach((s) => s());
20042
20044
  };
20043
- }), Vc = "MultiDots", p0 = ot(Vc, "grid"), yI = be(Vc, oR)(({ selection: t, name: e, subject: n, observer: r }) => {
20045
+ }), Vc = "MultiDots", p0 = ot(Vc, "grid"), bI = be(Vc, oR)(({ selection: t, name: e, subject: n, observer: r }) => {
20044
20046
  const i = new et(), o = [];
20045
20047
  return Ce(r).pipe(
20046
20048
  I(i)
@@ -20070,7 +20072,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20070
20072
  }), () => {
20071
20073
  i.next(void 0), o.forEach((s) => s());
20072
20074
  };
20073
- }), Xc = "MultiGroupAxis", d0 = ot(Xc, "grid"), bI = be(Xc, JE)(({ selection: t, name: e, subject: n, observer: r }) => {
20075
+ }), Xc = "MultiGroupAxis", d0 = ot(Xc, "grid"), vI = be(Xc, JE)(({ selection: t, name: e, subject: n, observer: r }) => {
20074
20076
  const i = new et(), o = [];
20075
20077
  return Ce(r).pipe(
20076
20078
  I(i)
@@ -20098,7 +20100,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20098
20100
  }), () => {
20099
20101
  i.next(void 0), o.forEach((s) => s());
20100
20102
  };
20101
- }), Zc = "MultiValueAxis", g0 = ot(Zc, "grid"), vI = be(Zc, jh)(({ selection: t, name: e, subject: n, observer: r }) => {
20103
+ }), Zc = "MultiValueAxis", g0 = ot(Zc, "grid"), xI = be(Zc, jh)(({ selection: t, name: e, subject: n, observer: r }) => {
20102
20104
  const i = new et(), o = [];
20103
20105
  return Ce(r).pipe(
20104
20106
  I(i)
@@ -20126,7 +20128,7 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20126
20128
  }), () => {
20127
20129
  i.next(void 0), o.forEach((s) => s());
20128
20130
  };
20129
- }), Kc = "MultiValueStackAxis", m0 = ot(Kc, "grid"), xI = be(Kc, jh)(({ selection: t, name: e, subject: n, observer: r }) => {
20131
+ }), Kc = "MultiValueStackAxis", m0 = ot(Kc, "grid"), _I = be(Kc, jh)(({ selection: t, name: e, subject: n, observer: r }) => {
20130
20132
  const i = new et(), o = [];
20131
20133
  return Ce(r).pipe(
20132
20134
  I(i)
@@ -20156,14 +20158,14 @@ const lI = le(Da, jx)(({ selection: t, rootSelection: e, name: n, subject: r, ob
20156
20158
  i.next(void 0), o.forEach((s) => s());
20157
20159
  };
20158
20160
  });
20159
- function aR(t) {
20161
+ function sR(t) {
20160
20162
  let e = Math.floor(Math.sqrt(t)), n = Math.ceil(t / e);
20161
20163
  for (; e * n < t; )
20162
20164
  n++;
20163
20165
  return { rowAmount: e, columnAmount: n };
20164
20166
  }
20165
20167
  function y0(t, e, n) {
20166
- const { gap: r } = e, { rowAmount: i, columnAmount: o } = e.rowAmount * e.columnAmount >= n ? e : aR(n);
20168
+ const { gap: r } = e, { rowAmount: i, columnAmount: o } = e.rowAmount * e.columnAmount >= n ? e : sR(n);
20167
20169
  return new Array(n).fill(null).map((a, s) => {
20168
20170
  const u = s % o, l = Math.floor(s / o), c = (t.width - r * (o - 1)) / o, f = (t.height - r * (i - 1)) / i, h = u * c + u * r, p = l * f + l * r, d = [h, p], g = [c / t.width, f / t.height];
20169
20171
  return {
@@ -20240,7 +20242,7 @@ const zx = ({ fullDataFormatter$: t, layout$: e }) => {
20240
20242
  return i.computedData.map((a, s) => o[0]);
20241
20243
  }
20242
20244
  })
20243
- ), Qc = "OverlappingValueAxes", b0 = ot(Qc, "grid"), _I = be(Qc, Fx)(({ selection: t, name: e, subject: n, observer: r }) => {
20245
+ ), Qc = "OverlappingValueAxes", b0 = ot(Qc, "grid"), wI = be(Qc, Fx)(({ selection: t, name: e, subject: n, observer: r }) => {
20244
20246
  const i = new et(), o = [], a = r.fullParams$.pipe(
20245
20247
  I(i),
20246
20248
  O((c) => c.gridIndexes[0])
@@ -20327,7 +20329,7 @@ const zx = ({ fullDataFormatter$: t, layout$: e }) => {
20327
20329
  }), () => {
20328
20330
  i.next(void 0), o.forEach((c) => c());
20329
20331
  };
20330
- }), Jc = "OverlappingValueStackAxes", v0 = ot(Jc, "grid"), wI = be(Jc, Fx)(({ selection: t, name: e, subject: n, observer: r }) => {
20332
+ }), Jc = "OverlappingValueStackAxes", v0 = ot(Jc, "grid"), $I = be(Jc, aR)(({ selection: t, name: e, subject: n, observer: r }) => {
20331
20333
  const i = new et(), o = [], a = r.fullParams$.pipe(
20332
20334
  I(i),
20333
20335
  O((c) => c.gridIndexes[0])
@@ -20415,7 +20417,7 @@ const zx = ({ fullDataFormatter$: t, layout$: e }) => {
20415
20417
  }), () => {
20416
20418
  i.next(void 0), o.forEach((c) => c());
20417
20419
  };
20418
- }), sR = {
20420
+ }), uR = {
20419
20421
  header: {
20420
20422
  height: 36,
20421
20423
  text: [],
@@ -20426,7 +20428,7 @@ const zx = ({ fullDataFormatter$: t, layout$: e }) => {
20426
20428
  text: [],
20427
20429
  textStyle: []
20428
20430
  }
20429
- }, uR = {
20431
+ }, lR = {
20430
20432
  backgroundColorType: "background",
20431
20433
  strokeColorType: "primary",
20432
20434
  backgroundOpacity: 0.8,
@@ -20449,22 +20451,22 @@ const zx = ({ fullDataFormatter$: t, layout$: e }) => {
20449
20451
  return [];
20450
20452
  },
20451
20453
  svgRenderFn: null
20452
- }, $I = Bm("Container", sR)(({ selection: t }) => function() {
20453
- }), qh = "Tooltip", x0 = ot(qh, "g"), lR = ot(qh, "box");
20454
- function cR(t, e) {
20454
+ }, SI = Bm("Container", uR)(({ selection: t }) => function() {
20455
+ }), qh = "Tooltip", x0 = ot(qh, "g"), cR = ot(qh, "box");
20456
+ function fR(t, e) {
20455
20457
  const n = e.textSizePx * 1.5;
20456
20458
  return t.filter((r) => r != "").map((r, i) => {
20457
20459
  const o = i * n;
20458
20460
  return `<text font-size="${e.textSize}" fill="${e.textColor}" x="0" y="${o}" style="dominant-baseline:text-before-edge">${r}</text>`;
20459
20461
  }).join();
20460
20462
  }
20461
- function fR({ rootSelection: t, pluginName: e, rootWidth: n, rootHeight: r, svgString: i, tooltipStyle: o, event: a }) {
20463
+ function hR({ rootSelection: t, pluginName: e, rootWidth: n, rootHeight: r, svgString: i, tooltipStyle: o, event: a }) {
20462
20464
  t.interrupt("fadeout");
20463
20465
  const s = 5, u = i ? [i] : [], l = i ? [o] : [], f = t.selectAll(`g.${x0}`).data(u).join(
20464
20466
  (y) => y.append("g").classed(x0, !0).attr("pointer-events", "none"),
20465
20467
  (y) => y,
20466
20468
  (y) => y.style("opacity", 0).remove()
20467
- ).attr("transform", () => `translate(${a.offsetX}, ${a.offsetY})`).selectAll(`g.${lR}`).data(l).join(
20469
+ ).attr("transform", () => `translate(${a.offsetX}, ${a.offsetY})`).selectAll(`g.${cR}`).data(l).join(
20468
20470
  (y) => y.append("g").classed(ot(e, "box"), !0)
20469
20471
  ), h = f.selectAll("rect").data(l).join(
20470
20472
  (y) => y.append("rect").attr("rx", s).attr("ry", s)
@@ -20477,7 +20479,7 @@ function fR({ rootSelection: t, pluginName: e, rootWidth: n, rootHeight: r, svgS
20477
20479
  const g = f != null && f.node() ? Hg(f) : { width: 0, height: 0 }, m = n - g.width, b = r - g.height, x = a.offsetX + o.offset[0] > m ? m - a.offsetX : o.offset[0], v = a.offsetY + o.offset[1] > b ? b - a.offsetY : o.offset[1];
20478
20480
  f.attr("transform", (y) => `translate(${x}, ${v})`), f.attr("transform", (y) => `translate(${x}, ${v})`);
20479
20481
  }
20480
- const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r, observer: i, subject: o }) => {
20482
+ const AI = Bm(qh, lR)(({ selection: t, rootSelection: e, name: n, chartType: r, observer: i, subject: o }) => {
20481
20483
  const a = new et(), s = o.event$.pipe(
20482
20484
  I(a),
20483
20485
  zi((g) => g.eventName === "mouseover" || g.eventName === "mousemove")
@@ -20513,7 +20515,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20513
20515
  U(async (g) => g),
20514
20516
  O((g) => g.fullParams.svgRenderFn ? g.fullParams.svgRenderFn : (m) => {
20515
20517
  const b = g.fullParams.textRenderFn(m);
20516
- return cR(b, g.tooltipStyle);
20518
+ return fR(b, g.tooltipStyle);
20517
20519
  })
20518
20520
  ), h = Y({
20519
20521
  event: s,
@@ -20542,7 +20544,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20542
20544
  I(a),
20543
20545
  U(async (g) => g)
20544
20546
  ).subscribe((g) => {
20545
- fR({
20547
+ hR({
20546
20548
  rootSelection: e,
20547
20549
  pluginName: n,
20548
20550
  rootWidth: g.layout.rootWidth,
@@ -20554,7 +20556,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20554
20556
  }), function() {
20555
20557
  a.next(void 0);
20556
20558
  };
20557
- }), hR = {
20559
+ }), pR = {
20558
20560
  force: {
20559
20561
  strength: 0.08,
20560
20562
  // 泡泡引力
@@ -20570,7 +20572,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20570
20572
  },
20571
20573
  // highlightRIncrease: 0,
20572
20574
  arcScaleType: "area"
20573
- }, pR = {
20575
+ }, dR = {
20574
20576
  // padding: {
20575
20577
  // top: 50,
20576
20578
  // right: 70,
@@ -20590,7 +20592,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20590
20592
  // highlightTarget: 'datum',
20591
20593
  // highlightId: null,
20592
20594
  // highlightLabel: null,
20593
- }, dR = {
20595
+ }, gR = {
20594
20596
  eventFn: (t, e, n) => e === "mouseover" || e === "mousemove" ? [String(t.datum.value)] : [
20595
20597
  String(
20596
20598
  Math.round(
@@ -20613,7 +20615,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20613
20615
  fill: "#000"
20614
20616
  }
20615
20617
  ]
20616
- }, gR = {
20618
+ }, mR = {
20617
20619
  // solidColor: undefined,
20618
20620
  // colors: DEFAULT_COLORS,
20619
20621
  outerRadius: 0.95,
@@ -20626,18 +20628,18 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20626
20628
  // fontSize: 12,
20627
20629
  labelColorType: "primary",
20628
20630
  labelFn: (t) => String(t.label)
20629
- }, mR = {
20631
+ }, yR = {
20630
20632
  outerRadius: 0.95,
20631
20633
  cornerRadius: 0,
20632
20634
  arcScaleType: "area",
20633
20635
  mouseoverAngleIncrease: 0.05
20634
- }, yR = {
20636
+ }, bR = {
20635
20637
  outerRadius: 0.95,
20636
20638
  labelCentroid: 2.5,
20637
20639
  labelFn: (t) => String(t.label),
20638
20640
  labelColorType: "primary",
20639
20641
  arcScaleType: "area"
20640
- }, bR = {
20642
+ }, vR = {
20641
20643
  position: "right",
20642
20644
  justify: "end",
20643
20645
  padding: 28,
@@ -20651,7 +20653,7 @@ const SI = Bm(qh, uR)(({ selection: t, rootSelection: e, name: n, chartType: r,
20651
20653
  // highlightEvent: false
20652
20654
  textColorType: "primary"
20653
20655
  };
20654
- function vR(t, {
20656
+ function xR(t, {
20655
20657
  text: e,
20656
20658
  radius: n,
20657
20659
  lineHeight: r,
@@ -20709,7 +20711,7 @@ function vR(t, {
20709
20711
  return h(t, e);
20710
20712
  }
20711
20713
  let pn;
20712
- function xR(t, e) {
20714
+ function _R(t, e) {
20713
20715
  return Ay().velocityDecay(e.force.velocityDecay).force(
20714
20716
  "collision",
20715
20717
  Sy().radius((n) => n.r + e.force.collisionSpacing)
@@ -20718,7 +20720,7 @@ function xR(t, e) {
20718
20720
  t.attr("transform", (n) => `translate(${n.x},${n.y})`);
20719
20721
  });
20720
20722
  }
20721
- function _R({ visibleComputedLayoutData: t, LastBubbleDataMap: e, graphicWidth: n, graphicHeight: r, SeriesContainerPositionMap: i, scaleType: o }) {
20723
+ function wR({ visibleComputedLayoutData: t, LastBubbleDataMap: e, graphicWidth: n, graphicHeight: r, SeriesContainerPositionMap: i, scaleType: o }) {
20722
20724
  const a = Math.min(n, r) / 2, s = t.flat(), u = s.reduce((h, p) => h + p.value, 0), l = ni().domain([0, u]).range([0, a]).exponent(
20723
20725
  o === "area" ? 0.5 : 1
20724
20726
  // 數值映射半徑
@@ -20738,7 +20740,7 @@ function _R({ visibleComputedLayoutData: t, LastBubbleDataMap: e, graphicWidth:
20738
20740
  return p.r = g, p._originR = g, p;
20739
20741
  });
20740
20742
  }
20741
- function wR({ selection: t, bubblesData: e, fullParams: n, sumSeries: r }) {
20743
+ function $R({ selection: t, bubblesData: e, fullParams: n, sumSeries: r }) {
20742
20744
  const i = t.selectAll("g").data(e, (a) => a.id).join(
20743
20745
  (a) => {
20744
20746
  const s = a.append("g").attr("cursor", "pointer").attr("font-size", 12).style("fill", "#ffffff").attr("text-anchor", "middle");
@@ -20750,7 +20752,7 @@ function wR({ selection: t, bubblesData: e, fullParams: n, sumSeries: r }) {
20750
20752
  return i.select("circle").transition().duration(200).attr("r", (a) => a.r).attr("fill", (a) => a.color), i.each((a, s, u) => {
20751
20753
  const l = X(u[s]);
20752
20754
  let c = !0;
20753
- a[o].length <= n.bubbleText.lineLengthMin && (c = !1), l.call(vR, {
20755
+ a[o].length <= n.bubbleText.lineLengthMin && (c = !1), l.call(xR, {
20754
20756
  text: a[o],
20755
20757
  radius: a.r * n.bubbleText.fillRate,
20756
20758
  lineHeight: n.bubbleText.lineHeight,
@@ -20758,7 +20760,7 @@ function wR({ selection: t, bubblesData: e, fullParams: n, sumSeries: r }) {
20758
20760
  });
20759
20761
  }), i;
20760
20762
  }
20761
- function $R() {
20763
+ function SR() {
20762
20764
  return M1().on("start", (t, e) => {
20763
20765
  t.active || pn.alpha(1).restart(), e.fx = e.x, e.fy = e.y;
20764
20766
  }).on("drag", (t, e) => {
@@ -20767,10 +20769,10 @@ function $R() {
20767
20769
  e.fx = null, e.fy = null;
20768
20770
  });
20769
20771
  }
20770
- function SR({ fullParams: t, SeriesContainerPositionMap: e }) {
20772
+ function AR({ fullParams: t, SeriesContainerPositionMap: e }) {
20771
20773
  pn.force("x", Dy().strength(t.force.strength).x((n) => e.get(n.seriesLabel).centerX)).force("y", Py().strength(t.force.strength).y((n) => e.get(n.seriesLabel).centerY)), pn.alpha(1).restart();
20772
20774
  }
20773
- function AR({ bubblesSelection: t, highlightIds: e, fullChartParams: n }) {
20775
+ function MR({ bubblesSelection: t, highlightIds: e, fullChartParams: n }) {
20774
20776
  if (t.interrupt("highlight"), !e.length) {
20775
20777
  t.transition("highlight").style("opacity", 1);
20776
20778
  return;
@@ -20780,7 +20782,7 @@ function AR({ bubblesSelection: t, highlightIds: e, fullChartParams: n }) {
20780
20782
  e.includes(r.id) ? a.style("opacity", 1).transition("highlight").ease(ro).duration(500) : a.style("opacity", n.styles.unhighlightedOpacity);
20781
20783
  });
20782
20784
  }
20783
- const AI = Qn("Bubbles", hR)(({ selection: t, name: e, observer: n, subject: r }) => {
20785
+ const MI = Qn("Bubbles", pR)(({ selection: t, name: e, observer: n, subject: r }) => {
20784
20786
  const i = new et();
20785
20787
  let o = /* @__PURE__ */ new Map();
20786
20788
  const a = n.fullDataFormatter$.pipe(
@@ -20798,7 +20800,7 @@ const AI = Qn("Bubbles", hR)(({ selection: t, name: e, observer: n, subject: r }
20798
20800
  }).pipe(
20799
20801
  I(i),
20800
20802
  U(async (f) => f),
20801
- O((f) => _R({
20803
+ O((f) => wR({
20802
20804
  visibleComputedLayoutData: f.visibleComputedLayoutData,
20803
20805
  LastBubbleDataMap: o,
20804
20806
  graphicWidth: f.layout.width,
@@ -20825,13 +20827,13 @@ const AI = Qn("Bubbles", hR)(({ selection: t, name: e, observer: n, subject: r }
20825
20827
  U(async (f) => f),
20826
20828
  O((f) => {
20827
20829
  pn && pn.stop();
20828
- const h = wR({
20830
+ const h = $R({
20829
20831
  selection: t,
20830
20832
  bubblesData: f.bubblesData,
20831
20833
  fullParams: f.fullParams,
20832
20834
  sumSeries: f.sumSeries
20833
20835
  });
20834
- return pn = xR(h, f.fullParams), pn.nodes(f.bubblesData), SR({
20836
+ return pn = _R(h, f.fullParams), pn.nodes(f.bubblesData), AR({
20835
20837
  fullParams: f.fullParams,
20836
20838
  SeriesContainerPositionMap: f.SeriesContainerPositionMap
20837
20839
  // graphicWidth: data.layout.width,
@@ -20900,7 +20902,7 @@ const AI = Qn("Bubbles", hR)(({ selection: t, name: e, observer: n, subject: r }
20900
20902
  event: h,
20901
20903
  data: f.computedData
20902
20904
  });
20903
- }).call($R());
20905
+ }).call(SR());
20904
20906
  }), Y({
20905
20907
  bubblesSelection: c,
20906
20908
  bubblesData: u,
@@ -20916,7 +20918,7 @@ const AI = Qn("Bubbles", hR)(({ selection: t, name: e, observer: n, subject: r }
20916
20918
  I(i),
20917
20919
  U(async (f) => f)
20918
20920
  ).subscribe((f) => {
20919
- AR({
20921
+ MR({
20920
20922
  bubblesSelection: f.bubblesSelection,
20921
20923
  highlightIds: f.highlight,
20922
20924
  fullChartParams: f.fullChartParams
@@ -20931,7 +20933,7 @@ function Bx({ data: t, startAngle: e, endAngle: n }) {
20931
20933
  return s.id = o.data.id, s;
20932
20934
  });
20933
20935
  }
20934
- function MR({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r }) {
20936
+ function DR({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r }) {
20935
20937
  const i = ot(e, "series");
20936
20938
  return Y({
20937
20939
  seriesLabels: r,
@@ -20950,7 +20952,7 @@ function MR({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r
20950
20952
  );
20951
20953
  }
20952
20954
  const Ro = ({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r, seriesContainerPosition$: i }) => {
20953
- const o = MR({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r });
20955
+ const o = DR({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r });
20954
20956
  return Y({
20955
20957
  seriesCenterSelection: o,
20956
20958
  seriesContainerPosition: i
@@ -20977,7 +20979,7 @@ const Ro = ({ selection: t, pluginName: e, separateSeries$: n, seriesLabels$: r,
20977
20979
  seriesCenterSelection$: o
20978
20980
  };
20979
20981
  }, Ml = "Pie";
20980
- function DR({ enter: t, exit: e, data: n, lastTweenData: r, fullParams: i }) {
20982
+ function PR({ enter: t, exit: e, data: n, lastTweenData: r, fullParams: i }) {
20981
20983
  return !t.size() && !e.size() ? (o) => {
20982
20984
  const a = n.map((s, u) => {
20983
20985
  const l = r[u] ?? {
@@ -21018,7 +21020,7 @@ function tf(t, e, n, r) {
21018
21020
  function _0({ selection: t, data: e, arc: n, pathClassName: r }) {
21019
21021
  return t.selectAll("path").data(e, (o) => o.id).join("path").classed(r, !0).style("cursor", "pointer").attr("fill", (o, a) => o.data.color).attr("d", (o, a) => n(o));
21020
21022
  }
21021
- function PR({ pathSelection: t, ids: e, fullChartParams: n, arc: r, arcHighlight: i }) {
21023
+ function TR({ pathSelection: t, ids: e, fullChartParams: n, arc: r, arcHighlight: i }) {
21022
21024
  if (t.interrupt("highlight"), !e.length) {
21023
21025
  t.transition("highlight").style("opacity", 1).attr("d", (o) => r(o));
21024
21026
  return;
@@ -21028,7 +21030,7 @@ function PR({ pathSelection: t, ids: e, fullChartParams: n, arc: r, arcHighlight
21028
21030
  e.includes(o.data.id) ? u.style("opacity", 1).transition("highlight").ease(ro).duration(500).attr("d", (l) => i(l)) : u.style("opacity", n.styles.unhighlightedOpacity).transition("highlight").attr("d", (l) => r(l));
21029
21031
  });
21030
21032
  }
21031
- function TR(t, e) {
21033
+ function CR(t, e) {
21032
21034
  const n = new et(), r = ot(t, "path");
21033
21035
  let i = [], o = [];
21034
21036
  const a = e.seriesContainerPosition$.pipe(
@@ -21102,7 +21104,7 @@ function TR(t, e) {
21102
21104
  U(async (p) => p)
21103
21105
  ).subscribe((p) => {
21104
21106
  e.containerSelection.interrupt("graphicMove");
21105
- const d = e.containerSelection.selectAll("path").data(p.pieData, (x) => x.id), g = d.enter(), m = d.exit(), b = DR({
21107
+ const d = e.containerSelection.selectAll("path").data(p.pieData, (x) => x.id), g = d.enter(), m = d.exit(), b = PR({
21106
21108
  enter: g,
21107
21109
  exit: m,
21108
21110
  data: p.pieData,
@@ -21220,7 +21222,7 @@ function TR(t, e) {
21220
21222
  I(n),
21221
21223
  U(async (h) => h)
21222
21224
  ).subscribe((h) => {
21223
- PR({
21225
+ TR({
21224
21226
  pathSelection: h.pathSelection,
21225
21227
  ids: h.highlight,
21226
21228
  fullChartParams: h.fullChartParams,
@@ -21231,7 +21233,7 @@ function TR(t, e) {
21231
21233
  n.next(void 0);
21232
21234
  };
21233
21235
  }
21234
- const MI = Qn(Ml, pR)(({ selection: t, name: e, subject: n, observer: r }) => {
21236
+ const DI = Qn(Ml, dR)(({ selection: t, name: e, subject: n, observer: r }) => {
21235
21237
  const i = new et(), { seriesCenterSelection$: o } = Ro({
21236
21238
  selection: t,
21237
21239
  pluginName: Ml,
@@ -21250,7 +21252,7 @@ const MI = Qn(Ml, pR)(({ selection: t, name: e, subject: n, observer: r }) => {
21250
21252
  I(i),
21251
21253
  O((d) => d[l] ?? d[0])
21252
21254
  );
21253
- a[l] = TR(Ml, {
21255
+ a[l] = CR(Ml, {
21254
21256
  containerSelection: f,
21255
21257
  computedData$: r.computedData$,
21256
21258
  containerVisibleComputedLayoutData$: h,
@@ -21284,7 +21286,7 @@ function Pl({ eventData: t, eventName: e, t: n, eventFn: r, textAttrs: i, textSt
21284
21286
  style: o[u]
21285
21287
  }));
21286
21288
  }
21287
- function CR(t, e) {
21289
+ function LR(t, e) {
21288
21290
  const n = new et();
21289
21291
  let r;
21290
21292
  const i = e.fullChartParams$.pipe(
@@ -21358,7 +21360,7 @@ function CR(t, e) {
21358
21360
  n.next(void 0);
21359
21361
  };
21360
21362
  }
21361
- const DI = Qn(Pa, dR)(({ selection: t, name: e, observer: n, subject: r }) => {
21363
+ const PI = Qn(Pa, gR)(({ selection: t, name: e, observer: n, subject: r }) => {
21362
21364
  const i = new et(), { seriesCenterSelection$: o } = Ro({
21363
21365
  selection: t,
21364
21366
  pluginName: Pa,
@@ -21377,7 +21379,7 @@ const DI = Qn(Pa, dR)(({ selection: t, name: e, observer: n, subject: r }) => {
21377
21379
  I(i),
21378
21380
  O((d) => d[l] ?? d[0])
21379
21381
  );
21380
- a[l] = CR(Pa, {
21382
+ a[l] = LR(Pa, {
21381
21383
  containerSelection: f,
21382
21384
  computedData$: n.computedData$,
21383
21385
  containerComputedLayoutData$: h,
@@ -21392,8 +21394,8 @@ const DI = Qn(Pa, dR)(({ selection: t, name: e, observer: n, subject: r }) => {
21392
21394
  }), () => {
21393
21395
  i.next(void 0), a.forEach((s) => s());
21394
21396
  };
21395
- }), Ta = "PieLabels", LR = ot(Ta, "text");
21396
- function kR(t, e, n, r) {
21397
+ }), Ta = "PieLabels", kR = ot(Ta, "text");
21398
+ function ER(t, e, n, r) {
21397
21399
  return t.map((i, o) => {
21398
21400
  const [a, s] = e.centroid(i), [u, l] = n.centroid(i);
21399
21401
  return {
@@ -21407,13 +21409,13 @@ function kR(t, e, n, r) {
21407
21409
  };
21408
21410
  }).filter((i) => i.pieDatum.data.visible);
21409
21411
  }
21410
- function ER(t, e, n, r) {
21411
- let i = t.selectAll("text").data(e, (u) => u.pieDatum.id), o = i.enter().append("text").classed(LR, !0), a = i.exit();
21412
+ function RR(t, e, n, r) {
21413
+ let i = t.selectAll("text").data(e, (u) => u.pieDatum.id), o = i.enter().append("text").classed(kR, !0), a = i.exit();
21412
21414
  o.append("text");
21413
21415
  const s = i.merge(o);
21414
21416
  return s.attr("font-weight", "bold").attr("text-anchor", "middle").style("dominant-baseline", "middle").style("cursor", (u) => r.highlightTarget && r.highlightTarget != "none" ? "pointer" : "none").text((u) => n.labelFn(u.pieDatum.data)).attr("font-size", r.styles.textSize).attr("fill", (u, l) => ks({ datum: u.pieDatum.data, colorType: n.labelColorType, fullChartParams: r })).transition().attr("transform", (u) => "translate(" + u.x + "," + u.y + ")"), a.remove(), s;
21415
21417
  }
21416
- function RR({ labelSelection: t, ids: e, fullChartParams: n }) {
21418
+ function IR({ labelSelection: t, ids: e, fullChartParams: n }) {
21417
21419
  if (t.interrupt("highlight"), !e.length) {
21418
21420
  t.transition().duration(200).attr("transform", (r) => "translate(" + r.x + "," + r.y + ")").style("opacity", 1);
21419
21421
  return;
@@ -21423,7 +21425,7 @@ function RR({ labelSelection: t, ids: e, fullChartParams: n }) {
21423
21425
  e.includes(r.pieDatum.id) ? a.style("opacity", 1).transition().duration(200).attr("transform", (s) => "translate(" + s.mouseoverX + "," + s.mouseoverY + ")") : a.style("opacity", n.styles.unhighlightedOpacity).transition().duration(200).attr("transform", (s) => "translate(" + s.x + "," + s.y + ")");
21424
21426
  });
21425
21427
  }
21426
- function IR(t, e) {
21428
+ function NR(t, e) {
21427
21429
  const n = new et();
21428
21430
  let r = new et(), i = [];
21429
21431
  const o = e.seriesContainerPosition$.pipe(
@@ -21458,8 +21460,8 @@ function IR(t, e) {
21458
21460
  startAngle: a.fullParams.startAngle,
21459
21461
  endAngle: a.fullParams.endAngle
21460
21462
  });
21461
- i = kR(l, s, u, a.fullParams.labelCentroid);
21462
- const c = ER(e.containerSelection, i, a.fullParams, a.fullChartParams);
21463
+ i = ER(l, s, u, a.fullParams.labelCentroid);
21464
+ const c = RR(e.containerSelection, i, a.fullParams, a.fullChartParams);
21463
21465
  r.next(c);
21464
21466
  }), Y({
21465
21467
  labelSelection: r,
@@ -21471,7 +21473,7 @@ function IR(t, e) {
21471
21473
  I(n),
21472
21474
  U(async (a) => a)
21473
21475
  ).subscribe((a) => {
21474
- RR({
21476
+ IR({
21475
21477
  labelSelection: a.labelSelection,
21476
21478
  ids: a.highlight,
21477
21479
  fullChartParams: a.fullChartParams
@@ -21480,7 +21482,7 @@ function IR(t, e) {
21480
21482
  n.next(void 0);
21481
21483
  };
21482
21484
  }
21483
- const PI = Qn(Ta, gR)(({ selection: t, observer: e, subject: n }) => {
21485
+ const TI = Qn(Ta, mR)(({ selection: t, observer: e, subject: n }) => {
21484
21486
  const r = new et(), { seriesCenterSelection$: i } = Ro({
21485
21487
  selection: t,
21486
21488
  pluginName: Ta,
@@ -21499,7 +21501,7 @@ const PI = Qn(Ta, gR)(({ selection: t, observer: e, subject: n }) => {
21499
21501
  I(r),
21500
21502
  O((p) => p[u] ?? p[0])
21501
21503
  );
21502
- o[u] = IR(Ta, {
21504
+ o[u] = NR(Ta, {
21503
21505
  containerSelection: c,
21504
21506
  // computedData$: observer.computedData$,
21505
21507
  containerVisibleComputedLayoutData$: f,
@@ -21514,8 +21516,8 @@ const PI = Qn(Ta, gR)(({ selection: t, observer: e, subject: n }) => {
21514
21516
  }), () => {
21515
21517
  r.next(void 0);
21516
21518
  };
21517
- }), Tl = "Rose", NR = Math.PI * 2, Yx = 0;
21518
- function FR({ cornerRadius: t, outerRadius: e, axisWidth: n, maxValue: r, arcScaleType: i }) {
21519
+ }), Tl = "Rose", FR = Math.PI * 2, Yx = 0;
21520
+ function zR({ cornerRadius: t, outerRadius: e, axisWidth: n, maxValue: r, arcScaleType: i }) {
21519
21521
  const o = n / 2 * e, a = i === "area" ? 0.5 : 1, s = ni().domain([0, r]).range([0, o]).exponent(a);
21520
21522
  return (u) => {
21521
21523
  const l = s(u.prevValue), c = s(u.value), f = an(l, c);
@@ -21525,7 +21527,7 @@ function FR({ cornerRadius: t, outerRadius: e, axisWidth: n, maxValue: r, arcSca
21525
21527
  };
21526
21528
  };
21527
21529
  }
21528
- function zR({ pathSelection: t, ids: e, fullParams: n, fullChartParams: r, tweenArc: i }) {
21530
+ function GR({ pathSelection: t, ids: e, fullParams: n, fullChartParams: r, tweenArc: i }) {
21529
21531
  if (t.interrupt("highlight"), !e.length) {
21530
21532
  t.transition("highlight").style("opacity", 1).attr("d", (o) => i(o)(1));
21531
21533
  return;
@@ -21539,7 +21541,7 @@ function zR({ pathSelection: t, ids: e, fullParams: n, fullChartParams: r, tween
21539
21541
  })(1)) : u.style("opacity", r.styles.unhighlightedOpacity).transition("highlight").attr("d", (l) => i(l)(1));
21540
21542
  });
21541
21543
  }
21542
- function GR(t, e) {
21544
+ function OR(t, e) {
21543
21545
  const n = new et(), r = ot(t, "path");
21544
21546
  let i = [];
21545
21547
  const o = e.seriesContainerPosition$.pipe(
@@ -21553,7 +21555,7 @@ function GR(t, e) {
21553
21555
  I(n),
21554
21556
  U(async (p) => p),
21555
21557
  O((p) => {
21556
- const d = NR / p.containerVisibleComputedLayoutData.length;
21558
+ const d = FR / p.containerVisibleComputedLayoutData.length;
21557
21559
  return p.containerVisibleComputedLayoutData.map((g, m) => ({
21558
21560
  id: g.id,
21559
21561
  data: g,
@@ -21579,7 +21581,7 @@ function GR(t, e) {
21579
21581
  }).pipe(
21580
21582
  I(n),
21581
21583
  U(async (p) => p),
21582
- O((p) => FR({
21584
+ O((p) => zR({
21583
21585
  cornerRadius: p.fullParams.cornerRadius,
21584
21586
  outerRadius: p.fullParams.outerRadius,
21585
21587
  axisWidth: p.axisWidth,
@@ -21687,7 +21689,7 @@ function GR(t, e) {
21687
21689
  zi((p) => !p.isTransitionMoving)
21688
21690
  // 避免資料變更時的動畫和highlight的動畫重覆執行
21689
21691
  ).subscribe((p) => {
21690
- zR({
21692
+ GR({
21691
21693
  pathSelection: p.pathSelection,
21692
21694
  ids: p.highlight,
21693
21695
  fullParams: p.fullParams,
@@ -21699,7 +21701,7 @@ function GR(t, e) {
21699
21701
  n.next(void 0);
21700
21702
  };
21701
21703
  }
21702
- const TI = Qn(Tl, mR)(({ selection: t, name: e, subject: n, observer: r }) => {
21704
+ const CI = Qn(Tl, yR)(({ selection: t, name: e, subject: n, observer: r }) => {
21703
21705
  const i = new et(), { seriesCenterSelection$: o } = Ro({
21704
21706
  selection: t,
21705
21707
  pluginName: Tl,
@@ -21718,7 +21720,7 @@ const TI = Qn(Tl, mR)(({ selection: t, name: e, subject: n, observer: r }) => {
21718
21720
  I(i),
21719
21721
  O((d) => JSON.parse(JSON.stringify(d[l] ?? d[0])))
21720
21722
  );
21721
- a[l] = GR(Tl, {
21723
+ a[l] = OR(Tl, {
21722
21724
  containerSelection: f,
21723
21725
  computedData$: r.computedData$,
21724
21726
  visibleComputedData$: r.visibleComputedData$,
@@ -21735,8 +21737,8 @@ const TI = Qn(Tl, mR)(({ selection: t, name: e, subject: n, observer: r }) => {
21735
21737
  }), () => {
21736
21738
  i.next(void 0), a.forEach((s) => s());
21737
21739
  };
21738
- }), Ca = "RoseLabels", OR = ot(Ca, "text");
21739
- function BR({ pieData: t, centroid: e, arcScaleType: n, maxValue: r, axisWidth: i, outerRadius: o }) {
21740
+ }), Ca = "RoseLabels", BR = ot(Ca, "text");
21741
+ function YR({ pieData: t, centroid: e, arcScaleType: n, maxValue: r, axisWidth: i, outerRadius: o }) {
21740
21742
  const a = i / 2 * o, s = n === "area" ? 0.5 : 1, u = ni().domain([0, r]).range([0, a]).exponent(s);
21741
21743
  return t.map((l, c) => {
21742
21744
  const f = u(l.value), h = $u().innerRadius(0).outerRadius(f).padAngle(0).padRadius(f).cornerRadius(0), [p, d] = h.centroid(l), [g, m] = [p, d];
@@ -21751,13 +21753,13 @@ function BR({ pieData: t, centroid: e, arcScaleType: n, maxValue: r, axisWidth:
21751
21753
  };
21752
21754
  }).filter((l) => l.pieDatum.data.visible);
21753
21755
  }
21754
- function YR(t, e, n, r) {
21755
- let i = t.selectAll("text").data(e, (u) => u.pieDatum.id), o = i.enter().append("text").classed(OR, !0), a = i.exit();
21756
+ function UR(t, e, n, r) {
21757
+ let i = t.selectAll("text").data(e, (u) => u.pieDatum.id), o = i.enter().append("text").classed(BR, !0), a = i.exit();
21756
21758
  o.append("text");
21757
21759
  const s = i.merge(o);
21758
21760
  return s.attr("font-weight", "bold").attr("text-anchor", "middle").style("dominant-baseline", "middle").style("cursor", (u) => r.highlightTarget && r.highlightTarget != "none" ? "pointer" : "none").text((u) => n.labelFn(u.pieDatum.data)).attr("font-size", r.styles.textSize).attr("fill", (u, l) => ks({ datum: u.pieDatum.data, colorType: n.labelColorType, fullChartParams: r })).transition().attr("transform", (u) => "translate(" + u.x + "," + u.y + ")"), a.remove(), s;
21759
21761
  }
21760
- function UR({ labelSelection: t, ids: e, fullChartParams: n }) {
21762
+ function HR({ labelSelection: t, ids: e, fullChartParams: n }) {
21761
21763
  if (t.interrupt("highlight"), !e.length) {
21762
21764
  t.transition().duration(200).attr("transform", (r) => "translate(" + r.x + "," + r.y + ")").style("opacity", 1);
21763
21765
  return;
@@ -21767,7 +21769,7 @@ function UR({ labelSelection: t, ids: e, fullChartParams: n }) {
21767
21769
  e.includes(r.pieDatum.data.id) ? a.style("opacity", 1).transition().duration(200).attr("transform", (s) => "translate(" + s.mouseoverX + "," + s.mouseoverY + ")") : a.style("opacity", n.styles.unhighlightedOpacity).transition().duration(200).attr("transform", (s) => "translate(" + s.x + "," + s.y + ")");
21768
21770
  });
21769
21771
  }
21770
- function HR(t, e) {
21772
+ function WR(t, e) {
21771
21773
  const n = new et();
21772
21774
  let r = new et(), i = [];
21773
21775
  const o = e.seriesContainerPosition$.pipe(
@@ -21799,7 +21801,7 @@ function HR(t, e) {
21799
21801
  padAngle: 0
21800
21802
  // prevValue: lastPieData[i] ? lastPieData[i].value : 0
21801
21803
  }));
21802
- i = BR({
21804
+ i = YR({
21803
21805
  pieData: l,
21804
21806
  centroid: s.fullParams.labelCentroid,
21805
21807
  arcScaleType: s.fullParams.arcScaleType,
@@ -21807,7 +21809,7 @@ function HR(t, e) {
21807
21809
  axisWidth: s.shorterSideWith,
21808
21810
  outerRadius: s.fullParams.outerRadius
21809
21811
  });
21810
- const c = YR(e.containerSelection, i, s.fullParams, s.fullChartParams);
21812
+ const c = UR(e.containerSelection, i, s.fullParams, s.fullChartParams);
21811
21813
  r.next(c);
21812
21814
  }), Y({
21813
21815
  labelSelection: r,
@@ -21819,7 +21821,7 @@ function HR(t, e) {
21819
21821
  I(n),
21820
21822
  U(async (s) => s)
21821
21823
  ).subscribe((s) => {
21822
- UR({
21824
+ HR({
21823
21825
  labelSelection: s.labelSelection,
21824
21826
  ids: s.highlight,
21825
21827
  fullChartParams: s.fullChartParams
@@ -21828,7 +21830,7 @@ function HR(t, e) {
21828
21830
  n.next(void 0);
21829
21831
  };
21830
21832
  }
21831
- const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21833
+ const LI = Qn(Ca, bR)(({ selection: t, observer: e, subject: n }) => {
21832
21834
  const r = new et(), { seriesCenterSelection$: i } = Ro({
21833
21835
  selection: t,
21834
21836
  pluginName: Ca,
@@ -21847,7 +21849,7 @@ const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21847
21849
  I(r),
21848
21850
  O((p) => JSON.parse(JSON.stringify(p[u] ?? p[0])))
21849
21851
  );
21850
- o[u] = HR(Ca, {
21852
+ o[u] = WR(Ca, {
21851
21853
  containerSelection: c,
21852
21854
  // computedData$: observer.computedData$,
21853
21855
  visibleComputedLayoutData$: e.visibleComputedLayoutData$,
@@ -21863,7 +21865,7 @@ const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21863
21865
  }), () => {
21864
21866
  r.next(void 0);
21865
21867
  };
21866
- }), $0 = "SeriesLegend", LI = Qn($0, bR)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
21868
+ }), $0 = "SeriesLegend", kI = Qn($0, vR)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
21867
21869
  const i = new et(), o = n.SeriesDataMap$.pipe(
21868
21870
  I(i),
21869
21871
  O((u) => Array.from(u.keys()))
@@ -21893,14 +21895,14 @@ const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21893
21895
  return () => {
21894
21896
  i.next(void 0), s();
21895
21897
  };
21896
- }), WR = {
21898
+ }), jR = {
21897
21899
  paddingInner: 2,
21898
21900
  paddingOuter: 2,
21899
21901
  labelColorType: "primary",
21900
21902
  squarifyRatio: 1.618034,
21901
21903
  // 黃金比例
21902
21904
  sort: (t, e) => e.value - t.value
21903
- }, jR = {
21905
+ }, qR = {
21904
21906
  position: "right",
21905
21907
  justify: "end",
21906
21908
  padding: 28,
@@ -21911,7 +21913,7 @@ const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21911
21913
  listRectHeight: 14,
21912
21914
  listRectRadius: 0,
21913
21915
  textColorType: "primary"
21914
- }, S0 = "TreeLegend", kI = Ym(S0, jR)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
21916
+ }, S0 = "TreeLegend", EI = Ym(S0, qR)(({ selection: t, rootSelection: e, observer: n, subject: r }) => {
21915
21917
  const i = new et(), o = n.CategoryDataMap$.pipe(
21916
21918
  I(i),
21917
21919
  O((u) => Array.from(u.keys()))
@@ -21942,7 +21944,7 @@ const CI = Qn(Ca, yR)(({ selection: t, observer: e, subject: n }) => {
21942
21944
  i.next(void 0), s();
21943
21945
  };
21944
21946
  }), Cn = "TreeMap", A0 = ot(Cn, "tree"), M0 = ot(Cn, "tile");
21945
- function qR({ selection: t, treeData: e, fullParams: n, fullChartParams: r, textSizePx: i }) {
21947
+ function VR({ selection: t, treeData: e, fullParams: n, fullChartParams: r, textSizePx: i }) {
21946
21948
  const o = i / 2, a = i, s = t.selectAll(`g.${A0}`).data(e, (u) => u.data.id).join("g").attr("class", A0);
21947
21949
  return s.attr("transform", (u) => !u.x0 || !u.y0 ? null : `translate(${u.x0},${u.y0})`).each((u, l, c) => {
21948
21950
  const f = X(c[l]);
@@ -21958,7 +21960,7 @@ function qR({ selection: t, treeData: e, fullParams: n, fullChartParams: r, text
21958
21960
  });
21959
21961
  }), s;
21960
21962
  }
21961
- function VR({ selection: t, ids: e, fullChartParams: n }) {
21963
+ function XR({ selection: t, ids: e, fullChartParams: n }) {
21962
21964
  if (t.interrupt("highlight"), !e.length) {
21963
21965
  t.transition("highlight").duration(200).style("opacity", 1);
21964
21966
  return;
@@ -21967,7 +21969,7 @@ function VR({ selection: t, ids: e, fullChartParams: n }) {
21967
21969
  e.includes(r.data.id) ? X(o[i]).style("opacity", 1) : X(o[i]).style("opacity", n.styles.unhighlightedOpacity);
21968
21970
  });
21969
21971
  }
21970
- const EI = Ym(Cn, WR)(({ selection: t, name: e, subject: n, observer: r }) => {
21972
+ const RI = Ym(Cn, jR)(({ selection: t, name: e, subject: n, observer: r }) => {
21971
21973
  const i = new et(), o = Y({
21972
21974
  layout: r.layout$,
21973
21975
  visibleComputedData: r.visibleComputedData$,
@@ -21990,7 +21992,7 @@ const EI = Ym(Cn, WR)(({ selection: t, name: e, subject: n, observer: r }) => {
21990
21992
  }).pipe(
21991
21993
  I(i),
21992
21994
  U(async (u) => u),
21993
- O((u) => qR({
21995
+ O((u) => VR({
21994
21996
  selection: t,
21995
21997
  treeData: u.treeData,
21996
21998
  fullParams: u.fullParams,
@@ -22077,7 +22079,7 @@ const EI = Ym(Cn, WR)(({ selection: t, name: e, subject: n, observer: r }) => {
22077
22079
  I(i),
22078
22080
  U(async (u) => u)
22079
22081
  ).subscribe((u) => {
22080
- VR({
22082
+ XR({
22081
22083
  selection: u.cellSelection,
22082
22084
  ids: u.highlight,
22083
22085
  fullChartParams: u.fullChartParams
@@ -22087,18 +22089,18 @@ const EI = Ym(Cn, WR)(({ selection: t, name: e, subject: n, observer: r }) => {
22087
22089
  };
22088
22090
  });
22089
22091
  export {
22090
- eI as BarStack,
22091
- JR as Bars,
22092
- tI as BarsPN,
22093
- nI as BarsTriangle,
22094
- AI as Bubbles,
22095
- sR as CONTAINER_PLUGIN_PARAMS,
22096
- $I as Container,
22097
- XR as DEFAULT_BARS_DIVERGING_PARAMS,
22092
+ nI as BarStack,
22093
+ tI as Bars,
22094
+ eI as BarsPN,
22095
+ rI as BarsTriangle,
22096
+ MI as Bubbles,
22097
+ uR as CONTAINER_PLUGIN_PARAMS,
22098
+ SI as Container,
22099
+ ZR as DEFAULT_BARS_DIVERGING_PARAMS,
22098
22100
  ef as DEFAULT_BARS_PARAMS,
22099
22101
  Vx as DEFAULT_BARS_TRIANGLE_PARAMS,
22100
22102
  qx as DEFAULT_BAR_STACK_PARAMS,
22101
- hR as DEFAULT_BUBBLES_PARAMS,
22103
+ pR as DEFAULT_BUBBLES_PARAMS,
22102
22104
  Wx as DEFAULT_DOTS_PARAMS,
22103
22105
  Qx as DEFAULT_GRID_LEGEND_PARAMS,
22104
22106
  jx as DEFAULT_GROUP_AREA_PARAMS,
@@ -22114,48 +22116,49 @@ export {
22114
22116
  rR as DEFAULT_MULTI_LINES_PARAMS,
22115
22117
  iR as DEFAULT_MULTI_LINE_AREAS_PARAMS,
22116
22118
  jh as DEFAULT_MULTI_VALUE_AXIS_PARAMS,
22117
- cI as DEFAULT_MULTI_VALUE_STACK_AXIS_PARAMS,
22119
+ fI as DEFAULT_MULTI_VALUE_STACK_AXIS_PARAMS,
22118
22120
  Fx as DEFAULT_OVERLAPPING_VALUE_AXES_PARAMS,
22119
- dR as DEFAULT_PIE_EVENT_TEXTS_PARAMS,
22120
- gR as DEFAULT_PIE_LABELS_PARAMS,
22121
- pR as DEFAULT_PIE_PARAMS,
22122
- yR as DEFAULT_ROSE_LABELS_PARAMS,
22123
- mR as DEFAULT_ROSE_PARAMS,
22121
+ aR as DEFAULT_OVERLAPPING_VALUE_STACK_AXES_PARAMS,
22122
+ gR as DEFAULT_PIE_EVENT_TEXTS_PARAMS,
22123
+ mR as DEFAULT_PIE_LABELS_PARAMS,
22124
+ dR as DEFAULT_PIE_PARAMS,
22125
+ bR as DEFAULT_ROSE_LABELS_PARAMS,
22126
+ yR as DEFAULT_ROSE_PARAMS,
22124
22127
  Kx as DEFAULT_SCALING_AREA_PARAMS,
22125
- bR as DEFAULT_SERIES_LEGEND_PARAMS,
22126
- jR as DEFAULT_TREE_LEGEND_PARAMS,
22127
- WR as DEFAULT_TREE_MAP_PARAMS,
22128
+ vR as DEFAULT_SERIES_LEGEND_PARAMS,
22129
+ qR as DEFAULT_TREE_LEGEND_PARAMS,
22130
+ jR as DEFAULT_TREE_MAP_PARAMS,
22128
22131
  D0 as DEFAULT_VALUE_AXIS_PARAMS,
22129
22132
  Zx as DEFAULT_VALUE_STACK_AXIS_PARAMS,
22130
- rI as Dots,
22131
- iI as GridLegend,
22132
- lI as GroupAux,
22133
- oI as GroupAxis,
22134
- QR as LineAreas,
22135
- KR as Lines,
22136
- pI as MultiBarStack,
22137
- hI as MultiBars,
22138
- dI as MultiBarsTriangle,
22139
- yI as MultiDots,
22140
- fI as MultiGridLegend,
22141
- bI as MultiGroupAxis,
22142
- mI as MultiLineAreas,
22143
- gI as MultiLines,
22144
- vI as MultiValueAxis,
22145
- xI as MultiValueStackAxis,
22146
- _I as OverlappingValueAxes,
22147
- wI as OverlappingValueStackAxes,
22148
- MI as Pie,
22149
- DI as PieEventTexts,
22150
- PI as PieLabels,
22151
- TI as Rose,
22152
- CI as RoseLabels,
22153
- uI as ScalingArea,
22154
- LI as SeriesLegend,
22155
- uR as TOOLTIP_PARAMS,
22156
- SI as Tooltip,
22157
- kI as TreeLegend,
22158
- EI as TreeMap,
22159
- aI as ValueAxis,
22160
- sI as ValueStackAxis
22133
+ iI as Dots,
22134
+ oI as GridLegend,
22135
+ cI as GroupAux,
22136
+ aI as GroupAxis,
22137
+ JR as LineAreas,
22138
+ QR as Lines,
22139
+ dI as MultiBarStack,
22140
+ pI as MultiBars,
22141
+ gI as MultiBarsTriangle,
22142
+ bI as MultiDots,
22143
+ hI as MultiGridLegend,
22144
+ vI as MultiGroupAxis,
22145
+ yI as MultiLineAreas,
22146
+ mI as MultiLines,
22147
+ xI as MultiValueAxis,
22148
+ _I as MultiValueStackAxis,
22149
+ wI as OverlappingValueAxes,
22150
+ $I as OverlappingValueStackAxes,
22151
+ DI as Pie,
22152
+ PI as PieEventTexts,
22153
+ TI as PieLabels,
22154
+ CI as Rose,
22155
+ LI as RoseLabels,
22156
+ lI as ScalingArea,
22157
+ kI as SeriesLegend,
22158
+ lR as TOOLTIP_PARAMS,
22159
+ AI as Tooltip,
22160
+ EI as TreeLegend,
22161
+ RI as TreeMap,
22162
+ sI as ValueAxis,
22163
+ uI as ValueStackAxis
22161
22164
  };