@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.
Files changed (134) hide show
  1. package/dist/{Accordion-ClM-DQNR.mjs → Accordion-HnV7Wa7d.mjs} +1 -1
  2. package/dist/{Axis-so_G8609.mjs → Axis-BoRILjw6.mjs} +25 -25
  3. package/dist/AxisBuilder-CbZA9BA5.mjs +556 -0
  4. package/dist/{AxisView-DbvR7xj2.mjs → AxisView-D1J-Vvd5.mjs} +46 -46
  5. package/dist/{CardChartSlot-WYOoFrPL.mjs → CardChartSlot-xCL70UFF.mjs} +6 -6
  6. package/dist/{Chart-C-M2BAGW.mjs → Chart-C8IUjDZP.mjs} +1249 -1444
  7. package/dist/{ChartTypePanel-CgnH37kj.mjs → ChartTypePanel-D33r24Vx.mjs} +8 -8
  8. package/dist/{CreateGlobalFilter-C9KQALHu.mjs → CreateGlobalFilter-CrZMQyeM.mjs} +2 -2
  9. package/dist/{CreateMetricV2-D669LmPA.mjs → CreateMetricV2-uIc0kSQ_.mjs} +12 -12
  10. package/dist/GridModel-BOILOnLN.mjs +39 -0
  11. package/dist/{HorizontalStackTable-E91Iuyzf.mjs → HorizontalStackTable-B_4q2iBG.mjs} +3 -3
  12. package/dist/{LineDraw-QEq0LGiV.mjs → LineDraw-C5CPD2fu.mjs} +75 -75
  13. package/dist/{ManageMetricsV2-C1d5KU_f.mjs → ManageMetricsV2-iTJys95Q.mjs} +3 -3
  14. package/dist/{MetricCardV2-C2eYo3s-.mjs → MetricCardV2-CBXvGrxI.mjs} +7 -7
  15. package/dist/{NoDataFound-ChW4me5m.mjs → NoDataFound-dLuw3_8M.mjs} +1 -1
  16. package/dist/{Panel-OH_Kxefy.mjs → Panel-DbS03Fa_.mjs} +1 -1
  17. package/dist/{PivotTableV2-D0GqqiiM.mjs → PivotTableV2-BGeyDx2h.mjs} +2 -2
  18. package/dist/{PivotTableV3-BdO_u5WS.mjs → PivotTableV3-q9Gs3DAq.mjs} +4 -4
  19. package/dist/{Portal-CV_NrBJ-.mjs → Portal-DSSDhg1M.mjs} +59 -59
  20. package/dist/{RadioButton-CVv2WrAN.mjs → RadioButton-DY7YeYgN.mjs} +1 -1
  21. package/dist/{RoamController-Dg9XZMbv.mjs → RoamController-kkduqIGv.mjs} +27 -27
  22. package/dist/{ScheduleEmail-BMgGc98g.mjs → ScheduleEmail-CRzbBNyX.mjs} +6 -6
  23. package/dist/{SearchMetricData-IL8DdG5T.mjs → SearchMetricData-Ba-UG9Xi.mjs} +162 -162
  24. package/dist/{SeriesData-BiofVRKp.mjs → SeriesData-t2ZM93xe.mjs} +153 -153
  25. package/dist/{SeriesDataSchema-DsLx8ATY.mjs → SeriesDataSchema-DbWmjBHq.mjs} +3 -3
  26. package/dist/{SortPanel-CsY3Go6z.mjs → SortPanel-CM4XEYFx.mjs} +10 -10
  27. package/dist/{SymbolDraw-B7bsdOGh.mjs → SymbolDraw-aWP4aFcT.mjs} +77 -77
  28. package/dist/{Table-V9qwq_A-.mjs → Table-CDvOpuYe.mjs} +249 -241
  29. package/dist/{TagInputField-BXcyiOOC.mjs → TagInputField-fGfjlIAp.mjs} +4 -4
  30. package/dist/{TextAreaField-Bg-Mn1xZ.mjs → TextAreaField-BdQ1n88e.mjs} +2 -2
  31. package/dist/{TimeSeriesSettings-DEBOcjxj.mjs → TimeSeriesSettings-BbF-feiK.mjs} +2 -2
  32. package/dist/View-HJXsM1pX.mjs +196 -0
  33. package/dist/{VisualMapping-C4H6uMDK.mjs → VisualMapping-BEacOIdS.mjs} +77 -77
  34. package/dist/{arrayToCsvString-D9jRf3H1.mjs → arrayToCsvString-Rjim3CLj.mjs} +1 -1
  35. package/dist/{axisAlignTicks-CA9tHLzi.mjs → axisAlignTicks-BDCH2l76.mjs} +21 -21
  36. package/dist/axisBand-B8HTljY9.mjs +434 -0
  37. package/dist/{axisDefault-nEWLSKin.mjs → axisDefault-BfDTCeDW.mjs} +12 -12
  38. package/dist/{axisHelper-B4ygrEAu.mjs → axisHelper-C92zjGrZ.mjs} +267 -267
  39. package/dist/{axisNiceTicks-ClubN7Tk.mjs → axisNiceTicks-DlIPQ7Bu.mjs} +13 -13
  40. package/dist/{bar-BB2qrFDC.mjs → bar-Dnd6DMeI.mjs} +2 -2
  41. package/dist/{barCommon-BArELGTY.mjs → barCommon--mFXSMxr.mjs} +14 -14
  42. package/dist/{barGrid-_f2rVIut.mjs → barGrid-BnZ3vF37.mjs} +36 -36
  43. package/dist/{base-Dsk4fQ1B.mjs → base-CqKr_o6m.mjs} +3 -3
  44. package/dist/{canvas-B9V5aHe8.mjs → canvas-MlE3EEgP.mjs} +2 -2
  45. package/dist/canvasLetterSpacing-C1X0nr1A.mjs +59 -0
  46. package/dist/canvasTeardown-BZnfPMIf.mjs +261 -0
  47. package/dist/{cardQueryError-DY_ZJaeH.mjs → cardQueryError-BvdXcZWj.mjs} +10 -10
  48. package/dist/{cartesianAxisHelper-DoeSPDFx.mjs → cartesianAxisHelper-Cj6QbGbq.mjs} +3 -3
  49. package/dist/{charts-DLkGIf3C.mjs → charts-TEuh7DBS.mjs} +1580 -1546
  50. package/dist/{conditionalFormatting-C-FdJ4PG.mjs → conditionalFormatting-jiDCWhx5.mjs} +1 -1
  51. package/dist/{createClipPathFromCoordSys-B4vAGE8Z.mjs → createClipPathFromCoordSys-D8WqA4dr.mjs} +13 -13
  52. package/dist/createDimensions-CnmSLhmZ.mjs +104 -0
  53. package/dist/{createGlobalFilter.module-Q1baYqNl.mjs → createGlobalFilter.module-BSLkPq6G.mjs} +1 -1
  54. package/dist/{createGraphFromNodeEdge-7WyfkrBe.mjs → createGraphFromNodeEdge-DCo8LkEe.mjs} +39 -39
  55. package/dist/createSeriesData-QC-rX5h7.mjs +101 -0
  56. package/dist/{createSeriesDataSimply-BxdEaPVX.mjs → createSeriesDataSimply-CKTp_DsX.mjs} +4 -4
  57. package/dist/{custom-DcvwBVj2.mjs → custom-DsYOLaUK.mjs} +2 -2
  58. package/dist/customGraphicKeyframeAnimation-Cfq3Ya3a.mjs +299 -0
  59. package/dist/data.cjs +1 -1
  60. package/dist/data.mjs +1 -1
  61. package/dist/{dataSample-Bp4H9kbC.mjs → dataSample-Cv8KVcHp.mjs} +2 -2
  62. package/dist/{dataStackHelper-8xSjPoGY.mjs → dataStackHelper-plaarSse.mjs} +2 -2
  63. package/dist/{echarts-CAoS6aE4.mjs → echarts-DSP9q-oP.mjs} +1596 -1596
  64. package/dist/{echarts-B6T0U8q9.mjs → extension-CjvfhuOl.mjs} +2460 -2415
  65. package/dist/{option-BVCp3H01.mjs → format-BdG1uTDw.mjs} +493 -463
  66. package/dist/{funnel-BPyzsZSL.mjs → funnel-BqvvHgIV.mjs} +2 -2
  67. package/dist/{gauge-3Wvva_32.mjs → gauge-D5uVlOTf.mjs} +2 -2
  68. package/dist/{graph-CExwwYVH.mjs → graph-D1H_pveT.mjs} +2 -2
  69. package/dist/{install-D5AxiliG.mjs → install-B2u2WICp.mjs} +249 -249
  70. package/dist/install-C94jvAIB.mjs +370 -0
  71. package/dist/{install-B1TqspfL.mjs → install-CD_nJllF.mjs} +151 -151
  72. package/dist/{install-DeQuODXS.mjs → install-CVI7EngB.mjs} +183 -183
  73. package/dist/{install-BWNipZtL.mjs → install-ClLUQImW.mjs} +164 -164
  74. package/dist/{install-BcuG0TzG.mjs → install-CqGJAjtU.mjs} +205 -205
  75. package/dist/{install-COuvnLYq.mjs → install-CqpZdmUs.mjs} +224 -225
  76. package/dist/{install-B35NwG74.mjs → install-CwLVKiaI.mjs} +448 -627
  77. package/dist/{install-fUIPAUHh.mjs → install-CxIyDAbo.mjs} +142 -142
  78. package/dist/install-D-uyYxzt.mjs +442 -0
  79. package/dist/{install-g1WKebGq.mjs → install-DxzoEvqo.mjs} +53 -54
  80. package/dist/{install-BOqmfLSu.mjs → install-UQOuGZ-3.mjs} +156 -156
  81. package/dist/install-YalZg5OB.mjs +208 -0
  82. package/dist/{install-COgFGhU1.mjs → install-gJJR8ost.mjs} +185 -185
  83. package/dist/{installCanvasRenderer-DZQl9WUm.mjs → installCanvasRenderer-CdQICtMz.mjs} +148 -148
  84. package/dist/installSVGRenderer-CM4phOH5.mjs +788 -0
  85. package/dist/installSimple-hwzmQHWx.mjs +562 -0
  86. package/dist/labelGuideHelper-Biiy5GEO.mjs +211 -0
  87. package/dist/{labelHelper-CWf3lqtb.mjs → labelHelper-CK2wFnD2.mjs} +9 -9
  88. package/dist/{labelLayoutHelper-gSQ2wxVR.mjs → labelLayoutHelper-BGT4km6s.mjs} +16 -16
  89. package/dist/{legacyContainLabel-C2O3qS_C.mjs → legacyContainLabel-BPPdU-_P.mjs} +1057 -1058
  90. package/dist/{line-Biu-eHDy.mjs → line-Bz3suzTe.mjs} +2 -2
  91. package/dist/{linkSeriesData-CmdFbU_o.mjs → linkSeriesData-oLBZWXeI.mjs} +15 -15
  92. package/dist/{metric.mutation-GQtohk1S.mjs → metric.mutation-Bp6C-gnS.mjs} +1 -1
  93. package/dist/parseGeoJson-CL1oJAFU.mjs +185 -0
  94. package/dist/{permissions-CH-WGA_H.mjs → permissions-RytJG009.mjs} +5 -5
  95. package/dist/{pie-BSGwMlDv.mjs → pie-8bHZZWij.mjs} +2 -2
  96. package/dist/{pluginV3Request-CCcbgHOL.mjs → pluginV3Request-B6J1iWdo.mjs} +1 -1
  97. package/dist/{points-QJPXYOtn.mjs → points-D4GPTJUM.mjs} +3 -3
  98. package/dist/{polar-DF62ToTw.mjs → polar-CDByVeuT.mjs} +2 -2
  99. package/dist/{radar-DUrDFixH.mjs → radar-Cm_0Z4n_.mjs} +2 -2
  100. package/dist/{renderer-CbYNXUJq.mjs → renderer-BC0h-JPJ.mjs} +2 -2
  101. package/dist/{roamHelper-CcGUDlj6.mjs → roamHelper-CfJQ0V8o.mjs} +15 -15
  102. package/dist/{sankey-DQjq16w_.mjs → sankey-B-88mGB1.mjs} +2 -2
  103. package/dist/{sausage-CnA_7NXH.mjs → sausage-MJyh9DcM.mjs} +1 -1
  104. package/dist/{scatter-Z9iXDwaa.mjs → scatter-CXYREtPk.mjs} +2 -2
  105. package/dist/{sectorHelper-BYk-RZi8.mjs → sectorHelper-BrGpww5p.mjs} +4 -4
  106. package/dist/{svg-BqqDtKe2.mjs → svg-BpzO9oa-.mjs} +2 -2
  107. package/dist/{theme-Cy9b23sj.mjs → theme-BYHowFGG.mjs} +137 -135
  108. package/dist/{timeseries-CDZ2lqd0.mjs → timeseries-D1_Havul.mjs} +1911 -1939
  109. package/dist/{toTasteAppearance-CcICPHaj.mjs → toTasteAppearance-DdC9S4xx.mjs} +13 -13
  110. package/dist/{treemap-C3cV5Iw-.mjs → treemap-BGu5cKFF.mjs} +2 -2
  111. package/dist/{useGuesTokenUsageLog-x2sDutRn.mjs → useGuesTokenUsageLog-BDOlwCKi.mjs} +1 -1
  112. package/dist/{usePublishArchivedMetrics-DJKjX-SL.mjs → usePublishArchivedMetrics-B9KYUf2j.mjs} +2 -2
  113. package/dist/{useQuery-wLcZUjCm.mjs → useQuery-8yPFyxSa.mjs} +1 -1
  114. package/dist/{vendor-Bq_K9DdP.mjs → vendor-BesI8vuE.mjs} +1 -1
  115. package/dist/webcomponents.css +1 -1
  116. package/dist/webcomponents.es.js +1487 -1460
  117. package/dist/webcomponents.umd.js +194 -184
  118. package/package.json +1 -1
  119. package/types/publicTypes.d.ts +4 -3
  120. package/dist/AxisBuilder-CIEw0VKH.mjs +0 -556
  121. package/dist/GridModel-DpfhksE5.mjs +0 -39
  122. package/dist/View-DuNXbS5E.mjs +0 -196
  123. package/dist/axisBand-CqPMsaju.mjs +0 -434
  124. package/dist/canvasTeardown-U1wBiiCe.mjs +0 -65
  125. package/dist/createDimensions-DYZprUlh.mjs +0 -104
  126. package/dist/createSeriesData-SCJKaSQ2.mjs +0 -101
  127. package/dist/customGraphicKeyframeAnimation-C5rfpbhk.mjs +0 -299
  128. package/dist/extension-dPyu9HSg.mjs +0 -52
  129. package/dist/install-DJXWoot7.mjs +0 -208
  130. package/dist/install-YCJIpIX5.mjs +0 -443
  131. package/dist/install-jnjEqKhO.mjs +0 -370
  132. package/dist/installSVGRenderer-DWwkDWs9.mjs +0 -788
  133. package/dist/installSimple-B0ty1uQ7.mjs +0 -562
  134. package/dist/labelGuideHelper-JZN7_bZa.mjs +0 -211
