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,7 +1,18 @@
1
- import { parseDate as e } from "./number.js";
2
- import t from "../model/Model.js";
3
- import { SYSTEM_LANG as n, getDefaultLocaleModel as r, getLocaleModel as i } from "../core/locale.js";
4
- var a = {
1
+ import { each as e, isArray as t, isFunction as n, isObject as r, isString as i } from "../../../zrender/lib/core/util.js";
2
+ import { parseDate as a } from "./number.js";
3
+ import o from "../model/Model.js";
4
+ import { SYSTEM_LANG as s, getDefaultLocaleModel as c, getLocaleModel as l } from "../core/locale.js";
5
+ import { getScaleBreakHelper as u } from "../scale/break.js";
6
+ //#region node_modules/echarts/lib/util/time.js
7
+ var d = 1e3, f = d * 60, p = f * 60, m = p * 24, h = m * 365, g = {
8
+ year: /({yyyy}|{yy})/,
9
+ month: /({MMMM}|{MMM}|{MM}|{M})/,
10
+ day: /({dd}|{d})/,
11
+ hour: /({HH}|{H}|{hh}|{h})/,
12
+ minute: /({mm}|{m})/,
13
+ second: /({ss}|{s})/,
14
+ millisecond: /({SSS}|{S})/
15
+ }, _ = {
5
16
  year: "{yyyy}",
6
17
  month: "{MMM}",
7
18
  day: "{d}",
@@ -9,35 +20,160 @@ var a = {
9
20
  minute: "{HH}:{mm}",
10
21
  second: "{HH}:{mm}:{ss}",
11
22
  millisecond: "{HH}:{mm}:{ss} {SSS}"
12
- }, o = "{yyyy}-{MM}-{dd}";
13
- o + "" + a.hour, o + "" + a.minute, o + "" + a.second;
14
- function s(e, t) {
23
+ }, v = "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}", y = "{yyyy}-{MM}-{dd}", b = {
24
+ year: "{yyyy}",
25
+ month: "{yyyy}-{MM}",
26
+ day: y,
27
+ hour: y + " " + _.hour,
28
+ minute: y + " " + _.minute,
29
+ second: y + " " + _.second,
30
+ millisecond: v
31
+ }, x = [
32
+ "year",
33
+ "month",
34
+ "day",
35
+ "hour",
36
+ "minute",
37
+ "second",
38
+ "millisecond"
39
+ ], S = [
40
+ "year",
41
+ "half-year",
42
+ "quarter",
43
+ "month",
44
+ "week",
45
+ "half-week",
46
+ "day",
47
+ "half-day",
48
+ "quarter-day",
49
+ "hour",
50
+ "minute",
51
+ "second",
52
+ "millisecond"
53
+ ];
54
+ function C(e) {
55
+ return !i(e) && !n(e) ? w(e) : e;
56
+ }
57
+ function w(n) {
58
+ n ||= {};
59
+ var a = {}, o = !0;
60
+ return e(x, function(e) {
61
+ o &&= n[e] == null;
62
+ }), e(x, function(e, s) {
63
+ var c = n[e];
64
+ a[e] = {};
65
+ for (var l = null, u = s; u >= 0; u--) {
66
+ var d = x[u], f = r(c) && !t(c) ? c[d] : c, p = void 0;
67
+ t(f) ? (p = f.slice(), l = p[0] || "") : i(f) ? (l = f, p = [l]) : (l == null ? l = _[e] : g[d].test(l) || (l = a[d][d][0] + " " + l), p = [l], o && (p[1] = "{primary|" + l + "}")), a[e][d] = p;
68
+ }
69
+ }), a;
70
+ }
71
+ function T(e, t) {
15
72
  return e += "", "0000".substr(0, t - e.length) + e;
16
73
  }
17
- function c(a, o, c, g) {
18
- var _ = e(a), v = _[l(c)](), y = _[u(c)]() + 1, b = Math.floor((y - 1) / 3) + 1, x = _[d(c)](), S = _["get" + (c ? "UTC" : "") + "Day"](), C = _[f(c)](), w = (C - 1) % 12 + 1, T = _[p(c)](), E = _[m(c)](), D = _[h(c)](), O = C >= 12 ? "pm" : "am", k = O.toUpperCase(), A = (g instanceof t ? g : i(g || n) || r()).getModel("time"), j = A.get("month"), M = A.get("monthAbbr"), N = A.get("dayOfWeek"), P = A.get("dayOfWeekAbbr");
19
- return (o || "").replace(/{a}/g, O + "").replace(/{A}/g, k + "").replace(/{yyyy}/g, v + "").replace(/{yy}/g, s(v % 100 + "", 2)).replace(/{Q}/g, b + "").replace(/{MMMM}/g, j[y - 1]).replace(/{MMM}/g, M[y - 1]).replace(/{MM}/g, s(y, 2)).replace(/{M}/g, y + "").replace(/{dd}/g, s(x, 2)).replace(/{d}/g, x + "").replace(/{eeee}/g, N[S]).replace(/{ee}/g, P[S]).replace(/{e}/g, S + "").replace(/{HH}/g, s(C, 2)).replace(/{H}/g, C + "").replace(/{hh}/g, s(w + "", 2)).replace(/{h}/g, w + "").replace(/{mm}/g, s(T, 2)).replace(/{m}/g, T + "").replace(/{ss}/g, s(E, 2)).replace(/{s}/g, E + "").replace(/{SSS}/g, s(D, 3)).replace(/{S}/g, D + "");
74
+ function E(e) {
75
+ switch (e) {
76
+ case "half-year":
77
+ case "quarter": return "month";
78
+ case "week":
79
+ case "half-week": return "day";
80
+ case "half-day":
81
+ case "quarter-day": return "hour";
82
+ default: return e;
83
+ }
84
+ }
85
+ function D(e) {
86
+ return e === E(e);
87
+ }
88
+ function O(e) {
89
+ switch (e) {
90
+ case "year":
91
+ case "month": return "day";
92
+ case "millisecond": return "millisecond";
93
+ default: return "second";
94
+ }
95
+ }
96
+ function k(e, t, n, r) {
97
+ var i = a(e), u = i[N(n)](), d = i[P(n)]() + 1, f = Math.floor((d - 1) / 3) + 1, p = i[F(n)](), m = i["get" + (n ? "UTC" : "") + "Day"](), h = i[I(n)](), g = (h - 1) % 12 + 1, _ = i[L(n)](), v = i[R(n)](), y = i[z(n)](), b = h >= 12 ? "pm" : "am", x = b.toUpperCase(), S = (r instanceof o ? r : l(r || s) || c()).getModel("time"), C = S.get("month"), w = S.get("monthAbbr"), E = S.get("dayOfWeek"), D = S.get("dayOfWeekAbbr");
98
+ return (t || "").replace(/{a}/g, b + "").replace(/{A}/g, x + "").replace(/{yyyy}/g, u + "").replace(/{yy}/g, T(u % 100 + "", 2)).replace(/{Q}/g, f + "").replace(/{MMMM}/g, C[d - 1]).replace(/{MMM}/g, w[d - 1]).replace(/{MM}/g, T(d, 2)).replace(/{M}/g, d + "").replace(/{dd}/g, T(p, 2)).replace(/{d}/g, p + "").replace(/{eeee}/g, E[m]).replace(/{ee}/g, D[m]).replace(/{e}/g, m + "").replace(/{HH}/g, T(h, 2)).replace(/{H}/g, h + "").replace(/{hh}/g, T(g + "", 2)).replace(/{h}/g, g + "").replace(/{mm}/g, T(_, 2)).replace(/{m}/g, _ + "").replace(/{ss}/g, T(v, 2)).replace(/{s}/g, v + "").replace(/{SSS}/g, T(y, 3)).replace(/{S}/g, y + "");
99
+ }
100
+ function A(e, t, r, a, o) {
101
+ var s = null;
102
+ if (i(r)) s = r;
103
+ else if (n(r)) {
104
+ var c = {
105
+ time: e.time,
106
+ level: e.time ? e.time.level : 0
107
+ }, l = u();
108
+ l && l.makeAxisLabelFormatterParamBreak(c, e.break), s = r(e.value, t, c);
109
+ } else {
110
+ var d = e.time;
111
+ if (d) {
112
+ var f = r[d.lowerTimeUnit][d.upperTimeUnit];
113
+ s = f[Math.min(d.level, f.length - 1)] || "";
114
+ } else {
115
+ var p = j(e.value, o);
116
+ s = r[p][p][0];
117
+ }
118
+ }
119
+ return k(new Date(e.value), s, o, a);
120
+ }
121
+ function j(e, t) {
122
+ var n = a(e), r = n[P(t)]() + 1, i = n[F(t)](), o = n[I(t)](), s = n[L(t)](), c = n[R(t)](), l = n[z(t)]() === 0, u = l && c === 0, d = u && s === 0, f = d && o === 0, p = f && i === 1;
123
+ return p && r === 1 ? "year" : p ? "month" : f ? "day" : d ? "hour" : u ? "minute" : l ? "second" : "millisecond";
20
124
  }
21
- function l(e) {
125
+ function M(e, t, n) {
126
+ switch (t) {
127
+ case "year": e[V(n)](0);
128
+ case "month": e[H(n)](1);
129
+ case "day": e[U(n)](0);
130
+ case "hour": e[W(n)](0);
131
+ case "minute": e[G(n)](0);
132
+ case "second": e[K(n)](0);
133
+ }
134
+ return e;
135
+ }
136
+ function N(e) {
22
137
  return e ? "getUTCFullYear" : "getFullYear";
23
138
  }
24
- function u(e) {
139
+ function P(e) {
25
140
  return e ? "getUTCMonth" : "getMonth";
26
141
  }
27
- function d(e) {
142
+ function F(e) {
28
143
  return e ? "getUTCDate" : "getDate";
29
144
  }
30
- function f(e) {
145
+ function I(e) {
31
146
  return e ? "getUTCHours" : "getHours";
32
147
  }
33
- function p(e) {
148
+ function L(e) {
34
149
  return e ? "getUTCMinutes" : "getMinutes";
35
150
  }
36
- function m(e) {
151
+ function R(e) {
37
152
  return e ? "getUTCSeconds" : "getSeconds";
38
153
  }
39
- function h(e) {
154
+ function z(e) {
40
155
  return e ? "getUTCMilliseconds" : "getMilliseconds";
41
156
  }
157
+ function B(e) {
158
+ return e ? "setUTCFullYear" : "setFullYear";
159
+ }
160
+ function V(e) {
161
+ return e ? "setUTCMonth" : "setMonth";
162
+ }
163
+ function H(e) {
164
+ return e ? "setUTCDate" : "setDate";
165
+ }
166
+ function U(e) {
167
+ return e ? "setUTCHours" : "setHours";
168
+ }
169
+ function W(e) {
170
+ return e ? "setUTCMinutes" : "setMinutes";
171
+ }
172
+ function G(e) {
173
+ return e ? "setUTCSeconds" : "setSeconds";
174
+ }
175
+ function K(e) {
176
+ return e ? "setUTCMilliseconds" : "setMilliseconds";
177
+ }
42
178
  //#endregion
43
- export { c as format };
179
+ export { m as ONE_DAY, p as ONE_HOUR, f as ONE_MINUTE, d as ONE_SECOND, h as ONE_YEAR, F as dateGetterName, H as dateSetterName, k as format, b as fullLeveledFormatter, N as fullYearGetterName, B as fullYearSetterName, O as getDefaultFormatPrecisionOfInterval, E as getPrimaryTimeUnit, j as getUnitFromValue, I as hoursGetterName, U as hoursSetterName, D as isPrimaryTimeUnit, A as leveledFormat, z as millisecondsGetterName, K as millisecondsSetterName, L as minutesGetterName, W as minutesSetterName, P as monthGetterName, V as monthSetterName, C as parseTimeAxisLabelFormatter, x as primaryTimeUnits, M as roundTime, R as secondsGetterName, G as secondsSetterName, S as timeUnits };
@@ -0,0 +1,26 @@
1
+ import { assert as e } from "../../../zrender/lib/core/util.js";
2
+ import { MAX_SAFE_INTEGER as t } from "./number.js";
3
+ import { error as n } from "./log.js";
4
+ import "./types.js";
5
+ //#region node_modules/echarts/lib/util/vendor.js
6
+ var r = typeof Float32Array < "u" ? Float32Array : void 0, i = typeof Float64Array < "u" ? Float64Array : void 0;
7
+ function a(e) {
8
+ return o({ ctor: r }, e).arr;
9
+ }
10
+ function o(r, i) {
11
+ process.env.NODE_ENV !== "production" && e(i != null && isFinite(i) && i >= 0 && r.hasOwnProperty("ctor"));
12
+ var a = r.arr, o = r.ctor;
13
+ if (i > t && (i = t), !a || r.typed && a.length < i) {
14
+ var s = void 0;
15
+ if (o) try {
16
+ s = new o(i), r.typed = !0, a && s.set(a);
17
+ } catch (e) {
18
+ process.env.NODE_ENV !== "production" && n(e);
19
+ }
20
+ if (!s && (s = [], r.typed = !1, a)) for (var c = 0, l = a.length; c < l; c++) s[c] = a[c];
21
+ r.arr = s;
22
+ }
23
+ return r;
24
+ }
25
+ //#endregion
26
+ export { i as Float64ArrayCtor, a as createFloat32Array, o as tryEnsureTypedArray };
@@ -1,34 +1,34 @@
1
1
  import { each as e } from "../../../zrender/lib/core/util.js";
2
- import { error as t } from "../util/log.js";
3
- import { makeInner as n, normalizeToArray as r, queryDataIndex as i } from "../util/model.js";
4
- import a from "../../../zrender/lib/graphic/Group.js";
5
- import { traverseElements as o } from "../util/graphic.js";
2
+ import { enableClassExtend as t, enableClassManagement as n } from "../util/clazz.js";
3
+ import { error as r } from "../util/log.js";
4
+ import { makeInner as i, normalizeToArray as a, queryDataIndex as o } from "../util/model.js";
6
5
  import { enterEmphasis as s, getHighlightDigit as c, isHighDownDispatcher as l, leaveEmphasis as u } from "../util/states.js";
7
- import { enableClassExtend as d, enableClassManagement as f } from "../util/clazz.js";
6
+ import d from "../../../zrender/lib/graphic/Group.js";
7
+ import { traverseElements as f } from "../util/graphic.js";
8
8
  import { getUID as p } from "../util/component.js";
9
9
  import { createTask as m } from "../core/task.js";
10
10
  import h from "../chart/helper/createRenderPlanner.js";
11
11
  //#region node_modules/echarts/lib/view/Chart.js
12
- var g = n(), _ = h(), v = function() {
12
+ var g = i(), _ = h(), v = function() {
13
13
  function e() {
14
- this.group = new a(), this.uid = p("viewChart"), this.renderTask = m({
14
+ this.group = new d(), this.uid = p("viewChart"), this.renderTask = m({
15
15
  plan: x,
16
16
  reset: S
17
17
  }), this.renderTask.context = { view: this };
18
18
  }
19
19
  return e.prototype.init = function(e, t) {}, e.prototype.render = function(e, t, n, r) {
20
20
  if (process.env.NODE_ENV !== "production") throw Error("render method must been implemented");
21
- }, e.prototype.highlight = function(e, n, r, i) {
21
+ }, e.prototype.highlight = function(e, t, n, i) {
22
22
  var a = e.getData(i && i.dataType);
23
23
  if (!a) {
24
- process.env.NODE_ENV !== "production" && t("Unknown dataType " + i.dataType);
24
+ process.env.NODE_ENV !== "production" && r("Unknown dataType " + i.dataType);
25
25
  return;
26
26
  }
27
27
  b(a, i, "emphasis");
28
- }, e.prototype.downplay = function(e, n, r, i) {
28
+ }, e.prototype.downplay = function(e, t, n, i) {
29
29
  var a = e.getData(i && i.dataType);
30
30
  if (!a) {
31
- process.env.NODE_ENV !== "production" && t("Unknown dataType " + i.dataType);
31
+ process.env.NODE_ENV !== "production" && r("Unknown dataType " + i.dataType);
32
32
  return;
33
33
  }
34
34
  b(a, i, "normal");
@@ -39,7 +39,7 @@ var g = n(), _ = h(), v = function() {
39
39
  }, e.prototype.updateVisual = function(e, t, n, r) {
40
40
  this.render(e, t, n, r);
41
41
  }, e.prototype.eachRendered = function(e) {
42
- o(this.group, e);
42
+ f(this.group, e);
43
43
  }, e.markUpdateMethod = function(e, t) {
44
44
  g(e).updateMethod = t;
45
45
  }, e.protoInitialize = function() {
@@ -50,15 +50,15 @@ var g = n(), _ = h(), v = function() {
50
50
  function y(e, t, n) {
51
51
  e && l(e) && (t === "emphasis" ? s : u)(e, n);
52
52
  }
53
- function b(t, n, a) {
54
- var o = i(t, n), s = n && n.highlightKey != null ? c(n.highlightKey) : null;
55
- o == null ? t.eachItemGraphicEl(function(e) {
56
- y(e, a, s);
57
- }) : e(r(o), function(e) {
58
- y(t.getItemGraphicEl(e), a, s);
53
+ function b(t, n, r) {
54
+ var i = o(t, n), s = n && n.highlightKey != null ? c(n.highlightKey) : null;
55
+ i == null ? t.eachItemGraphicEl(function(e) {
56
+ y(e, r, s);
57
+ }) : e(a(i), function(e) {
58
+ y(t.getItemGraphicEl(e), r, s);
59
59
  });
60
60
  }
61
- d(v, ["dispose"]), f(v);
61
+ t(v, ["dispose"]), n(v);
62
62
  function x(e) {
63
63
  return _(e.model);
64
64
  }
@@ -1,16 +1,16 @@
1
- import e from "../../../zrender/lib/graphic/Group.js";
2
- import { enableClassExtend as t, enableClassManagement as n } from "../util/clazz.js";
1
+ import { enableClassExtend as e, enableClassManagement as t } from "../util/clazz.js";
2
+ import n from "../../../zrender/lib/graphic/Group.js";
3
3
  import { getUID as r } from "../util/component.js";
4
4
  //#region node_modules/echarts/lib/view/Component.js
5
5
  var i = function() {
6
- function t() {
7
- this.group = new e(), this.uid = r("viewComponent");
6
+ function e() {
7
+ this.group = new n(), this.uid = r("viewComponent");
8
8
  }
9
- return t.prototype.init = function(e, t) {}, t.prototype.render = function(e, t, n, r) {}, t.prototype.dispose = function(e, t) {}, t.prototype.updateView = function(e, t, n, r) {}, t.prototype.updateLayout = function(e, t, n, r) {}, t.prototype.updateVisual = function(e, t, n, r) {}, t.prototype.toggleBlurSeries = function(e, t, n) {}, t.prototype.eachRendered = function(e) {
9
+ return e.prototype.init = function(e, t) {}, e.prototype.render = function(e, t, n, r) {}, e.prototype.dispose = function(e, t) {}, e.prototype.updateView = function(e, t, n, r) {}, e.prototype.updateLayout = function(e, t, n, r) {}, e.prototype.updateVisual = function(e, t, n, r) {}, e.prototype.toggleBlurSeries = function(e, t, n) {}, e.prototype.eachRendered = function(e) {
10
10
  var t = this.group;
11
11
  t && t.traverse(e);
12
- }, t;
12
+ }, e;
13
13
  }();
14
- t(i), n(i);
14
+ e(i), t(i);
15
15
  //#endregion
16
16
  export { i as default };
@@ -1,13 +1,13 @@
1
1
  import { createHashMap as e, extend as t, isFunction as n } from "../../../zrender/lib/core/util.js";
2
- import { makeInner as r } from "../util/model.js";
3
- import i from "../model/mixin/makeStyleMapper.js";
2
+ import r from "../model/mixin/makeStyleMapper.js";
3
+ import { makeInner as i } from "../util/model.js";
4
4
  import { LINE_STYLE_KEY_MAP as a } from "../model/mixin/lineStyle.js";
5
5
  import { ITEM_STYLE_KEY_MAP as o } from "../model/mixin/itemStyle.js";
6
6
  import s from "../model/Model.js";
7
7
  //#region node_modules/echarts/lib/visual/style.js
8
- var c = r(), l = {
9
- itemStyle: i(o, !0),
10
- lineStyle: i(a, !0)
8
+ var c = i(), l = {
9
+ itemStyle: r(o, !0),
10
+ lineStyle: r(a, !0)
11
11
  }, u = {
12
12
  lineStyle: "stroke",
13
13
  itemStyle: "fill"
@@ -1,16 +1,16 @@
1
1
  import { extend as e, filter as t, guid as n, indexOf as r, isArrayLike as i, isGradientObject as a, isObject as o, isTypedArray as s, keys as c, logError as l, mixin as u, reduce as d } from "./core/util.js";
2
2
  import { invert as f } from "./core/matrix.js";
3
- import p, { TRANSFORMABLE_PROPS as m } from "./core/Transformable.js";
4
- import { parse as h, stringify as g } from "./tool/color.js";
5
- import _, { cloneValue as v } from "./animation/Animator.js";
6
- import y from "./core/BoundingRect.js";
7
- import b from "./core/Eventful.js";
8
- import { calculateTextPosition as x, parsePercent as S } from "./contain/text.js";
3
+ import p from "./core/BoundingRect.js";
4
+ import { calculateTextPosition as m, parsePercent as h } from "./contain/text.js";
5
+ import g, { TRANSFORMABLE_PROPS as _ } from "./core/Transformable.js";
6
+ import { parse as v, stringify as y } from "./tool/color.js";
7
+ import b, { cloneValue as x } from "./animation/Animator.js";
8
+ import S from "./core/Eventful.js";
9
9
  import { DARK_LABEL_COLOR as C, LIGHT_LABEL_COLOR as w } from "./config.js";
10
10
  //#region node_modules/zrender/lib/Element.js
11
- var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
11
+ var T = "__zr_normal__", E = _.concat(["ignore"]), D = d(_, function(e, t) {
12
12
  return e[t] = !0, e;
13
- }, { ignore: !1 }), O = {}, k = new y(0, 0, 0, 0), A = [], j = function() {
13
+ }, { ignore: !1 }), O = {}, k = new p(0, 0, 0, 0), A = [], j = function() {
14
14
  function t(e) {
15
15
  this.id = n(), this.animators = [], this.currentStates = [], this.states = {}, this._init(e);
16
16
  }
@@ -46,23 +46,23 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
46
46
  i.copyTransform(t);
47
47
  var l = n.position != null, u = n.autoOverflowArea, d = void 0;
48
48
  if ((u || l) && (d = k, n.layoutRect ? d.copy(n.layoutRect) : d.copy(this.getBoundingRect()), r || d.applyTransform(this.transform)), l) {
49
- this.calculateTextPosition ? this.calculateTextPosition(O, n, d) : x(O, n, d), i.x = O.x, i.y = O.y, a = O.align, o = O.verticalAlign;
50
- var p = n.origin;
51
- if (p && n.rotation != null) {
52
- var m = void 0, h = void 0;
53
- p === "center" ? (m = d.width * .5, h = d.height * .5) : (m = S(p[0], d.width), h = S(p[1], d.height)), c = !0, i.originX = -i.x + m + (r ? 0 : d.x), i.originY = -i.y + h + (r ? 0 : d.y);
49
+ this.calculateTextPosition ? this.calculateTextPosition(O, n, d) : m(O, n, d), i.x = O.x, i.y = O.y, a = O.align, o = O.verticalAlign;
50
+ var g = n.origin;
51
+ if (g && n.rotation != null) {
52
+ var _ = void 0, v = void 0;
53
+ g === "center" ? (_ = d.width * .5, v = d.height * .5) : (_ = h(g[0], d.width), v = h(g[1], d.height)), c = !0, i.originX = -i.x + _ + (r ? 0 : d.x), i.originY = -i.y + v + (r ? 0 : d.y);
54
54
  }
55
55
  }
56
56
  n.rotation != null && (i.rotation = n.rotation);
57
- var g = n.offset;
58
- g && (i.x += g[0], i.y += g[1], c || (i.originX = -g[0], i.originY = -g[1]));
59
- var _ = this._innerTextDefaultStyle ||= {};
57
+ var y = n.offset;
58
+ y && (i.x += y[0], i.y += y[1], c || (i.originX = -y[0], i.originY = -y[1]));
59
+ var b = this._innerTextDefaultStyle ||= {};
60
60
  if (u) {
61
- var v = _.overflowRect = _.overflowRect || new y(0, 0, 0, 0);
62
- i.getLocalTransform(A), f(A, A), y.copy(v, d), v.applyTransform(A);
63
- } else _.overflowRect = null;
64
- var b = n.inside == null ? typeof n.position == "string" && n.position.indexOf("inside") >= 0 : n.inside, C = void 0, w = void 0, T = void 0;
65
- b && this.canBeInsideText() ? (C = n.insideFill, w = n.insideStroke, (C == null || C === "auto") && (C = this.getInsideTextFill()), (w == null || w === "auto") && (w = this.getInsideTextStroke(C), T = !0)) : (C = n.outsideFill, w = n.outsideStroke, (C == null || C === "auto") && (C = this.getOutsideFill()), (w == null || w === "auto") && (w = this.getOutsideStroke(C), T = !0)), C ||= "#000", (C !== _.fill || w !== _.stroke || T !== _.autoStroke || a !== _.align || o !== _.verticalAlign) && (s = !0, _.fill = C, _.stroke = w, _.autoStroke = T, _.align = a, _.verticalAlign = o, t.setDefaultTextStyle(_)), t.__dirty |= 1, s && t.dirtyStyle(!0);
61
+ var x = b.overflowRect = b.overflowRect || new p(0, 0, 0, 0);
62
+ i.getLocalTransform(A), f(A, A), p.copy(x, d), x.applyTransform(A);
63
+ } else b.overflowRect = null;
64
+ var S = n.inside == null ? typeof n.position == "string" && n.position.indexOf("inside") >= 0 : n.inside, C = void 0, w = void 0, T = void 0;
65
+ S && this.canBeInsideText() ? (C = n.insideFill, w = n.insideStroke, (C == null || C === "auto") && (C = this.getInsideTextFill()), (w == null || w === "auto") && (w = this.getInsideTextStroke(C), T = !0)) : (C = n.outsideFill, w = n.outsideStroke, (C == null || C === "auto") && (C = this.getOutsideFill()), (w == null || w === "auto") && (w = this.getOutsideStroke(C), T = !0)), C ||= "#000", (C !== b.fill || w !== b.stroke || T !== b.autoStroke || a !== b.align || o !== b.verticalAlign) && (s = !0, b.fill = C, b.stroke = w, b.autoStroke = T, b.align = a, b.verticalAlign = o, t.setDefaultTextStyle(b)), t.__dirty |= 1, s && t.dirtyStyle(!0);
66
66
  }
67
67
  }, t.prototype.canBeInsideText = function() {
68
68
  return !0;
@@ -73,7 +73,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
73
73
  }, t.prototype.getOutsideFill = function() {
74
74
  return this.__zr && this.__zr.isDarkMode() ? w : C;
75
75
  }, t.prototype.getOutsideStroke = function(e) {
76
- var t = this.__zr && this.__zr.getBackgroundColor(), n = typeof t == "string" && h(t);
76
+ var t = this.__zr && this.__zr.getBackgroundColor(), n = typeof t == "string" && v(t);
77
77
  n ||= [
78
78
  255,
79
79
  255,
@@ -81,7 +81,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
81
81
  1
82
82
  ];
83
83
  for (var r = n[3], i = this.__zr.isDarkMode(), a = 0; a < 3; a++) n[a] = n[a] * r + (i ? 0 : 255) * (1 - r);
84
- return n[3] = 1, g(n, "rgba");
84
+ return n[3] = 1, y(n, "rgba");
85
85
  }, t.prototype.traverse = function(e, t) {}, t.prototype.attrKV = function(t, n) {
86
86
  t === "textConfig" ? this.setTextConfig(n) : t === "textContent" ? this.setTextContent(n) : t === "clipPath" ? this.setClipPath(n) : t === "extra" ? (this.extra = this.extra || {}, e(this.extra, n)) : this[t] = n;
87
87
  }, t.prototype.hide = function() {
@@ -229,7 +229,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
229
229
  var t = this._textContent;
230
230
  if (t !== e) {
231
231
  if (t && t !== e && this.removeTextContent(), process.env.NODE_ENV !== "production" && e.__zr && !e.__hostTarget) throw Error("Text element has been added to zrender.");
232
- e.innerTransformable = new p(), this._attachComponent(e), this._textContent = e, this.markRedraw();
232
+ e.innerTransformable = new g(), this._attachComponent(e), this._textContent = e, this.markRedraw();
233
233
  }
234
234
  }, t.prototype.setTextConfig = function(t) {
235
235
  this.textConfig ||= {}, e(this.textConfig, t), this.markRedraw();
@@ -271,7 +271,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
271
271
  l("Property \"" + e + "\" is not existed in element " + this.id);
272
272
  return;
273
273
  }
274
- var i = new _(r, t, n);
274
+ var i = new b(r, t, n);
275
275
  return e && (i.targetName = e), this.addAnimator(i, e), i;
276
276
  }, t.prototype.addAnimator = function(e, t) {
277
277
  var n = this.__zr, i = this;
@@ -340,7 +340,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
340
340
  Object.defineProperty && (i("position", "_legacyPos", "x", "y"), i("scale", "_legacyScale", "scaleX", "scaleY"), i("origin", "_legacyOrigin", "originX", "originY"));
341
341
  })(), t;
342
342
  }();
343
- u(j, b), u(j, p);
343
+ u(j, S), u(j, g);
344
344
  function M(e, t, n, r, i) {
345
345
  n ||= {};
346
346
  var a = [];
@@ -387,9 +387,9 @@ function L(e, t) {
387
387
  return !0;
388
388
  }
389
389
  function R(e, n, s, l, u, d, f, p) {
390
- for (var m = c(l), h = u.duration, g = u.delay, y = u.additive, b = u.setToFinal, x = !o(d), S = e.animators, C = [], w = 0; w < m.length; w++) {
390
+ for (var m = c(l), h = u.duration, g = u.delay, _ = u.additive, v = u.setToFinal, y = !o(d), S = e.animators, C = [], w = 0; w < m.length; w++) {
391
391
  var T = m[w], E = l[T];
392
- if (E != null && s[T] != null && (x || d[T])) if (o(E) && !i(E) && !a(E)) {
392
+ if (E != null && s[T] != null && (y || d[T])) if (o(E) && !i(E) && !a(E)) {
393
393
  if (n) {
394
394
  p || (s[T] = E, e.updateDuringAnimation(n));
395
395
  continue;
@@ -399,7 +399,7 @@ function R(e, n, s, l, u, d, f, p) {
399
399
  else p || (s[T] = E, e.updateDuringAnimation(n), C.push(T));
400
400
  }
401
401
  var D = C.length;
402
- if (!y && D) for (var O = 0; O < S.length; O++) {
402
+ if (!_ && D) for (var O = 0; O < S.length; O++) {
403
403
  var k = S[O];
404
404
  if (k.targetName === n && k.stopTracks(C)) {
405
405
  var A = r(S, k);
@@ -411,22 +411,22 @@ function R(e, n, s, l, u, d, f, p) {
411
411
  }), D = C.length), D > 0 || u.force && !f.length) {
412
412
  var j = void 0, M = void 0, N = void 0;
413
413
  if (p) {
414
- M = {}, b && (j = {});
414
+ M = {}, v && (j = {});
415
415
  for (var O = 0; O < D; O++) {
416
416
  var T = C[O];
417
- M[T] = s[T], b ? j[T] = l[T] : s[T] = l[T];
417
+ M[T] = s[T], v ? j[T] = l[T] : s[T] = l[T];
418
418
  }
419
- } else if (b) {
419
+ } else if (v) {
420
420
  N = {};
421
421
  for (var O = 0; O < D; O++) {
422
422
  var T = C[O];
423
- N[T] = v(s[T]), F(s, l, T);
423
+ N[T] = x(s[T]), F(s, l, T);
424
424
  }
425
425
  }
426
- var k = new _(s, !1, !1, y ? t(S, function(e) {
426
+ var k = new b(s, !1, !1, _ ? t(S, function(e) {
427
427
  return e.targetName === n;
428
428
  }) : null);
429
- k.targetName = n, u.scope && (k.scope = u.scope), b && j && k.whenWithKeys(0, j, C), N && k.whenWithKeys(0, N, C), k.whenWithKeys(h ?? 500, p ? M : l, C).delay(g || 0), e.addAnimator(k, n), f.push(k);
429
+ k.targetName = n, u.scope && (k.scope = u.scope), v && j && k.whenWithKeys(0, j, C), N && k.whenWithKeys(0, N, C), k.whenWithKeys(h ?? 500, p ? M : l, C).delay(g || 0), e.addAnimator(k, n), f.push(k);
430
430
  }
431
431
  }
432
432
  function z(e, t, n, r) {
@@ -1,15 +1,15 @@
1
1
  import "../core/platform.js";
2
2
  import { RADIAN_TO_DEGREE as e } from "../core/util.js";
3
- import { DEFAULT_COMMON_STYLE as t } from "../graphic/Displayable.js";
4
- import n from "../core/PathProxy.js";
5
- import r from "../graphic/Path.js";
6
- import i from "../graphic/Image.js";
7
- import { createOrUpdateImage as a, isImageReady as o } from "../graphic/helper/image.js";
8
- import s from "../graphic/TSpan.js";
3
+ import { createOrUpdateImage as t, isImageReady as n } from "../graphic/helper/image.js";
4
+ import { DEFAULT_COMMON_STYLE as r } from "../graphic/Displayable.js";
5
+ import i from "../core/PathProxy.js";
6
+ import a from "../graphic/Path.js";
7
+ import o from "../graphic/TSpan.js";
8
+ import s from "../graphic/Image.js";
9
9
  import { getCanvasGradient as c, isClipPathChanged as l } from "./helper.js";
10
10
  import { getLineDash as u } from "./dashStyle.js";
11
11
  //#region node_modules/zrender/lib/canvas/graphic.js
12
- var d = new n(!0);
12
+ var d = new i(!0);
13
13
  function f(e) {
14
14
  var t = e.stroke;
15
15
  return !(t == null || t === "none" || !(e.lineWidth > 0));
@@ -33,13 +33,13 @@ function g(e, t) {
33
33
  e.globalAlpha = t.strokeOpacity * t.opacity, e.stroke(), e.globalAlpha = n;
34
34
  } else e.stroke();
35
35
  }
36
- function _(t, n, r) {
37
- var i = a(n.image, n.__image, r);
38
- if (o(i)) {
39
- var s = t.createPattern(i, n.repeat || "repeat");
36
+ function _(r, i, a) {
37
+ var o = t(i.image, i.__image, a);
38
+ if (n(o)) {
39
+ var s = r.createPattern(o, i.repeat || "repeat");
40
40
  if (typeof DOMMatrix == "function" && s && s.setTransform) {
41
41
  var c = new DOMMatrix();
42
- c.translateSelf(n.x || 0, n.y || 0), c.rotateSelf(0, 0, (n.rotation || 0) * e), c.scaleSelf(n.scaleX || 1, n.scaleY || 1), s.setTransform(c);
42
+ c.translateSelf(i.x || 0, i.y || 0), c.rotateSelf(0, 0, (i.rotation || 0) * e), c.scaleSelf(i.scaleX || 1, i.scaleY || 1), s.setTransform(c);
43
43
  }
44
44
  return s;
45
45
  }
@@ -59,17 +59,17 @@ function v(e, t, n, r, i) {
59
59
  var F = !0;
60
60
  (v || b & 4) && (y.setDPR(e.dpr), p ? y.setContext(null) : (y.setContext(e), F = !1), y.reset(), t.buildPath(y, t.shape, r), y.toStatic(), t.pathUpdated()), F && y.rebuildPath(e, p ? l : 1), N && (e.setLineDash(N), e.lineDashOffset = P), r ? (i.batchFill = s, i.batchStroke = o) : n.strokeFirst ? (o && g(e, n), s && h(e, n)) : (s && h(e, n), o && g(e, n)), N && e.setLineDash([]);
61
61
  }
62
- function y(e, t, n) {
63
- var r = t.__image = a(n.image, t.__image, t, t.onload);
64
- if (!(!r || !o(r))) {
65
- var i = n.x || 0, s = n.y || 0, c = t.getWidth(), l = t.getHeight(), u = r.width / r.height;
66
- if (c == null && l != null ? c = l * u : l == null && c != null ? l = c / u : c == null && l == null && (c = r.width, l = r.height), n.sWidth && n.sHeight) {
67
- var d = n.sx || 0, f = n.sy || 0;
68
- e.drawImage(r, d, f, n.sWidth, n.sHeight, i, s, c, l);
69
- } else if (n.sx && n.sy) {
70
- var d = n.sx, f = n.sy, p = c - d, m = l - f;
71
- e.drawImage(r, d, f, p, m, i, s, c, l);
72
- } else e.drawImage(r, i, s, c, l);
62
+ function y(e, r, i) {
63
+ var a = r.__image = t(i.image, r.__image, r, r.onload);
64
+ if (!(!a || !n(a))) {
65
+ var o = i.x || 0, s = i.y || 0, c = r.getWidth(), l = r.getHeight(), u = a.width / a.height;
66
+ if (c == null && l != null ? c = l * u : l == null && c != null ? l = c / u : c == null && l == null && (c = a.width, l = a.height), i.sWidth && i.sHeight) {
67
+ var d = i.sx || 0, f = i.sy || 0;
68
+ e.drawImage(a, d, f, i.sWidth, i.sHeight, o, s, c, l);
69
+ } else if (i.sx && i.sy) {
70
+ var d = i.sx, f = i.sy, p = c - d, m = l - f;
71
+ e.drawImage(a, d, f, p, m, o, s, c, l);
72
+ } else e.drawImage(a, o, s, c, l);
73
73
  }
74
74
  }
75
75
  function b(e, t, n) {
@@ -89,20 +89,20 @@ var x = [
89
89
  ["lineJoin", "miter"],
90
90
  ["miterLimit", 10]
91
91
  ];
92
- function C(e, n, r, i, a) {
92
+ function C(e, t, n, i, a) {
93
93
  var o = !1;
94
- if (!i && (r ||= {}, n === r)) return !1;
95
- if (i || n.opacity !== r.opacity) {
94
+ if (!i && (n ||= {}, t === n)) return !1;
95
+ if (i || t.opacity !== n.opacity) {
96
96
  P(e, a), o = !0;
97
- var s = Math.max(Math.min(n.opacity, 1), 0);
98
- e.globalAlpha = isNaN(s) ? t.opacity : s;
97
+ var s = Math.max(Math.min(t.opacity, 1), 0);
98
+ e.globalAlpha = isNaN(s) ? r.opacity : s;
99
99
  }
100
- (i || n.blend !== r.blend) && (o ||= (P(e, a), !0), e.globalCompositeOperation = n.blend || t.blend);
100
+ (i || t.blend !== n.blend) && (o ||= (P(e, a), !0), e.globalCompositeOperation = t.blend || r.blend);
101
101
  for (var c = 0; c < x.length; c++) {
102
102
  var l = x[c];
103
- (i || n[l] !== r[l]) && (o ||= (P(e, a), !0), e[l] = e.dpr * (n[l] || 0));
103
+ (i || t[l] !== n[l]) && (o ||= (P(e, a), !0), e[l] = e.dpr * (t[l] || 0));
104
104
  }
105
- return (i || n.shadowColor !== r.shadowColor) && (o ||= (P(e, a), !0), e.shadowColor = n.shadowColor || t.shadowColor), o;
105
+ return (i || t.shadowColor !== n.shadowColor) && (o ||= (P(e, a), !0), e.shadowColor = t.shadowColor || r.shadowColor), o;
106
106
  }
107
107
  function w(e, t, n, r, i) {
108
108
  var a = t.style, o = r ? null : n && n.style || {};
@@ -153,21 +153,21 @@ function F(e, t) {
153
153
  I(e, t, n), L(e, n);
154
154
  }
155
155
  function I(e, t, n) {
156
- var a = t.transform;
156
+ var r = t.transform;
157
157
  if (!t.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) {
158
158
  t.__dirty &= -2, t.__isRendered = !1;
159
159
  return;
160
160
  }
161
- var o = t.__clipPaths, c = n.prevElClipPaths, u = t.style, d = !1, f = !1;
162
- if ((!c || l(o, c)) && (c && (P(e, n), e.restore(), f = d = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), o && o.length && (P(e, n), e.save(), D(o, e, n), d = !0, n.prevElClipPaths = o)), n.allClipped) {
161
+ var i = t.__clipPaths, c = n.prevElClipPaths, u = t.style, d = !1, f = !1;
162
+ if ((!c || l(i, c)) && (c && (P(e, n), e.restore(), f = d = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), i && i.length && (P(e, n), e.save(), D(i, e, n), d = !0, n.prevElClipPaths = i)), n.allClipped) {
163
163
  t.__dirty &= -2, t.__isRendered = !1;
164
164
  return;
165
165
  }
166
166
  t.beforeBrush && t.beforeBrush(n.beforeBrushParam), t.innerBeforeBrush();
167
167
  var p = n.prevEl;
168
168
  p || (f = d = !0);
169
- var m = t instanceof r && t.autoBatch && N(u);
170
- d || O(a, p.transform) ? (P(e, n), E(e, t)) : m || P(e, n), t instanceof r ? (n.lastDrawType !== k && (f = !0, n.lastDrawType = k), w(e, t, p, f, n), (!m || !n.batchFill && !n.batchStroke) && e.beginPath(), v(e, t, u, m, n)) : t instanceof s ? (n.lastDrawType !== j && (f = !0, n.lastDrawType = j), w(e, t, p, f, n), b(e, t, u)) : t instanceof i ? (n.lastDrawType !== A && (f = !0, n.lastDrawType = A), T(e, t, p, f, n), y(e, t, u)) : t.getTemporalDisplayables && (n.lastDrawType !== M && (f = !0, n.lastDrawType = M), R(e, t, n)), t.innerAfterBrush(), t.afterBrush && (m && P(e, n), t.afterBrush()), n.prevEl = t, t.__dirty = 0, t.__isRendered = !0;
169
+ var m = t instanceof a && t.autoBatch && N(u);
170
+ d || O(r, p.transform) ? (P(e, n), E(e, t)) : m || P(e, n), t instanceof a ? (n.lastDrawType !== k && (f = !0, n.lastDrawType = k), w(e, t, p, f, n), (!m || !n.batchFill && !n.batchStroke) && e.beginPath(), v(e, t, u, m, n)) : t instanceof o ? (n.lastDrawType !== j && (f = !0, n.lastDrawType = j), w(e, t, p, f, n), b(e, t, u)) : t instanceof s ? (n.lastDrawType !== A && (f = !0, n.lastDrawType = A), T(e, t, p, f, n), y(e, t, u)) : t.getTemporalDisplayables && (n.lastDrawType !== M && (f = !0, n.lastDrawType = M), R(e, t, n)), t.innerAfterBrush(), t.afterBrush && (m && P(e, n), t.afterBrush()), n.prevEl = t, t.__dirty = 0, t.__isRendered = !0;
171
171
  }
172
172
  function L(e, t) {
173
173
  P(e, t), t.prevElClipPaths && e.restore();