reke-ui 0.2.1 → 0.4.0

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 (262) hide show
  1. package/custom-elements.json +1873 -499
  2. package/dist/_virtual/_rolldown/runtime.js +11 -0
  3. package/dist/components/reke-chip/reke-chip.d.ts +7 -0
  4. package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
  5. package/dist/components/reke-chip/reke-chip.js +8 -2
  6. package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
  7. package/dist/components/reke-chip/reke-chip.styles.js +32 -0
  8. package/dist/components/reke-combobox/reke-combobox.d.ts +90 -0
  9. package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -0
  10. package/dist/components/reke-combobox/reke-combobox.js +206 -0
  11. package/dist/components/reke-combobox/reke-combobox.styles.d.ts +2 -0
  12. package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -0
  13. package/dist/components/reke-combobox/reke-combobox.styles.js +290 -0
  14. package/dist/components/reke-input/reke-input.d.ts +14 -0
  15. package/dist/components/reke-input/reke-input.d.ts.map +1 -1
  16. package/dist/components/reke-input/reke-input.js +41 -22
  17. package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
  18. package/dist/components/reke-input/reke-input.styles.js +44 -16
  19. package/dist/components/reke-menu/reke-menu.d.ts +51 -0
  20. package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
  21. package/dist/components/reke-menu/reke-menu.js +106 -0
  22. package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
  23. package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
  24. package/dist/components/reke-menu/reke-menu.styles.js +25 -0
  25. package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
  26. package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
  27. package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
  28. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
  29. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
  30. package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
  31. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
  32. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
  33. package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
  34. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
  35. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
  36. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
  37. package/dist/components/reke-table/reke-table.d.ts +12 -0
  38. package/dist/components/reke-table/reke-table.d.ts.map +1 -1
  39. package/dist/components/reke-table/reke-table.js +45 -7
  40. package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
  41. package/dist/components/reke-table/reke-table.styles.js +28 -0
  42. package/dist/index.d.ts +7 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +15 -11
  45. package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
  46. package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
  47. package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
  48. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
  49. package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
  50. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
  51. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
  52. package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
  53. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
  54. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
  55. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
  56. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
  57. package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
  58. package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
  59. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
  60. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
  61. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
  62. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
  63. package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
  64. package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
  65. package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
  66. package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
  67. package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
  68. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
  69. package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
  70. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
  71. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
  72. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
  73. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
  74. package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
  75. package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
  76. package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
  77. package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
  78. package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
  79. package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
  80. package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
  81. package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
  82. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
  83. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
  84. package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
  85. package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
  86. package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
  87. package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
  88. package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
  89. package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
  90. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
  91. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
  93. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
  94. package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
  95. package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
  96. package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
  97. package/dist/node_modules/echarts/lib/core/impl.js +11 -0
  98. package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
  99. package/dist/node_modules/echarts/lib/core/locale.js +27 -0
  100. package/dist/node_modules/echarts/lib/core/task.js +81 -0
  101. package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
  102. package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
  103. package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
  104. package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
  105. package/dist/node_modules/echarts/lib/data/Source.js +132 -0
  106. package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
  107. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
  108. package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
  109. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
  110. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
  111. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
  112. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
  113. package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
  114. package/dist/node_modules/echarts/lib/extension.js +62 -0
  115. package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
  116. package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
  117. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
  118. package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
  119. package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
  120. package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
  121. package/dist/node_modules/echarts/lib/loading/default.js +85 -0
  122. package/dist/node_modules/echarts/lib/model/Component.js +64 -0
  123. package/dist/node_modules/echarts/lib/model/Global.js +320 -0
  124. package/dist/node_modules/echarts/lib/model/Model.js +50 -0
  125. package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
  126. package/dist/node_modules/echarts/lib/model/Series.js +216 -0
  127. package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
  128. package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
  129. package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
  130. package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
  131. package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
  132. package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
  133. package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
  134. package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
  135. package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
  136. package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
  137. package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
  138. package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
  139. package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
  140. package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
  141. package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
  142. package/dist/node_modules/echarts/lib/scale/break.js +9 -0
  143. package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
  144. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
  145. package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
  146. package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
  147. package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
  148. package/dist/node_modules/echarts/lib/util/component.js +75 -0
  149. package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
  150. package/dist/node_modules/echarts/lib/util/decal.js +162 -0
  151. package/dist/node_modules/echarts/lib/util/event.js +7 -0
  152. package/dist/node_modules/echarts/lib/util/format.js +87 -0
  153. package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
  154. package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
  155. package/dist/node_modules/echarts/lib/util/layout.js +174 -0
  156. package/dist/node_modules/echarts/lib/util/log.js +54 -0
  157. package/dist/node_modules/echarts/lib/util/model.js +296 -0
  158. package/dist/node_modules/echarts/lib/util/number.js +132 -0
  159. package/dist/node_modules/echarts/lib/util/states.js +323 -0
  160. package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
  161. package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
  162. package/dist/node_modules/echarts/lib/util/time.js +43 -0
  163. package/dist/node_modules/echarts/lib/util/types.js +13 -0
  164. package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
  165. package/dist/node_modules/echarts/lib/view/Component.js +16 -0
  166. package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
  167. package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
  168. package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
  169. package/dist/node_modules/echarts/lib/visual/style.js +79 -0
  170. package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
  171. package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
  172. package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
  173. package/dist/node_modules/zrender/lib/Element.js +442 -0
  174. package/dist/node_modules/zrender/lib/Handler.js +167 -0
  175. package/dist/node_modules/zrender/lib/Storage.js +68 -0
  176. package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
  177. package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
  178. package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
  179. package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
  180. package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
  181. package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
  182. package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
  183. package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
  184. package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
  185. package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
  186. package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
  187. package/dist/node_modules/zrender/lib/config.js +7 -0
  188. package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
  189. package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
  190. package/dist/node_modules/zrender/lib/contain/line.js +12 -0
  191. package/dist/node_modules/zrender/lib/contain/path.js +133 -0
  192. package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
  193. package/dist/node_modules/zrender/lib/contain/text.js +106 -0
  194. package/dist/node_modules/zrender/lib/contain/util.js +7 -0
  195. package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
  196. package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
  197. package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
  198. package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
  199. package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
  200. package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
  201. package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
  202. package/dist/node_modules/zrender/lib/core/Point.js +72 -0
  203. package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
  204. package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
  205. package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
  206. package/dist/node_modules/zrender/lib/core/curve.js +142 -0
  207. package/dist/node_modules/zrender/lib/core/dom.js +74 -0
  208. package/dist/node_modules/zrender/lib/core/env.js +22 -0
  209. package/dist/node_modules/zrender/lib/core/event.js +58 -0
  210. package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
  211. package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
  212. package/dist/node_modules/zrender/lib/core/platform.js +42 -0
  213. package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
  214. package/dist/node_modules/zrender/lib/core/util.js +314 -0
  215. package/dist/node_modules/zrender/lib/core/vector.js +52 -0
  216. package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
  217. package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
  218. package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
  219. package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
  220. package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
  221. package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
  222. package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
  223. package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
  224. package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
  225. package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
  226. package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
  227. package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
  228. package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
  229. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
  230. package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
  231. package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
  232. package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
  233. package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
  234. package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
  235. package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
  236. package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
  237. package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
  238. package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
  239. package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
  240. package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
  241. package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
  242. package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
  243. package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
  244. package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
  245. package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
  246. package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
  247. package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
  248. package/dist/node_modules/zrender/lib/tool/path.js +153 -0
  249. package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
  250. package/dist/node_modules/zrender/lib/zrender.js +124 -0
  251. package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
  252. package/dist/react-bridge/table.d.ts.map +1 -1
  253. package/dist/react-bridge/table.js +36 -21
  254. package/dist/react.d.ts +17 -0
  255. package/dist/react.d.ts.map +1 -1
  256. package/dist/react.js +73 -52
  257. package/dist/shared/base-element.d.ts +1 -0
  258. package/dist/shared/base-element.d.ts.map +1 -1
  259. package/dist/shared/base-element.js +6 -0
  260. package/dist/shared/tailwind.js +1 -1
  261. package/dist/tokens/reke-tokens.css +15 -0
  262. package/package.json +18 -1