@@ -1,562 +0,0 @@
1
- import "react";
2
- import "react-dom";
3
- import "react-dom/client";
4
- import { Bt as e, Cc as t, Cr as n, Cs as r, Ea as i, Ec as a, Fr as o, Ft as s, Gt as c, Ic as l, Js as u, Kc as d, Nc as f, Oo as p, Ps as m, Qt as h, Rc as g, Sc as _, Un as v, Vc as y, _o as b, co as x, ei as S, gc as C, gr as w, mc as T, nl as E, nt as ee, oa as D, or as O, sr as k, vc as A, wc as j, xc as te, yc as ne, zi as M } from "./echarts-B6T0U8q9.mjs";
5
- import { n as re } from "./SeriesDataSchema-DsLx8ATY.mjs";
6
- import { N as ie, O as ae, T as oe, c as se, d as ce, l as le, m as N, n as ue, p as de, s as fe, t as pe, u as P } from "./axisHelper-B4ygrEAu.mjs";
7
- import { n as me, t as he } from "./Axis-so_G8609.mjs";
8
- import { d as ge, f as F, n as I, u as _e } from "./axisBand-CqPMsaju.mjs";
9
- import { t as L } from "./axisNiceTicks-ClubN7Tk.mjs";
10
- import { i as ve, n as ye, r as R, t as z } from "./GridModel-DpfhksE5.mjs";
11
- import { a as be, i as xe, n as Se, r as Ce, u as we } from "./AxisBuilder-CIEw0VKH.mjs";
12
- import { a as B, t as Te } from "./AxisView-DbvR7xj2.mjs";
13
- import { n as Ee, o as De, t as Oe } from "./cartesianAxisHelper-DoeSPDFx.mjs";
14
- import { t as ke } from "./axisAlignTicks-CA9tHLzi.mjs";
15
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/coord/cartesian/AxisModel.js
16
- var V = function(e) {
17
- E(t, e);
18
- function t() {
19
- return e !== null && e.apply(this, arguments) || this;
20
- }
21
- return t.prototype.getCoordSysModel = function() {
22
- return this.getReferringComponents("grid", D).models[0];
23
- }, t.type = "cartesian2dAxis", t;
24
- }(s);
25
- y(V, me);
26
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/coord/cartesian/Cartesian.js
27
- var Ae = function() {
28
- function e(e) {
29
- this.type = "cartesian", this._dimList = [], this._axes = {}, this.name = e || "";
30
- }
31
- return e.prototype.getAxis = function(e) {
32
- return this._axes[e];
33
- }, e.prototype.getAxes = function() {
34
- return g(this._dimList, function(e) {
35
- return this._axes[e];
36
- }, this);
37
- }, e.prototype.getAxesByScale = function(e) {
38
- return e = e.toLowerCase(), te(this.getAxes(), function(t) {
39
- return t.scale.type === e;
40
- });
41
- }, e.prototype.addAxis = function(e) {
42
- var t = e.dim;
43
- this._axes[t] = e, this._dimList.push(t);
44
- }, e;
45
- }(), H = ["x", "y"];
46
- function U(e) {
47
- return (e.type === "interval" || e.type === "time") && !v(e);
48
- }
49
- var je = function(e) {
50
- E(t, e);
51
- function t() {
52
- var t = e !== null && e.apply(this, arguments) || this;
53
- return t.type = z, t.dimensions = H, t;
54
- }
55
- return t.prototype.calcAffineTransform = function() {
56
- this._transform = this._invTransform = null;
57
- var e = this.getAxis("x").scale, t = this.getAxis("y").scale;
58
- if (U(e) && U(t)) {
59
- var n = ie(e, null), r = ie(t, null), i = this.dataToPoint([n[0], r[0]]), a = this.dataToPoint([n[1], r[1]]), o = n[1] - n[0], s = r[1] - r[0];
60
- if (o && s) {
61
- var c = (a[0] - i[0]) / o, l = (a[1] - i[1]) / s, u = i[0] - n[0] * c, d = i[1] - r[0] * l, f = this._transform = [
62
- c,
63
- 0,
64
- 0,
65
- l,
66
- u,
67
- d
68
- ];
69
- this._invTransform = m([], f);
70
- }
71
- }
72
- }, t.prototype.getBaseAxis = function() {
73
- return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x");
74
- }, t.prototype.containPoint = function(e) {
75
- var t = this.getAxis("x"), n = this.getAxis("y");
76
- return t.contain(t.toLocalCoord(e[0])) && n.contain(n.toLocalCoord(e[1]));
77
- }, t.prototype.containData = function(e) {
78
- return this.getAxis("x").containData(e[0]) && this.getAxis("y").containData(e[1]);
79
- }, t.prototype.containZone = function(e, t) {
80
- var n = this.dataToPoint(e), i = this.dataToPoint(t), a = this.getArea(), o = new r(n[0], n[1], i[0] - n[0], i[1] - n[1]);
81
- return a.intersect(o);
82
- }, t.prototype.dataToPoint = function(e, t, n) {
83
- n ||= [];
84
- var r = e[0], i = e[1];
85
- if (this._transform && r != null && isFinite(r) && i != null && isFinite(i)) return u(n, e, this._transform);
86
- var a = this.getAxis("x"), o = this.getAxis("y");
87
- return n[0] = a.toGlobalCoord(a.dataToCoord(r, t)), n[1] = o.toGlobalCoord(o.dataToCoord(i, t)), n;
88
- }, t.prototype.clampData = function(e, t) {
89
- var n = this.getAxis("x").scale, r = this.getAxis("y").scale, i = n.getExtent(), a = r.getExtent(), o = n.parse(e[0]), s = r.parse(e[1]);
90
- return t ||= [], t[0] = Math.min(Math.max(Math.min(i[0], i[1]), o), Math.max(i[0], i[1])), t[1] = Math.min(Math.max(Math.min(a[0], a[1]), s), Math.max(a[0], a[1])), t;
91
- }, t.prototype.pointToData = function(e, t, n) {
92
- if (n ||= [], this._invTransform) return u(n, e, this._invTransform);
93
- var r = this.getAxis("x"), i = this.getAxis("y");
94
- return n[0] = r.coordToData(r.toLocalCoord(e[0]), t), n[1] = i.coordToData(i.toLocalCoord(e[1]), t), n;
95
- }, t.prototype.getOtherAxis = function(e) {
96
- return this.getAxis(e.dim === "x" ? "y" : "x");
97
- }, t.prototype.getArea = function(e) {
98
- e ||= 0;
99
- var t = this.getAxis("x").getGlobalExtent(), n = this.getAxis("y").getGlobalExtent(), i = Math.min(t[0], t[1]) - e, a = Math.min(n[0], n[1]) - e, o = Math.max(t[0], t[1]) - i + e, s = Math.max(n[0], n[1]) - a + e;
100
- return new r(i, a, o, s);
101
- }, t;
102
- }(Ae), W = function(e) {
103
- E(t, e);
104
- function t(t, n, r, i, a) {
105
- var o = e.call(this, t, n, r) || this;
106
- return o.index = 0, o.type = i || "value", o.position = a || "bottom", o;
107
- }
108
- return t.prototype.isHorizontal = function() {
109
- var e = this.position;
110
- return e === "top" || e === "bottom";
111
- }, t.prototype.getGlobalExtent = function(e) {
112
- var t = this.getExtent();
113
- return t[0] = this.toGlobalCoord(t[0]), t[1] = this.toGlobalCoord(t[1]), e && t[0] > t[1] && t.reverse(), t;
114
- }, t.prototype.pointToData = function(e, t) {
115
- return this.coordToData(this.toLocalCoord(e[this.dim === "x" ? 0 : 1]), t);
116
- }, t.prototype.setCategorySortInfo = function(e) {
117
- if (this.type !== "category") return !1;
118
- this.model.option.categorySortInfo = e, this.scale.setSortInfo(e);
119
- }, t;
120
- }(he), G = [[3, 1], [0, 2]], Me = function() {
121
- function t(e, t, n) {
122
- this.type = "grid", this._coordsMap = {}, this._coordsList = [], this._axesMap = {}, this._axesList = [], this.axisPointerEnabled = !0, this.dimensions = H, this._initCartesian(e, t, n), this.model = e;
123
- }
124
- return t.prototype.getRect = function() {
125
- return this._rect;
126
- }, t.prototype.update = function(e, t) {
127
- var n = this._axesMap;
128
- A(this._axesList, function(e) {
129
- _e(e, 1);
130
- var t = e.scale;
131
- ae(t) && t.setSortInfo(e.model.get("categorySortInfo"));
132
- });
133
- function r(e) {
134
- for (var t = l(e), n = [], r = t.length - 1; r >= 0; r--) {
135
- var i = e[+t[r]];
136
- i.__alignTo ? n.push(i) : L(i);
137
- }
138
- A(n, function(e) {
139
- Pe(e, e.__alignTo) ? L(e) : ke(e, e.__alignTo.scale);
140
- });
141
- }
142
- r(n.x), r(n.y);
143
- var i = {};
144
- A(n.x, function(e) {
145
- K(n, "y", e, i);
146
- }), A(n.y, function(e) {
147
- K(n, "x", e, i);
148
- }), this.resize(this.model, t);
149
- }, t.prototype.resize = function(t, n, r) {
150
- var i = e(t, n), a = this._rect = c(t.getBoxLayoutParams(), i.refContainer), o = this._axesMap, s = this._coordsList, l = t.get("containLabel");
151
- if (Y(o, a), !r) {
152
- var u = ze(a, s, o, l, n), d = void 0;
153
- if (l) X ? (X(this._axesList, a), Y(o, a)) : d = Re(a.clone(), "axisLabel", null, a, o, u, i);
154
- else {
155
- var f = Ve(t, a, i), p = f.outerBoundsRect, m = f.parsedOuterBoundsContain, h = f.outerBoundsClamp;
156
- p && (d = Re(p, m, h, a, o, u, i));
157
- }
158
- Be(a, o, I.determine, null, d, i), A(this._coordsList, function(e) {
159
- e.calcAffineTransform();
160
- });
161
- }
162
- }, t.prototype.getAxis = function(e, t) {
163
- var n = this._axesMap[e];
164
- if (n != null) return n[t || 0];
165
- }, t.prototype.getAxes = function() {
166
- return this._axesList.slice();
167
- }, t.prototype.getCartesian = function(e, t) {
168
- if (e != null && t != null) {
169
- var n = "x" + e + "y" + t;
170
- return this._coordsMap[n];
171
- }
172
- f(e) && (t = e.yAxisIndex, e = e.xAxisIndex);
173
- for (var r = 0, i = this._coordsList; r < i.length; r++) if (i[r].getAxis("x").index === e || i[r].getAxis("y").index === t) return i[r];
174
- }, t.prototype.getCartesians = function() {
175
- return this._coordsList.slice();
176
- }, t.prototype.convertToPixel = function(e, t, n) {
177
- var r = this._findConvertTarget(t);
178
- return r.cartesian ? r.cartesian.dataToPoint(n) : r.axis ? r.axis.toGlobalCoord(r.axis.dataToCoord(n)) : null;
179
- }, t.prototype.convertFromPixel = function(e, t, n) {
180
- var r = this._findConvertTarget(t);
181
- return r.cartesian ? r.cartesian.pointToData(n) : r.axis ? r.axis.coordToData(r.axis.toLocalCoord(n)) : null;
182
- }, t.prototype._findConvertTarget = function(e) {
183
- var t = e.seriesModel, n = e.xAxisModel || t && t.getReferringComponents("xAxis", D).models[0], r = e.yAxisModel || t && t.getReferringComponents("yAxis", D).models[0], i = e.gridModel, a = this._coordsList, o, s;
184
- return t ? (o = t.coordinateSystem, j(a, o) < 0 && (o = null)) : n && r ? o = this.getCartesian(n.componentIndex, r.componentIndex) : n ? s = this.getAxis("x", n.componentIndex) : r ? s = this.getAxis("y", r.componentIndex) : i && i.coordinateSystem === this && (o = this._coordsList[0]), {
185
- cartesian: o,
186
- axis: s
187
- };
188
- }, t.prototype.containPoint = function(e) {
189
- var t = this._coordsList[0];
190
- if (t) return t.containPoint(e);
191
- }, t.prototype._initCartesian = function(e, t, n) {
192
- var r = this, i = this, a = {
193
- left: !1,
194
- right: !1,
195
- top: !1,
196
- bottom: !1
197
- }, o = {
198
- x: {},
199
- y: {}
200
- }, s = {
201
- x: 0,
202
- y: 0
203
- };
204
- if (t.eachComponent("xAxis", c("x"), this), t.eachComponent("yAxis", c("y"), this), !s.x || !s.y) {
205
- this._axesMap = {}, this._axesList = [];
206
- return;
207
- }
208
- this._axesMap = o, A(o.x, function(t, n) {
209
- A(o.y, function(i, a) {
210
- var o = "x" + n + "y" + a, s = new je(o);
211
- s.master = r, s.model = e, r._coordsMap[o] = s, r._coordsList.push(s), s.addAxis(t), s.addAxis(i);
212
- });
213
- }), J(o.x), J(o.y);
214
- function c(t) {
215
- return function(n, r) {
216
- if (Ne(n, e)) {
217
- var c = n.get("position");
218
- t === "x" ? c !== "top" && c !== "bottom" && (c = a.bottom ? "top" : "bottom") : c !== "left" && c !== "right" && (c = a.left ? "right" : "left"), a[c] = !0;
219
- var l = ue(n), u = new W(t, pe(n, l, !0), [0, 0], l, c);
220
- u.onBand = le(u.scale, n), u.inverse = n.get("inverse"), n.axis = u, u.model = n, u.grid = i, u.index = r, i._axesList.push(u), o[t][r] = u, s[t]++;
221
- }
222
- };
223
- }
224
- }, t.prototype.getTooltipAxes = function(e) {
225
- var t = [], n = [];
226
- return A(this.getCartesians(), function(r) {
227
- var i = e != null && e !== "auto" ? r.getAxis(e) : r.getBaseAxis(), a = r.getOtherAxis(i);
228
- j(t, i) < 0 && t.push(i), j(n, a) < 0 && n.push(a);
229
- }), {
230
- baseAxes: t,
231
- otherAxes: n
232
- };
233
- }, t.create = function(e, n) {
234
- var r = [];
235
- return e.eachComponent("grid", function(i, a) {
236
- var o = new t(i, e, n);
237
- o.name = "grid_" + a, o.resize(i, n, !0), i.coordinateSystem = o, r.push(o), A(o._axesList, function(e) {
238
- ge(e, t.dimIdxMap);
239
- });
240
- }), e.eachSeries(function(e) {
241
- var t, n;
242
- h({
243
- targetModel: e,
244
- coordSysType: z,
245
- coordSysProvider: r
246
- });
247
- function r() {
248
- var r = Ee(e), i = r.xAxisModel, a = r.yAxisModel;
249
- return t = i.axis, n = a.axis, i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex, a.componentIndex);
250
- }
251
- t && n && (F(t, e, z), F(n, e, z));
252
- }, this), r;
253
- }, t.dimensions = H, t.dimIdxMap = re(H), t;
254
- }();
255
- function Ne(e, t) {
256
- return e.getCoordSysModel() === t;
257
- }
258
- function K(e, n, r, i) {
259
- r.getAxesOnZeroOf = function() {
260
- return o ? [o] : [];
261
- };
262
- var a = e[n], o, s = r.model, c = s.get(["axisLine", "onZero"]), l = s.get(["axisLine", "onZeroAxisIndex"]);
263
- if (!c) return;
264
- if (l != null) q(c, a[l]) && (o = a[l]);
265
- else for (var u in a) if (t(a, u) && q(c, a[u]) && !i[d(a[u])]) {
266
- o = a[u];
267
- break;
268
- }
269
- o && (i[d(o)] = !0);
270
- function d(e) {
271
- return e.dim + "_" + e.index;
272
- }
273
- }
274
- function q(e, t) {
275
- if (!t) return !1;
276
- var n = t.scale, r = fe(n, 0, !1), i = t && t.type !== "category" && t.type !== "time" && r !== 3;
277
- return i && e === "auto" && ce(t) && (i = !1), i;
278
- }
279
- function J(e) {
280
- for (var t = l(e), n, r = [], i = t.length - 1; i >= 0; i--) {
281
- var a = e[+t[i]];
282
- oe(a.scale) && de(a.model, a.type, !0) == null && (a.model.get("alignTicks") && a.model.get("interval") == null ? r.push(a) : n = a);
283
- }
284
- n ||= r.pop(), n && A(r, function(e) {
285
- e.__alignTo = n;
286
- });
287
- }
288
- function Pe(e, t) {
289
- return v(e.scale) || v(t.scale) || t.scale.getTicks().length < 2;
290
- }
291
- function Fe(e, t) {
292
- var n = e.getExtent(), r = n[0] + n[1];
293
- e.toGlobalCoord = e.dim === "x" ? function(e) {
294
- return e + t;
295
- } : function(e) {
296
- return r - e + t;
297
- }, e.toLocalCoord = e.dim === "x" ? function(e) {
298
- return e - t;
299
- } : function(e) {
300
- return r - e + t;
301
- };
302
- }
303
- function Y(e, t) {
304
- A(e.x, function(e) {
305
- return Ie(e, t.x, t.width);
306
- }), A(e.y, function(e) {
307
- return Ie(e, t.y, t.height);
308
- });
309
- }
310
- function Ie(e, t, n) {
311
- var r = [0, n], i = +!!e.inverse;
312
- e.setExtent(r[i], r[1 - i]), Fe(e, t);
313
- }
314
- var X;
315
- function Le(e) {
316
- X = e;
317
- }
318
- function Re(e, t, n, r, i, a, o) {
319
- Be(r, i, I.estimate, t, !1, o);
320
- var s = [
321
- 0,
322
- 0,
323
- 0,
324
- 0
325
- ];
326
- l(0), l(1), u(r, 0, NaN), u(r, 1, NaN);
327
- var c = _(s, function(e) {
328
- return e > 0;
329
- }) == null;
330
- return w(r, s, !0, !0, n), Y(i, r), c;
331
- function l(e) {
332
- A(i[k[e]], function(t) {
333
- if (N(t.model)) {
334
- var n = a.ensureRecord(t.model), r = n.labelInfoList;
335
- if (r) for (var i = 0; i < r.length; i++) {
336
- var o = r[i], s = t.scale.normalize(se(t.scale, Ce(o.label).labelInfo.tick));
337
- s = e === 1 ? 1 - s : s, u(o.rect, e, s), u(o.rect, 1 - e, NaN);
338
- }
339
- var c = n.nameLayout;
340
- if (c) {
341
- var s = P(n.nameLocation) ? .5 : NaN;
342
- u(c.rect, e, s), u(c.rect, 1 - e, NaN);
343
- }
344
- }
345
- });
346
- }
347
- function u(t, n, r) {
348
- var i = e[k[n]] - t[k[n]], a = t[O[n]] + t[k[n]] - (e[O[n]] + e[k[n]]);
349
- i = d(i, 1 - r), a = d(a, r);
350
- var o = G[n][0], c = G[n][1];
351
- s[o] = x(s[o], i), s[c] = x(s[c], a);
352
- }
353
- function d(e, t) {
354
- return e > 0 && !ne(t) && t > 1e-4 && (e /= t), e;
355
- }
356
- }
357
- function ze(e, t, n, r, i) {
358
- var a = new Se(He);
359
- return A(n, function(n) {
360
- return A(n, function(n) {
361
- if (N(n.model)) {
362
- var o = !r;
363
- n.axisBuilder = Oe(e, t, n.model, i, a, o);
364
- }
365
- });
366
- }), a;
367
- }
368
- function Be(e, t, n, r, i, a) {
369
- var o = n === I.determine;
370
- A(t, function(t) {
371
- return A(t, function(t) {
372
- N(t.model) && (De(t.axisBuilder, e, t.model), t.axisBuilder.build(o ? { axisTickLabelDetermine: !0 } : { axisTickLabelEstimate: !0 }, { noPxChange: i }));
373
- });
374
- });
375
- var s = {
376
- x: 0,
377
- y: 0
378
- };
379
- c(0), c(1);
380
- function c(t) {
381
- s[k[1 - t]] = e[O[t]] <= a.refContainer[O[t]] * .5 ? 0 : 1 - t == 1 ? 2 : 1;
382
- }
383
- A(t, function(e, t) {
384
- return A(e, function(e) {
385
- N(e.model) && ((r === "all" || o) && e.axisBuilder.build({ axisName: !0 }, { nameMarginLevel: s[t] }), o && e.axisBuilder.build({ axisLine: !0 }));
386
- });
387
- });
388
- }
389
- function Ve(e, t, n) {
390
- var r, i = e.get("outerBoundsMode", !0);
391
- i === "same" ? r = t.clone() : (i == null || i === "auto") && (r = c(e.get("outerBounds", !0) || ve, n.refContainer));
392
- var a = e.get("outerBoundsContain", !0), o = a == null || a === "auto" || j(["all", "axisLabel"], a) < 0 ? "all" : a, s = [b(d(e.get("outerBoundsClampWidth", !0), R[0]), t.width), b(d(e.get("outerBoundsClampHeight", !0), R[1]), t.height)];
393
- return {
394
- outerBoundsRect: r,
395
- parsedOuterBoundsContain: o,
396
- outerBoundsClamp: s
397
- };
398
- }
399
- var He = function(e, t, n, r, i, a) {
400
- var o = n.axis.dim === "x" ? "y" : "x";
401
- be(e, t, n, r, i, a), P(e.nameLocation) || A(t.recordMap[o], function(e) {
402
- e && e.labelInfoList && e.dirVec && xe(e.labelInfoList, e.dirVec, r, i);
403
- });
404
- }, Z = i();
405
- function Q(e, t, n, r) {
406
- var i = n.axis;
407
- if (!i.scale.isBlank()) {
408
- var o = n.getModel("splitArea"), s = o.getModel("areaStyle"), c = s.get("color"), l = r.coordinateSystem.getRect(), u = i.getTicksCoords({
409
- tickModel: o,
410
- breakTicks: "none",
411
- pruneByBreak: "preserve_extent_bound"
412
- });
413
- if (u.length) {
414
- var d = c.length, f = Z(e).splitAreaColors, p = T(), m = 0;
415
- if (f) for (var h = 0; h < u.length; h++) {
416
- var g = f.get(u[h].tickValue);
417
- if (g != null) {
418
- m = (g + (d - 1) * h) % d;
419
- break;
420
- }
421
- }
422
- var _ = i.toGlobalCoord(u[0].coord), v = s.getAreaStyle();
423
- c = a(c) ? c : [c];
424
- for (var h = 1; h < u.length; h++) {
425
- var y = i.toGlobalCoord(u[h].coord), b = void 0, x = void 0, S = void 0, w = void 0;
426
- i.isHorizontal() ? (b = _, x = l.y, S = y - b, w = l.height, _ = b + S) : (b = l.x, x = _, S = l.width, w = y - x, _ = x + w);
427
- var E = u[h - 1].tickValue;
428
- E != null && p.set(E, m), t.add(new M({
429
- anid: E == null ? null : "area_" + E,
430
- shape: {
431
- x: b,
432
- y: x,
433
- width: S,
434
- height: w
435
- },
436
- style: C({ fill: c[m] }, v),
437
- autoBatch: !0,
438
- silent: !0
439
- })), m = (m + 1) % d;
440
- }
441
- Z(e).splitAreaColors = p;
442
- }
443
- }
444
- }
445
- function Ue(e) {
446
- Z(e).splitAreaColors = null;
447
- }
448
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/component/axis/CartesianAxisView.js
449
- var We = [
450
- "splitArea",
451
- "splitLine",
452
- "minorSplitLine",
453
- "breakArea"
454
- ], Ge = function(e) {
455
- E(t, e);
456
- function t() {
457
- var n = e !== null && e.apply(this, arguments) || this;
458
- return n.type = t.type, n.axisPointerClass = "CartesianAxisPointer", n;
459
- }
460
- return t.prototype.render = function(t, r, i, a) {
461
- this.group.removeAll();
462
- var o = this._axisGroup;
463
- this._axisGroup = new p(), this.group.add(this._axisGroup), N(t) && (this._axisGroup.add(t.axis.axisBuilder.group), A(We, function(e) {
464
- t.get([e, "show"]) && Ke[e](this, this._axisGroup, t, t.getCoordSysModel(), i);
465
- }, this), a && a.type === "changeAxisOrder" && a.isInitSort || n(o, this._axisGroup, t), e.prototype.render.call(this, t, r, i, a));
466
- }, t.prototype.remove = function() {
467
- Ue(this);
468
- }, t.type = "cartesianAxis", t;
469
- }(Te), Ke = {
470
- splitLine: function(e, t, n, r, i) {
471
- var s = n.axis;
472
- if (!s.scale.isBlank()) {
473
- var c = n.getModel("splitLine"), l = c.getModel("lineStyle"), u = l.get("color"), d = c.get("showMinLine") !== !1, f = c.get("showMaxLine") !== !1;
474
- u = a(u) ? u : [u];
475
- for (var p = r.coordinateSystem.getRect(), m = s.isHorizontal(), h = 0, g = s.getTicksCoords({
476
- tickModel: c,
477
- breakTicks: "none",
478
- pruneByBreak: "preserve_extent_bound"
479
- }), _ = [], v = [], y = l.getLineStyle(), b = 0; b < g.length; b++) {
480
- var x = s.toGlobalCoord(g[b].coord);
481
- if (!(b === 0 && !d || b === g.length - 1 && !f)) {
482
- var w = g[b].tickValue;
483
- m ? (_[0] = x, _[1] = p.y, v[0] = x, v[1] = p.y + p.height) : (_[0] = p.x, _[1] = x, v[0] = p.x + p.width, v[1] = x);
484
- var T = h++ % u.length, E = new S({
485
- anid: w == null ? null : "line_" + w,
486
- autoBatch: !0,
487
- shape: {
488
- x1: _[0],
489
- y1: _[1],
490
- x2: v[0],
491
- y2: v[1]
492
- },
493
- style: C({ stroke: u[T] }, y),
494
- silent: !0
495
- });
496
- o(E.shape, y.lineWidth), t.add(E);
497
- }
498
- }
499
- }
500
- },
501
- minorSplitLine: function(e, t, n, r, i) {
502
- var a = n.axis, s = n.getModel("minorSplitLine").getModel("lineStyle"), c = r.coordinateSystem.getRect(), l = a.isHorizontal(), u = a.getMinorTicksCoords();
503
- if (u.length) for (var d = [], f = [], p = s.getLineStyle(), m = 0; m < u.length; m++) for (var h = 0; h < u[m].length; h++) {
504
- var g = a.toGlobalCoord(u[m][h].coord);
505
- l ? (d[0] = g, d[1] = c.y, f[0] = g, f[1] = c.y + c.height) : (d[0] = c.x, d[1] = g, f[0] = c.x + c.width, f[1] = g);
506
- var _ = new S({
507
- anid: "minor_line_" + u[m][h].tickValue,
508
- autoBatch: !0,
509
- shape: {
510
- x1: d[0],
511
- y1: d[1],
512
- x2: f[0],
513
- y2: f[1]
514
- },
515
- style: p,
516
- silent: !0
517
- });
518
- o(_.shape, p.lineWidth), t.add(_);
519
- }
520
- },
521
- splitArea: function(e, t, n, r, i) {
522
- Q(e, t, n, r);
523
- },
524
- breakArea: function(e, t, n, r, i) {
525
- var a = we(), o = n.axis.scale;
526
- a && o.type !== "ordinal" && a.rectCoordBuildBreakAxis(t, e, n, r.coordinateSystem.getRect(), i);
527
- }
528
- }, qe = function(e) {
529
- E(t, e);
530
- function t() {
531
- var n = e !== null && e.apply(this, arguments) || this;
532
- return n.type = t.type, n;
533
- }
534
- return t.type = "xAxis", t;
535
- }(Ge), Je = function(e) {
536
- E(t, e);
537
- function t() {
538
- var t = e !== null && e.apply(this, arguments) || this;
539
- return t.type = qe.type, t;
540
- }
541
- return t.type = "yAxis", t;
542
- }(Ge), Ye = function(e) {
543
- E(t, e);
544
- function t() {
545
- var t = e !== null && e.apply(this, arguments) || this;
546
- return t.type = "grid", t;
547
- }
548
- return t.prototype.render = function(e, t) {
549
- this.group.removeAll(), e.get("show") && this.group.add(new M({
550
- shape: e.coordinateSystem.getRect(),
551
- style: C({ fill: e.get("backgroundColor") }, e.getItemStyle()),
552
- silent: !0,
553
- z2: -1
554
- }));
555
- }, t.type = "grid", t;
556
- }(ee), $ = { offset: 0 };
557
- function Xe(e) {
558
- e.registerComponentView(Ye), e.registerComponentModel(ye), e.registerCoordinateSystem("cartesian2d", Me), B(e, "x", V, $), B(e, "y", V, $), e.registerComponentView(qe), e.registerComponentView(Je), e.registerPreprocessor(function(e) {
559
- e.xAxis && e.yAxis && !e.grid && (e.grid = {});
560
- });
561
- }
562
- export { W as a, Le as i, Q as n, Ue as r, Xe as t };