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,82 @@
1
+ //#region node_modules/zrender/lib/core/Eventful.js
2
+ var e = function() {
3
+ function e(e) {
4
+ e && (this._$eventProcessor = e);
5
+ }
6
+ return e.prototype.on = function(e, t, n, r) {
7
+ this._$handlers ||= {};
8
+ var i = this._$handlers;
9
+ if (typeof t == "function" && (r = n, n = t, t = null), !n || !e) return this;
10
+ var a = this._$eventProcessor;
11
+ t != null && a && a.normalizeQuery && (t = a.normalizeQuery(t)), i[e] || (i[e] = []);
12
+ for (var o = 0; o < i[e].length; o++) if (i[e][o].h === n) return this;
13
+ var s = {
14
+ h: n,
15
+ query: t,
16
+ ctx: r || this,
17
+ callAtLast: n.zrEventfulCallAtLast
18
+ }, c = i[e].length - 1, l = i[e][c];
19
+ return l && l.callAtLast ? i[e].splice(c, 0, s) : i[e].push(s), this;
20
+ }, e.prototype.isSilent = function(e) {
21
+ var t = this._$handlers;
22
+ return !t || !t[e] || !t[e].length;
23
+ }, e.prototype.off = function(e, t) {
24
+ var n = this._$handlers;
25
+ if (!n) return this;
26
+ if (!e) return this._$handlers = {}, this;
27
+ if (t) {
28
+ if (n[e]) {
29
+ for (var r = [], i = 0, a = n[e].length; i < a; i++) n[e][i].h !== t && r.push(n[e][i]);
30
+ n[e] = r;
31
+ }
32
+ n[e] && n[e].length === 0 && delete n[e];
33
+ } else delete n[e];
34
+ return this;
35
+ }, e.prototype.trigger = function(e) {
36
+ var t = [...arguments].slice(1);
37
+ if (!this._$handlers) return this;
38
+ var n = this._$handlers[e], r = this._$eventProcessor;
39
+ if (n) for (var i = t.length, a = n.length, o = 0; o < a; o++) {
40
+ var s = n[o];
41
+ if (!(r && r.filter && s.query != null && !r.filter(e, s.query))) switch (i) {
42
+ case 0:
43
+ s.h.call(s.ctx);
44
+ break;
45
+ case 1:
46
+ s.h.call(s.ctx, t[0]);
47
+ break;
48
+ case 2:
49
+ s.h.call(s.ctx, t[0], t[1]);
50
+ break;
51
+ default:
52
+ s.h.apply(s.ctx, t);
53
+ break;
54
+ }
55
+ }
56
+ return r && r.afterTrigger && r.afterTrigger(e), this;
57
+ }, e.prototype.triggerWithContext = function(e) {
58
+ var t = [...arguments].slice(1);
59
+ if (!this._$handlers) return this;
60
+ var n = this._$handlers[e], r = this._$eventProcessor;
61
+ if (n) for (var i = t.length, a = t[i - 1], o = n.length, s = 0; s < o; s++) {
62
+ var c = n[s];
63
+ if (!(r && r.filter && c.query != null && !r.filter(e, c.query))) switch (i) {
64
+ case 0:
65
+ c.h.call(a);
66
+ break;
67
+ case 1:
68
+ c.h.call(a, t[0]);
69
+ break;
70
+ case 2:
71
+ c.h.call(a, t[0], t[1]);
72
+ break;
73
+ default:
74
+ c.h.apply(a, t.slice(1, i - 1));
75
+ break;
76
+ }
77
+ }
78
+ return r && r.afterTrigger && r.afterTrigger(e), this;
79
+ }, e;
80
+ }();
81
+ //#endregion
82
+ export { e as default };
@@ -0,0 +1,56 @@
1
+ import { clientToLocal as e } from "./event.js";
2
+ //#region node_modules/zrender/lib/core/GestureMgr.js
3
+ var t = function() {
4
+ function t() {
5
+ this._track = [];
6
+ }
7
+ return t.prototype.recognize = function(e, t, n) {
8
+ return this._doTrack(e, t, n), this._recognize(e);
9
+ }, t.prototype.clear = function() {
10
+ return this._track.length = 0, this;
11
+ }, t.prototype._doTrack = function(t, n, r) {
12
+ var i = t.touches;
13
+ if (i) {
14
+ for (var a = {
15
+ points: [],
16
+ touches: [],
17
+ target: n,
18
+ event: t
19
+ }, o = 0, s = i.length; o < s; o++) {
20
+ var c = i[o], l = e(r, c, {});
21
+ a.points.push([l.zrX, l.zrY]), a.touches.push(c);
22
+ }
23
+ this._track.push(a);
24
+ }
25
+ }, t.prototype._recognize = function(e) {
26
+ for (var t in i) if (i.hasOwnProperty(t)) {
27
+ var n = i[t](this._track, e);
28
+ if (n) return n;
29
+ }
30
+ }, t;
31
+ }();
32
+ function n(e) {
33
+ var t = e[1][0] - e[0][0], n = e[1][1] - e[0][1];
34
+ return Math.sqrt(t * t + n * n);
35
+ }
36
+ function r(e) {
37
+ return [(e[0][0] + e[1][0]) / 2, (e[0][1] + e[1][1]) / 2];
38
+ }
39
+ var i = { pinch: function(e, t) {
40
+ var i = e.length;
41
+ if (i) {
42
+ var a = (e[i - 1] || {}).points, o = (e[i - 2] || {}).points || a;
43
+ if (o && o.length > 1 && a && a.length > 1) {
44
+ var s = n(a) / n(o);
45
+ !isFinite(s) && (s = 1), t.pinchScale = s;
46
+ var c = r(a);
47
+ return t.pinchX = c[0], t.pinchY = c[1], {
48
+ type: "pinch",
49
+ target: e[0].target,
50
+ event: t
51
+ };
52
+ }
53
+ }
54
+ } };
55
+ //#endregion
56
+ export { t as GestureMgr };
@@ -0,0 +1,49 @@
1
+ //#region node_modules/zrender/lib/core/LRU.js
2
+ var e = function() {
3
+ function e(e) {
4
+ this.value = e;
5
+ }
6
+ return e;
7
+ }(), t = function() {
8
+ function t() {
9
+ this._len = 0;
10
+ }
11
+ return t.prototype.insert = function(t) {
12
+ var n = new e(t);
13
+ return this.insertEntry(n), n;
14
+ }, t.prototype.insertEntry = function(e) {
15
+ this.head ? (this.tail.next = e, e.prev = this.tail, e.next = null, this.tail = e) : this.head = this.tail = e, this._len++;
16
+ }, t.prototype.remove = function(e) {
17
+ var t = e.prev, n = e.next;
18
+ t ? t.next = n : this.head = n, n ? n.prev = t : this.tail = t, e.next = e.prev = null, this._len--;
19
+ }, t.prototype.len = function() {
20
+ return this._len;
21
+ }, t.prototype.clear = function() {
22
+ this.head = this.tail = null, this._len = 0;
23
+ }, t;
24
+ }(), n = function() {
25
+ function n(e) {
26
+ this._list = new t(), this._maxSize = 10, this._map = {}, this._maxSize = e;
27
+ }
28
+ return n.prototype.put = function(t, n) {
29
+ var r = this._list, i = this._map, a = null;
30
+ if (i[t] == null) {
31
+ var o = r.len(), s = this._lastRemovedEntry;
32
+ if (o >= this._maxSize && o > 0) {
33
+ var c = r.head;
34
+ r.remove(c), delete i[c.key], a = c.value, this._lastRemovedEntry = c;
35
+ }
36
+ s ? s.value = n : s = new e(n), s.key = t, r.insertEntry(s), i[t] = s;
37
+ }
38
+ return a;
39
+ }, n.prototype.get = function(e) {
40
+ var t = this._map[e], n = this._list;
41
+ if (t != null) return t !== n.tail && (n.remove(t), n.insertEntry(t)), t.value;
42
+ }, n.prototype.clear = function() {
43
+ this._list.clear(), this._map = {};
44
+ }, n.prototype.len = function() {
45
+ return this._list.len();
46
+ }, n;
47
+ }();
48
+ //#endregion
49
+ export { n as default };
@@ -0,0 +1,41 @@
1
+ import e from "./Point.js";
2
+ import { createIntersectContext as t } from "./BoundingRect.js";
3
+ //#region node_modules/zrender/lib/core/OrientedBoundingRect.js
4
+ var n = Math.min, r = Math.max, i = Math.abs, a = [0, 0], o = [0, 0], s = t(), c = s.minTv, l = s.maxTv, u = function() {
5
+ function t(t, n) {
6
+ this._corners = [], this._axes = [], this._origin = [0, 0];
7
+ for (var r = 0; r < 4; r++) this._corners[r] = new e();
8
+ for (var r = 0; r < 2; r++) this._axes[r] = new e();
9
+ t && this.fromBoundingRect(t, n);
10
+ }
11
+ return t.prototype.fromBoundingRect = function(t, n) {
12
+ var r = this._corners, i = this._axes, a = t.x, o = t.y, s = a + t.width, c = o + t.height;
13
+ if (r[0].set(a, o), r[1].set(s, o), r[2].set(s, c), r[3].set(a, c), n) for (var l = 0; l < 4; l++) r[l].transform(n);
14
+ e.sub(i[0], r[1], r[0]), e.sub(i[1], r[3], r[0]), i[0].normalize(), i[1].normalize();
15
+ for (var l = 0; l < 2; l++) this._origin[l] = i[l].dot(r[0]);
16
+ }, t.prototype.intersect = function(t, n, r) {
17
+ var i = !0, a = !n;
18
+ return n && e.set(n, 0, 0), s.reset(r, !a), !this._intersectCheckOneSide(this, t, a, 1) && (i = !1, a) || !this._intersectCheckOneSide(t, this, a, -1) && (i = !1, a) || !a && !s.negativeSize && e.copy(n, i ? s.useDir ? s.dirMinTv : c : l), i;
19
+ }, t.prototype._intersectCheckOneSide = function(t, r, u, d) {
20
+ for (var f = !0, p = 0; p < 2; p++) {
21
+ var m = t._axes[p];
22
+ if (t._getProjMinMaxOnAxis(p, t._corners, a), t._getProjMinMaxOnAxis(p, r._corners, o), s.negativeSize || a[1] < o[0] || a[0] > o[1]) {
23
+ if (f = !1, s.negativeSize || u) return f;
24
+ var h = i(o[0] - a[1]), g = i(a[0] - o[1]);
25
+ n(h, g) > l.len() && (h < g ? e.scale(l, m, -h * d) : e.scale(l, m, g * d));
26
+ } else if (!u) {
27
+ var h = i(o[0] - a[1]), g = i(a[0] - o[1]);
28
+ (s.useDir || n(h, g) < c.len()) && ((h < g || !s.bidirectional) && (e.scale(c, m, h * d), s.useDir && s.calcDirMTV()), (h >= g || !s.bidirectional) && (e.scale(c, m, -g * d), s.useDir && s.calcDirMTV()));
29
+ }
30
+ }
31
+ return f;
32
+ }, t.prototype._getProjMinMaxOnAxis = function(e, t, i) {
33
+ for (var a = this._axes[e], o = this._origin, c = t[0].dot(a) + o[e], l = c, u = c, d = 1; d < t.length; d++) {
34
+ var f = t[d].dot(a) + o[e];
35
+ l = n(f, l), u = r(f, u);
36
+ }
37
+ i[0] = l + s.touchThreshold, i[1] = u - s.touchThreshold, s.negativeSize = i[1] < i[0];
38
+ }, t;
39
+ }();
40
+ //#endregion
41
+ export { u as default };
@@ -0,0 +1,288 @@
1
+ import { max as e, min as t } from "./vector.js";
2
+ import { cubicLength as n, cubicSubdivide as r, quadraticLength as i, quadraticSubdivide as a } from "./curve.js";
3
+ import o from "./BoundingRect.js";
4
+ import { devicePixelRatio as s } from "../config.js";
5
+ import { fromArc as c, fromCubic as l, fromLine as u, fromQuadratic as d } from "./bbox.js";
6
+ //#region node_modules/zrender/lib/core/PathProxy.js
7
+ var f = {
8
+ M: 1,
9
+ L: 2,
10
+ C: 3,
11
+ Q: 4,
12
+ A: 5,
13
+ Z: 6,
14
+ R: 7
15
+ }, p = [], m = [], h = [], g = [], _ = [], v = [], y = Math.min, b = Math.max, x = Math.cos, S = Math.sin, C = Math.abs, w = Math.PI, T = w * 2, E = typeof Float32Array < "u", D = [];
16
+ function O(e) {
17
+ return Math.round(e / w * 1e8) / 1e8 % 2 * w;
18
+ }
19
+ function k(e, t) {
20
+ var n = O(e[0]);
21
+ n < 0 && (n += T);
22
+ var r = n - e[0], i = e[1];
23
+ i += r, !t && i - n >= T ? i = n + T : t && n - i >= T ? i = n - T : !t && n > i ? i = n + (T - O(n - i)) : t && n < i && (i = n - (T - O(i - n))), e[0] = n, e[1] = i;
24
+ }
25
+ var A = function() {
26
+ function w(e) {
27
+ this.dpr = 1, this._xi = 0, this._yi = 0, this._x0 = 0, this._y0 = 0, this._len = 0, e && (this._saveData = !1), this._saveData && (this.data = []);
28
+ }
29
+ return w.prototype.increaseVersion = function() {
30
+ this._version++;
31
+ }, w.prototype.getVersion = function() {
32
+ return this._version;
33
+ }, w.prototype.setScale = function(e, t, n) {
34
+ n ||= 0, n > 0 && (this._ux = C(n / s / e) || 0, this._uy = C(n / s / t) || 0);
35
+ }, w.prototype.setDPR = function(e) {
36
+ this.dpr = e;
37
+ }, w.prototype.setContext = function(e) {
38
+ this._ctx = e;
39
+ }, w.prototype.getContext = function() {
40
+ return this._ctx;
41
+ }, w.prototype.beginPath = function() {
42
+ return this._ctx && this._ctx.beginPath(), this.reset(), this;
43
+ }, w.prototype.reset = function() {
44
+ this._saveData && (this._len = 0), this._pathSegLen && (this._pathSegLen = null, this._pathLen = 0), this._version++;
45
+ }, w.prototype.moveTo = function(e, t) {
46
+ return this._drawPendingPt(), this.addData(f.M, e, t), this._ctx && this._ctx.moveTo(e, t), this._x0 = e, this._y0 = t, this._xi = e, this._yi = t, this;
47
+ }, w.prototype.lineTo = function(e, t) {
48
+ var n = C(e - this._xi), r = C(t - this._yi), i = n > this._ux || r > this._uy;
49
+ if (this.addData(f.L, e, t), this._ctx && i && this._ctx.lineTo(e, t), i) this._xi = e, this._yi = t, this._pendingPtDist = 0;
50
+ else {
51
+ var a = n * n + r * r;
52
+ a > this._pendingPtDist && (this._pendingPtX = e, this._pendingPtY = t, this._pendingPtDist = a);
53
+ }
54
+ return this;
55
+ }, w.prototype.bezierCurveTo = function(e, t, n, r, i, a) {
56
+ return this._drawPendingPt(), this.addData(f.C, e, t, n, r, i, a), this._ctx && this._ctx.bezierCurveTo(e, t, n, r, i, a), this._xi = i, this._yi = a, this;
57
+ }, w.prototype.quadraticCurveTo = function(e, t, n, r) {
58
+ return this._drawPendingPt(), this.addData(f.Q, e, t, n, r), this._ctx && this._ctx.quadraticCurveTo(e, t, n, r), this._xi = n, this._yi = r, this;
59
+ }, w.prototype.arc = function(e, t, n, r, i, a) {
60
+ this._drawPendingPt(), D[0] = r, D[1] = i, k(D, a), r = D[0], i = D[1];
61
+ var o = i - r;
62
+ return this.addData(f.A, e, t, n, n, r, o, 0, +!a), this._ctx && this._ctx.arc(e, t, n, r, i, a), this._xi = x(i) * n + e, this._yi = S(i) * n + t, this;
63
+ }, w.prototype.arcTo = function(e, t, n, r, i) {
64
+ return this._drawPendingPt(), this._ctx && this._ctx.arcTo(e, t, n, r, i), this;
65
+ }, w.prototype.rect = function(e, t, n, r) {
66
+ return this._drawPendingPt(), this._ctx && this._ctx.rect(e, t, n, r), this.addData(f.R, e, t, n, r), this;
67
+ }, w.prototype.closePath = function() {
68
+ this._drawPendingPt(), this.addData(f.Z);
69
+ var e = this._ctx, t = this._x0, n = this._y0;
70
+ return e && e.closePath(), this._xi = t, this._yi = n, this;
71
+ }, w.prototype.fill = function(e) {
72
+ e && e.fill(), this.toStatic();
73
+ }, w.prototype.stroke = function(e) {
74
+ e && e.stroke(), this.toStatic();
75
+ }, w.prototype.len = function() {
76
+ return this._len;
77
+ }, w.prototype.setData = function(e) {
78
+ if (this._saveData) {
79
+ var t = e.length;
80
+ !(this.data && this.data.length === t) && E && (this.data = new Float32Array(t));
81
+ for (var n = 0; n < t; n++) this.data[n] = e[n];
82
+ this._len = t;
83
+ }
84
+ }, w.prototype.appendPath = function(e) {
85
+ if (this._saveData) {
86
+ e instanceof Array || (e = [e]);
87
+ for (var t = e.length, n = 0, r = this._len, i = 0; i < t; i++) n += e[i].len();
88
+ var a = this.data;
89
+ if (E && (a instanceof Float32Array || !a) && (this.data = new Float32Array(r + n), r > 0 && a)) for (var o = 0; o < r; o++) this.data[o] = a[o];
90
+ for (var i = 0; i < t; i++) for (var s = e[i].data, o = 0; o < s.length; o++) this.data[r++] = s[o];
91
+ this._len = r;
92
+ }
93
+ }, w.prototype.addData = function(e, t, n, r, i, a, o, s, c) {
94
+ if (this._saveData) {
95
+ var l = this.data;
96
+ this._len + arguments.length > l.length && (this._expandData(), l = this.data);
97
+ for (var u = 0; u < arguments.length; u++) l[this._len++] = arguments[u];
98
+ }
99
+ }, w.prototype._drawPendingPt = function() {
100
+ this._pendingPtDist > 0 && (this._ctx && this._ctx.lineTo(this._pendingPtX, this._pendingPtY), this._pendingPtDist = 0);
101
+ }, w.prototype._expandData = function() {
102
+ if (!(this.data instanceof Array)) {
103
+ for (var e = [], t = 0; t < this._len; t++) e[t] = this.data[t];
104
+ this.data = e;
105
+ }
106
+ }, w.prototype.toStatic = function() {
107
+ if (this._saveData) {
108
+ this._drawPendingPt();
109
+ var e = this.data;
110
+ e instanceof Array && (e.length = this._len, E && this._len > 11 && (this.data = new Float32Array(e)));
111
+ }
112
+ }, w.prototype.getBoundingRect = function() {
113
+ h[0] = h[1] = _[0] = _[1] = Number.MAX_VALUE, g[0] = g[1] = v[0] = v[1] = -Number.MAX_VALUE;
114
+ var n = this.data, r = 0, i = 0, a = 0, s = 0, p;
115
+ for (p = 0; p < this._len;) {
116
+ var m = n[p++], y = p === 1;
117
+ switch (y && (r = n[p], i = n[p + 1], a = r, s = i), m) {
118
+ case f.M:
119
+ r = a = n[p++], i = s = n[p++], _[0] = a, _[1] = s, v[0] = a, v[1] = s;
120
+ break;
121
+ case f.L:
122
+ u(r, i, n[p], n[p + 1], _, v), r = n[p++], i = n[p++];
123
+ break;
124
+ case f.C:
125
+ l(r, i, n[p++], n[p++], n[p++], n[p++], n[p], n[p + 1], _, v), r = n[p++], i = n[p++];
126
+ break;
127
+ case f.Q:
128
+ d(r, i, n[p++], n[p++], n[p], n[p + 1], _, v), r = n[p++], i = n[p++];
129
+ break;
130
+ case f.A:
131
+ var b = n[p++], C = n[p++], w = n[p++], T = n[p++], E = n[p++], D = n[p++] + E;
132
+ p += 1;
133
+ var O = !n[p++];
134
+ y && (a = x(E) * w + b, s = S(E) * T + C), c(b, C, w, T, E, D, O, _, v), r = x(D) * w + b, i = S(D) * T + C;
135
+ break;
136
+ case f.R:
137
+ a = r = n[p++], s = i = n[p++];
138
+ var k = n[p++], A = n[p++];
139
+ u(a, s, a + k, s + A, _, v);
140
+ break;
141
+ case f.Z:
142
+ r = a, i = s;
143
+ break;
144
+ }
145
+ t(h, h, _), e(g, g, v);
146
+ }
147
+ return p === 0 && (h[0] = h[1] = g[0] = g[1] = 0), new o(h[0], h[1], g[0] - h[0], g[1] - h[1]);
148
+ }, w.prototype._calculateLength = function() {
149
+ var e = this.data, t = this._len, r = this._ux, a = this._uy, o = 0, s = 0, c = 0, l = 0;
150
+ this._pathSegLen ||= [];
151
+ for (var u = this._pathSegLen, d = 0, p = 0, m = 0; m < t;) {
152
+ var h = e[m++], g = m === 1;
153
+ g && (o = e[m], s = e[m + 1], c = o, l = s);
154
+ var _ = -1;
155
+ switch (h) {
156
+ case f.M:
157
+ o = c = e[m++], s = l = e[m++];
158
+ break;
159
+ case f.L:
160
+ var v = e[m++], w = e[m++], E = v - o, D = w - s;
161
+ (C(E) > r || C(D) > a || m === t - 1) && (_ = Math.sqrt(E * E + D * D), o = v, s = w);
162
+ break;
163
+ case f.C:
164
+ var O = e[m++], k = e[m++], v = e[m++], w = e[m++], A = e[m++], j = e[m++];
165
+ _ = n(o, s, O, k, v, w, A, j, 10), o = A, s = j;
166
+ break;
167
+ case f.Q:
168
+ var O = e[m++], k = e[m++], v = e[m++], w = e[m++];
169
+ _ = i(o, s, O, k, v, w, 10), o = v, s = w;
170
+ break;
171
+ case f.A:
172
+ var M = e[m++], N = e[m++], P = e[m++], F = e[m++], I = e[m++], L = e[m++], R = L + I;
173
+ m += 1, g && (c = x(I) * P + M, l = S(I) * F + N), _ = b(P, F) * y(T, Math.abs(L)), o = x(R) * P + M, s = S(R) * F + N;
174
+ break;
175
+ case f.R:
176
+ c = o = e[m++], l = s = e[m++];
177
+ var z = e[m++], B = e[m++];
178
+ _ = z * 2 + B * 2;
179
+ break;
180
+ case f.Z:
181
+ var E = c - o, D = l - s;
182
+ _ = Math.sqrt(E * E + D * D), o = c, s = l;
183
+ break;
184
+ }
185
+ _ >= 0 && (u[p++] = _, d += _);
186
+ }
187
+ return this._pathLen = d, d;
188
+ }, w.prototype.rebuildPath = function(e, t) {
189
+ var n = this.data, i = this._ux, o = this._uy, s = this._len, c, l, u, d, h, g, _ = t < 1, v, w, T = 0, E = 0, D, O = 0, k, A;
190
+ if (!(_ && (this._pathSegLen || this._calculateLength(), v = this._pathSegLen, w = this._pathLen, D = t * w, !D))) lo: for (var j = 0; j < s;) {
191
+ var M = n[j++], N = j === 1;
192
+ switch (N && (u = n[j], d = n[j + 1], c = u, l = d), M !== f.L && O > 0 && (e.lineTo(k, A), O = 0), M) {
193
+ case f.M:
194
+ c = u = n[j++], l = d = n[j++], e.moveTo(u, d);
195
+ break;
196
+ case f.L:
197
+ h = n[j++], g = n[j++];
198
+ var P = C(h - u), F = C(g - d);
199
+ if (P > i || F > o) {
200
+ if (_) {
201
+ var I = v[E++];
202
+ if (T + I > D) {
203
+ var L = (D - T) / I;
204
+ e.lineTo(u * (1 - L) + h * L, d * (1 - L) + g * L);
205
+ break lo;
206
+ }
207
+ T += I;
208
+ }
209
+ e.lineTo(h, g), u = h, d = g, O = 0;
210
+ } else {
211
+ var R = P * P + F * F;
212
+ R > O && (k = h, A = g, O = R);
213
+ }
214
+ break;
215
+ case f.C:
216
+ var z = n[j++], B = n[j++], V = n[j++], H = n[j++], U = n[j++], W = n[j++];
217
+ if (_) {
218
+ var I = v[E++];
219
+ if (T + I > D) {
220
+ var L = (D - T) / I;
221
+ r(u, z, V, U, L, p), r(d, B, H, W, L, m), e.bezierCurveTo(p[1], m[1], p[2], m[2], p[3], m[3]);
222
+ break lo;
223
+ }
224
+ T += I;
225
+ }
226
+ e.bezierCurveTo(z, B, V, H, U, W), u = U, d = W;
227
+ break;
228
+ case f.Q:
229
+ var z = n[j++], B = n[j++], V = n[j++], H = n[j++];
230
+ if (_) {
231
+ var I = v[E++];
232
+ if (T + I > D) {
233
+ var L = (D - T) / I;
234
+ a(u, z, V, L, p), a(d, B, H, L, m), e.quadraticCurveTo(p[1], m[1], p[2], m[2]);
235
+ break lo;
236
+ }
237
+ T += I;
238
+ }
239
+ e.quadraticCurveTo(z, B, V, H), u = V, d = H;
240
+ break;
241
+ case f.A:
242
+ var G = n[j++], K = n[j++], q = n[j++], J = n[j++], Y = n[j++], ee = n[j++], te = n[j++], ne = !n[j++], re = q > J ? q : J, ie = C(q - J) > .001, X = Y + ee, ae = !1;
243
+ if (_) {
244
+ var I = v[E++];
245
+ T + I > D && (X = Y + ee * (D - T) / I, ae = !0), T += I;
246
+ }
247
+ if (ie && e.ellipse ? e.ellipse(G, K, q, J, te, Y, X, ne) : e.arc(G, K, re, Y, X, ne), ae) break lo;
248
+ N && (c = x(Y) * q + G, l = S(Y) * J + K), u = x(X) * q + G, d = S(X) * J + K;
249
+ break;
250
+ case f.R:
251
+ c = u = n[j], l = d = n[j + 1], h = n[j++], g = n[j++];
252
+ var Z = n[j++], Q = n[j++];
253
+ if (_) {
254
+ var I = v[E++];
255
+ if (T + I > D) {
256
+ var $ = D - T;
257
+ e.moveTo(h, g), e.lineTo(h + y($, Z), g), $ -= Z, $ > 0 && e.lineTo(h + Z, g + y($, Q)), $ -= Q, $ > 0 && e.lineTo(h + b(Z - $, 0), g + Q), $ -= Z, $ > 0 && e.lineTo(h, g + b(Q - $, 0));
258
+ break lo;
259
+ }
260
+ T += I;
261
+ }
262
+ e.rect(h, g, Z, Q);
263
+ break;
264
+ case f.Z:
265
+ if (_) {
266
+ var I = v[E++];
267
+ if (T + I > D) {
268
+ var L = (D - T) / I;
269
+ e.lineTo(u * (1 - L) + c * L, d * (1 - L) + l * L);
270
+ break lo;
271
+ }
272
+ T += I;
273
+ }
274
+ e.closePath(), u = c, d = l;
275
+ }
276
+ }
277
+ }, w.prototype.clone = function() {
278
+ var e = new w(), t = this.data;
279
+ return e.data = t.slice ? t.slice() : Array.prototype.slice.call(t), e._len = this._len, e;
280
+ }, w.prototype.canSave = function() {
281
+ return !!this._saveData;
282
+ }, w.CMD = f, w.initDefaultProps = (function() {
283
+ var e = w.prototype;
284
+ e._saveData = !0, e._ux = 0, e._uy = 0, e._pendingPtDist = 0, e._version = 0;
285
+ })(), w;
286
+ }();
287
+ //#endregion
288
+ export { A as default, k as normalizeArcAngles };
@@ -0,0 +1,72 @@
1
+ //#region node_modules/zrender/lib/core/Point.js
2
+ var e = function() {
3
+ function e(e, t) {
4
+ this.x = e || 0, this.y = t || 0;
5
+ }
6
+ return e.prototype.copy = function(e) {
7
+ return this.x = e.x, this.y = e.y, this;
8
+ }, e.prototype.clone = function() {
9
+ return new e(this.x, this.y);
10
+ }, e.prototype.set = function(e, t) {
11
+ return this.x = e, this.y = t, this;
12
+ }, e.prototype.equal = function(e) {
13
+ return e.x === this.x && e.y === this.y;
14
+ }, e.prototype.add = function(e) {
15
+ return this.x += e.x, this.y += e.y, this;
16
+ }, e.prototype.scale = function(e) {
17
+ this.x *= e, this.y *= e;
18
+ }, e.prototype.scaleAndAdd = function(e, t) {
19
+ this.x += e.x * t, this.y += e.y * t;
20
+ }, e.prototype.sub = function(e) {
21
+ return this.x -= e.x, this.y -= e.y, this;
22
+ }, e.prototype.dot = function(e) {
23
+ return this.x * e.x + this.y * e.y;
24
+ }, e.prototype.len = function() {
25
+ return Math.sqrt(this.x * this.x + this.y * this.y);
26
+ }, e.prototype.lenSquare = function() {
27
+ return this.x * this.x + this.y * this.y;
28
+ }, e.prototype.normalize = function() {
29
+ var e = this.len();
30
+ return this.x /= e, this.y /= e, this;
31
+ }, e.prototype.distance = function(e) {
32
+ var t = this.x - e.x, n = this.y - e.y;
33
+ return Math.sqrt(t * t + n * n);
34
+ }, e.prototype.distanceSquare = function(e) {
35
+ var t = this.x - e.x, n = this.y - e.y;
36
+ return t * t + n * n;
37
+ }, e.prototype.negate = function() {
38
+ return this.x = -this.x, this.y = -this.y, this;
39
+ }, e.prototype.transform = function(e) {
40
+ if (e) {
41
+ var t = this.x, n = this.y;
42
+ return this.x = e[0] * t + e[2] * n + e[4], this.y = e[1] * t + e[3] * n + e[5], this;
43
+ }
44
+ }, e.prototype.toArray = function(e) {
45
+ return e[0] = this.x, e[1] = this.y, e;
46
+ }, e.prototype.fromArray = function(e) {
47
+ this.x = e[0], this.y = e[1];
48
+ }, e.set = function(e, t, n) {
49
+ e.x = t, e.y = n;
50
+ }, e.copy = function(e, t) {
51
+ e.x = t.x, e.y = t.y;
52
+ }, e.len = function(e) {
53
+ return Math.sqrt(e.x * e.x + e.y * e.y);
54
+ }, e.lenSquare = function(e) {
55
+ return e.x * e.x + e.y * e.y;
56
+ }, e.dot = function(e, t) {
57
+ return e.x * t.x + e.y * t.y;
58
+ }, e.add = function(e, t, n) {
59
+ e.x = t.x + n.x, e.y = t.y + n.y;
60
+ }, e.sub = function(e, t, n) {
61
+ e.x = t.x - n.x, e.y = t.y - n.y;
62
+ }, e.scale = function(e, t, n) {
63
+ e.x = t.x * n, e.y = t.y * n;
64
+ }, e.scaleAndAdd = function(e, t, n, r) {
65
+ e.x = t.x + n.x * r, e.y = t.y + n.y * r;
66
+ }, e.lerp = function(e, t, n, r) {
67
+ var i = 1 - r;
68
+ e.x = i * t.x + r * n.x, e.y = i * t.y + r * n.y;
69
+ }, e;
70
+ }();
71
+ //#endregion
72
+ export { e as default };
@@ -0,0 +1,96 @@
1
+ import { assignProps as e } from "./util.js";
2
+ import { copy as t, create as n, identity as r, invert as i, mul as a, rotate as o } from "./matrix.js";
3
+ import { applyTransform as s } from "./vector.js";
4
+ //#region node_modules/zrender/lib/core/Transformable.js
5
+ var c = r, l = 5e-5;
6
+ function u(e) {
7
+ return e > l || e < -l;
8
+ }
9
+ var d = [], f = [], p = n(), m = Math.abs, h = function() {
10
+ function e() {}
11
+ return e.prototype.getLocalTransform = function(e) {
12
+ return g(this, e);
13
+ }, e.prototype.setPosition = function(e) {
14
+ this.x = e[0], this.y = e[1];
15
+ }, e.prototype.setScale = function(e) {
16
+ this.scaleX = e[0], this.scaleY = e[1];
17
+ }, e.prototype.setSkew = function(e) {
18
+ this.skewX = e[0], this.skewY = e[1];
19
+ }, e.prototype.setOrigin = function(e) {
20
+ this.originX = e[0], this.originY = e[1];
21
+ }, e.prototype.needLocalTransform = function() {
22
+ return u(this.rotation) || u(this.x) || u(this.y) || u(this.scaleX - 1) || u(this.scaleY - 1) || u(this.skewX) || u(this.skewY);
23
+ }, e.prototype.updateTransform = function() {
24
+ var e = this.parent && this.parent.transform, r = this.needLocalTransform(), o = this.transform;
25
+ if (!(r || e)) {
26
+ o && (c(o), this.invTransform = null);
27
+ return;
28
+ }
29
+ o ||= n(), r ? this.getLocalTransform(o) : c(o), e && (r ? a(o, e, o) : t(o, e)), this.transform = o, this._resolveGlobalScaleRatio(o), this.invTransform = this.invTransform || n(), i(this.invTransform, o);
30
+ }, e.prototype._resolveGlobalScaleRatio = function(e) {
31
+ var t = this.globalScaleRatio;
32
+ if (t != null && t !== 1) {
33
+ this.getGlobalScale(d);
34
+ var n = d[0] < 0 ? -1 : 1, r = d[1] < 0 ? -1 : 1, i = ((d[0] - n) * t + n) / d[0] || 0, a = ((d[1] - r) * t + r) / d[1] || 0;
35
+ e[0] *= i, e[1] *= i, e[2] *= a, e[3] *= a;
36
+ }
37
+ }, e.prototype.getComputedTransform = function() {
38
+ for (var e = this, t = []; e;) t.push(e), e = e.parent;
39
+ for (; e = t.pop();) e.updateTransform();
40
+ return this.transform;
41
+ }, e.prototype.setLocalTransform = function(e) {
42
+ if (e) {
43
+ var t = e[0] * e[0] + e[1] * e[1], n = e[2] * e[2] + e[3] * e[3], r = Math.atan2(e[1], e[0]), i = Math.PI / 2 + r - Math.atan2(e[3], e[2]);
44
+ n = Math.sqrt(n) * Math.cos(i), t = Math.sqrt(t), this.skewX = i, this.skewY = 0, this.rotation = -r, this.x = +e[4], this.y = +e[5], this.scaleX = t, this.scaleY = n, this.originX = 0, this.originY = 0;
45
+ }
46
+ }, e.prototype.decomposeTransform = function() {
47
+ if (this.transform) {
48
+ var e = this.parent, t = this.transform;
49
+ e && e.transform && (e.invTransform = e.invTransform || n(), a(f, e.invTransform, t), t = f);
50
+ var r = this.originX, i = this.originY;
51
+ (r || i) && (p[4] = r, p[5] = i, a(f, t, p), f[4] -= r, f[5] -= i, t = f), this.setLocalTransform(t);
52
+ }
53
+ }, e.prototype.getGlobalScale = function(e) {
54
+ var t = this.transform;
55
+ return e ||= [], t ? (e[0] = Math.sqrt(t[0] * t[0] + t[1] * t[1]), e[1] = Math.sqrt(t[2] * t[2] + t[3] * t[3]), t[0] < 0 && (e[0] = -e[0]), t[3] < 0 && (e[1] = -e[1]), e) : (e[0] = 1, e[1] = 1, e);
56
+ }, e.prototype.transformCoordToLocal = function(e, t) {
57
+ var n = [e, t], r = this.invTransform;
58
+ return r && s(n, n, r), n;
59
+ }, e.prototype.transformCoordToGlobal = function(e, t) {
60
+ var n = [e, t], r = this.transform;
61
+ return r && s(n, n, r), n;
62
+ }, e.prototype.getLineScale = function() {
63
+ var e = this.transform;
64
+ return e && m(e[0] - 1) > 1e-10 && m(e[3] - 1) > 1e-10 ? Math.sqrt(m(e[0] * e[3] - e[2] * e[1])) : 1;
65
+ }, e.prototype.copyTransform = function(e) {
66
+ v(this, e);
67
+ }, e.getLocalTransform = function(e, t) {
68
+ t ||= [];
69
+ var n = e.originX || 0, r = e.originY || 0, i = e.scaleX, a = e.scaleY, s = e.anchorX, c = e.anchorY, l = e.rotation || 0, u = e.x, d = e.y, f = e.skewX ? Math.tan(e.skewX) : 0, p = e.skewY ? Math.tan(-e.skewY) : 0;
70
+ if (n || r || s || c) {
71
+ var m = n + s, h = r + c;
72
+ t[4] = -m * i - f * h * a, t[5] = -h * a - p * m * i;
73
+ } else t[4] = t[5] = 0;
74
+ return t[0] = i, t[3] = a, t[1] = p * i, t[2] = f * a, l && o(t, t, l), t[4] += n + u, t[5] += r + d, t;
75
+ }, e.initDefaultProps = (function() {
76
+ var t = e.prototype;
77
+ t.scaleX = t.scaleY = t.globalScaleRatio = 1, t.x = t.y = t.originX = t.originY = t.skewX = t.skewY = t.rotation = t.anchorX = t.anchorY = 0;
78
+ })(), e;
79
+ }(), g = h.getLocalTransform, _ = [
80
+ "x",
81
+ "y",
82
+ "originX",
83
+ "originY",
84
+ "anchorX",
85
+ "anchorY",
86
+ "rotation",
87
+ "scaleX",
88
+ "scaleY",
89
+ "skewX",
90
+ "skewY"
91
+ ];
92
+ function v(t, n) {
93
+ return e(t, n, _);
94
+ }
95
+ //#endregion
96
+ export { _ as TRANSFORMABLE_PROPS, v as copyTransform, h as default };