@@ -0,0 +1,190 @@
1
+ import { each as e, map as t, noop as n } from "../core/util.js";
2
+ import r from "../core/env.js";
3
+ import { __extends as i } from "../../node_modules/tslib/tslib.es6.js";
4
+ import a from "../core/Eventful.js";
5
+ import { addEventListener as o, getNativeEvent as s, normalizeEvent as c, removeEventListener as l } from "../core/event.js";
6
+ //#region node_modules/zrender/lib/dom/HandlerProxy.js
7
+ var u = 300, d = r.domSupported, f = (function() {
8
+ var e = [
9
+ "click",
10
+ "dblclick",
11
+ "mousewheel",
12
+ "wheel",
13
+ "mouseout",
14
+ "mouseup",
15
+ "mousedown",
16
+ "mousemove",
17
+ "contextmenu"
18
+ ], n = [
19
+ "touchstart",
20
+ "touchend",
21
+ "touchmove"
22
+ ], r = {
23
+ pointerdown: 1,
24
+ pointerup: 1,
25
+ pointermove: 1,
26
+ pointerout: 1
27
+ };
28
+ return {
29
+ mouse: e,
30
+ touch: n,
31
+ pointer: t(e, function(e) {
32
+ var t = e.replace("mouse", "pointer");
33
+ return r.hasOwnProperty(t) ? t : e;
34
+ })
35
+ };
36
+ })(), p = {
37
+ mouse: ["mousemove", "mouseup"],
38
+ pointer: ["pointermove", "pointerup"]
39
+ }, m = !1;
40
+ function h(e) {
41
+ var t = e.pointerType;
42
+ return t === "pen" || t === "touch";
43
+ }
44
+ function g(e) {
45
+ e.touching = !0, e.touchTimer != null && (clearTimeout(e.touchTimer), e.touchTimer = null), e.touchTimer = setTimeout(function() {
46
+ e.touching = !1, e.touchTimer = null;
47
+ }, 700);
48
+ }
49
+ function _(e) {
50
+ e && (e.zrByTouch = !0);
51
+ }
52
+ function v(e, t) {
53
+ return c(e.dom, new b(e, t), !0);
54
+ }
55
+ function y(e, t) {
56
+ for (var n = t, r = !1; n && n.nodeType !== 9 && !(r = n.domBelongToZr || n !== t && n === e.painterRoot);) n = n.parentNode;
57
+ return r;
58
+ }
59
+ var b = function() {
60
+ function e(e, t) {
61
+ this.stopPropagation = n, this.stopImmediatePropagation = n, this.preventDefault = n, this.type = t.type, this.target = this.currentTarget = e.dom, this.pointerType = t.pointerType, this.clientX = t.clientX, this.clientY = t.clientY;
62
+ }
63
+ return e;
64
+ }(), x = {
65
+ mousedown: function(e) {
66
+ e = c(this.dom, e), this.__mayPointerCapture = [e.zrX, e.zrY], this.trigger("mousedown", e);
67
+ },
68
+ mousemove: function(e) {
69
+ e = c(this.dom, e);
70
+ var t = this.__mayPointerCapture;
71
+ t && (e.zrX !== t[0] || e.zrY !== t[1]) && this.__togglePointerCapture(!0), this.trigger("mousemove", e);
72
+ },
73
+ mouseup: function(e) {
74
+ e = c(this.dom, e), this.__togglePointerCapture(!1), this.trigger("mouseup", e);
75
+ },
76
+ mouseout: function(e) {
77
+ e = c(this.dom, e);
78
+ var t = e.toElement || e.relatedTarget;
79
+ y(this, t) || (this.__pointerCapturing && (e.zrEventControl = "no_globalout"), this.trigger("mouseout", e));
80
+ },
81
+ wheel: function(e) {
82
+ m = !0, e = c(this.dom, e), this.trigger("mousewheel", e);
83
+ },
84
+ mousewheel: function(e) {
85
+ m || (e = c(this.dom, e), this.trigger("mousewheel", e));
86
+ },
87
+ touchstart: function(e) {
88
+ e = c(this.dom, e), _(e), this.__lastTouchMoment = /* @__PURE__ */ new Date(), this.handler.processGesture(e, "start"), x.mousemove.call(this, e), x.mousedown.call(this, e);
89
+ },
90
+ touchmove: function(e) {
91
+ e = c(this.dom, e), _(e), this.handler.processGesture(e, "change"), x.mousemove.call(this, e);
92
+ },
93
+ touchend: function(e) {
94
+ e = c(this.dom, e), _(e), this.handler.processGesture(e, "end"), x.mouseup.call(this, e), /* @__PURE__ */ new Date() - +this.__lastTouchMoment < u && x.click.call(this, e);
95
+ },
96
+ pointerdown: function(e) {
97
+ x.mousedown.call(this, e);
98
+ },
99
+ pointermove: function(e) {
100
+ h(e) || x.mousemove.call(this, e);
101
+ },
102
+ pointerup: function(e) {
103
+ x.mouseup.call(this, e);
104
+ },
105
+ pointerout: function(e) {
106
+ h(e) || x.mouseout.call(this, e);
107
+ }
108
+ };
109
+ e([
110
+ "click",
111
+ "dblclick",
112
+ "contextmenu"
113
+ ], function(e) {
114
+ x[e] = function(t) {
115
+ t = c(this.dom, t), this.trigger(e, t);
116
+ };
117
+ });
118
+ var S = {
119
+ pointermove: function(e) {
120
+ h(e) || S.mousemove.call(this, e);
121
+ },
122
+ pointerup: function(e) {
123
+ S.mouseup.call(this, e);
124
+ },
125
+ mousemove: function(e) {
126
+ this.trigger("mousemove", e);
127
+ },
128
+ mouseup: function(e) {
129
+ var t = this.__pointerCapturing;
130
+ this.__togglePointerCapture(!1), this.trigger("mouseup", e), t && (e.zrEventControl = "only_globalout", this.trigger("mouseout", e));
131
+ }
132
+ };
133
+ function C(t, n) {
134
+ var i = n.domHandlers;
135
+ r.pointerEventsSupported ? e(f.pointer, function(e) {
136
+ T(n, e, function(n) {
137
+ i[e].call(t, n);
138
+ });
139
+ }) : (r.touchEventsSupported && e(f.touch, function(e) {
140
+ T(n, e, function(r) {
141
+ i[e].call(t, r), g(n);
142
+ });
143
+ }), e(f.mouse, function(e) {
144
+ T(n, e, function(r) {
145
+ r = s(r), n.touching || i[e].call(t, r);
146
+ });
147
+ }));
148
+ }
149
+ function w(t, n) {
150
+ r.pointerEventsSupported ? e(p.pointer, i) : r.touchEventsSupported || e(p.mouse, i);
151
+ function i(e) {
152
+ function r(r) {
153
+ r = s(r), y(t, r.target) || (r = v(t, r), n.domHandlers[e].call(t, r));
154
+ }
155
+ T(n, e, r, { capture: !0 });
156
+ }
157
+ }
158
+ function T(e, t, n, r) {
159
+ e.mounted[t] = n, e.listenerOpts[t] = r, o(e.domTarget, t, n, r);
160
+ }
161
+ function E(e) {
162
+ var t = e.mounted;
163
+ for (var n in t) t.hasOwnProperty(n) && l(e.domTarget, n, t[n], e.listenerOpts[n]);
164
+ e.mounted = {};
165
+ }
166
+ var D = function() {
167
+ function e(e, t) {
168
+ this.mounted = {}, this.listenerOpts = {}, this.touching = !1, this.domTarget = e, this.domHandlers = t;
169
+ }
170
+ return e;
171
+ }(), O = function(e) {
172
+ i(t, e);
173
+ function t(t, n) {
174
+ var r = e.call(this) || this;
175
+ return r.__pointerCapturing = !1, r.dom = t, r.painterRoot = n, r._localHandlerScope = new D(t, x), d && (r._globalHandlerScope = new D(document, S)), C(r, r._localHandlerScope), r;
176
+ }
177
+ return t.prototype.dispose = function() {
178
+ E(this._localHandlerScope), d && E(this._globalHandlerScope);
179
+ }, t.prototype.setCursor = function(e) {
180
+ this.dom.style && (this.dom.style.cursor = e || "default");
181
+ }, t.prototype.__togglePointerCapture = function(e) {
182
+ if (this.__mayPointerCapture = null, d && this.__pointerCapturing ^ +e) {
183
+ this.__pointerCapturing = e;
184
+ var t = this._globalHandlerScope;
185
+ e ? w(this, t) : E(t);
186
+ }
187
+ }, t;
188
+ }(a);
189
+ //#endregion
190
+ export { O as default };
@@ -0,0 +1,25 @@
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import t from "./Path.js";
3
+ //#region node_modules/zrender/lib/graphic/CompoundPath.js
4
+ var n = function(n) {
5
+ e(r, n);
6
+ function r() {
7
+ var e = n !== null && n.apply(this, arguments) || this;
8
+ return e.type = "compound", e;
9
+ }
10
+ return r.prototype._updatePathDirty = function() {
11
+ for (var e = this.shape.paths, t = this.shapeChanged(), n = 0; n < e.length; n++) t ||= e[n].shapeChanged();
12
+ t && this.dirtyShape();
13
+ }, r.prototype.beforeBrush = function() {
14
+ this._updatePathDirty();
15
+ for (var e = this.shape.paths || [], t = this.getGlobalScale(), n = 0; n < e.length; n++) e[n].path || e[n].createPathProxy(), e[n].path.setScale(t[0], t[1], e[n].segmentIgnoreThreshold);
16
+ }, r.prototype.buildPath = function(e, t) {
17
+ for (var n = t.paths || [], r = 0; r < n.length; r++) n[r].buildPath(e, n[r].shape, !0);
18
+ }, r.prototype.afterBrush = function() {
19
+ for (var e = this.shape.paths || [], t = 0; t < e.length; t++) e[t].pathUpdated();
20
+ }, r.prototype.getBoundingRect = function() {
21
+ return this._updatePathDirty.call(this), t.prototype.getBoundingRect.call(this);
22
+ }, r;
23
+ }(t);
24
+ //#endregion
25
+ export { n as default };
@@ -0,0 +1,133 @@
1
+ import { createObject as e, extend as t, keys as n } from "../core/util.js";
2
+ import { __extends as r } from "../../node_modules/tslib/tslib.es6.js";
3
+ import i from "../core/BoundingRect.js";
4
+ import a from "../Element.js";
5
+ //#region node_modules/zrender/lib/graphic/Displayable.js
6
+ var o = "__zr_style_" + Math.round(Math.random() * 10), s = {
7
+ shadowBlur: 0,
8
+ shadowOffsetX: 0,
9
+ shadowOffsetY: 0,
10
+ shadowColor: "#000",
11
+ opacity: 1,
12
+ blend: "source-over"
13
+ }, c = { style: {
14
+ shadowBlur: !0,
15
+ shadowOffsetX: !0,
16
+ shadowOffsetY: !0,
17
+ shadowColor: !0,
18
+ opacity: !0
19
+ } };
20
+ s[o] = !0;
21
+ var l = [
22
+ "z",
23
+ "z2",
24
+ "invisible"
25
+ ], u = ["invisible"], d = function(a) {
26
+ r(d, a);
27
+ function d(e) {
28
+ return a.call(this, e) || this;
29
+ }
30
+ return d.prototype._init = function(e) {
31
+ for (var t = n(e), r = 0; r < t.length; r++) {
32
+ var i = t[r];
33
+ i === "style" ? this.useStyle(e[i]) : a.prototype.attrKV.call(this, i, e[i]);
34
+ }
35
+ this.style || this.useStyle({});
36
+ }, d.prototype.beforeBrush = function(e) {}, d.prototype.afterBrush = function() {}, d.prototype.innerBeforeBrush = function() {}, d.prototype.innerAfterBrush = function() {}, d.prototype.shouldBePainted = function(e, t, n, r) {
37
+ var i = this.transform;
38
+ if (this.ignore || this.invisible || this.style.opacity === 0 || this.culling && m(this, e, t) || i && !i[0] && !i[3]) return !1;
39
+ if (n && this.__clipPaths && this.__clipPaths.length) {
40
+ for (var a = 0; a < this.__clipPaths.length; ++a) if (this.__clipPaths[a].isZeroArea()) return !1;
41
+ }
42
+ if (r && this.parent) for (var o = this.parent; o;) {
43
+ if (o.ignore) return !1;
44
+ o = o.parent;
45
+ }
46
+ return !0;
47
+ }, d.prototype.contain = function(e, t) {
48
+ return this.rectContain(e, t);
49
+ }, d.prototype.traverse = function(e, t) {
50
+ e.call(t, this);
51
+ }, d.prototype.rectContain = function(e, t) {
52
+ var n = this.transformCoordToLocal(e, t);
53
+ return this.getBoundingRect().contain(n[0], n[1]);
54
+ }, d.prototype.getPaintRect = function() {
55
+ var e = this._paintRect;
56
+ if (!this._paintRect || this.__dirty) {
57
+ var t = this.transform, n = this.getBoundingRect(), r = this.style, a = r.shadowBlur || 0, o = r.shadowOffsetX || 0, s = r.shadowOffsetY || 0;
58
+ e = this._paintRect ||= new i(0, 0, 0, 0), t ? i.applyTransform(e, n, t) : e.copy(n), (a || o || s) && (e.width += a * 2 + Math.abs(o), e.height += a * 2 + Math.abs(s), e.x = Math.min(e.x, e.x + o - a), e.y = Math.min(e.y, e.y + s - a));
59
+ var c = this.dirtyRectTolerance;
60
+ e.isZero() || (e.x = Math.floor(e.x - c), e.y = Math.floor(e.y - c), e.width = Math.ceil(e.width + 1 + c * 2), e.height = Math.ceil(e.height + 1 + c * 2));
61
+ }
62
+ return e;
63
+ }, d.prototype.setPrevPaintRect = function(e) {
64
+ e ? (this._prevPaintRect = this._prevPaintRect || new i(0, 0, 0, 0), this._prevPaintRect.copy(e)) : this._prevPaintRect = null;
65
+ }, d.prototype.getPrevPaintRect = function() {
66
+ return this._prevPaintRect;
67
+ }, d.prototype.animateStyle = function(e) {
68
+ return this.animate("style", e);
69
+ }, d.prototype.updateDuringAnimation = function(e) {
70
+ e === "style" ? this.dirtyStyle() : this.markRedraw();
71
+ }, d.prototype.attrKV = function(e, t) {
72
+ e === "style" ? this.style ? this.setStyle(t) : this.useStyle(t) : a.prototype.attrKV.call(this, e, t);
73
+ }, d.prototype.setStyle = function(e, n) {
74
+ return typeof e == "string" ? this.style[e] = n : t(this.style, e), this.dirtyStyle(), this;
75
+ }, d.prototype.dirtyStyle = function(e) {
76
+ e || this.markRedraw(), this.__dirty |= 2, this._rect &&= null;
77
+ }, d.prototype.dirty = function() {
78
+ this.dirtyStyle();
79
+ }, d.prototype.styleChanged = function() {
80
+ return !!(this.__dirty & 2);
81
+ }, d.prototype.styleUpdated = function() {
82
+ this.__dirty &= -3;
83
+ }, d.prototype.createStyle = function(t) {
84
+ return e(s, t);
85
+ }, d.prototype.useStyle = function(e) {
86
+ e[o] || (e = this.createStyle(e)), this.style = e, this.dirtyStyle();
87
+ }, d.prototype._useHoverStyle = function(e) {
88
+ this.__hoverStyle = e;
89
+ }, d.prototype.isStyleObject = function(e) {
90
+ return e[o];
91
+ }, d.prototype._innerSaveToNormal = function(e) {
92
+ a.prototype._innerSaveToNormal.call(this, e);
93
+ var t = this._normalState;
94
+ e.style && !t.style && (t.style = this._mergeStyle(this.createStyle(), this.style)), this._savePrimaryToNormal(e, t, l);
95
+ }, d.prototype._applyStateObj = function(e, t, r, i, o, s) {
96
+ a.prototype._applyStateObj.call(this, e, t, r, i, o, s);
97
+ var c = !(t && i), d = this.__inHover === 1, f;
98
+ if (t && t.style ? o ? i ? f = t.style : (f = this._mergeStyle(this.createStyle(), r.style), this._mergeStyle(f, t.style)) : (f = this._mergeStyle(this.createStyle(), i ? this.style : r.style), this._mergeStyle(f, t.style)) : c && (f = r.style), f) if (o) {
99
+ var p = this.style;
100
+ if (this.style = this.createStyle(c ? {} : p), c) for (var m = n(p), h = 0; h < m.length; h++) {
101
+ var g = m[h];
102
+ g in f && (f[g] = f[g], this.style[g] = p[g]);
103
+ }
104
+ for (var _ = n(f), h = 0; h < _.length; h++) {
105
+ var g = _[h];
106
+ this.style[g] = this.style[g];
107
+ }
108
+ this._transitionState(e, { style: f }, s, this.getAnimationStyleProps());
109
+ } else d ? this._useHoverStyle(f) : this.useStyle(f);
110
+ if (!d) for (var v = this.__inHover ? u : l, h = 0; h < v.length; h++) {
111
+ var g = v[h];
112
+ t && t[g] != null ? this[g] = t[g] : c && r[g] != null && (this[g] = r[g]);
113
+ }
114
+ }, d.prototype._mergeStates = function(e) {
115
+ for (var t = a.prototype._mergeStates.call(this, e), n, r = 0; r < e.length; r++) {
116
+ var i = e[r];
117
+ i.style && (n ||= {}, this._mergeStyle(n, i.style));
118
+ }
119
+ return n && (t.style = n), t;
120
+ }, d.prototype._mergeStyle = function(e, n) {
121
+ return t(e, n), e;
122
+ }, d.prototype.getAnimationStyleProps = function() {
123
+ return c;
124
+ }, d.initDefaultProps = (function() {
125
+ var e = d.prototype;
126
+ e.type = "displayable", e.invisible = !1, e.z = 0, e.z2 = 0, e.zlevel = 0, e.culling = !1, e.cursor = "pointer", e.rectHover = !1, e.incremental = 0, e._rect = null, e.dirtyRectTolerance = 0, e.__dirty = 3;
127
+ })(), d;
128
+ }(a), f = new i(0, 0, 0, 0), p = new i(0, 0, 0, 0);
129
+ function m(e, t, n) {
130
+ return f.copy(e.getBoundingRect()), e.transform && f.applyTransform(e.transform), p.width = t, p.height = n, !f.intersect(p);
131
+ }
132
+ //#endregion
133
+ export { c as DEFAULT_COMMON_ANIMATION_PROPS, s as DEFAULT_COMMON_STYLE, d as default };
@@ -0,0 +1,14 @@
1
+ //#region node_modules/zrender/lib/graphic/Gradient.js
2
+ var e = function() {
3
+ function e(e) {
4
+ this.colorStops = e || [];
5
+ }
6
+ return e.prototype.addColorStop = function(e, t) {
7
+ this.colorStops.push({
8
+ offset: e,
9
+ color: t
10
+ });
11
+ }, e;
12
+ }();
13
+ //#endregion
14
+ export { e as default };
@@ -0,0 +1,86 @@
1
+ import { indexOf as e } from "../core/util.js";
2
+ import { __extends as t } from "../../node_modules/tslib/tslib.es6.js";
3
+ import n from "../core/BoundingRect.js";
4
+ import r from "../Element.js";
5
+ //#region node_modules/zrender/lib/graphic/Group.js
6
+ var i = function(r) {
7
+ t(i, r);
8
+ function i(e) {
9
+ var t = r.call(this) || this;
10
+ return t.isGroup = !0, t._children = [], t.attr(e), t;
11
+ }
12
+ return i.prototype.childrenRef = function() {
13
+ return this._children;
14
+ }, i.prototype.children = function() {
15
+ return this._children.slice();
16
+ }, i.prototype.childAt = function(e) {
17
+ return this._children[e];
18
+ }, i.prototype.childOfName = function(e) {
19
+ for (var t = this._children, n = 0; n < t.length; n++) if (t[n].name === e) return t[n];
20
+ }, i.prototype.childCount = function() {
21
+ return this._children.length;
22
+ }, i.prototype.add = function(e) {
23
+ if (e && (e !== this && e.parent !== this && (this._children.push(e), this._doAdd(e)), process.env.NODE_ENV !== "production" && e.__hostTarget)) throw "This elemenet has been used as an attachment";
24
+ return this;
25
+ }, i.prototype.addBefore = function(e, t) {
26
+ if (e && e !== this && e.parent !== this && t && t.parent === this) {
27
+ var n = this._children, r = n.indexOf(t);
28
+ r >= 0 && (n.splice(r, 0, e), this._doAdd(e));
29
+ }
30
+ return this;
31
+ }, i.prototype.replace = function(t, n) {
32
+ var r = e(this._children, t);
33
+ return r >= 0 && this.replaceAt(n, r), this;
34
+ }, i.prototype.replaceAt = function(e, t) {
35
+ var n = this._children, r = n[t];
36
+ if (e && e !== this && e.parent !== this && e !== r) {
37
+ n[t] = e, r.parent = null;
38
+ var i = this.__zr;
39
+ i && r.removeSelfFromZr(i), this._doAdd(e);
40
+ }
41
+ return this;
42
+ }, i.prototype._doAdd = function(e) {
43
+ e.parent && e.parent.remove(e), e.parent = this;
44
+ var t = this.__zr;
45
+ t && t !== e.__zr && e.addSelfToZr(t), t && t.refresh();
46
+ }, i.prototype.remove = function(t) {
47
+ var n = this.__zr, r = this._children, i = e(r, t);
48
+ return i < 0 ? this : (r.splice(i, 1), t.parent = null, n && t.removeSelfFromZr(n), n && n.refresh(), this);
49
+ }, i.prototype.removeAll = function() {
50
+ for (var e = this._children, t = this.__zr, n = 0; n < e.length; n++) {
51
+ var r = e[n];
52
+ t && r.removeSelfFromZr(t), r.parent = null;
53
+ }
54
+ return e.length = 0, this;
55
+ }, i.prototype.eachChild = function(e, t) {
56
+ for (var n = this._children, r = 0; r < n.length; r++) {
57
+ var i = n[r];
58
+ e.call(t, i, r);
59
+ }
60
+ return this;
61
+ }, i.prototype.traverse = function(e, t) {
62
+ for (var n = 0; n < this._children.length; n++) {
63
+ var r = this._children[n], i = e.call(t, r);
64
+ r.isGroup && !i && r.traverse(e, t);
65
+ }
66
+ return this;
67
+ }, i.prototype.addSelfToZr = function(e) {
68
+ r.prototype.addSelfToZr.call(this, e);
69
+ for (var t = 0; t < this._children.length; t++) this._children[t].addSelfToZr(e);
70
+ }, i.prototype.removeSelfFromZr = function(e) {
71
+ r.prototype.removeSelfFromZr.call(this, e);
72
+ for (var t = 0; t < this._children.length; t++) this._children[t].removeSelfFromZr(e);
73
+ }, i.prototype.getBoundingRect = function(e) {
74
+ for (var t = new n(0, 0, 0, 0), r = e || this._children, i = [], a = null, o = 0; o < r.length; o++) {
75
+ var s = r[o];
76
+ if (!(s.ignore || s.invisible)) {
77
+ var c = s.getBoundingRect(), l = s.getLocalTransform(i);
78
+ l ? (n.applyTransform(t, c, l), a ||= t.clone(), a.union(t)) : (a ||= c.clone(), a.union(c));
79
+ }
80
+ }
81
+ return a || t;
82
+ }, i;
83
+ }(r);
84
+ i.prototype.type = "group";
85
+ //#endregion
86
+ export { i as default };
@@ -0,0 +1,49 @@
1
+ import { createObject as e, defaults as t } from "../core/util.js";
2
+ import { __extends as n } from "../../node_modules/tslib/tslib.es6.js";
3
+ import r from "../core/BoundingRect.js";
4
+ import i, { DEFAULT_COMMON_ANIMATION_PROPS as a, DEFAULT_COMMON_STYLE as o } from "./Displayable.js";
5
+ //#region node_modules/zrender/lib/graphic/Image.js
6
+ var s = t({
7
+ x: 0,
8
+ y: 0
9
+ }, o), c = { style: t({
10
+ x: !0,
11
+ y: !0,
12
+ width: !0,
13
+ height: !0,
14
+ sx: !0,
15
+ sy: !0,
16
+ sWidth: !0,
17
+ sHeight: !0
18
+ }, a.style) };
19
+ function l(e) {
20
+ return !!(e && typeof e != "string" && e.width && e.height);
21
+ }
22
+ var u = function(t) {
23
+ n(i, t);
24
+ function i() {
25
+ return t !== null && t.apply(this, arguments) || this;
26
+ }
27
+ return i.prototype.createStyle = function(t) {
28
+ return e(s, t);
29
+ }, i.prototype._getSize = function(e) {
30
+ var t = this.style, n = t[e];
31
+ if (n != null) return n;
32
+ var r = l(t.image) ? t.image : this.__image;
33
+ if (!r) return 0;
34
+ var i = e === "width" ? "height" : "width", a = t[i];
35
+ return a == null ? r[e] : r[e] / r[i] * a;
36
+ }, i.prototype.getWidth = function() {
37
+ return this._getSize("width");
38
+ }, i.prototype.getHeight = function() {
39
+ return this._getSize("height");
40
+ }, i.prototype.getAnimationStyleProps = function() {
41
+ return c;
42
+ }, i.prototype.getBoundingRect = function() {
43
+ var e = this.style;
44
+ return this._rect ||= new r(e.x || 0, e.y || 0, this.getWidth(), this.getHeight()), this._rect;
45
+ }, i;
46
+ }(i);
47
+ u.prototype.type = "image";
48
+ //#endregion
49
+ export { u as default };
@@ -0,0 +1,65 @@
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../core/BoundingRect.js";
3
+ import n from "./Displayable.js";
4
+ //#region node_modules/zrender/lib/graphic/IncrementalDisplayable.js
5
+ var r = [], i = function(n) {
6
+ e(i, n);
7
+ function i() {
8
+ var e = n !== null && n.apply(this, arguments) || this;
9
+ return e.notClear = !0, e.incremental = 1, e._displayables = [], e._temporaryDisplayables = [], e._cursor = 0, e;
10
+ }
11
+ return i.prototype.traverse = function(e, t) {
12
+ e.call(t, this);
13
+ }, i.prototype.useStyle = function() {
14
+ this.style = {};
15
+ }, i.prototype._useHoverStyle = function() {
16
+ this.__hoverStyle = null;
17
+ }, i.prototype.getCursor = function() {
18
+ return this._cursor;
19
+ }, i.prototype.innerAfterBrush = function() {
20
+ this._cursor = this._displayables.length;
21
+ }, i.prototype.clearDisplaybles = function() {
22
+ this._displayables = [], this._temporaryDisplayables = [], this._cursor = 0, this.markRedraw(), this.notClear = !1;
23
+ }, i.prototype.clearTemporalDisplayables = function() {
24
+ this._temporaryDisplayables = [];
25
+ }, i.prototype.addDisplayable = function(e, t) {
26
+ t ? this._temporaryDisplayables.push(e) : this._displayables.push(e), this.markRedraw();
27
+ }, i.prototype.addDisplayables = function(e, t) {
28
+ t ||= !1;
29
+ for (var n = 0; n < e.length; n++) this.addDisplayable(e[n], t);
30
+ }, i.prototype.getDisplayables = function() {
31
+ return this._displayables;
32
+ }, i.prototype.getTemporalDisplayables = function() {
33
+ return this._temporaryDisplayables;
34
+ }, i.prototype.eachPendingDisplayable = function(e) {
35
+ for (var t = this._cursor; t < this._displayables.length; t++) e && e(this._displayables[t]);
36
+ for (var t = 0; t < this._temporaryDisplayables.length; t++) e && e(this._temporaryDisplayables[t]);
37
+ }, i.prototype.update = function() {
38
+ this.updateTransform();
39
+ for (var e = this._cursor; e < this._displayables.length; e++) {
40
+ var t = this._displayables[e];
41
+ t.parent = this, t.update(), t.parent = null;
42
+ }
43
+ for (var e = 0; e < this._temporaryDisplayables.length; e++) {
44
+ var t = this._temporaryDisplayables[e];
45
+ t.parent = this, t.update(), t.parent = null;
46
+ }
47
+ }, i.prototype.getBoundingRect = function() {
48
+ if (!this._rect) {
49
+ for (var e = new t(Infinity, Infinity, -Infinity, -Infinity), n = 0; n < this._displayables.length; n++) {
50
+ var i = this._displayables[n], a = i.getBoundingRect().clone();
51
+ i.needLocalTransform() && a.applyTransform(i.getLocalTransform(r)), e.union(a);
52
+ }
53
+ this._rect = e;
54
+ }
55
+ return this._rect;
56
+ }, i.prototype.contain = function(e, t) {
57
+ var n = this.transformCoordToLocal(e, t);
58
+ if (this.getBoundingRect().contain(n[0], n[1])) {
59
+ for (var r = 0; r < this._displayables.length; r++) if (this._displayables[r].contain(e, t)) return !0;
60
+ }
61
+ return !1;
62
+ }, i;
63
+ }(n);
64
+ //#endregion
65
+ export { i as default };
@@ -0,0 +1,13 @@
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import t from "./Gradient.js";
3
+ //#region node_modules/zrender/lib/graphic/LinearGradient.js
4
+ var n = function(t) {
5
+ e(n, t);
6
+ function n(e, n, r, i, a, o) {
7
+ var s = t.call(this, a) || this;
8
+ return s.x = e ?? 0, s.y = n ?? 0, s.x2 = r ?? 1, s.y2 = i ?? 0, s.type = "linear", s.global = o || !1, s;
9
+ }
10
+ return n;
11
+ }(t);
12
+ //#endregion
13
+ export { n as default };