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,12 +1,12 @@
1
1
  import { platformApi as e } from "../../../zrender/lib/core/platform.js";
2
2
  import { defaults as t, isArray as n, isNumber as r, isString as i, map as a } from "../../../zrender/lib/core/util.js";
3
- import { getLeastCommonMultiple as o } from "./number.js";
4
- import s from "../../../zrender/lib/core/LRU.js";
3
+ import o from "../../../zrender/lib/core/LRU.js";
4
+ import { getLeastCommonMultiple as s } from "./number.js";
5
5
  import { createSymbol as c } from "./symbol.js";
6
6
  import l from "../../../zrender/lib/core/WeakMap.js";
7
7
  import { brushSingle as u } from "../../../zrender/lib/canvas/graphic.js";
8
8
  //#region node_modules/echarts/lib/util/decal.js
9
- var d = new l(), f = new s(100), p = [
9
+ var d = new l(), f = new o(100), p = [
10
10
  "symbol",
11
11
  "symbolSize",
12
12
  "symbolKeepAspect",
@@ -17,9 +17,9 @@ var d = new l(), f = new s(100), p = [
17
17
  "maxTileWidth",
18
18
  "maxTileHeight"
19
19
  ];
20
- function m(a, s) {
20
+ function m(a, o) {
21
21
  if (a === "none") return null;
22
- var l = s.getDevicePixelRatio(), m = s.getZr(), b = m.painter.type === "svg";
22
+ var l = o.getDevicePixelRatio(), m = o.getZr(), b = m.painter.type === "svg";
23
23
  a.dirty && d.delete(a);
24
24
  var x = d.get(a);
25
25
  if (x) return x;
@@ -39,16 +39,16 @@ function m(a, s) {
39
39
  var C = { repeat: "repeat" };
40
40
  return w(C), C.rotation = S.rotation, C.scaleX = C.scaleY = b ? 1 : 1 / l, d.set(a, C), a.dirty = !1, C;
41
41
  function w(t) {
42
- for (var a = [l], s = !0, d = 0; d < p.length; ++d) {
42
+ for (var a = [l], o = !0, d = 0; d < p.length; ++d) {
43
43
  var x = S[p[d]];
44
44
  if (x != null && !n(x) && !i(x) && !r(x) && typeof x != "boolean") {
45
- s = !1;
45
+ o = !1;
46
46
  break;
47
47
  }
48
48
  a.push(x);
49
49
  }
50
50
  var C;
51
- if (s) {
51
+ if (o) {
52
52
  C = a.join(",") + (b ? "-svg" : "");
53
53
  var w = f.get(C);
54
54
  w && (b ? t.svgElement = w : t.image = w);
@@ -59,10 +59,10 @@ function m(a, s) {
59
59
  key: "dcl",
60
60
  children: []
61
61
  }, M = P(), N;
62
- A && (A.width = M.width * l, A.height = M.height * l, N = A.getContext("2d")), F(), s && f.put(C, A || j), t.image = A, t.svgElement = j, t.svgWidth = M.width, t.svgHeight = M.height;
62
+ A && (A.width = M.width * l, A.height = M.height * l, N = A.getContext("2d")), F(), o && f.put(C, A || j), t.image = A, t.svgElement = j, t.svgWidth = M.width, t.svgHeight = M.height;
63
63
  function P() {
64
- for (var e = 1, t = 0, n = O.length; t < n; ++t) e = o(e, O[t]);
65
- for (var r = 1, t = 0, n = D.length; t < n; ++t) r = o(r, D[t].length);
64
+ for (var e = 1, t = 0, n = O.length; t < n; ++t) e = s(e, O[t]);
65
+ for (var r = 1, t = 0, n = D.length; t < n; ++t) r = s(r, D[t].length);
66
66
  e *= r;
67
67
  var i = k * O.length * D.length;
68
68
  if (process.env.NODE_ENV !== "production") {
@@ -84,4 +84,4 @@ function x(e, t) {
84
84
  return t ||= "transparent", r(e) ? e : n(e) && e.colorStops && (e.colorStops[0] || {}).color || t;
85
85
  }
86
86
  //#endregion
87
- export { x as convertToColorString, y as formatTpl, b as getTooltipMarker, g as makeValueReadable, h as normalizeCssArray, m as toCamelCase };
87
+ export { p as addCommas, x as convertToColorString, y as formatTpl, b as getTooltipMarker, g as makeValueReadable, h as normalizeCssArray, m as toCamelCase };
@@ -1,118 +1,118 @@
1
1
  import { __exportAll as e } from "../../../../_virtual/_rolldown/runtime.js";
2
2
  import { assert as t, clone as n, defaults as r, each as i, extend as a, hasOwn as o, isArray as s, isArrayLike as c, isNumber as l, isString as u, keys as d, map as f } from "../../../zrender/lib/core/util.js";
3
- import { mathAbs as p, mathMax as m, mathMin as h } from "./number.js";
4
- import { copy as g, create as _, identity as v, invert as ee, mul as te } from "../../../zrender/lib/core/matrix.js";
5
- import { applyTransform as ne } from "../../../zrender/lib/core/vector.js";
6
- import y, { copyTransform as re } from "../../../zrender/lib/core/Transformable.js";
7
- import ie from "../../../zrender/lib/core/Point.js";
8
- import ae from "../../../zrender/lib/core/BoundingRect.js";
9
- import oe from "../../../zrender/lib/graphic/Path.js";
10
- import { createFromString as se, extendFromString as ce, mergePath as le } from "../../../zrender/lib/tool/path.js";
3
+ import { copy as p, create as m, identity as h, invert as g, mul as ee } from "../../../zrender/lib/core/matrix.js";
4
+ import { applyTransform as te } from "../../../zrender/lib/core/vector.js";
5
+ import ne from "../../../zrender/lib/core/Point.js";
6
+ import _ from "../../../zrender/lib/core/BoundingRect.js";
7
+ import v, { copyTransform as re } from "../../../zrender/lib/core/Transformable.js";
8
+ import y from "../../../zrender/lib/graphic/Path.js";
11
9
  import b from "../../../zrender/lib/graphic/Image.js";
12
- import ue from "../../../zrender/lib/graphic/Group.js";
13
- import { subPixelOptimize as de, subPixelOptimizeLine as fe, subPixelOptimizeRect as pe } from "../../../zrender/lib/graphic/helper/subPixelOptimize.js";
14
- import x from "../../../zrender/lib/graphic/shape/Rect.js";
15
- import me from "../../../zrender/lib/graphic/Text.js";
16
- import S from "../../../zrender/lib/graphic/shape/Circle.js";
17
- import C from "../../../zrender/lib/graphic/shape/Ellipse.js";
18
- import w from "../../../zrender/lib/graphic/shape/Sector.js";
19
- import T from "../../../zrender/lib/graphic/shape/Ring.js";
20
- import E from "../../../zrender/lib/graphic/shape/Polygon.js";
21
- import D from "../../../zrender/lib/graphic/shape/Polyline.js";
22
- import O from "../../../zrender/lib/graphic/shape/Line.js";
23
- import k from "../../../zrender/lib/graphic/shape/BezierCurve.js";
24
- import A from "../../../zrender/lib/graphic/shape/Arc.js";
25
- import he from "../../../zrender/lib/graphic/CompoundPath.js";
26
- import ge from "../../../zrender/lib/graphic/LinearGradient.js";
27
- import _e from "../../../zrender/lib/graphic/RadialGradient.js";
28
- import ve from "../../../zrender/lib/core/OrientedBoundingRect.js";
29
- import ye from "../../../zrender/lib/graphic/IncrementalDisplayable.js";
30
- import { getECData as j } from "./innerStore.js";
31
- import { initProps as be, isElementRemoved as xe, removeElement as Se, removeElementWithFadeOut as Ce, updateProps as M } from "../animation/basicTransition.js";
10
+ import { subPixelOptimize as ie, subPixelOptimizeLine as ae, subPixelOptimizeRect as oe } from "../../../zrender/lib/graphic/helper/subPixelOptimize.js";
11
+ import se from "../../../zrender/lib/graphic/shape/Rect.js";
12
+ import ce from "../../../zrender/lib/graphic/Text.js";
13
+ import { mathAbs as x, mathMax as S, mathMin as C } from "./number.js";
14
+ import { getECData as w } from "./innerStore.js";
15
+ import { createFromString as le, extendFromString as ue, mergePath as de } from "../../../zrender/lib/tool/path.js";
16
+ import fe from "../../../zrender/lib/graphic/Group.js";
17
+ import T from "../../../zrender/lib/graphic/shape/Circle.js";
18
+ import E from "../../../zrender/lib/graphic/shape/Ellipse.js";
19
+ import D from "../../../zrender/lib/graphic/shape/Sector.js";
20
+ import O from "../../../zrender/lib/graphic/shape/Ring.js";
21
+ import k from "../../../zrender/lib/graphic/shape/Polygon.js";
22
+ import A from "../../../zrender/lib/graphic/shape/Polyline.js";
23
+ import j from "../../../zrender/lib/graphic/shape/Line.js";
24
+ import M from "../../../zrender/lib/graphic/shape/BezierCurve.js";
25
+ import N from "../../../zrender/lib/graphic/shape/Arc.js";
26
+ import pe from "../../../zrender/lib/graphic/CompoundPath.js";
27
+ import me from "../../../zrender/lib/graphic/LinearGradient.js";
28
+ import he from "../../../zrender/lib/graphic/RadialGradient.js";
29
+ import ge from "../../../zrender/lib/core/OrientedBoundingRect.js";
30
+ import _e from "../../../zrender/lib/graphic/IncrementalDisplayable.js";
31
+ import { initProps as ve, isElementRemoved as ye, removeElement as be, removeElementWithFadeOut as xe, updateProps as P } from "../animation/basicTransition.js";
32
32
  //#region node_modules/echarts/lib/util/graphic.js
33
- var we = /* @__PURE__ */ e({
34
- Arc: () => A,
35
- BezierCurve: () => k,
36
- BoundingRect: () => ae,
37
- Circle: () => S,
38
- CompoundPath: () => he,
39
- Ellipse: () => C,
40
- Group: () => ue,
33
+ var Se = /* @__PURE__ */ e({
34
+ Arc: () => N,
35
+ BezierCurve: () => M,
36
+ BoundingRect: () => _,
37
+ Circle: () => T,
38
+ CompoundPath: () => pe,
39
+ Ellipse: () => E,
40
+ Group: () => fe,
41
41
  HOVER_LAYER_FOR_INCREMENTAL: () => 2,
42
42
  HOVER_LAYER_FROM_THRESHOLD: () => 1,
43
43
  HOVER_LAYER_NO: () => 0,
44
44
  Image: () => b,
45
- IncrementalDisplayable: () => ye,
46
- Line: () => O,
47
- LinearGradient: () => ge,
48
- OrientedBoundingRect: () => ve,
49
- Path: () => oe,
50
- Point: () => ie,
51
- Polygon: () => E,
52
- Polyline: () => D,
53
- RadialGradient: () => _e,
54
- Rect: () => x,
55
- Ring: () => T,
56
- Sector: () => w,
57
- Text: () => me,
58
- WH: () => Te,
59
- XY: () => P,
60
- applyTransform: () => V,
61
- calcZ2Range: () => Ke,
62
- clipPointsByRect: () => Le,
63
- clipRectByRect: () => Re,
64
- createIcon: () => U,
45
+ IncrementalDisplayable: () => _e,
46
+ Line: () => j,
47
+ LinearGradient: () => me,
48
+ OrientedBoundingRect: () => ge,
49
+ Path: () => y,
50
+ Point: () => ne,
51
+ Polygon: () => k,
52
+ Polyline: () => A,
53
+ RadialGradient: () => he,
54
+ Rect: () => se,
55
+ Ring: () => O,
56
+ Sector: () => D,
57
+ Text: () => ce,
58
+ WH: () => L,
59
+ XY: () => I,
60
+ applyTransform: () => W,
61
+ calcZ2Range: () => Ge,
62
+ clipPointsByRect: () => Me,
63
+ clipRectByRect: () => Ne,
64
+ createIcon: () => Pe,
65
65
  decomposeTransform: () => Ye,
66
- ensureCopyRect: () => Z,
67
- ensureCopyTransform: () => We,
68
- expandOrShrinkRect: () => K,
69
- extendPath: () => Oe,
70
- extendShape: () => Ee,
66
+ ensureCopyRect: () => Q,
67
+ ensureCopyTransform: () => Ue,
68
+ expandOrShrinkRect: () => Re,
69
+ extendPath: () => Te,
70
+ extendShape: () => Ce,
71
71
  getCurrentCanvasPainter: () => Xe,
72
- getShapeClass: () => ke,
73
- getTransform: () => Ne,
74
- groupTransition: () => Ie,
75
- initProps: () => be,
76
- isBoundingRectAxisAligned: () => Ue,
77
- isElementRemoved: () => xe,
78
- lineLineIntersect: () => W,
79
- linePolygonIntersect: () => ze,
80
- makeImage: () => L,
81
- makePath: () => I,
82
- mergePath: () => Ae,
72
+ getShapeClass: () => Ee,
73
+ getTransform: () => U,
74
+ groupTransition: () => q,
75
+ initProps: () => ve,
76
+ isBoundingRectAxisAligned: () => He,
77
+ isElementRemoved: () => ye,
78
+ lineLineIntersect: () => Ie,
79
+ linePolygonIntersect: () => Fe,
80
+ makeImage: () => De,
81
+ makePath: () => z,
82
+ mergePath: () => Oe,
83
83
  payloadDisableAnimation: () => Je,
84
- registerShape: () => F,
85
- removeElement: () => Se,
86
- removeElementWithFadeOut: () => Ce,
87
- resizePath: () => z,
88
- retrieveZInfo: () => Ge,
89
- setTooltipConfig: () => Ve,
90
- subPixelOptimize: () => Me,
91
- subPixelOptimizeLine: () => B,
92
- subPixelOptimizeRect: () => je,
93
- transformDirection: () => Pe,
94
- traverseElements: () => He,
95
- traverseUpdateZ: () => qe,
96
- updateProps: () => M
97
- }), N = {}, P = ["x", "y"], Te = ["width", "height"];
98
- function Ee(e) {
99
- return oe.extend(e);
100
- }
101
- var De = ce;
102
- function Oe(e, t) {
103
- return De(e, t);
84
+ registerShape: () => R,
85
+ removeElement: () => be,
86
+ removeElementWithFadeOut: () => xe,
87
+ resizePath: () => V,
88
+ retrieveZInfo: () => We,
89
+ setTooltipConfig: () => Be,
90
+ subPixelOptimize: () => Ae,
91
+ subPixelOptimizeLine: () => H,
92
+ subPixelOptimizeRect: () => ke,
93
+ transformDirection: () => G,
94
+ traverseElements: () => Ve,
95
+ traverseUpdateZ: () => Ke,
96
+ updateProps: () => P
97
+ }), F = {}, I = ["x", "y"], L = ["width", "height"];
98
+ function Ce(e) {
99
+ return y.extend(e);
100
+ }
101
+ var we = ue;
102
+ function Te(e, t) {
103
+ return we(e, t);
104
104
  }
105
- function F(e, t) {
106
- N[e] = t;
105
+ function R(e, t) {
106
+ F[e] = t;
107
107
  }
108
- function ke(e) {
109
- if (N.hasOwnProperty(e)) return N[e];
108
+ function Ee(e) {
109
+ if (F.hasOwnProperty(e)) return F[e];
110
110
  }
111
- function I(e, t, n, r) {
112
- var i = se(e, t);
113
- return n && (r === "center" && (n = R(n, i.getBoundingRect())), z(i, n)), i;
111
+ function z(e, t, n, r) {
112
+ var i = le(e, t);
113
+ return n && (r === "center" && (n = B(n, i.getBoundingRect())), V(i, n)), i;
114
114
  }
115
- function L(e, t, n) {
115
+ function De(e, t, n) {
116
116
  var r = new b({
117
117
  style: {
118
118
  image: e,
@@ -127,13 +127,13 @@ function L(e, t, n) {
127
127
  width: e.width,
128
128
  height: e.height
129
129
  };
130
- r.setStyle(R(t, i));
130
+ r.setStyle(B(t, i));
131
131
  }
132
132
  }
133
133
  });
134
134
  return r;
135
135
  }
136
- function R(e, t) {
136
+ function B(e, t) {
137
137
  var n = t.width / t.height, r = e.height * n, i;
138
138
  r <= e.width ? i = e.height : (r = e.width, i = r / n);
139
139
  var a = e.x + e.width / 2, o = e.y + e.height / 2;
@@ -144,43 +144,43 @@ function R(e, t) {
144
144
  height: i
145
145
  };
146
146
  }
147
- var Ae = le;
148
- function z(e, t) {
147
+ var Oe = de;
148
+ function V(e, t) {
149
149
  if (e.applyTransform) {
150
150
  var n = e.getBoundingRect().calculateTransform(t);
151
151
  e.applyTransform(n);
152
152
  }
153
153
  }
154
- function B(e, t) {
155
- return fe(e, e, { lineWidth: t }), e;
154
+ function H(e, t) {
155
+ return ae(e, e, { lineWidth: t }), e;
156
156
  }
157
- function je(e, t) {
158
- return pe(e, e, t), e;
157
+ function ke(e, t) {
158
+ return oe(e, e, t), e;
159
159
  }
160
- var Me = de;
161
- function Ne(e, t) {
162
- for (var n = v([]); e && e !== t;) te(n, e.getLocalTransform(), n), e = e.parent;
160
+ var Ae = ie;
161
+ function U(e, t) {
162
+ for (var n = h([]); e && e !== t;) ee(n, e.getLocalTransform(), n), e = e.parent;
163
163
  return n;
164
164
  }
165
- function V(e, t, n) {
166
- return t && !c(t) && (t = y.getLocalTransform(t)), n && (t = ee([], t)), ne([], e, t);
165
+ function W(e, t, n) {
166
+ return t && !c(t) && (t = v.getLocalTransform(t)), n && (t = g([], t)), te([], e, t);
167
167
  }
168
- function Pe(e, t, n) {
169
- var r = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : p(2 * t[4] / t[0]), i = t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : p(2 * t[4] / t[2]), a = [e === "left" ? -r : e === "right" ? r : 0, e === "top" ? -i : e === "bottom" ? i : 0];
170
- return a = V(a, t, n), p(a[0]) > p(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
168
+ function G(e, t, n) {
169
+ var r = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : x(2 * t[4] / t[0]), i = t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : x(2 * t[4] / t[2]), a = [e === "left" ? -r : e === "right" ? r : 0, e === "top" ? -i : e === "bottom" ? i : 0];
170
+ return a = W(a, t, n), x(a[0]) > x(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
171
171
  }
172
- function H(e) {
172
+ function K(e) {
173
173
  return !e.isGroup;
174
174
  }
175
- function Fe(e) {
175
+ function je(e) {
176
176
  return e.shape != null;
177
177
  }
178
- function Ie(e, t, r) {
178
+ function q(e, t, r) {
179
179
  if (!e || !t) return;
180
180
  function i(e) {
181
181
  var t = {};
182
182
  return e.traverse(function(e) {
183
- H(e) && e.anid && (t[e.anid] = e);
183
+ K(e) && e.anid && (t[e.anid] = e);
184
184
  }), t;
185
185
  }
186
186
  function a(e) {
@@ -189,29 +189,29 @@ function Ie(e, t, r) {
189
189
  y: e.y,
190
190
  rotation: e.rotation
191
191
  };
192
- return Fe(e) && (t.shape = n(e.shape)), t;
192
+ return je(e) && (t.shape = n(e.shape)), t;
193
193
  }
194
194
  var o = i(e);
195
195
  t.traverse(function(e) {
196
- if (H(e) && e.anid) {
196
+ if (K(e) && e.anid) {
197
197
  var t = o[e.anid];
198
198
  if (t) {
199
199
  var n = a(e);
200
- e.attr(a(t)), M(e, n, r, j(e).dataIndex);
200
+ e.attr(a(t)), P(e, n, r, w(e).dataIndex);
201
201
  }
202
202
  }
203
203
  });
204
204
  }
205
- function Le(e, t) {
205
+ function Me(e, t) {
206
206
  return f(e, function(e) {
207
207
  var n = e[0];
208
- n = m(n, t.x), n = h(n, t.x + t.width);
208
+ n = S(n, t.x), n = C(n, t.x + t.width);
209
209
  var r = e[1];
210
- return r = m(r, t.y), r = h(r, t.y + t.height), [n, r];
210
+ return r = S(r, t.y), r = C(r, t.y + t.height), [n, r];
211
211
  });
212
212
  }
213
- function Re(e, t) {
214
- var n = m(e.x, t.x), r = h(e.x + e.width, t.x + t.width), i = m(e.y, t.y), a = h(e.y + e.height, t.y + t.height);
213
+ function Ne(e, t) {
214
+ var n = S(e.x, t.x), r = C(e.x + e.width, t.x + t.width), i = S(e.y, t.y), a = C(e.y + e.height, t.y + t.height);
215
215
  if (r >= n && a >= i) return {
216
216
  x: n,
217
217
  y: i,
@@ -219,50 +219,50 @@ function Re(e, t) {
219
219
  height: a - i
220
220
  };
221
221
  }
222
- function U(e, t, n) {
222
+ function Pe(e, t, n) {
223
223
  var i = a({ rectHover: !0 }, t), o = i.style = { strokeNoScale: !0 };
224
224
  if (n ||= {
225
225
  x: -1,
226
226
  y: -1,
227
227
  width: 2,
228
228
  height: 2
229
- }, e) return e.indexOf("image://") === 0 ? (o.image = e.slice(8), r(o, n), new b(i)) : I(e.replace("path://", ""), i, n, "center");
229
+ }, e) return e.indexOf("image://") === 0 ? (o.image = e.slice(8), r(o, n), new b(i)) : z(e.replace("path://", ""), i, n, "center");
230
230
  }
231
- function ze(e, t, n, r, i) {
231
+ function Fe(e, t, n, r, i) {
232
232
  for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
233
233
  var s = i[a];
234
- if (W(e, t, n, r, s[0], s[1], o[0], o[1])) return !0;
234
+ if (Ie(e, t, n, r, s[0], s[1], o[0], o[1])) return !0;
235
235
  o = s;
236
236
  }
237
237
  }
238
- function W(e, t, n, r, i, a, o, s) {
239
- var c = n - e, l = r - t, u = o - i, d = s - a, f = G(u, d, c, l);
240
- if (Be(f)) return !1;
241
- var p = e - i, m = t - a, h = G(p, m, c, l) / f;
238
+ function Ie(e, t, n, r, i, a, o, s) {
239
+ var c = n - e, l = r - t, u = o - i, d = s - a, f = J(u, d, c, l);
240
+ if (Le(f)) return !1;
241
+ var p = e - i, m = t - a, h = J(p, m, c, l) / f;
242
242
  if (h < 0 || h > 1) return !1;
243
- var g = G(p, m, u, d) / f;
243
+ var g = J(p, m, u, d) / f;
244
244
  return !(g < 0 || g > 1);
245
245
  }
246
- function G(e, t, n, r) {
246
+ function J(e, t, n, r) {
247
247
  return e * r - n * t;
248
248
  }
249
- function Be(e) {
249
+ function Le(e) {
250
250
  return e <= 1e-6 && e >= -1e-6;
251
251
  }
252
- function K(e, n, r, i, a) {
253
- return n == null ? e : (l(n) ? q[0] = q[1] = q[2] = q[3] = n : (process.env.NODE_ENV !== "production" && t(n.length === 4), q[0] = n[0], q[1] = n[1], q[2] = n[2], q[3] = n[3]), i && (q[0] = m(0, q[0]), q[1] = m(0, q[1]), q[2] = m(0, q[2]), q[3] = m(0, q[3])), r && (q[0] = -q[0], q[1] = -q[1], q[2] = -q[2], q[3] = -q[3]), J(e, q, "x", "width", 3, 1, a && a[0] || 0), J(e, q, "y", "height", 0, 2, a && a[1] || 0), e);
252
+ function Re(e, n, r, i, a) {
253
+ return n == null ? e : (l(n) ? Y[0] = Y[1] = Y[2] = Y[3] = n : (process.env.NODE_ENV !== "production" && t(n.length === 4), Y[0] = n[0], Y[1] = n[1], Y[2] = n[2], Y[3] = n[3]), i && (Y[0] = S(0, Y[0]), Y[1] = S(0, Y[1]), Y[2] = S(0, Y[2]), Y[3] = S(0, Y[3])), r && (Y[0] = -Y[0], Y[1] = -Y[1], Y[2] = -Y[2], Y[3] = -Y[3]), ze(e, Y, "x", "width", 3, 1, a && a[0] || 0), ze(e, Y, "y", "height", 0, 2, a && a[1] || 0), e);
254
254
  }
255
- var q = [
255
+ var Y = [
256
256
  0,
257
257
  0,
258
258
  0,
259
259
  0
260
260
  ];
261
- function J(e, t, n, r, i, a, o) {
261
+ function ze(e, t, n, r, i, a, o) {
262
262
  var s = t[a] + t[i], c = e[r];
263
- e[r] += s, o = m(0, h(o, c)), e[r] < o ? (e[r] = o, e[n] += t[i] >= 0 ? -t[i] : t[a] >= 0 ? c + t[a] : p(s) > 1e-8 ? (c - o) * t[i] / s : 0) : e[n] -= t[i];
263
+ e[r] += s, o = S(0, C(o, c)), e[r] < o ? (e[r] = o, e[n] += t[i] >= 0 ? -t[i] : t[a] >= 0 ? c + t[a] : x(s) > 1e-8 ? (c - o) * t[i] / s : 0) : e[n] -= t[i];
264
264
  }
265
- function Ve(e) {
265
+ function Be(e) {
266
266
  var t = e.itemTooltipOption, n = e.componentModel, a = e.itemName, s = u(t) ? { formatter: t } : t, c = n.mainType, l = n.componentIndex, f = {
267
267
  componentType: c,
268
268
  name: a,
@@ -273,7 +273,7 @@ function Ve(e) {
273
273
  p && i(d(p), function(e) {
274
274
  o(f, e) || (f[e] = p[e], f.$vars.push(e));
275
275
  });
276
- var m = j(e.el);
276
+ var m = w(e.el);
277
277
  m.componentMainType = c, m.componentIndex = l, m.tooltipConfig = {
278
278
  name: a,
279
279
  option: r({
@@ -283,33 +283,33 @@ function Ve(e) {
283
283
  }, s)
284
284
  };
285
285
  }
286
- function Y(e, t) {
286
+ function X(e, t) {
287
287
  var n;
288
288
  e.isGroup && (n = t(e)), n || e.traverse(t);
289
289
  }
290
- function He(e, t) {
291
- if (e) if (s(e)) for (var n = 0; n < e.length; n++) Y(e[n], t);
292
- else Y(e, t);
290
+ function Ve(e, t) {
291
+ if (e) if (s(e)) for (var n = 0; n < e.length; n++) X(e[n], t);
292
+ else X(e, t);
293
293
  }
294
- function Ue(e) {
295
- return !e || p(e[1]) < X && p(e[2]) < X || p(e[0]) < X && p(e[3]) < X;
294
+ function He(e) {
295
+ return !e || x(e[1]) < Z && x(e[2]) < Z || x(e[0]) < Z && x(e[3]) < Z;
296
296
  }
297
- var X = 1e-5;
298
- function Z(e, t) {
299
- return e ? ae.copy(e, t) : t.clone();
297
+ var Z = 1e-5;
298
+ function Q(e, t) {
299
+ return e ? _.copy(e, t) : t.clone();
300
300
  }
301
- function We(e, t) {
302
- return t ? g(e || _(), t) : void 0;
301
+ function Ue(e, t) {
302
+ return t ? p(e || m(), t) : void 0;
303
303
  }
304
- function Ge(e) {
304
+ function We(e) {
305
305
  return {
306
306
  z: e.get("z") || 0,
307
307
  zlevel: e.get("zlevel") || 0
308
308
  };
309
309
  }
310
- function Ke(e) {
310
+ function Ge(e) {
311
311
  var t = -Infinity, n = Infinity;
312
- Y(e, function(e) {
312
+ X(e, function(e) {
313
313
  r(e), r(e.getTextContent()), r(e.getTextGuideLine());
314
314
  });
315
315
  function r(e) {
@@ -330,14 +330,14 @@ function Ke(e) {
330
330
  max: t
331
331
  };
332
332
  }
333
- function qe(e, t, n) {
334
- Q(e, t, n, -Infinity);
333
+ function Ke(e, t, n) {
334
+ qe(e, t, n, -Infinity);
335
335
  }
336
- function Q(e, t, n, r) {
336
+ function qe(e, t, n, r) {
337
337
  if (e.ignoreModelZ) return r;
338
338
  var i = e.getTextContent(), a = e.getTextGuideLine();
339
- if (e.isGroup) for (var o = e.childrenRef(), s = 0; s < o.length; s++) r = m(Q(o[s], t, n, r), r);
340
- else e.z = t, e.zlevel = n, r = m(e.z2 || 0, r);
339
+ if (e.isGroup) for (var o = e.childrenRef(), s = 0; s < o.length; s++) r = S(qe(o[s], t, n, r), r);
340
+ else e.z = t, e.zlevel = n, r = S(e.z2 || 0, r);
341
341
  if (i && (i.z = t, i.zlevel = n, isFinite(r) && (i.z2 = r + 2)), a) {
342
342
  var c = e.textGuideLineConfig;
343
343
  a.z = t, a.zlevel = n, isFinite(r) && (a.z2 = r + (c && c.showAbove ? 1 : -1));
@@ -348,14 +348,14 @@ function Je(e) {
348
348
  return e.animation = { duration: 0 }, e;
349
349
  }
350
350
  function Ye(e, t) {
351
- return t ? g($.transform, t) : v($.transform), $.decomposeTransform(), re(e, $), e;
351
+ return t ? p($.transform, t) : h($.transform), $.decomposeTransform(), re(e, $), e;
352
352
  }
353
- var $ = new y();
354
- $.transform = _();
353
+ var $ = new v();
354
+ $.transform = m();
355
355
  function Xe(e) {
356
356
  var t = e.getZr().painter;
357
357
  return t.getType() === "canvas" ? t : null;
358
358
  }
359
- F("circle", S), F("ellipse", C), F("sector", w), F("ring", T), F("polygon", E), F("polyline", D), F("rect", x), F("line", O), F("bezierCurve", k), F("arc", A);
359
+ R("circle", T), R("ellipse", E), R("sector", D), R("ring", O), R("polygon", k), R("polyline", A), R("rect", se), R("line", j), R("bezierCurve", M), R("arc", N);
360
360
  //#endregion
361
- export { Te as WH, P as XY, V as applyTransform, U as createIcon, Z as ensureCopyRect, We as ensureCopyTransform, K as expandOrShrinkRect, we as graphic_exports, Ue as isBoundingRectAxisAligned, L as makeImage, I as makePath, Ge as retrieveZInfo, Ve as setTooltipConfig, B as subPixelOptimizeLine, He as traverseElements, qe as traverseUpdateZ };
361
+ export { L as WH, I as XY, W as applyTransform, Pe as createIcon, Q as ensureCopyRect, Ue as ensureCopyTransform, Re as expandOrShrinkRect, U as getTransform, Se as graphic_exports, q as groupTransition, He as isBoundingRectAxisAligned, De as makeImage, z as makePath, We as retrieveZInfo, Be as setTooltipConfig, H as subPixelOptimizeLine, G as transformDirection, Ve as traverseElements, Ke as traverseUpdateZ };