@databrainhq/plugin 0.17.9-beta.66 → 0.17.9-beta.67
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/{Accordion-ClM-DQNR.mjs → Accordion-HnV7Wa7d.mjs} +1 -1
- package/dist/{Axis-so_G8609.mjs → Axis-BoRILjw6.mjs} +25 -25
- package/dist/AxisBuilder-CbZA9BA5.mjs +556 -0
- package/dist/{AxisView-DbvR7xj2.mjs → AxisView-D1J-Vvd5.mjs} +46 -46
- package/dist/{CardChartSlot-WYOoFrPL.mjs → CardChartSlot-xCL70UFF.mjs} +6 -6
- package/dist/{Chart-C-M2BAGW.mjs → Chart-C8IUjDZP.mjs} +1249 -1444
- package/dist/{ChartTypePanel-CgnH37kj.mjs → ChartTypePanel-D33r24Vx.mjs} +8 -8
- package/dist/{CreateGlobalFilter-C9KQALHu.mjs → CreateGlobalFilter-CrZMQyeM.mjs} +2 -2
- package/dist/{CreateMetricV2-D669LmPA.mjs → CreateMetricV2-uIc0kSQ_.mjs} +12 -12
- package/dist/GridModel-BOILOnLN.mjs +39 -0
- package/dist/{HorizontalStackTable-E91Iuyzf.mjs → HorizontalStackTable-B_4q2iBG.mjs} +3 -3
- package/dist/{LineDraw-QEq0LGiV.mjs → LineDraw-C5CPD2fu.mjs} +75 -75
- package/dist/{ManageMetricsV2-C1d5KU_f.mjs → ManageMetricsV2-iTJys95Q.mjs} +3 -3
- package/dist/{MetricCardV2-C2eYo3s-.mjs → MetricCardV2-CBXvGrxI.mjs} +7 -7
- package/dist/{NoDataFound-ChW4me5m.mjs → NoDataFound-dLuw3_8M.mjs} +1 -1
- package/dist/{Panel-OH_Kxefy.mjs → Panel-DbS03Fa_.mjs} +1 -1
- package/dist/{PivotTableV2-D0GqqiiM.mjs → PivotTableV2-BGeyDx2h.mjs} +2 -2
- package/dist/{PivotTableV3-BdO_u5WS.mjs → PivotTableV3-q9Gs3DAq.mjs} +4 -4
- package/dist/{Portal-CV_NrBJ-.mjs → Portal-DSSDhg1M.mjs} +59 -59
- package/dist/{RadioButton-CVv2WrAN.mjs → RadioButton-DY7YeYgN.mjs} +1 -1
- package/dist/{RoamController-Dg9XZMbv.mjs → RoamController-kkduqIGv.mjs} +27 -27
- package/dist/{ScheduleEmail-BMgGc98g.mjs → ScheduleEmail-CRzbBNyX.mjs} +6 -6
- package/dist/{SearchMetricData-IL8DdG5T.mjs → SearchMetricData-Ba-UG9Xi.mjs} +162 -162
- package/dist/{SeriesData-BiofVRKp.mjs → SeriesData-t2ZM93xe.mjs} +153 -153
- package/dist/{SeriesDataSchema-DsLx8ATY.mjs → SeriesDataSchema-DbWmjBHq.mjs} +3 -3
- package/dist/{SortPanel-CsY3Go6z.mjs → SortPanel-CM4XEYFx.mjs} +10 -10
- package/dist/{SymbolDraw-B7bsdOGh.mjs → SymbolDraw-aWP4aFcT.mjs} +77 -77
- package/dist/{Table-V9qwq_A-.mjs → Table-CDvOpuYe.mjs} +249 -241
- package/dist/{TagInputField-BXcyiOOC.mjs → TagInputField-fGfjlIAp.mjs} +4 -4
- package/dist/{TextAreaField-Bg-Mn1xZ.mjs → TextAreaField-BdQ1n88e.mjs} +2 -2
- package/dist/{TimeSeriesSettings-DEBOcjxj.mjs → TimeSeriesSettings-BbF-feiK.mjs} +2 -2
- package/dist/View-HJXsM1pX.mjs +196 -0
- package/dist/{VisualMapping-C4H6uMDK.mjs → VisualMapping-BEacOIdS.mjs} +77 -77
- package/dist/{arrayToCsvString-D9jRf3H1.mjs → arrayToCsvString-Rjim3CLj.mjs} +1 -1
- package/dist/{axisAlignTicks-CA9tHLzi.mjs → axisAlignTicks-BDCH2l76.mjs} +21 -21
- package/dist/axisBand-B8HTljY9.mjs +434 -0
- package/dist/{axisDefault-nEWLSKin.mjs → axisDefault-BfDTCeDW.mjs} +12 -12
- package/dist/{axisHelper-B4ygrEAu.mjs → axisHelper-C92zjGrZ.mjs} +267 -267
- package/dist/{axisNiceTicks-ClubN7Tk.mjs → axisNiceTicks-DlIPQ7Bu.mjs} +13 -13
- package/dist/{bar-BB2qrFDC.mjs → bar-Dnd6DMeI.mjs} +2 -2
- package/dist/{barCommon-BArELGTY.mjs → barCommon--mFXSMxr.mjs} +14 -14
- package/dist/{barGrid-_f2rVIut.mjs → barGrid-BnZ3vF37.mjs} +36 -36
- package/dist/{base-Dsk4fQ1B.mjs → base-CqKr_o6m.mjs} +3 -3
- package/dist/{canvas-B9V5aHe8.mjs → canvas-MlE3EEgP.mjs} +2 -2
- package/dist/canvasLetterSpacing-C1X0nr1A.mjs +59 -0
- package/dist/canvasTeardown-BZnfPMIf.mjs +261 -0
- package/dist/{cardQueryError-DY_ZJaeH.mjs → cardQueryError-BvdXcZWj.mjs} +10 -10
- package/dist/{cartesianAxisHelper-DoeSPDFx.mjs → cartesianAxisHelper-Cj6QbGbq.mjs} +3 -3
- package/dist/{charts-DLkGIf3C.mjs → charts-TEuh7DBS.mjs} +1580 -1546
- package/dist/{conditionalFormatting-C-FdJ4PG.mjs → conditionalFormatting-jiDCWhx5.mjs} +1 -1
- package/dist/{createClipPathFromCoordSys-B4vAGE8Z.mjs → createClipPathFromCoordSys-D8WqA4dr.mjs} +13 -13
- package/dist/createDimensions-CnmSLhmZ.mjs +104 -0
- package/dist/{createGlobalFilter.module-Q1baYqNl.mjs → createGlobalFilter.module-BSLkPq6G.mjs} +1 -1
- package/dist/{createGraphFromNodeEdge-7WyfkrBe.mjs → createGraphFromNodeEdge-DCo8LkEe.mjs} +39 -39
- package/dist/createSeriesData-QC-rX5h7.mjs +101 -0
- package/dist/{createSeriesDataSimply-BxdEaPVX.mjs → createSeriesDataSimply-CKTp_DsX.mjs} +4 -4
- package/dist/{custom-DcvwBVj2.mjs → custom-DsYOLaUK.mjs} +2 -2
- package/dist/customGraphicKeyframeAnimation-Cfq3Ya3a.mjs +299 -0
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{dataSample-Bp4H9kbC.mjs → dataSample-Cv8KVcHp.mjs} +2 -2
- package/dist/{dataStackHelper-8xSjPoGY.mjs → dataStackHelper-plaarSse.mjs} +2 -2
- package/dist/{echarts-CAoS6aE4.mjs → echarts-DSP9q-oP.mjs} +1596 -1596
- package/dist/{echarts-B6T0U8q9.mjs → extension-CjvfhuOl.mjs} +2460 -2415
- package/dist/{option-BVCp3H01.mjs → format-BdG1uTDw.mjs} +493 -463
- package/dist/{funnel-BPyzsZSL.mjs → funnel-BqvvHgIV.mjs} +2 -2
- package/dist/{gauge-3Wvva_32.mjs → gauge-D5uVlOTf.mjs} +2 -2
- package/dist/{graph-CExwwYVH.mjs → graph-D1H_pveT.mjs} +2 -2
- package/dist/{install-D5AxiliG.mjs → install-B2u2WICp.mjs} +249 -249
- package/dist/install-C94jvAIB.mjs +370 -0
- package/dist/{install-B1TqspfL.mjs → install-CD_nJllF.mjs} +151 -151
- package/dist/{install-DeQuODXS.mjs → install-CVI7EngB.mjs} +183 -183
- package/dist/{install-BWNipZtL.mjs → install-ClLUQImW.mjs} +164 -164
- package/dist/{install-BcuG0TzG.mjs → install-CqGJAjtU.mjs} +205 -205
- package/dist/{install-COuvnLYq.mjs → install-CqpZdmUs.mjs} +224 -225
- package/dist/{install-B35NwG74.mjs → install-CwLVKiaI.mjs} +448 -627
- package/dist/{install-fUIPAUHh.mjs → install-CxIyDAbo.mjs} +142 -142
- package/dist/install-D-uyYxzt.mjs +442 -0
- package/dist/{install-g1WKebGq.mjs → install-DxzoEvqo.mjs} +53 -54
- package/dist/{install-BOqmfLSu.mjs → install-UQOuGZ-3.mjs} +156 -156
- package/dist/install-YalZg5OB.mjs +208 -0
- package/dist/{install-COgFGhU1.mjs → install-gJJR8ost.mjs} +185 -185
- package/dist/{installCanvasRenderer-DZQl9WUm.mjs → installCanvasRenderer-CdQICtMz.mjs} +148 -148
- package/dist/installSVGRenderer-CM4phOH5.mjs +788 -0
- package/dist/installSimple-hwzmQHWx.mjs +562 -0
- package/dist/labelGuideHelper-Biiy5GEO.mjs +211 -0
- package/dist/{labelHelper-CWf3lqtb.mjs → labelHelper-CK2wFnD2.mjs} +9 -9
- package/dist/{labelLayoutHelper-gSQ2wxVR.mjs → labelLayoutHelper-BGT4km6s.mjs} +16 -16
- package/dist/{legacyContainLabel-C2O3qS_C.mjs → legacyContainLabel-BPPdU-_P.mjs} +1057 -1058
- package/dist/{line-Biu-eHDy.mjs → line-Bz3suzTe.mjs} +2 -2
- package/dist/{linkSeriesData-CmdFbU_o.mjs → linkSeriesData-oLBZWXeI.mjs} +15 -15
- package/dist/{metric.mutation-GQtohk1S.mjs → metric.mutation-Bp6C-gnS.mjs} +1 -1
- package/dist/parseGeoJson-CL1oJAFU.mjs +185 -0
- package/dist/{permissions-CH-WGA_H.mjs → permissions-RytJG009.mjs} +5 -5
- package/dist/{pie-BSGwMlDv.mjs → pie-8bHZZWij.mjs} +2 -2
- package/dist/{pluginV3Request-CCcbgHOL.mjs → pluginV3Request-B6J1iWdo.mjs} +1 -1
- package/dist/{points-QJPXYOtn.mjs → points-D4GPTJUM.mjs} +3 -3
- package/dist/{polar-DF62ToTw.mjs → polar-CDByVeuT.mjs} +2 -2
- package/dist/{radar-DUrDFixH.mjs → radar-Cm_0Z4n_.mjs} +2 -2
- package/dist/{renderer-CbYNXUJq.mjs → renderer-BC0h-JPJ.mjs} +2 -2
- package/dist/{roamHelper-CcGUDlj6.mjs → roamHelper-CfJQ0V8o.mjs} +15 -15
- package/dist/{sankey-DQjq16w_.mjs → sankey-B-88mGB1.mjs} +2 -2
- package/dist/{sausage-CnA_7NXH.mjs → sausage-MJyh9DcM.mjs} +1 -1
- package/dist/{scatter-Z9iXDwaa.mjs → scatter-CXYREtPk.mjs} +2 -2
- package/dist/{sectorHelper-BYk-RZi8.mjs → sectorHelper-BrGpww5p.mjs} +4 -4
- package/dist/{svg-BqqDtKe2.mjs → svg-BpzO9oa-.mjs} +2 -2
- package/dist/{theme-Cy9b23sj.mjs → theme-BYHowFGG.mjs} +137 -135
- package/dist/{timeseries-CDZ2lqd0.mjs → timeseries-D1_Havul.mjs} +1911 -1939
- package/dist/{toTasteAppearance-CcICPHaj.mjs → toTasteAppearance-DdC9S4xx.mjs} +13 -13
- package/dist/{treemap-C3cV5Iw-.mjs → treemap-BGu5cKFF.mjs} +2 -2
- package/dist/{useGuesTokenUsageLog-x2sDutRn.mjs → useGuesTokenUsageLog-BDOlwCKi.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-DJKjX-SL.mjs → usePublishArchivedMetrics-B9KYUf2j.mjs} +2 -2
- package/dist/{useQuery-wLcZUjCm.mjs → useQuery-8yPFyxSa.mjs} +1 -1
- package/dist/{vendor-Bq_K9DdP.mjs → vendor-BesI8vuE.mjs} +1 -1
- package/dist/webcomponents.css +1 -1
- package/dist/webcomponents.es.js +1487 -1460
- package/dist/webcomponents.umd.js +194 -184
- package/package.json +1 -1
- package/types/publicTypes.d.ts +4 -3
- package/dist/AxisBuilder-CIEw0VKH.mjs +0 -556
- package/dist/GridModel-DpfhksE5.mjs +0 -39
- package/dist/View-DuNXbS5E.mjs +0 -196
- package/dist/axisBand-CqPMsaju.mjs +0 -434
- package/dist/canvasTeardown-U1wBiiCe.mjs +0 -65
- package/dist/createDimensions-DYZprUlh.mjs +0 -104
- package/dist/createSeriesData-SCJKaSQ2.mjs +0 -101
- package/dist/customGraphicKeyframeAnimation-C5rfpbhk.mjs +0 -299
- package/dist/extension-dPyu9HSg.mjs +0 -52
- package/dist/install-DJXWoot7.mjs +0 -208
- package/dist/install-YCJIpIX5.mjs +0 -443
- package/dist/install-jnjEqKhO.mjs +0 -370
- package/dist/installSVGRenderer-DWwkDWs9.mjs +0 -788
- package/dist/installSimple-B0ty1uQ7.mjs +0 -562
- package/dist/labelGuideHelper-JZN7_bZa.mjs +0 -211
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
import "react-dom/client";
|
|
4
|
+
import { $ as e, Ac as t, B as n, Br as r, Dc as i, Dr as a, Eo as o, Gr as s, Ic as c, Lc as l, Nc as u, Nt as d, Pt as f, R as p, Si as m, Vi as h, Wr as g, Yn as _, ai as v, bc as y, ei as b, el as x, gc as S, ho as C, la as w, lc as T, lt as E, mc as D, ni as O, qn as k, rr as A, rt as j, st as M, t as N, ti as P, tr as F, tt as I, uc as L, vc as ee, wc as R, xi as z, xr as te, zc as ne, zt as re } from "./extension-CjvfhuOl.mjs";
|
|
5
|
+
import { x as ie, y as B } from "./axisHelper-C92zjGrZ.mjs";
|
|
6
|
+
import { n as ae, t as oe } from "./Axis-BoRILjw6.mjs";
|
|
7
|
+
import { f as se, u as V } from "./axisBand-B8HTljY9.mjs";
|
|
8
|
+
import { t as H } from "./axisDefault-BfDTCeDW.mjs";
|
|
9
|
+
import { t as U } from "./AxisBuilder-CbZA9BA5.mjs";
|
|
10
|
+
import { t as W } from "./axisAlignTicks-BDCH2l76.mjs";
|
|
11
|
+
import { t as G } from "./createSeriesDataSimply-CKTp_DsX.mjs";
|
|
12
|
+
import { t as K } from "./dataFilter-BSUvdgZE.mjs";
|
|
13
|
+
import { t as ce } from "./LegendVisualProvider-ByB5Hi7a.mjs";
|
|
14
|
+
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/coord/radar/RadarModel.js
|
|
15
|
+
var q = H.value, J = "radar", Y = J, le = J;
|
|
16
|
+
function X(e, t) {
|
|
17
|
+
return D({ show: t }, e);
|
|
18
|
+
}
|
|
19
|
+
var ue = function(e) {
|
|
20
|
+
x(t, e);
|
|
21
|
+
function t() {
|
|
22
|
+
var n = e !== null && e.apply(this, arguments) || this;
|
|
23
|
+
return n.type = t.type, n;
|
|
24
|
+
}
|
|
25
|
+
return t.prototype.optionUpdated = function() {
|
|
26
|
+
var e = this.get("boundaryGap"), t = this.get("splitNumber"), n = this.get("clockwise"), r = this.get("scale"), a = this.get("axisLine"), o = this.get("axisTick"), s = this.get("axisLabel"), d = this.get("axisName"), f = this.get(["axisName", "show"]), p = this.get(["axisName", "formatter"]), m = this.get("axisNameGap"), h = this.get("triggerEvent"), g = c(this.get("indicator") || [], function(c) {
|
|
27
|
+
c.max != null && c.max > 0 && !c.min ? c.min = 0 : c.min != null && c.min < 0 && !c.max && (c.max = 0);
|
|
28
|
+
var g = d;
|
|
29
|
+
c.color != null && (g = D({ color: c.color }, d));
|
|
30
|
+
var v = l(L(c), {
|
|
31
|
+
boundaryGap: e,
|
|
32
|
+
splitNumber: t,
|
|
33
|
+
clockwise: n,
|
|
34
|
+
scale: r,
|
|
35
|
+
axisLine: a,
|
|
36
|
+
axisTick: o,
|
|
37
|
+
axisLabel: s,
|
|
38
|
+
name: c.text,
|
|
39
|
+
showName: f,
|
|
40
|
+
nameLocation: "end",
|
|
41
|
+
nameGap: m,
|
|
42
|
+
nameTextStyle: g,
|
|
43
|
+
triggerEvent: h
|
|
44
|
+
}, !1);
|
|
45
|
+
if (u(p)) {
|
|
46
|
+
var y = v.name;
|
|
47
|
+
v.name = p.replace("{value}", y ?? "");
|
|
48
|
+
} else i(p) && (v.name = p(v.name, v));
|
|
49
|
+
var b = new _(v, null, this.ecModel);
|
|
50
|
+
return ne(b, ae.prototype), b.mainType = "radar", b.componentIndex = this.componentIndex, b.uid = k("ec_radar"), b;
|
|
51
|
+
}, this);
|
|
52
|
+
this._indicatorModels = g;
|
|
53
|
+
}, t.prototype.getIndicatorModels = function() {
|
|
54
|
+
return this._indicatorModels;
|
|
55
|
+
}, t.type = Y, t.defaultOption = {
|
|
56
|
+
z: 0,
|
|
57
|
+
center: ["50%", "50%"],
|
|
58
|
+
radius: "50%",
|
|
59
|
+
startAngle: 90,
|
|
60
|
+
clockwise: !1,
|
|
61
|
+
axisName: {
|
|
62
|
+
show: !0,
|
|
63
|
+
color: d.color.axisLabel
|
|
64
|
+
},
|
|
65
|
+
boundaryGap: [0, 0],
|
|
66
|
+
splitNumber: 5,
|
|
67
|
+
axisNameGap: 15,
|
|
68
|
+
scale: !1,
|
|
69
|
+
shape: "polygon",
|
|
70
|
+
axisLine: l({ lineStyle: { color: d.color.neutral20 } }, q.axisLine),
|
|
71
|
+
axisLabel: X(q.axisLabel, !1),
|
|
72
|
+
axisTick: X(q.axisTick, !1),
|
|
73
|
+
splitLine: X(q.splitLine, !0),
|
|
74
|
+
splitArea: X(q.splitArea, !0),
|
|
75
|
+
indicator: []
|
|
76
|
+
}, t;
|
|
77
|
+
}(f), de = function(e) {
|
|
78
|
+
x(t, e);
|
|
79
|
+
function t() {
|
|
80
|
+
var n = e !== null && e.apply(this, arguments) || this;
|
|
81
|
+
return n.type = t.type, n;
|
|
82
|
+
}
|
|
83
|
+
return t.prototype.render = function(e, t, n) {
|
|
84
|
+
this.group.removeAll(), this._buildAxes(e, n), this._buildSplitLineAndArea(e);
|
|
85
|
+
}, t.prototype._buildAxes = function(e, t) {
|
|
86
|
+
var n = e.coordinateSystem, r = n.getIndicatorAxes(), i = c(r, function(e) {
|
|
87
|
+
var r = e.model.get("showName") ? e.name : "";
|
|
88
|
+
return new U(e.model, t, {
|
|
89
|
+
axisName: r,
|
|
90
|
+
position: [n.cx, n.cy],
|
|
91
|
+
rotation: e.angle,
|
|
92
|
+
labelDirection: -1,
|
|
93
|
+
tickDirection: -1,
|
|
94
|
+
nameDirection: 1
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
S(i, function(e) {
|
|
98
|
+
e.build(), this.group.add(e.group);
|
|
99
|
+
}, this);
|
|
100
|
+
}, t.prototype._buildSplitLineAndArea = function(e) {
|
|
101
|
+
var t = e.coordinateSystem, n = t.getIndicatorAxes();
|
|
102
|
+
if (!n.length) return;
|
|
103
|
+
var r = e.get("shape"), i = e.getModel("splitLine"), o = e.getModel("splitArea"), s = i.getModel("lineStyle"), l = o.getModel("areaStyle"), u = i.get("show"), d = o.get("show"), f = s.get("color"), p = l.get("color"), m = R(f) ? f : [f], h = R(p) ? p : [p], g = [], _ = [];
|
|
104
|
+
function y(e, t, n) {
|
|
105
|
+
var r = n % t.length;
|
|
106
|
+
return e[r] = e[r] || [], r;
|
|
107
|
+
}
|
|
108
|
+
if (r === "circle") for (var x = n[0].getTicksCoords(), C = t.cx, w = t.cy, T = 0; T < x.length; T++) {
|
|
109
|
+
if (u) {
|
|
110
|
+
var E = y(g, m, T);
|
|
111
|
+
g[E].push(new v({ shape: {
|
|
112
|
+
cx: C,
|
|
113
|
+
cy: w,
|
|
114
|
+
r: x[T].coord
|
|
115
|
+
} }));
|
|
116
|
+
}
|
|
117
|
+
if (d && T < x.length - 1) {
|
|
118
|
+
var E = y(_, h, T);
|
|
119
|
+
_[E].push(new O({ shape: {
|
|
120
|
+
cx: C,
|
|
121
|
+
cy: w,
|
|
122
|
+
r0: x[T].coord,
|
|
123
|
+
r: x[T + 1].coord
|
|
124
|
+
} }));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
else for (var k, A = c(n, function(e, n) {
|
|
128
|
+
var r = e.getTicksCoords();
|
|
129
|
+
return k = k == null ? r.length - 1 : Math.min(r.length - 1, k), c(r, function(e) {
|
|
130
|
+
return t.coordToPoint(e.coord, n);
|
|
131
|
+
});
|
|
132
|
+
}), j = [], T = 0; T <= k; T++) {
|
|
133
|
+
for (var M = [], N = 0; N < n.length; N++) M.push(A[N][T]);
|
|
134
|
+
if (M[0] && M.push(M[0].slice()), u) {
|
|
135
|
+
var E = y(g, m, T);
|
|
136
|
+
g[E].push(new b({ shape: { points: M } }));
|
|
137
|
+
}
|
|
138
|
+
if (d && j) {
|
|
139
|
+
var E = y(_, h, T - 1);
|
|
140
|
+
_[E].push(new P({ shape: { points: M.concat(j) } }));
|
|
141
|
+
}
|
|
142
|
+
j = M.slice().reverse();
|
|
143
|
+
}
|
|
144
|
+
var F = s.getLineStyle(), I = l.getAreaStyle();
|
|
145
|
+
S(_, function(e, t) {
|
|
146
|
+
this.group.add(a(e, {
|
|
147
|
+
style: D({
|
|
148
|
+
stroke: "none",
|
|
149
|
+
fill: h[t % h.length]
|
|
150
|
+
}, I),
|
|
151
|
+
silent: !0
|
|
152
|
+
}));
|
|
153
|
+
}, this), S(g, function(e, t) {
|
|
154
|
+
this.group.add(a(e, {
|
|
155
|
+
style: D({
|
|
156
|
+
fill: "none",
|
|
157
|
+
stroke: m[t % m.length]
|
|
158
|
+
}, F),
|
|
159
|
+
silent: !0
|
|
160
|
+
}));
|
|
161
|
+
}, this);
|
|
162
|
+
}, t.type = "radar", t;
|
|
163
|
+
}(I), fe = function(e) {
|
|
164
|
+
x(t, e);
|
|
165
|
+
function t(t, n, r) {
|
|
166
|
+
var i = e.call(this, t, n, r) || this;
|
|
167
|
+
return i.type = "value", i.angle = 0, i.name = "", i;
|
|
168
|
+
}
|
|
169
|
+
return t;
|
|
170
|
+
}(oe), pe = function() {
|
|
171
|
+
function e(e, t, n) {
|
|
172
|
+
this.type = J, this.dimensions = [], this._model = e, this._indicatorAxes = c(e.getIndicatorModels(), function(e, t) {
|
|
173
|
+
var n = "indicator_" + t, r = new fe(n, new B());
|
|
174
|
+
return r.name = e.get("name"), r.model = e, e.axis = r, this.dimensions.push(n), r;
|
|
175
|
+
}, this), this.resize(e, n);
|
|
176
|
+
}
|
|
177
|
+
return e.prototype.getIndicatorAxes = function() {
|
|
178
|
+
return this._indicatorAxes;
|
|
179
|
+
}, e.prototype.dataToPoint = function(e, t) {
|
|
180
|
+
var n = this._indicatorAxes[t];
|
|
181
|
+
return this.coordToPoint(n.dataToCoord(e), t);
|
|
182
|
+
}, e.prototype.coordToPoint = function(e, t) {
|
|
183
|
+
var n = this._indicatorAxes[t].angle;
|
|
184
|
+
return [this.cx + e * Math.cos(n), this.cy - e * Math.sin(n)];
|
|
185
|
+
}, e.prototype.pointToData = function(e) {
|
|
186
|
+
var t = e[0] - this.cx, n = e[1] - this.cy, r = Math.sqrt(t * t + n * n);
|
|
187
|
+
t /= r, n /= r;
|
|
188
|
+
for (var i = Math.atan2(-n, t), a = Infinity, o, s = -1, c = 0; c < this._indicatorAxes.length; c++) {
|
|
189
|
+
var l = this._indicatorAxes[c], u = Math.abs(i - l.angle);
|
|
190
|
+
u < a && (o = l, s = c, a = u);
|
|
191
|
+
}
|
|
192
|
+
return [s, +(o && o.coordToData(r))];
|
|
193
|
+
}, e.prototype.resize = function(e, n) {
|
|
194
|
+
var r = re(e, n).refContainer, i = e.get("center"), a = e.get("clockwise") || !1, o = Math.min(r.width, r.height) / 2;
|
|
195
|
+
this.cx = C(i[0], r.width) + r.x, this.cy = C(i[1], r.height) + r.y, this.startAngle = e.get("startAngle") * Math.PI / 180;
|
|
196
|
+
var s = e.get("radius");
|
|
197
|
+
(u(s) || t(s)) && (s = [0, s]), this.r0 = C(s[0], o), this.r = C(s[1], o);
|
|
198
|
+
var c = a ? -1 : 1;
|
|
199
|
+
S(this._indicatorAxes, function(e, t) {
|
|
200
|
+
e.setExtent(this.r0, this.r);
|
|
201
|
+
var n = this.startAngle + c * t * Math.PI * 2 / this._indicatorAxes.length;
|
|
202
|
+
n = Math.atan2(Math.sin(n), Math.cos(n)), e.angle = n;
|
|
203
|
+
}, this);
|
|
204
|
+
}, e.prototype.update = function(e, t) {
|
|
205
|
+
var n = this._indicatorAxes, r = this._model, i = ie(r.get("splitNumber"), 5), a = new B();
|
|
206
|
+
a.setExtent(0, i), a.setConfig({ interval: 1 }), S(n, function(e) {
|
|
207
|
+
V(e, 1), W(e, a);
|
|
208
|
+
});
|
|
209
|
+
}, e.prototype.convertToPixel = function(e, t, n) {
|
|
210
|
+
return console.warn("Not implemented."), null;
|
|
211
|
+
}, e.prototype.convertFromPixel = function(e, t, n) {
|
|
212
|
+
return console.warn("Not implemented."), null;
|
|
213
|
+
}, e.prototype.containPoint = function(e) {
|
|
214
|
+
return console.warn("Not implemented."), !1;
|
|
215
|
+
}, e.create = function(t, n) {
|
|
216
|
+
var r = [];
|
|
217
|
+
return t.eachComponent(Y, function(i) {
|
|
218
|
+
var a = new e(i, t, n);
|
|
219
|
+
r.push(a), i.coordinateSystem = a;
|
|
220
|
+
}), t.eachSeriesByType(le, function(e) {
|
|
221
|
+
if (e.get("coordinateSystem") === "radar") {
|
|
222
|
+
var t = e.coordinateSystem = r[e.get("radarIndex") || 0];
|
|
223
|
+
t && S(t.getIndicatorAxes(), function(t) {
|
|
224
|
+
se(t, e, J);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
}), r;
|
|
228
|
+
}, e.dimensions = [], e;
|
|
229
|
+
}();
|
|
230
|
+
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/component/radar/install.js
|
|
231
|
+
function me(e) {
|
|
232
|
+
e.registerCoordinateSystem("radar", pe), e.registerComponentModel(ue), e.registerComponentView(de), e.registerVisual({
|
|
233
|
+
seriesType: "radar",
|
|
234
|
+
reset: function(e) {
|
|
235
|
+
var t = e.getData();
|
|
236
|
+
t.each(function(e) {
|
|
237
|
+
t.setItemVisual(e, "legendIcon", "roundRect");
|
|
238
|
+
}), t.setVisual("legendIcon", "roundRect");
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/chart/radar/backwardCompat.js
|
|
243
|
+
function he(e) {
|
|
244
|
+
var t = e.polar;
|
|
245
|
+
if (t) {
|
|
246
|
+
R(t) || (t = [t]);
|
|
247
|
+
var n = [];
|
|
248
|
+
S(t, function(t, r) {
|
|
249
|
+
t.indicator ? (t.type && !t.shape && (t.shape = t.type), e.radar = e.radar || [], R(e.radar) || (e.radar = [e.radar]), e.radar.push(t)) : n.push(t);
|
|
250
|
+
}), e.polar = n;
|
|
251
|
+
}
|
|
252
|
+
S(e.series, function(e) {
|
|
253
|
+
e && e.type === "radar" && e.polarIndex && (e.radarIndex = e.polarIndex);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/chart/radar/RadarSeries.js
|
|
257
|
+
var Z = "radar", ge = function(e) {
|
|
258
|
+
x(t, e);
|
|
259
|
+
function t() {
|
|
260
|
+
var n = e !== null && e.apply(this, arguments) || this;
|
|
261
|
+
return n.type = t.type, n.hasSymbolVisual = !0, n;
|
|
262
|
+
}
|
|
263
|
+
return t.prototype.init = function(t) {
|
|
264
|
+
e.prototype.init.apply(this, arguments), this.legendVisualProvider = new ce(T(this.getData, this), T(this.getRawData, this));
|
|
265
|
+
}, t.prototype.getInitialData = function(e, t) {
|
|
266
|
+
return G(this, {
|
|
267
|
+
generateCoord: "indicator_",
|
|
268
|
+
generateCoordCount: Infinity
|
|
269
|
+
});
|
|
270
|
+
}, t.prototype.formatTooltip = function(e, t, n) {
|
|
271
|
+
var r = this.getData(), i = this.coordinateSystem.getIndicatorAxes(), a = this.getData().getName(e), o = a === "" ? this.name : a, s = E(this, e);
|
|
272
|
+
return M("section", {
|
|
273
|
+
header: o,
|
|
274
|
+
sortBlocks: !0,
|
|
275
|
+
blocks: c(i, function(t) {
|
|
276
|
+
var n = r.get(r.mapDimension(t.dim), e);
|
|
277
|
+
return M("nameValue", {
|
|
278
|
+
markerType: "subItem",
|
|
279
|
+
markerColor: s,
|
|
280
|
+
name: t.name,
|
|
281
|
+
value: n,
|
|
282
|
+
sortParam: n
|
|
283
|
+
});
|
|
284
|
+
})
|
|
285
|
+
});
|
|
286
|
+
}, t.prototype.getTooltipPosition = function(e) {
|
|
287
|
+
if (e != null) {
|
|
288
|
+
for (var t = this.getData(), n = this.coordinateSystem, r = t.getValues(c(n.dimensions, function(e) {
|
|
289
|
+
return t.mapDimension(e);
|
|
290
|
+
}), e), i = 0, a = r.length; i < a; i++) if (!isNaN(r[i])) {
|
|
291
|
+
var o = n.getIndicatorAxes();
|
|
292
|
+
return n.coordToPoint(o[i].dataToCoord(r[i]), i);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}, t.type = "series." + Z, t.dependencies = ["radar"], t.defaultOption = {
|
|
296
|
+
z: 2,
|
|
297
|
+
colorBy: "data",
|
|
298
|
+
coordinateSystem: "radar",
|
|
299
|
+
legendHoverLink: !0,
|
|
300
|
+
radarIndex: 0,
|
|
301
|
+
lineStyle: {
|
|
302
|
+
width: 2,
|
|
303
|
+
type: "solid",
|
|
304
|
+
join: "round"
|
|
305
|
+
},
|
|
306
|
+
label: { position: "top" },
|
|
307
|
+
symbolSize: 8
|
|
308
|
+
}, t;
|
|
309
|
+
}(j), _e = function(e) {
|
|
310
|
+
x(t, e);
|
|
311
|
+
function t() {
|
|
312
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
313
|
+
return t.type = Z, t;
|
|
314
|
+
}
|
|
315
|
+
return t.prototype.render = function(e, t, i) {
|
|
316
|
+
var a = e.coordinateSystem, l = this.group, u = e.getData(), d = this._data;
|
|
317
|
+
function f(e, t) {
|
|
318
|
+
var r = e.getItemVisual(t, "symbol") || "circle";
|
|
319
|
+
if (r !== "none") {
|
|
320
|
+
var i = n(e.getItemVisual(t, "symbolSize")), a = p(r, -1, -1, 2, 2), o = e.getItemVisual(t, "symbolRotate") || 0;
|
|
321
|
+
return a.attr({
|
|
322
|
+
style: { strokeNoScale: !0 },
|
|
323
|
+
z2: 100,
|
|
324
|
+
scaleX: i[0] / 2,
|
|
325
|
+
scaleY: i[1] / 2,
|
|
326
|
+
rotation: o * Math.PI / 180 || 0
|
|
327
|
+
}), a;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function _(t, n, r, i, a, o) {
|
|
331
|
+
r.removeAll();
|
|
332
|
+
for (var s = 0; s < n.length - 1; s++) {
|
|
333
|
+
var c = f(i, a);
|
|
334
|
+
c && (c.__dimIdx = s, t[s] ? (c.setPosition(t[s]), te[o ? "initProps" : "updateProps"](c, {
|
|
335
|
+
x: n[s][0],
|
|
336
|
+
y: n[s][1]
|
|
337
|
+
}, e, a)) : c.setPosition(n[s]), r.add(c));
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
function v(e) {
|
|
341
|
+
return c(e, function(e) {
|
|
342
|
+
return [a.cx, a.cy];
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
u.diff(d).add(function(t) {
|
|
346
|
+
var n = u.getItemLayout(t);
|
|
347
|
+
if (n) {
|
|
348
|
+
var i = new P(), a = new b(), s = { shape: { points: n } };
|
|
349
|
+
i.shape.points = v(n), a.shape.points = v(n), r(i, s, e, t), r(a, s, e, t);
|
|
350
|
+
var c = new o(), l = new o();
|
|
351
|
+
c.add(a), c.add(i), c.add(l), _(a.shape.points, n, l, u, t, !0), u.setItemGraphicEl(t, c);
|
|
352
|
+
}
|
|
353
|
+
}).update(function(t, n) {
|
|
354
|
+
var r = d.getItemGraphicEl(n), i = r.childAt(0), a = r.childAt(1), o = r.childAt(2), c = { shape: { points: u.getItemLayout(t) } };
|
|
355
|
+
c.shape.points && (_(i.shape.points, c.shape.points, o, u, t, !1), g(a), g(i), s(i, c, e), s(a, c, e), u.setItemGraphicEl(t, r));
|
|
356
|
+
}).remove(function(e) {
|
|
357
|
+
l.remove(d.getItemGraphicEl(e));
|
|
358
|
+
}).execute(), u.eachItemGraphicEl(function(e, t) {
|
|
359
|
+
var n = u.getItemModel(t), r = e.childAt(0), i = e.childAt(1), a = e.childAt(2), o = u.getItemVisual(t, "style"), s = o.fill;
|
|
360
|
+
l.add(e), r.useStyle(D(n.getModel("lineStyle").getLineStyle(), {
|
|
361
|
+
fill: "none",
|
|
362
|
+
stroke: s
|
|
363
|
+
})), z(r, n, "lineStyle"), z(i, n, "areaStyle");
|
|
364
|
+
var c = n.getModel("areaStyle"), d = c.isEmpty() && c.parentModel.isEmpty();
|
|
365
|
+
i.ignore = d, S([
|
|
366
|
+
"emphasis",
|
|
367
|
+
"select",
|
|
368
|
+
"blur"
|
|
369
|
+
], function(e) {
|
|
370
|
+
var t = n.getModel([e, "areaStyle"]), o = t.isEmpty() && t.parentModel.isEmpty();
|
|
371
|
+
i.ensureState(e).ignore = o && d;
|
|
372
|
+
var s = n.getModel([e, "lineStyle"]).getLineStyle();
|
|
373
|
+
r.ensureState(e).style = s;
|
|
374
|
+
var c = t.getAreaStyle();
|
|
375
|
+
i.ensureState(e).style = c;
|
|
376
|
+
var l = n.getModel([e, "itemStyle"]).getItemStyle();
|
|
377
|
+
a.eachChild(function(t) {
|
|
378
|
+
t.ensureState(e).style = L(l);
|
|
379
|
+
});
|
|
380
|
+
}), i.useStyle(D(n.getModel("areaStyle").getAreaStyle(), {
|
|
381
|
+
fill: s,
|
|
382
|
+
opacity: .7,
|
|
383
|
+
decal: o.decal
|
|
384
|
+
}));
|
|
385
|
+
var f = n.getModel("emphasis");
|
|
386
|
+
a.eachChild(function(e) {
|
|
387
|
+
if (e instanceof h) {
|
|
388
|
+
var r = e.style;
|
|
389
|
+
e.useStyle(ee({
|
|
390
|
+
image: r.image,
|
|
391
|
+
x: r.x,
|
|
392
|
+
y: r.y,
|
|
393
|
+
width: r.width,
|
|
394
|
+
height: r.height
|
|
395
|
+
}, o));
|
|
396
|
+
} else e.useStyle(o), e.setColor(s), e.style.strokeNoScale = !0;
|
|
397
|
+
var i = u.getStore().get(u.getDimensionIndex(e.__dimIdx), t);
|
|
398
|
+
(i == null || isNaN(i)) && (i = ""), A(e, F(n), {
|
|
399
|
+
labelFetcher: u.hostModel,
|
|
400
|
+
labelDataIndex: t,
|
|
401
|
+
labelDimIndex: e.__dimIdx,
|
|
402
|
+
defaultText: i,
|
|
403
|
+
inheritColor: s,
|
|
404
|
+
defaultOpacity: o.opacity
|
|
405
|
+
});
|
|
406
|
+
}), m(e, f.get("focus"), f.get("blurScope"), f.get("disabled"));
|
|
407
|
+
}), this._data = u;
|
|
408
|
+
}, t.prototype.remove = function() {
|
|
409
|
+
this.group.removeAll(), this._data = null;
|
|
410
|
+
}, t.type = Z, t;
|
|
411
|
+
}(e), ve = w(Z, ye);
|
|
412
|
+
function ye(e) {
|
|
413
|
+
e.eachSeriesByType(Z, function(e) {
|
|
414
|
+
var t = e.getData(), n = [], r = e.coordinateSystem;
|
|
415
|
+
if (r) {
|
|
416
|
+
var i = r.getIndicatorAxes();
|
|
417
|
+
S(i, function(e, a) {
|
|
418
|
+
t.each(t.mapDimension(i[a].dim), function(e, t) {
|
|
419
|
+
n[t] = n[t] || [];
|
|
420
|
+
var i = r.dataToPoint(e, a);
|
|
421
|
+
n[t][a] = Q(i) ? i : $(r);
|
|
422
|
+
});
|
|
423
|
+
}), t.each(function(e) {
|
|
424
|
+
var i = y(n[e], function(e) {
|
|
425
|
+
return Q(e);
|
|
426
|
+
}) || $(r);
|
|
427
|
+
n[e].push(i.slice()), t.setItemLayout(e, n[e]);
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
function Q(e) {
|
|
433
|
+
return !isNaN(e[0]) && !isNaN(e[1]);
|
|
434
|
+
}
|
|
435
|
+
function $(e) {
|
|
436
|
+
return [e.cx, e.cy];
|
|
437
|
+
}
|
|
438
|
+
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/chart/radar/install.js
|
|
439
|
+
function be(e) {
|
|
440
|
+
N(me), e.registerChartView(_e), e.registerSeriesModel(ge), e.registerLayout(ve), e.registerProcessor(K("radar")), e.registerPreprocessor(he);
|
|
441
|
+
}
|
|
442
|
+
export { be as t };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { O as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import
|
|
10
|
-
import "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as C } from "./points-QJPXYOtn.mjs";
|
|
4
|
+
import { $ as e, Eo as t, Ni as n, Nt as r, Pt as i, R as a, Ta as o, Wi as s, el as c, et as l, ha as u, rt as d, t as f, xs as p, zc as m } from "./extension-CjvfhuOl.mjs";
|
|
5
|
+
import { t as h } from "./createSeriesData-QC-rX5h7.mjs";
|
|
6
|
+
import { O as g } from "./axisHelper-C92zjGrZ.mjs";
|
|
7
|
+
import { n as _ } from "./Axis-BoRILjw6.mjs";
|
|
8
|
+
import { t as v } from "./axisBand-B8HTljY9.mjs";
|
|
9
|
+
import "./GridModel-BOILOnLN.mjs";
|
|
10
|
+
import { a as y, t as b } from "./installSimple-hwzmQHWx.mjs";
|
|
11
|
+
import { t as x } from "./SymbolDraw-aWP4aFcT.mjs";
|
|
12
|
+
import { n as S } from "./createClipPathFromCoordSys-D8WqA4dr.mjs";
|
|
13
|
+
import { t as C } from "./points-D4GPTJUM.mjs";
|
|
15
14
|
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/coord/single/AxisModel.js
|
|
16
15
|
var w = "single", T = "singleAxis", E = "singleAxis", D = function(e) {
|
|
17
|
-
|
|
16
|
+
c(t, e);
|
|
18
17
|
function t() {
|
|
19
18
|
var n = e !== null && e.apply(this, arguments) || this;
|
|
20
19
|
return n.type = t.type, n;
|
|
@@ -57,17 +56,17 @@ var w = "single", T = "singleAxis", E = "singleAxis", D = function(e) {
|
|
|
57
56
|
jitterOverlap: !0,
|
|
58
57
|
jitterMargin: 2
|
|
59
58
|
}, t;
|
|
60
|
-
}(
|
|
61
|
-
|
|
59
|
+
}(i);
|
|
60
|
+
m(D, _.prototype);
|
|
62
61
|
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/chart/scatter/ScatterSeries.js
|
|
63
62
|
var O = function(e) {
|
|
64
|
-
|
|
63
|
+
c(t, e);
|
|
65
64
|
function t() {
|
|
66
65
|
var n = e !== null && e.apply(this, arguments) || this;
|
|
67
66
|
return n.type = t.type, n.hasSymbolVisual = !0, n;
|
|
68
67
|
}
|
|
69
68
|
return t.prototype.getInitialData = function(e, t) {
|
|
70
|
-
return
|
|
69
|
+
return h(null, this, { useEncodeDefaulter: !0 });
|
|
71
70
|
}, t.prototype.getProgressive = function() {
|
|
72
71
|
return this.option.progressive ?? (this.option.large ? 5e3 : this.get("progressive"));
|
|
73
72
|
}, t.prototype.getProgressiveThreshold = function() {
|
|
@@ -93,25 +92,25 @@ var O = function(e) {
|
|
|
93
92
|
itemStyle: { opacity: .8 },
|
|
94
93
|
emphasis: { scale: !0 },
|
|
95
94
|
clip: !0,
|
|
96
|
-
select: { itemStyle: { borderColor:
|
|
95
|
+
select: { itemStyle: { borderColor: r.color.primary } },
|
|
97
96
|
universalTransition: { divideShape: "clone" }
|
|
98
97
|
}, t;
|
|
99
98
|
}(d), k = 4, A = function() {
|
|
100
99
|
function e() {}
|
|
101
100
|
return e;
|
|
102
|
-
}(), j = function(
|
|
103
|
-
|
|
104
|
-
function
|
|
105
|
-
var n =
|
|
101
|
+
}(), j = function(e) {
|
|
102
|
+
c(t, e);
|
|
103
|
+
function t(t) {
|
|
104
|
+
var n = e.call(this, t) || this;
|
|
106
105
|
return n._off = 0, n.hoverDataIdx = -1, n;
|
|
107
106
|
}
|
|
108
|
-
return
|
|
107
|
+
return t.prototype.getDefaultShape = function() {
|
|
109
108
|
return new A();
|
|
110
|
-
},
|
|
109
|
+
}, t.prototype.reset = function() {
|
|
111
110
|
this.notClear = !1, this._off = 0;
|
|
112
|
-
},
|
|
111
|
+
}, t.prototype.beforeBrush = function(e) {
|
|
113
112
|
e && !e.contentRetained && this.reset();
|
|
114
|
-
},
|
|
113
|
+
}, t.prototype.buildPath = function(e, t) {
|
|
115
114
|
var n = t.points, r = t.size, i = this.symbolProxy, a = i.shape, o = e.getContext ? e.getContext() : e, s = o && r[0] < k, c = this.softClipShape, l;
|
|
116
115
|
if (s) this._ctx = o;
|
|
117
116
|
else {
|
|
@@ -121,7 +120,7 @@ var O = function(e) {
|
|
|
121
120
|
}
|
|
122
121
|
this.incremental && (this._off = l, this.notClear = !0);
|
|
123
122
|
}
|
|
124
|
-
},
|
|
123
|
+
}, t.prototype.afterBrush = function() {
|
|
125
124
|
var e = this.shape, t = e.points, n = e.size, r = this._ctx, i = this.softClipShape, a;
|
|
126
125
|
if (r) {
|
|
127
126
|
for (a = this._off; a < t.length;) {
|
|
@@ -130,29 +129,29 @@ var O = function(e) {
|
|
|
130
129
|
}
|
|
131
130
|
this.incremental && (this._off = a, this.notClear = !0);
|
|
132
131
|
}
|
|
133
|
-
},
|
|
132
|
+
}, t.prototype.findDataIndex = function(e, t) {
|
|
134
133
|
for (var n = this.shape, r = n.points, i = n.size, a = Math.max(i[0], 4), o = Math.max(i[1], 4), s = r.length / 2 - 1; s >= 0; s--) {
|
|
135
134
|
var c = s * 2, l = r[c] - a / 2, u = r[c + 1] - o / 2;
|
|
136
135
|
if (e >= l && t >= u && e <= l + a && t <= u + o) return s;
|
|
137
136
|
}
|
|
138
137
|
return -1;
|
|
139
|
-
},
|
|
138
|
+
}, t.prototype.contain = function(e, t) {
|
|
140
139
|
var n = this.transformCoordToLocal(e, t), r = this.getBoundingRect();
|
|
141
140
|
return e = n[0], t = n[1], r.contain(e, t) ? (this.hoverDataIdx = this.findDataIndex(e, t)) >= 0 : (this.hoverDataIdx = -1, !1);
|
|
142
|
-
},
|
|
143
|
-
var
|
|
144
|
-
if (!
|
|
145
|
-
for (var
|
|
146
|
-
var
|
|
147
|
-
|
|
141
|
+
}, t.prototype.getBoundingRect = function() {
|
|
142
|
+
var e = this._rect;
|
|
143
|
+
if (!e) {
|
|
144
|
+
for (var t = this.shape, n = t.points, r = t.size, i = r[0], a = r[1], o = Infinity, s = Infinity, c = -Infinity, l = -Infinity, u = 0; u < n.length;) {
|
|
145
|
+
var d = n[u++], f = n[u++];
|
|
146
|
+
o = Math.min(d, o), c = Math.max(d, c), s = Math.min(f, s), l = Math.max(f, l);
|
|
148
147
|
}
|
|
149
|
-
|
|
148
|
+
e = this._rect = new p(o - i / 2, s - a / 2, c - o + i, l - s + a);
|
|
150
149
|
}
|
|
151
|
-
return
|
|
152
|
-
},
|
|
153
|
-
}(
|
|
150
|
+
return e;
|
|
151
|
+
}, t;
|
|
152
|
+
}(s), M = function() {
|
|
154
153
|
function e() {
|
|
155
|
-
this.group = new
|
|
154
|
+
this.group = new t();
|
|
156
155
|
}
|
|
157
156
|
return e.prototype.updateData = function(e, t) {
|
|
158
157
|
this._clear(), this._data = e;
|
|
@@ -187,21 +186,21 @@ var O = function(e) {
|
|
|
187
186
|
}, e.prototype._create = function() {
|
|
188
187
|
var e = new j({ cursor: "default" });
|
|
189
188
|
return e.ignoreCoarsePointer = !0, this.group.add(e), this._newAdded.push(e), e;
|
|
190
|
-
}, e.prototype._setCommon = function(e, t,
|
|
191
|
-
var
|
|
192
|
-
|
|
193
|
-
var
|
|
194
|
-
e.setShape("size",
|
|
189
|
+
}, e.prototype._setCommon = function(e, t, r) {
|
|
190
|
+
var i = t.hostModel;
|
|
191
|
+
r ||= {};
|
|
192
|
+
var o = t.getVisual("symbolSize");
|
|
193
|
+
e.setShape("size", o instanceof Array ? o : [o, o]), e.softClipShape = r.clipShape || null, e.symbolProxy = a(t.getVisual("symbol"), 0, 0, 0, 0), e.setColor = e.symbolProxy.setColor;
|
|
195
194
|
var s = e.shape.size[0] < k;
|
|
196
|
-
e.useStyle(
|
|
195
|
+
e.useStyle(i.getModel("itemStyle").getItemStyle(s ? [
|
|
197
196
|
"color",
|
|
198
197
|
"shadowBlur",
|
|
199
198
|
"shadowColor"
|
|
200
199
|
] : ["color"]));
|
|
201
200
|
var c = t.getVisual("style"), l = c && c.fill;
|
|
202
201
|
l && e.setColor(l);
|
|
203
|
-
var u =
|
|
204
|
-
u.seriesIndex =
|
|
202
|
+
var u = n(e);
|
|
203
|
+
u.seriesIndex = i.seriesIndex, e.on("mousemove", function(t) {
|
|
205
204
|
u.dataIndex = null;
|
|
206
205
|
var n = e.hoverDataIdx;
|
|
207
206
|
n >= 0 && (u.dataIndex = n + (e.startIndex || 0));
|
|
@@ -212,7 +211,7 @@ var O = function(e) {
|
|
|
212
211
|
this._newAdded = [], this.group.removeAll();
|
|
213
212
|
}, e;
|
|
214
213
|
}(), N = function(e) {
|
|
215
|
-
|
|
214
|
+
c(t, e);
|
|
216
215
|
function t() {
|
|
217
216
|
var n = e !== null && e.apply(this, arguments) || this;
|
|
218
217
|
return n.type = t.type, n;
|
|
@@ -243,7 +242,7 @@ var O = function(e) {
|
|
|
243
242
|
}, t.prototype.remove = function(e, t) {
|
|
244
243
|
this._symbolDraw && this._symbolDraw.remove(!0), this._symbolDraw = null;
|
|
245
244
|
}, t.prototype.dispose = function() {}, t.type = "scatter", t;
|
|
246
|
-
}(
|
|
245
|
+
}(e);
|
|
247
246
|
function P(e) {
|
|
248
247
|
return { clipShape: S(e) };
|
|
249
248
|
}
|
|
@@ -252,12 +251,12 @@ function F(e, t) {
|
|
|
252
251
|
var n = e.coordinateSystem, r = n && n.type, i = n && n.getBaseAxis && n.getBaseAxis(), a = i && i.scale && i.scale.type, o = r === "cartesian2d" && a === "ordinal" || r === "single", s = t.model.get("jitter") > 0;
|
|
253
252
|
return o && s;
|
|
254
253
|
}
|
|
255
|
-
var I =
|
|
254
|
+
var I = o();
|
|
256
255
|
function L(e, t, n, r) {
|
|
257
256
|
if (e instanceof y && e.scale.type !== "ordinal") return n;
|
|
258
257
|
var i = e.model, a = i.get("jitter");
|
|
259
258
|
if (!(a > 0)) return n;
|
|
260
|
-
var o = i.get("jitterOverlap"), s = i.get("jitterMargin") || 0, c =
|
|
259
|
+
var o = i.get("jitterOverlap"), s = i.get("jitterMargin") || 0, c = g(e.scale) ? v(e).w : null;
|
|
261
260
|
return o ? R(n, a, c, r) : z(e, t, n, r, a, s);
|
|
262
261
|
}
|
|
263
262
|
function R(e, t, n, r) {
|
|
@@ -268,7 +267,7 @@ function R(e, t, n, r) {
|
|
|
268
267
|
function z(e, t, n, r, i, a) {
|
|
269
268
|
var o = I(e);
|
|
270
269
|
o.items ||= [];
|
|
271
|
-
var s = o.items, c = B(s, t, n, r, i, a, 1), l = B(s, t, n, r, i, a, -1), u = Math.abs(c - n) < Math.abs(l - n) ? c : l, d =
|
|
270
|
+
var s = o.items, c = B(s, t, n, r, i, a, 1), l = B(s, t, n, r, i, a, -1), u = Math.abs(c - n) < Math.abs(l - n) ? c : l, d = g(e.scale) ? v(e).w : null, f = Math.abs(u - n);
|
|
272
271
|
return f > i / 2 || d && f > d / 2 - r ? R(n, i, d, r) : (s.push({
|
|
273
272
|
fixedCoord: t,
|
|
274
273
|
floatCoord: u,
|
|
@@ -293,7 +292,7 @@ function B(e, t, n, r, i, a, o) {
|
|
|
293
292
|
function V() {
|
|
294
293
|
return {
|
|
295
294
|
seriesType: "scatter",
|
|
296
|
-
plan:
|
|
295
|
+
plan: l(),
|
|
297
296
|
reset: function(e) {
|
|
298
297
|
var t = e.coordinateSystem;
|
|
299
298
|
if (!(!t || t.type !== "cartesian2d" && t.type !== "single")) {
|
|
@@ -322,7 +321,7 @@ function V() {
|
|
|
322
321
|
}
|
|
323
322
|
// ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/chart/scatter/install.js
|
|
324
323
|
function H(e) {
|
|
325
|
-
|
|
324
|
+
f(b), e.registerSeriesModel(O), e.registerChartView(N), e.registerLayout(C("scatter"));
|
|
326
325
|
}
|
|
327
326
|
function U(e) {
|
|
328
327
|
e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT, V());
|