reke-ui 0.5.2 → 0.5.4

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 (159) hide show
  1. package/custom-elements.json +764 -3
  2. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
  3. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
  4. package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
  5. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
  6. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
  7. package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
  8. package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
  9. package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
  10. package/dist/components/reke-dialog/reke-dialog.js +40 -15
  11. package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
  12. package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
  13. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
  14. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
  15. package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
  16. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
  17. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +21 -20
  21. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  22. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  23. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  24. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  25. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  26. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  27. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  28. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  29. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  30. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  31. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  32. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  33. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  34. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  35. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  36. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  37. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  38. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  39. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  40. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  41. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  42. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  43. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  44. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  45. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  46. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  47. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  48. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  49. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  53. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  54. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  55. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  56. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  58. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  59. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  60. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  61. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  62. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  63. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  64. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  65. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  66. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  67. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  68. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  69. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  70. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  71. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  72. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  73. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  74. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  75. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  76. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  77. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  78. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  79. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  80. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  81. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  82. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  83. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  84. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  85. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  86. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  87. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  88. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  89. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  90. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  91. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  93. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  94. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  95. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  96. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  97. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  98. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  99. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  100. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  101. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  102. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  103. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  104. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  105. package/dist/node_modules/echarts/lib/extension.js +10 -10
  106. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  107. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  108. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  109. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  110. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  111. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  112. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  113. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  114. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  115. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  116. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  117. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  118. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  119. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  120. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  121. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  122. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  123. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  124. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  125. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  126. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  127. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  128. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  129. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  130. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  131. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  132. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  133. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  134. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  135. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  136. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  137. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  138. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  139. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  140. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  141. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  142. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  143. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  144. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  145. package/dist/node_modules/zrender/lib/Element.js +35 -35
  146. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  147. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  148. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  149. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  150. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  151. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  152. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  153. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  154. package/dist/react.d.ts +10 -0
  155. package/dist/react.d.ts.map +1 -1
  156. package/dist/react.js +85 -73
  157. package/dist/shared/tailwind.js +1 -1
  158. package/dist/tokens/reke-tokens.css +1 -0
  159. package/package.json +5 -1
@@ -1,14 +1,160 @@
1
- import { makeInner as e } from "../util/model.js";
2
- e(), e();
3
- var t = {
1
+ import { bind as e, each as t, isFunction as n, map as r } from "../../../zrender/lib/core/util.js";
2
+ import { getBoundingRect as i } from "../../../zrender/lib/contain/text.js";
3
+ import { asc as a } from "../util/number.js";
4
+ import { makeInner as o, removeDuplicates as s, removeDuplicatesGetKeyFromItemItself as c } from "../util/model.js";
5
+ import { ordinalScaleCreateTicks as l } from "../scale/helper.js";
6
+ import { getOptionCategoryInterval as u, makeLabelFormatter as d } from "./axisHelper.js";
7
+ //#region node_modules/echarts/lib/coord/axisTickLabelBuilder.js
8
+ var f = o(), p = o(), m = {
4
9
  estimate: 1,
5
10
  determine: 2
6
11
  };
7
- function n(e) {
12
+ function h(e) {
8
13
  return {
9
14
  out: { noPxChangeTryDetermine: [] },
10
15
  kind: e
11
16
  };
12
17
  }
18
+ function g(e, t) {
19
+ var n = e.getLabelModel().get("customValues");
20
+ if (n) {
21
+ var i = e.scale;
22
+ return { labels: r(v(n, i), function(t, n) {
23
+ return {
24
+ formattedLabel: d(e)(t, n),
25
+ rawLabel: i.getLabel(t),
26
+ tick: t
27
+ };
28
+ }) };
29
+ }
30
+ return e.type === "category" ? y(e, t) : S(e);
31
+ }
32
+ function _(e, t, n) {
33
+ var r = e.scale, i = e.getTickModel().get("customValues");
34
+ return i ? { ticks: v(i, r) } : e.type === "category" ? x(e, t) : { ticks: r.getTicks(n) };
35
+ }
36
+ function v(e, n) {
37
+ var i = n.getExtent(), o = [];
38
+ return t(e, function(e) {
39
+ e = n.parse(e), e >= i[0] && e <= i[1] && o.push(e);
40
+ }), s(o, c, null), a(o), r(o, function(e) {
41
+ return { value: e };
42
+ });
43
+ }
44
+ function y(e, t) {
45
+ var n = e.getLabelModel(), r = b(e, n, t);
46
+ return !n.get("show") || e.scale.isBlank() ? { labels: [] } : r;
47
+ }
48
+ function b(e, t, r) {
49
+ var i = w(e), a = u(t), o = r.kind === m.estimate;
50
+ if (!o) {
51
+ var s = E(i, a);
52
+ if (s) return s;
53
+ }
54
+ var c, l;
55
+ n(a) ? c = N(e, a, !1) : (l = a === "auto" ? O(e, r) : a, c = N(e, l, !1));
56
+ var d = {
57
+ labels: c,
58
+ labelCategoryInterval: l
59
+ };
60
+ return o ? r.out.noPxChangeTryDetermine.push(function() {
61
+ return D(i, a, d), !0;
62
+ }) : D(i, a, d), d;
63
+ }
64
+ function x(e, t) {
65
+ var i = C(e), a = u(t), o = E(i, a);
66
+ if (o) return o;
67
+ var s, c;
68
+ if ((!t.get("show") || e.scale.isBlank()) && (s = []), n(a)) s = N(e, a, !0);
69
+ else if (a === "auto") {
70
+ var l = b(e, e.getLabelModel(), h(m.determine));
71
+ c = l.labelCategoryInterval, s = r(l.labels, function(e) {
72
+ return e.tick;
73
+ });
74
+ } else c = a, s = N(e, c, !0);
75
+ return D(i, a, {
76
+ ticks: s,
77
+ tickCategoryInterval: c
78
+ });
79
+ }
80
+ function S(e) {
81
+ var t = e.scale.getTicks(), n = d(e);
82
+ return { labels: r(t, function(t, r) {
83
+ return {
84
+ formattedLabel: n(t, r),
85
+ rawLabel: e.scale.getLabel(t),
86
+ tick: t
87
+ };
88
+ }) };
89
+ }
90
+ var C = T("axisTick"), w = T("axisLabel");
91
+ function T(e) {
92
+ return function(t) {
93
+ return p(t)[e] || (p(t)[e] = { list: [] });
94
+ };
95
+ }
96
+ function E(e, t) {
97
+ for (var n = 0; n < e.list.length; n++) if (e.list[n].key === t) return e.list[n].value;
98
+ }
99
+ function D(e, t, n) {
100
+ return e.list.push({
101
+ key: t,
102
+ value: n
103
+ }), n;
104
+ }
105
+ function O(e, t) {
106
+ if (t.kind === m.estimate) {
107
+ var n = e.calculateCategoryInterval(t);
108
+ return t.out.noPxChangeTryDetermine.push(function() {
109
+ return p(e).autoInterval = n, !0;
110
+ }), n;
111
+ }
112
+ return p(e).autoInterval ?? (p(e).autoInterval = e.calculateCategoryInterval(t));
113
+ }
114
+ function k(t, n) {
115
+ var r = n.kind, a = M(t), o = d(t), s = (a.axisRotate - a.labelRotate) / 180 * Math.PI, c = t.scale, l = c.getExtent(), u = c.count();
116
+ if (l[1] - l[0] < 1) return 0;
117
+ var f = 1, p = 40;
118
+ u > p && (f = Math.max(1, Math.floor(u / p)));
119
+ for (var h = l[0], g = t.dataToCoord(h + 1) - t.dataToCoord(h), _ = Math.abs(g * Math.cos(s)), v = Math.abs(g * Math.sin(s)), y = 0, b = 0; h <= l[1]; h += f) {
120
+ var x = 0, S = 0, C = i(o({ value: h }), a.font, "center", "top");
121
+ x = C.width * 1.3, S = C.height * 1.3, y = Math.max(y, x, 7), b = Math.max(b, S, 7);
122
+ }
123
+ var w = y / _, T = b / v;
124
+ isNaN(w) && (w = Infinity), isNaN(T) && (T = Infinity);
125
+ var E = Math.max(0, Math.floor(Math.min(w, T)));
126
+ return r === m.estimate ? (n.out.noPxChangeTryDetermine.push(e(A, null, t, E, u)), E) : j(t, E, u) ?? E;
127
+ }
128
+ function A(e, t, n) {
129
+ return j(e, t, n) == null;
130
+ }
131
+ function j(e, t, n) {
132
+ var r = f(e.model), i = e.getExtent(), a = r.lastAutoInterval, o = r.lastTickCount;
133
+ if (a != null && o != null && Math.abs(a - t) <= 1 && Math.abs(o - n) <= 1 && a > t && r.axisExtent0 === i[0] && r.axisExtent1 === i[1]) return a;
134
+ r.lastTickCount = n, r.lastAutoInterval = t, r.axisExtent0 = i[0], r.axisExtent1 = i[1];
135
+ }
136
+ function M(e) {
137
+ var t = e.getLabelModel();
138
+ return {
139
+ axisRotate: e.getRotate ? e.getRotate() : e.isHorizontal && !e.isHorizontal() ? 90 : 0,
140
+ labelRotate: t.get("rotate") || 0,
141
+ font: t.getFont()
142
+ };
143
+ }
144
+ function N(e, t, r) {
145
+ var i = d(e), a = e.scale, o = [], s = n(t);
146
+ return l(a, s ? 0 : t, function(e, n) {
147
+ var c = a.getLabel(e);
148
+ if (s) {
149
+ var l = !!t(e.value, c);
150
+ if (e.offInterval = !l, !l && !n) return;
151
+ }
152
+ o.push(r ? e : {
153
+ formattedLabel: i(e),
154
+ rawLabel: c,
155
+ tick: e
156
+ });
157
+ }), o;
158
+ }
13
159
  //#endregion
14
- export { t as AxisTickLabelComputingKind, n as createAxisLabelsComputingContext };
160
+ export { m as AxisTickLabelComputingKind, k as calculateCategoryInterval, g as createAxisLabels, h as createAxisLabelsComputingContext, _ as createAxisTicks };
@@ -0,0 +1,24 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../Axis.js";
3
+ //#region node_modules/echarts/lib/coord/cartesian/Axis2D.js
4
+ var n = function(t) {
5
+ e(n, t);
6
+ function n(e, n, r, i, a) {
7
+ var o = t.call(this, e, n, r) || this;
8
+ return o.index = 0, o.type = i || "value", o.position = a || "bottom", o;
9
+ }
10
+ return n.prototype.isHorizontal = function() {
11
+ var e = this.position;
12
+ return e === "top" || e === "bottom";
13
+ }, n.prototype.getGlobalExtent = function(e) {
14
+ var t = this.getExtent();
15
+ return t[0] = this.toGlobalCoord(t[0]), t[1] = this.toGlobalCoord(t[1]), e && t[0] > t[1] && t.reverse(), t;
16
+ }, n.prototype.pointToData = function(e, t) {
17
+ return this.coordToData(this.toLocalCoord(e[this.dim === "x" ? 0 : 1]), t);
18
+ }, n.prototype.setCategorySortInfo = function(e) {
19
+ if (this.type !== "category") return !1;
20
+ this.model.option.categorySortInfo = e, this.scale.setSortInfo(e);
21
+ }, n;
22
+ }(t);
23
+ //#endregion
24
+ export { n as default };
@@ -0,0 +1,18 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { mixin as t } from "../../../../zrender/lib/core/util.js";
3
+ import { SINGLE_REFERRING as n } from "../../util/model.js";
4
+ import r from "../../model/Component.js";
5
+ import { AxisModelCommonMixin as i } from "../axisModelCommonMixin.js";
6
+ //#region node_modules/echarts/lib/coord/cartesian/AxisModel.js
7
+ var a = function(t) {
8
+ e(r, t);
9
+ function r() {
10
+ return t !== null && t.apply(this, arguments) || this;
11
+ }
12
+ return r.prototype.getCoordSysModel = function() {
13
+ return this.getReferringComponents("grid", n).models[0];
14
+ }, r.type = "cartesian2dAxis", r;
15
+ }(r);
16
+ t(a, i);
17
+ //#endregion
18
+ export { a as default };
@@ -0,0 +1,23 @@
1
+ import { filter as e, map as t } from "../../../../zrender/lib/core/util.js";
2
+ //#region node_modules/echarts/lib/coord/cartesian/Cartesian.js
3
+ var n = function() {
4
+ function n(e) {
5
+ this.type = "cartesian", this._dimList = [], this._axes = {}, this.name = e || "";
6
+ }
7
+ return n.prototype.getAxis = function(e) {
8
+ return this._axes[e];
9
+ }, n.prototype.getAxes = function() {
10
+ return t(this._dimList, function(e) {
11
+ return this._axes[e];
12
+ }, this);
13
+ }, n.prototype.getAxesByScale = function(t) {
14
+ return t = t.toLowerCase(), e(this.getAxes(), function(e) {
15
+ return e.scale.type === t;
16
+ });
17
+ }, n.prototype.addAxis = function(e) {
18
+ var t = e.dim;
19
+ this._axes[t] = e, this._dimList.push(t);
20
+ }, n;
21
+ }();
22
+ //#endregion
23
+ export { n as default };
@@ -0,0 +1,69 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { invert as t } from "../../../../zrender/lib/core/matrix.js";
3
+ import { applyTransform as n } from "../../../../zrender/lib/core/vector.js";
4
+ import r from "../../../../zrender/lib/core/BoundingRect.js";
5
+ import { hasBreaks as i } from "../../scale/break.js";
6
+ import { getScaleExtentForMappingUnsafe as a } from "../../scale/scaleMapper.js";
7
+ import { COORD_SYS_TYPE_CARTESIAN_2D as o } from "./GridModel.js";
8
+ import s from "./Cartesian.js";
9
+ //#region node_modules/echarts/lib/coord/cartesian/Cartesian2D.js
10
+ var c = ["x", "y"];
11
+ function l(e) {
12
+ return (e.type === "interval" || e.type === "time") && !i(e);
13
+ }
14
+ var u = function(i) {
15
+ e(s, i);
16
+ function s() {
17
+ var e = i !== null && i.apply(this, arguments) || this;
18
+ return e.type = o, e.dimensions = c, e;
19
+ }
20
+ return s.prototype.calcAffineTransform = function() {
21
+ this._transform = this._invTransform = null;
22
+ var e = this.getAxis("x").scale, n = this.getAxis("y").scale;
23
+ if (!(!l(e) || !l(n))) {
24
+ var r = a(e, null), i = a(n, null), o = this.dataToPoint([r[0], i[0]]), s = this.dataToPoint([r[1], i[1]]), c = r[1] - r[0], u = i[1] - i[0];
25
+ if (!(!c || !u)) {
26
+ var d = (s[0] - o[0]) / c, f = (s[1] - o[1]) / u, p = o[0] - r[0] * d, m = o[1] - i[0] * f, h = this._transform = [
27
+ d,
28
+ 0,
29
+ 0,
30
+ f,
31
+ p,
32
+ m
33
+ ];
34
+ this._invTransform = t([], h);
35
+ }
36
+ }
37
+ }, s.prototype.getBaseAxis = function() {
38
+ return this.getAxesByScale("ordinal")[0] || this.getAxesByScale("time")[0] || this.getAxis("x");
39
+ }, s.prototype.containPoint = function(e) {
40
+ var t = this.getAxis("x"), n = this.getAxis("y");
41
+ return t.contain(t.toLocalCoord(e[0])) && n.contain(n.toLocalCoord(e[1]));
42
+ }, s.prototype.containData = function(e) {
43
+ return this.getAxis("x").containData(e[0]) && this.getAxis("y").containData(e[1]);
44
+ }, s.prototype.containZone = function(e, t) {
45
+ 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]);
46
+ return a.intersect(o);
47
+ }, s.prototype.dataToPoint = function(e, t, r) {
48
+ r ||= [];
49
+ var i = e[0], a = e[1];
50
+ if (this._transform && i != null && isFinite(i) && a != null && isFinite(a)) return n(r, e, this._transform);
51
+ var o = this.getAxis("x"), s = this.getAxis("y");
52
+ return r[0] = o.toGlobalCoord(o.dataToCoord(i, t)), r[1] = s.toGlobalCoord(s.dataToCoord(a, t)), r;
53
+ }, s.prototype.clampData = function(e, t) {
54
+ 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]);
55
+ 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;
56
+ }, s.prototype.pointToData = function(e, t, r) {
57
+ if (r ||= [], this._invTransform) return n(r, e, this._invTransform);
58
+ var i = this.getAxis("x"), a = this.getAxis("y");
59
+ return r[0] = i.coordToData(i.toLocalCoord(e[0]), t), r[1] = a.coordToData(a.toLocalCoord(e[1]), t), r;
60
+ }, s.prototype.getOtherAxis = function(e) {
61
+ return this.getAxis(e.dim === "x" ? "y" : "x");
62
+ }, s.prototype.getArea = function(e) {
63
+ e ||= 0;
64
+ 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;
65
+ return new r(i, a, Math.max(t[0], t[1]) - i + e, Math.max(n[0], n[1]) - a + e);
66
+ }, s;
67
+ }(s);
68
+ //#endregion
69
+ export { c as cartesian2DDimensions, u as default };
@@ -0,0 +1,314 @@
1
+ import { assert as e, each as t, eqNaN as n, find as r, hasOwn as i, indexOf as a, isObject as o, keys as s, retrieve2 as c, retrieve3 as l } from "../../../../zrender/lib/core/util.js";
2
+ import { mathMax as u, parsePositionSizeOption as d } from "../../util/number.js";
3
+ import { error as f, log as p } from "../../util/log.js";
4
+ import { SINGLE_REFERRING as m } from "../../util/model.js";
5
+ import { WH as h, XY as g, expandOrShrinkRect as ee } from "../../util/graphic.js";
6
+ import { createDimNameMap as _ } from "../../data/helper/SeriesDataSchema.js";
7
+ import { injectCoordSysByOption as v } from "../../core/CoordinateSystem.js";
8
+ import { hasBreaks as y } from "../../scale/break.js";
9
+ import { createBoxLayoutReference as b, getLayoutRect as x } from "../../util/layout.js";
10
+ import { isIntervalOrLogScale as te, isOrdinalScale as S } from "../../scale/helper.js";
11
+ import { createScaleByModel as C, determineAxisType as w, getScaleValuePositionKind as ne, getTickValueOutermost as re, isAxisOnBand as T, isNameLocationCenter as E, isOnAxisZeroDiscouraged as D, retrieveAxisBreaksOption as O, shouldAxisShow as k } from "../axisHelper.js";
12
+ import { AxisTickLabelComputingKind as A } from "../axisTickLabelBuilder.js";
13
+ import { associateSeriesWithAxis as j } from "../axisStatistics.js";
14
+ import ie from "./Axis2D.js";
15
+ import { AxisBuilderSharedContext as ae, getLabelInner as oe, moveIfOverlapByLinearLabels as se, resolveAxisNameOverlapDefault as M } from "../../component/axis/AxisBuilder.js";
16
+ import { createCartesianAxisViewCommonPartBuilder as N, findAxisModels as P, updateCartesianAxisViewCommonPartBuilder as F } from "./cartesianAxisHelper.js";
17
+ import { scaleRawExtentInfoCreate as I, scaleRawExtentInfoEnableBoxCoordSysUsage as L } from "../scaleRawExtentInfo.js";
18
+ import { COORD_SYS_TYPE_CARTESIAN_2D as R, OUTER_BOUNDS_CLAMP_DEFAULT as z, OUTER_BOUNDS_DEFAULT as B } from "./GridModel.js";
19
+ import V, { cartesian2DDimensions as H } from "./Cartesian2D.js";
20
+ import { scaleCalcAlign as U } from "../axisAlignTicks.js";
21
+ import { scaleCalcNice as W } from "../axisNiceTicks.js";
22
+ //#region node_modules/echarts/lib/coord/cartesian/Grid.js
23
+ var G = [[3, 1], [0, 2]], ce = function() {
24
+ function e(e, t, n) {
25
+ 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;
26
+ }
27
+ return e.prototype.getRect = function() {
28
+ return this._rect;
29
+ }, e.prototype.update = function(e, n) {
30
+ var r = this._axesMap;
31
+ t(this._axesList, function(e) {
32
+ I(e, 1);
33
+ var t = e.scale;
34
+ S(t) && t.setSortInfo(e.model.get("categorySortInfo"));
35
+ });
36
+ function i(e) {
37
+ for (var n = s(e), r = [], i = n.length - 1; i >= 0; i--) {
38
+ var a = e[+n[i]];
39
+ a.__alignTo ? r.push(a) : W(a);
40
+ }
41
+ t(r, function(e) {
42
+ ue(e, e.__alignTo) ? W(e) : U(e, e.__alignTo.scale);
43
+ });
44
+ }
45
+ i(r.x), i(r.y);
46
+ var a = {};
47
+ t(r.x, function(e) {
48
+ K(r, "y", e, a);
49
+ }), t(r.y, function(e) {
50
+ K(r, "x", e, a);
51
+ }), this.resize(this.model, n);
52
+ }, e.prototype.resize = function(e, n, r) {
53
+ var i = b(e, n), a = this._rect = x(e.getBoxLayoutParams(), i.refContainer), o = this._axesMap, s = this._coordsList, c = e.get("containLabel");
54
+ if (Y(o, a), !r) {
55
+ var l = fe(a, s, o, c, n), u = void 0;
56
+ if (c) Z ? (Z(this._axesList, a), Y(o, a)) : (process.env.NODE_ENV !== "production" && p("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.", !0), u = Q(a.clone(), "axisLabel", null, a, o, l, i));
57
+ else {
58
+ var d = pe(e, a, i), f = d.outerBoundsRect, m = d.parsedOuterBoundsContain, h = d.outerBoundsClamp;
59
+ f && (u = Q(f, m, h, a, o, l, i));
60
+ }
61
+ $(a, o, A.determine, null, u, i), t(this._coordsList, function(e) {
62
+ e.calcAffineTransform();
63
+ });
64
+ }
65
+ }, e.prototype.getAxis = function(e, t) {
66
+ var n = this._axesMap[e];
67
+ if (n != null) return n[t || 0];
68
+ }, e.prototype.getAxes = function() {
69
+ return this._axesList.slice();
70
+ }, e.prototype.getCartesian = function(e, t) {
71
+ if (e != null && t != null) {
72
+ var n = "x" + e + "y" + t;
73
+ return this._coordsMap[n];
74
+ }
75
+ o(e) && (t = e.yAxisIndex, e = e.xAxisIndex);
76
+ 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];
77
+ }, e.prototype.getCartesians = function() {
78
+ return this._coordsList.slice();
79
+ }, e.prototype.convertToPixel = function(e, t, n) {
80
+ var r = this._findConvertTarget(t);
81
+ return r.cartesian ? r.cartesian.dataToPoint(n) : r.axis ? r.axis.toGlobalCoord(r.axis.dataToCoord(n)) : null;
82
+ }, e.prototype.convertFromPixel = function(e, t, n) {
83
+ var r = this._findConvertTarget(t);
84
+ return r.cartesian ? r.cartesian.pointToData(n) : r.axis ? r.axis.coordToData(r.axis.toLocalCoord(n)) : null;
85
+ }, e.prototype._findConvertTarget = function(e) {
86
+ var t = e.seriesModel, n = e.xAxisModel || t && t.getReferringComponents("xAxis", m).models[0], r = e.yAxisModel || t && t.getReferringComponents("yAxis", m).models[0], i = e.gridModel, o = this._coordsList, s, c;
87
+ return t ? (s = t.coordinateSystem, a(o, s) < 0 && (s = null)) : n && r ? s = this.getCartesian(n.componentIndex, r.componentIndex) : n ? c = this.getAxis("x", n.componentIndex) : r ? c = this.getAxis("y", r.componentIndex) : i && i.coordinateSystem === this && (s = this._coordsList[0]), {
88
+ cartesian: s,
89
+ axis: c
90
+ };
91
+ }, e.prototype.containPoint = function(e) {
92
+ var t = this._coordsList[0];
93
+ if (t) return t.containPoint(e);
94
+ }, e.prototype._initCartesian = function(e, n, r) {
95
+ var i = this, a = this, o = {
96
+ left: !1,
97
+ right: !1,
98
+ top: !1,
99
+ bottom: !1
100
+ }, s = {
101
+ x: {},
102
+ y: {}
103
+ }, c = {
104
+ x: 0,
105
+ y: 0
106
+ };
107
+ if (n.eachComponent("xAxis", l("x"), this), n.eachComponent("yAxis", l("y"), this), !c.x || !c.y) {
108
+ this._axesMap = {}, this._axesList = [];
109
+ return;
110
+ }
111
+ this._axesMap = s, t(s.x, function(n, r) {
112
+ t(s.y, function(t, a) {
113
+ var o = "x" + r + "y" + a, s = new V(o);
114
+ s.master = i, s.model = e, i._coordsMap[o] = s, i._coordsList.push(s), s.addAxis(n), s.addAxis(t);
115
+ });
116
+ }), J(s.x), J(s.y);
117
+ function l(t) {
118
+ return function(n, r) {
119
+ if (le(n, e)) {
120
+ var i = n.get("position");
121
+ t === "x" ? i !== "top" && i !== "bottom" && (i = o.bottom ? "top" : "bottom") : i !== "left" && i !== "right" && (i = o.left ? "right" : "left"), o[i] = !0;
122
+ var l = w(n), u = new ie(t, C(n, l, !0), [0, 0], l, i);
123
+ u.onBand = T(u.scale, n), u.inverse = n.get("inverse"), n.axis = u, u.model = n, u.grid = a, u.index = r, a._axesList.push(u), s[t][r] = u, c[t]++;
124
+ }
125
+ };
126
+ }
127
+ }, e.prototype.getTooltipAxes = function(e) {
128
+ var n = [], r = [];
129
+ return t(this.getCartesians(), function(t) {
130
+ var i = e != null && e !== "auto" ? t.getAxis(e) : t.getBaseAxis(), o = t.getOtherAxis(i);
131
+ a(n, i) < 0 && n.push(i), a(r, o) < 0 && r.push(o);
132
+ }), {
133
+ baseAxes: n,
134
+ otherAxes: r
135
+ };
136
+ }, e.create = function(n, r) {
137
+ var i = [];
138
+ return n.eachComponent("grid", function(a, o) {
139
+ var s = new e(a, n, r);
140
+ s.name = "grid_" + o, s.resize(a, r, !0), a.coordinateSystem = s, i.push(s), t(s._axesList, function(t) {
141
+ L(t, e.dimIdxMap);
142
+ });
143
+ }), n.eachSeries(function(e) {
144
+ var t, n;
145
+ v({
146
+ targetModel: e,
147
+ coordSysType: R,
148
+ coordSysProvider: r
149
+ });
150
+ function r() {
151
+ var r = P(e), i = r.xAxisModel, a = r.yAxisModel;
152
+ t = i.axis, n = a.axis;
153
+ var o = i.getCoordSysModel();
154
+ if (process.env.NODE_ENV !== "production") {
155
+ if (!o) throw Error("Grid \"" + l(i.get("gridIndex"), i.get("gridId"), 0) + "\" not found");
156
+ if (i.getCoordSysModel() !== a.getCoordSysModel()) throw Error("xAxis and yAxis must use the same grid");
157
+ }
158
+ return o.coordinateSystem.getCartesian(i.componentIndex, a.componentIndex);
159
+ }
160
+ t && n && (j(t, e, R), j(n, e, R));
161
+ }, this), i;
162
+ }, e.dimensions = H, e.dimIdxMap = _(H), e;
163
+ }();
164
+ function le(e, t) {
165
+ return e.getCoordSysModel() === t;
166
+ }
167
+ function K(e, t, n, r) {
168
+ n.getAxesOnZeroOf = function() {
169
+ return o ? [o] : [];
170
+ };
171
+ var a = e[t], o, s = n.model, c = s.get(["axisLine", "onZero"]), l = s.get(["axisLine", "onZeroAxisIndex"]);
172
+ if (!c) return;
173
+ if (l != null) q(c, a[l]) && (o = a[l]);
174
+ else for (var u in a) if (i(a, u) && q(c, a[u]) && !r[d(a[u])]) {
175
+ o = a[u];
176
+ break;
177
+ }
178
+ o && (r[d(o)] = !0);
179
+ function d(e) {
180
+ return e.dim + "_" + e.index;
181
+ }
182
+ }
183
+ function q(e, t) {
184
+ if (!t) return !1;
185
+ var n = t.scale, r = ne(n, 0, !1), i = t && t.type !== "category" && t.type !== "time" && r !== 3;
186
+ return i && e === "auto" && D(t) && (i = !1), i;
187
+ }
188
+ function J(e) {
189
+ for (var n = s(e), r, i = [], a = n.length - 1; a >= 0; a--) {
190
+ var o = e[+n[a]];
191
+ te(o.scale) && O(o.model, o.type, !0) == null && (o.model.get("alignTicks") && o.model.get("interval") == null ? i.push(o) : r = o);
192
+ }
193
+ r ||= i.pop(), r && t(i, function(e) {
194
+ e.__alignTo = r;
195
+ });
196
+ }
197
+ function ue(e, t) {
198
+ return y(e.scale) || y(t.scale) || t.scale.getTicks().length < 2;
199
+ }
200
+ function de(e, t) {
201
+ var n = e.getExtent(), r = n[0] + n[1];
202
+ e.toGlobalCoord = e.dim === "x" ? function(e) {
203
+ return e + t;
204
+ } : function(e) {
205
+ return r - e + t;
206
+ }, e.toLocalCoord = e.dim === "x" ? function(e) {
207
+ return e - t;
208
+ } : function(e) {
209
+ return r - e + t;
210
+ };
211
+ }
212
+ function Y(e, n) {
213
+ t(e.x, function(e) {
214
+ return X(e, n.x, n.width);
215
+ }), t(e.y, function(e) {
216
+ return X(e, n.y, n.height);
217
+ });
218
+ }
219
+ function X(e, t, n) {
220
+ var r = [0, n], i = +!!e.inverse;
221
+ e.setExtent(r[i], r[1 - i]), de(e, t);
222
+ }
223
+ var Z;
224
+ function Q(i, a, o, s, c, l, d) {
225
+ process.env.NODE_ENV !== "production" && e(a === "all" || a === "axisLabel"), $(s, c, A.estimate, a, !1, d);
226
+ var f = [
227
+ 0,
228
+ 0,
229
+ 0,
230
+ 0
231
+ ];
232
+ m(0), m(1), _(s, 0, NaN), _(s, 1, NaN);
233
+ var p = r(f, function(e) {
234
+ return e > 0;
235
+ }) == null;
236
+ return ee(s, f, !0, !0, o), Y(c, s), p;
237
+ function m(e) {
238
+ t(c[g[e]], function(t) {
239
+ if (k(t.model)) {
240
+ var n = l.ensureRecord(t.model), r = n.labelInfoList;
241
+ if (r) for (var i = 0; i < r.length; i++) {
242
+ var a = r[i], o = t.scale.normalize(re(t.scale, oe(a.label).labelInfo.tick));
243
+ o = e === 1 ? 1 - o : o, _(a.rect, e, o), _(a.rect, 1 - e, NaN);
244
+ }
245
+ var s = n.nameLayout;
246
+ if (s) {
247
+ var o = E(n.nameLocation) ? .5 : NaN;
248
+ _(s.rect, e, o), _(s.rect, 1 - e, NaN);
249
+ }
250
+ }
251
+ });
252
+ }
253
+ function _(e, t, n) {
254
+ var r = i[g[t]] - e[g[t]], a = e[h[t]] + e[g[t]] - (i[h[t]] + i[g[t]]);
255
+ r = v(r, 1 - n), a = v(a, n);
256
+ var o = G[t][0], s = G[t][1];
257
+ f[o] = u(f[o], r), f[s] = u(f[s], a);
258
+ }
259
+ function v(e, t) {
260
+ return e > 0 && !n(t) && t > 1e-4 && (e /= t), e;
261
+ }
262
+ }
263
+ function fe(e, n, r, i, a) {
264
+ var o = new ae(me);
265
+ return t(r, function(r) {
266
+ return t(r, function(t) {
267
+ if (k(t.model)) {
268
+ var r = !i;
269
+ t.axisBuilder = N(e, n, t.model, a, o, r);
270
+ }
271
+ });
272
+ }), o;
273
+ }
274
+ function $(e, n, r, i, a, o) {
275
+ var s = r === A.determine;
276
+ t(n, function(n) {
277
+ return t(n, function(t) {
278
+ k(t.model) && (F(t.axisBuilder, e, t.model), t.axisBuilder.build(s ? { axisTickLabelDetermine: !0 } : { axisTickLabelEstimate: !0 }, { noPxChange: a }));
279
+ });
280
+ });
281
+ var c = {
282
+ x: 0,
283
+ y: 0
284
+ };
285
+ l(0), l(1);
286
+ function l(t) {
287
+ c[g[1 - t]] = e[h[t]] <= o.refContainer[h[t]] * .5 ? 0 : 1 - t == 1 ? 2 : 1;
288
+ }
289
+ t(n, function(e, n) {
290
+ return t(e, function(e) {
291
+ k(e.model) && ((i === "all" || s) && e.axisBuilder.build({ axisName: !0 }, { nameMarginLevel: c[n] }), s && e.axisBuilder.build({ axisLine: !0 }));
292
+ });
293
+ });
294
+ }
295
+ function pe(e, t, n) {
296
+ var r, i = e.get("outerBoundsMode", !0);
297
+ i === "same" ? r = t.clone() : i == null || i === "auto" ? r = x(e.get("outerBounds", !0) || B, n.refContainer) : i !== "none" && process.env.NODE_ENV !== "production" && f("Invalid grid[" + e.componentIndex + "].outerBoundsMode.");
298
+ var o = e.get("outerBoundsContain", !0), s;
299
+ o == null || o === "auto" ? s = "all" : a(["all", "axisLabel"], o) < 0 ? (process.env.NODE_ENV !== "production" && f("Invalid grid[" + e.componentIndex + "].outerBoundsContain."), s = "all") : s = o;
300
+ var l = [d(c(e.get("outerBoundsClampWidth", !0), z[0]), t.width), d(c(e.get("outerBoundsClampHeight", !0), z[1]), t.height)];
301
+ return {
302
+ outerBoundsRect: r,
303
+ parsedOuterBoundsContain: s,
304
+ outerBoundsClamp: l
305
+ };
306
+ }
307
+ var me = function(e, n, r, i, a, o) {
308
+ var s = r.axis.dim === "x" ? "y" : "x";
309
+ M(e, n, r, i, a, o), E(e.nameLocation) || t(n.recordMap[s], function(e) {
310
+ e && e.labelInfoList && e.dirVec && se(e.labelInfoList, e.dirVec, i, a);
311
+ });
312
+ };
313
+ //#endregion
314
+ export { ce as default };
@@ -0,0 +1,40 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { getLayoutParams as t, mergeLayoutParam as n } from "../../util/layout.js";
3
+ import r from "../../model/Component.js";
4
+ import i from "../../visual/tokens.js";
5
+ //#region node_modules/echarts/lib/coord/cartesian/GridModel.js
6
+ var a = {
7
+ left: 0,
8
+ right: 0,
9
+ top: 0,
10
+ bottom: 0
11
+ }, o = ["25%", "25%"], s = "cartesian2d", c = function(r) {
12
+ e(s, r);
13
+ function s() {
14
+ return r !== null && r.apply(this, arguments) || this;
15
+ }
16
+ return s.prototype.mergeDefaultAndTheme = function(e, i) {
17
+ var a = t(e.outerBounds);
18
+ r.prototype.mergeDefaultAndTheme.apply(this, arguments), a && e.outerBounds && n(e.outerBounds, a);
19
+ }, s.prototype.mergeOption = function(e, t) {
20
+ r.prototype.mergeOption.apply(this, arguments), this.option.outerBounds && e.outerBounds && n(this.option.outerBounds, e.outerBounds);
21
+ }, s.type = "grid", s.dependencies = ["xAxis", "yAxis"], s.layoutMode = "box", s.defaultOption = {
22
+ show: !1,
23
+ z: 0,
24
+ left: "15%",
25
+ top: 65,
26
+ right: "10%",
27
+ bottom: 80,
28
+ containLabel: !1,
29
+ outerBoundsMode: "auto",
30
+ outerBounds: a,
31
+ outerBoundsContain: "all",
32
+ outerBoundsClampWidth: o[0],
33
+ outerBoundsClampHeight: o[1],
34
+ backgroundColor: i.color.transparent,
35
+ borderWidth: 1,
36
+ borderColor: i.color.neutral30
37
+ }, s;
38
+ }(r);
39
+ //#endregion
40
+ export { s as COORD_SYS_TYPE_CARTESIAN_2D, o as OUTER_BOUNDS_CLAMP_DEFAULT, a as OUTER_BOUNDS_DEFAULT, c as default };