reke-ui 0.3.0 → 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 (259) hide show
  1. package/custom-elements.json +991 -20
  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 +21 -1
  9. package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
  10. package/dist/components/reke-combobox/reke-combobox.js +76 -16
  11. package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -1
  12. package/dist/components/reke-combobox/reke-combobox.styles.js +128 -0
  13. package/dist/components/reke-input/reke-input.d.ts +14 -0
  14. package/dist/components/reke-input/reke-input.d.ts.map +1 -1
  15. package/dist/components/reke-input/reke-input.js +41 -22
  16. package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
  17. package/dist/components/reke-input/reke-input.styles.js +44 -16
  18. package/dist/components/reke-menu/reke-menu.d.ts +51 -0
  19. package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
  20. package/dist/components/reke-menu/reke-menu.js +106 -0
  21. package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
  22. package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
  23. package/dist/components/reke-menu/reke-menu.styles.js +25 -0
  24. package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
  25. package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
  26. package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
  27. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
  28. package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
  29. package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
  30. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
  31. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
  32. package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
  33. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
  34. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
  35. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
  36. package/dist/components/reke-table/reke-table.d.ts +1 -0
  37. package/dist/components/reke-table/reke-table.d.ts.map +1 -1
  38. package/dist/components/reke-table/reke-table.js +6 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +10 -7
  42. package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
  43. package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
  44. package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
  45. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
  46. package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
  47. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
  48. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
  49. package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
  50. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
  51. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
  52. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
  53. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
  54. package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
  55. package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
  56. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
  57. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
  58. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
  59. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
  60. package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
  61. package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
  62. package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
  63. package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
  64. package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
  65. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
  66. package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
  67. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
  68. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
  69. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
  70. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
  71. package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
  72. package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
  73. package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
  74. package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
  75. package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
  76. package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
  77. package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
  78. package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
  79. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
  80. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
  81. package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
  82. package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
  83. package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
  84. package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
  85. package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
  86. package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
  87. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
  88. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
  89. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
  90. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
  91. package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
  92. package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
  93. package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
  94. package/dist/node_modules/echarts/lib/core/impl.js +11 -0
  95. package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
  96. package/dist/node_modules/echarts/lib/core/locale.js +27 -0
  97. package/dist/node_modules/echarts/lib/core/task.js +81 -0
  98. package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
  99. package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
  100. package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
  101. package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
  102. package/dist/node_modules/echarts/lib/data/Source.js +132 -0
  103. package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
  104. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
  105. package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
  106. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
  107. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
  108. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
  109. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
  110. package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
  111. package/dist/node_modules/echarts/lib/extension.js +62 -0
  112. package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
  113. package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
  114. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
  115. package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
  116. package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
  117. package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
  118. package/dist/node_modules/echarts/lib/loading/default.js +85 -0
  119. package/dist/node_modules/echarts/lib/model/Component.js +64 -0
  120. package/dist/node_modules/echarts/lib/model/Global.js +320 -0
  121. package/dist/node_modules/echarts/lib/model/Model.js +50 -0
  122. package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
  123. package/dist/node_modules/echarts/lib/model/Series.js +216 -0
  124. package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
  125. package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
  126. package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
  127. package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
  128. package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
  129. package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
  130. package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
  131. package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
  132. package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
  133. package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
  134. package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
  135. package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
  136. package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
  137. package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
  138. package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
  139. package/dist/node_modules/echarts/lib/scale/break.js +9 -0
  140. package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
  141. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
  142. package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
  143. package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
  144. package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
  145. package/dist/node_modules/echarts/lib/util/component.js +75 -0
  146. package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
  147. package/dist/node_modules/echarts/lib/util/decal.js +162 -0
  148. package/dist/node_modules/echarts/lib/util/event.js +7 -0
  149. package/dist/node_modules/echarts/lib/util/format.js +87 -0
  150. package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
  151. package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
  152. package/dist/node_modules/echarts/lib/util/layout.js +174 -0
  153. package/dist/node_modules/echarts/lib/util/log.js +54 -0
  154. package/dist/node_modules/echarts/lib/util/model.js +296 -0
  155. package/dist/node_modules/echarts/lib/util/number.js +132 -0
  156. package/dist/node_modules/echarts/lib/util/states.js +323 -0
  157. package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
  158. package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
  159. package/dist/node_modules/echarts/lib/util/time.js +43 -0
  160. package/dist/node_modules/echarts/lib/util/types.js +13 -0
  161. package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
  162. package/dist/node_modules/echarts/lib/view/Component.js +16 -0
  163. package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
  164. package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
  165. package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
  166. package/dist/node_modules/echarts/lib/visual/style.js +79 -0
  167. package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
  168. package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
  169. package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
  170. package/dist/node_modules/zrender/lib/Element.js +442 -0
  171. package/dist/node_modules/zrender/lib/Handler.js +167 -0
  172. package/dist/node_modules/zrender/lib/Storage.js +68 -0
  173. package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
  174. package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
  175. package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
  176. package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
  177. package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
  178. package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
  179. package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
  180. package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
  181. package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
  182. package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
  183. package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
  184. package/dist/node_modules/zrender/lib/config.js +7 -0
  185. package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
  186. package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
  187. package/dist/node_modules/zrender/lib/contain/line.js +12 -0
  188. package/dist/node_modules/zrender/lib/contain/path.js +133 -0
  189. package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
  190. package/dist/node_modules/zrender/lib/contain/text.js +106 -0
  191. package/dist/node_modules/zrender/lib/contain/util.js +7 -0
  192. package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
  193. package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
  194. package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
  195. package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
  196. package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
  197. package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
  198. package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
  199. package/dist/node_modules/zrender/lib/core/Point.js +72 -0
  200. package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
  201. package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
  202. package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
  203. package/dist/node_modules/zrender/lib/core/curve.js +142 -0
  204. package/dist/node_modules/zrender/lib/core/dom.js +74 -0
  205. package/dist/node_modules/zrender/lib/core/env.js +22 -0
  206. package/dist/node_modules/zrender/lib/core/event.js +58 -0
  207. package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
  208. package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
  209. package/dist/node_modules/zrender/lib/core/platform.js +42 -0
  210. package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
  211. package/dist/node_modules/zrender/lib/core/util.js +314 -0
  212. package/dist/node_modules/zrender/lib/core/vector.js +52 -0
  213. package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
  214. package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
  215. package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
  216. package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
  217. package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
  218. package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
  219. package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
  220. package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
  221. package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
  222. package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
  223. package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
  224. package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
  225. package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
  226. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
  227. package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
  228. package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
  229. package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
  230. package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
  231. package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
  232. package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
  233. package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
  234. package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
  235. package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
  236. package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
  237. package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
  238. package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
  239. package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
  240. package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
  241. package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
  242. package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
  243. package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
  244. package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
  245. package/dist/node_modules/zrender/lib/tool/path.js +153 -0
  246. package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
  247. package/dist/node_modules/zrender/lib/zrender.js +124 -0
  248. package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
  249. package/dist/react-bridge/table.d.ts.map +1 -1
  250. package/dist/react-bridge/table.js +36 -21
  251. package/dist/react.d.ts +8 -0
  252. package/dist/react.d.ts.map +1 -1
  253. package/dist/react.js +58 -46
  254. package/dist/shared/base-element.d.ts +1 -0
  255. package/dist/shared/base-element.d.ts.map +1 -1
  256. package/dist/shared/base-element.js +6 -0
  257. package/dist/shared/tailwind.js +1 -1
  258. package/dist/tokens/reke-tokens.css +15 -0
  259. package/package.json +14 -1
@@ -0,0 +1,226 @@
1
+ import { extend as e, reduce as t, retrieve2 as n, retrieve3 as r } from "../../core/util.js";
2
+ import i from "../../core/BoundingRect.js";
3
+ import { adjustTextX as a, adjustTextY as o, ensureFontMeasureInfo as s, getLineHeight as c, measureCharWidth as l, measureWidth as u, parsePercent as d } from "../../contain/text.js";
4
+ import { findExistImage as f, isImageReady as p } from "./image.js";
5
+ //#region node_modules/zrender/lib/graphic/helper/parseText.js
6
+ var m = /\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;
7
+ function h(e, t, n, r, i, a) {
8
+ if (!n) {
9
+ e.text = "", e.isTruncated = !1;
10
+ return;
11
+ }
12
+ var o = (t + "").split("\n");
13
+ a = g(n, r, i, a);
14
+ for (var s = !1, c = {}, l = 0, u = o.length; l < u; l++) _(c, o[l], a), o[l] = c.textLine, s ||= c.isTruncated;
15
+ e.text = o.join("\n"), e.isTruncated = s;
16
+ }
17
+ function g(t, r, i, a) {
18
+ a ||= {};
19
+ var o = e({}, a);
20
+ i = n(i, "..."), o.maxIterations = n(a.maxIterations, 2);
21
+ var c = o.minChar = n(a.minChar, 0), l = o.fontMeasureInfo = s(r), d = l.asciiCharWidth;
22
+ o.placeholder = n(a.placeholder, "");
23
+ for (var f = t = Math.max(0, t - 1), p = 0; p < c && f >= d; p++) f -= d;
24
+ var m = u(l, i);
25
+ return m > f && (i = "", m = 0), f = t - m, o.ellipsis = i, o.ellipsisWidth = m, o.contentWidth = f, o.containerWidth = t, o;
26
+ }
27
+ function _(e, t, n) {
28
+ var r = n.containerWidth, i = n.contentWidth, a = n.fontMeasureInfo;
29
+ if (!r) {
30
+ e.textLine = "", e.isTruncated = !1;
31
+ return;
32
+ }
33
+ var o = u(a, t);
34
+ if (o <= r) {
35
+ e.textLine = t, e.isTruncated = !1;
36
+ return;
37
+ }
38
+ for (var s = 0;; s++) {
39
+ if (o <= i || s >= n.maxIterations) {
40
+ t += n.ellipsis;
41
+ break;
42
+ }
43
+ var c = s === 0 ? v(t, i, a) : o > 0 ? Math.floor(t.length * i / o) : 0;
44
+ t = t.substr(0, c), o = u(a, t);
45
+ }
46
+ t === "" && (t = n.placeholder), e.textLine = t, e.isTruncated = !0;
47
+ }
48
+ function v(e, t, n) {
49
+ for (var r = 0, i = 0, a = e.length; i < a && r < t; i++) r += l(n, e.charCodeAt(i));
50
+ return i;
51
+ }
52
+ function y(e, t, r, i) {
53
+ var a = M(e), o = t.overflow, l = t.padding, d = l ? l[1] + l[3] : 0, f = l ? l[0] + l[2] : 0, p = t.font, m = o === "truncate", h = c(p), v = n(t.lineHeight, h), y = t.lineOverflow === "truncate", b = !1, x = t.width;
54
+ x == null && r != null && (x = r - d);
55
+ var S = t.height;
56
+ S == null && i != null && (S = i - f);
57
+ var C = x != null && (o === "break" || o === "breakAll") ? a ? O(a, t.font, x, o === "breakAll", 0).lines : [] : a ? a.split("\n") : [], w = C.length * v;
58
+ if (S ??= w, w > S && y) {
59
+ var T = Math.floor(S / v);
60
+ b ||= C.length > T, C = C.slice(0, T), w = C.length * v;
61
+ }
62
+ if (a && m && x != null) for (var E = g(x, p, t.ellipsis, {
63
+ minChar: t.truncateMinChar,
64
+ placeholder: t.placeholder
65
+ }), D = {}, k = 0; k < C.length; k++) _(D, C[k], E), C[k] = D.textLine, b ||= D.isTruncated;
66
+ for (var A = S, j = 0, N = s(p), k = 0; k < C.length; k++) j = Math.max(u(N, C[k]), j);
67
+ x ??= j;
68
+ var P = x;
69
+ return A += f, P += d, {
70
+ lines: C,
71
+ height: S,
72
+ outerWidth: P,
73
+ outerHeight: A,
74
+ lineHeight: v,
75
+ calculatedLineHeight: h,
76
+ contentWidth: j,
77
+ contentHeight: w,
78
+ width: x,
79
+ isTruncated: b
80
+ };
81
+ }
82
+ var b = function() {
83
+ function e() {}
84
+ return e;
85
+ }(), x = function() {
86
+ function e(e) {
87
+ this.tokens = [], e && (this.tokens = e);
88
+ }
89
+ return e;
90
+ }(), S = function() {
91
+ function e() {
92
+ this.width = 0, this.height = 0, this.contentWidth = 0, this.contentHeight = 0, this.outerWidth = 0, this.outerHeight = 0, this.lines = [], this.isTruncated = !1;
93
+ }
94
+ return e;
95
+ }();
96
+ function C(e, t, i, a, o) {
97
+ var l = new S(), d = M(e);
98
+ if (!d) return l;
99
+ var g = t.padding, _ = g ? g[1] + g[3] : 0, v = g ? g[0] + g[2] : 0, y = t.width;
100
+ y == null && i != null && (y = i - _);
101
+ var b = t.height;
102
+ b == null && a != null && (b = a - v);
103
+ for (var x = t.overflow, C = (x === "break" || x === "breakAll") && y != null ? {
104
+ width: y,
105
+ accumWidth: 0,
106
+ breakAll: x === "breakAll"
107
+ } : null, T = m.lastIndex = 0, E; (E = m.exec(d)) != null;) {
108
+ var D = E.index;
109
+ D > T && w(l, d.substring(T, D), t, C), w(l, E[2], t, C, E[1]), T = m.lastIndex;
110
+ }
111
+ T < d.length && w(l, d.substring(T, d.length), t, C);
112
+ var O = [], k = 0, A = 0, j = x === "truncate", N = t.lineOverflow === "truncate", P = {};
113
+ function F(e, t, n) {
114
+ e.width = t, e.lineHeight = n, k += n, A = Math.max(A, t);
115
+ }
116
+ outer: for (var I = 0; I < l.lines.length; I++) {
117
+ for (var L = l.lines[I], R = 0, z = 0, B = 0; B < L.tokens.length; B++) {
118
+ var V = L.tokens[B], H = V.styleName && t.rich[V.styleName] || {}, U = V.textPadding = H.padding, W = U ? U[1] + U[3] : 0, G = V.font = H.font || t.font;
119
+ V.contentHeight = c(G);
120
+ var K = n(H.height, V.contentHeight);
121
+ if (V.innerHeight = K, U && (K += U[0] + U[2]), V.height = K, V.lineHeight = r(H.lineHeight, t.lineHeight, K), V.align = H && H.align || o, V.verticalAlign = H && H.verticalAlign || "middle", N && b != null && k + V.lineHeight > b) {
122
+ var q = l.lines.length;
123
+ B > 0 ? (L.tokens = L.tokens.slice(0, B), F(L, z, R), l.lines = l.lines.slice(0, I + 1)) : l.lines = l.lines.slice(0, I), l.isTruncated = l.isTruncated || l.lines.length < q;
124
+ break outer;
125
+ }
126
+ var J = H.width, Y = J == null || J === "auto";
127
+ if (typeof J == "string" && J.charAt(J.length - 1) === "%") V.percentWidth = J, O.push(V), V.contentWidth = u(s(G), V.text);
128
+ else {
129
+ if (Y) {
130
+ var X = H.backgroundColor, Z = X && X.image;
131
+ Z && (Z = f(Z), p(Z) && (V.width = Math.max(V.width, Z.width * K / Z.height)));
132
+ }
133
+ var Q = j && y != null ? y - z : null;
134
+ Q != null && Q < V.width ? !Y || Q < W ? (V.text = "", V.width = V.contentWidth = 0) : (h(P, V.text, Q - W, G, t.ellipsis, { minChar: t.truncateMinChar }), V.text = P.text, l.isTruncated = l.isTruncated || P.isTruncated, V.width = V.contentWidth = u(s(G), V.text)) : V.contentWidth = u(s(G), V.text);
135
+ }
136
+ V.width += W, z += V.width, H && (R = Math.max(R, V.lineHeight));
137
+ }
138
+ F(L, z, R);
139
+ }
140
+ l.outerWidth = l.width = n(y, A), l.outerHeight = l.height = n(b, k), l.contentHeight = k, l.contentWidth = A, l.outerWidth += _, l.outerHeight += v;
141
+ for (var I = 0; I < O.length; I++) {
142
+ var V = O[I], $ = V.percentWidth;
143
+ V.width = parseInt($, 10) / 100 * l.width;
144
+ }
145
+ return l;
146
+ }
147
+ function w(e, t, n, r, i) {
148
+ var a = t === "", o = i && n.rich[i] || {}, c = e.lines, l = o.font || n.font, f = !1, p, m;
149
+ if (r) {
150
+ var h = o.padding, g = h ? h[1] + h[3] : 0;
151
+ if (o.width != null && o.width !== "auto") {
152
+ var _ = d(o.width, r.width) + g;
153
+ c.length > 0 && _ + r.accumWidth > r.width && (p = t.split("\n"), f = !0), r.accumWidth = _;
154
+ } else {
155
+ var v = O(t, l, r.width, r.breakAll, r.accumWidth);
156
+ r.accumWidth = v.accumWidth + g, m = v.linesWidths, p = v.lines;
157
+ }
158
+ }
159
+ p ||= t.split("\n");
160
+ for (var y = s(l), S = 0; S < p.length; S++) {
161
+ var C = p[S], w = new b();
162
+ if (w.styleName = i, w.text = C, w.isLineHolder = !C && !a, typeof o.width == "number" ? w.width = o.width : w.width = m ? m[S] : u(y, C), !S && !f) {
163
+ var T = (c[c.length - 1] || (c[0] = new x())).tokens, E = T.length;
164
+ E === 1 && T[0].isLineHolder ? T[0] = w : (C || !E || a) && T.push(w);
165
+ } else c.push(new x([w]));
166
+ }
167
+ }
168
+ function T(e) {
169
+ var t = e.charCodeAt(0);
170
+ return t >= 32 && t <= 591 || t >= 880 && t <= 4351 || t >= 4608 && t <= 5119 || t >= 7680 && t <= 8303;
171
+ }
172
+ var E = t(",&?/;] ".split(""), function(e, t) {
173
+ return e[t] = !0, e;
174
+ }, {});
175
+ function D(e) {
176
+ return T(e) ? !!E[e] : !0;
177
+ }
178
+ function O(e, t, n, r, i) {
179
+ for (var a = [], o = [], c = "", u = "", d = 0, f = 0, p = s(t), m = 0; m < e.length; m++) {
180
+ var h = e.charAt(m);
181
+ if (h === "\n") {
182
+ u && (c += u, f += d), a.push(c), o.push(f), c = "", u = "", d = 0, f = 0;
183
+ continue;
184
+ }
185
+ var g = l(p, h.charCodeAt(0)), _ = r ? !1 : !D(h);
186
+ if (a.length ? f + g > n : i + f + g > n) {
187
+ f ? (c || u) && (_ ? (c || (c = u, u = "", d = 0, f = d), a.push(c), o.push(f - d), u += h, d += g, c = "", f = d) : (u && (c += u, u = "", d = 0), a.push(c), o.push(f), c = h, f = g)) : _ ? (a.push(u), o.push(d), u = h, d = g) : (a.push(h), o.push(g));
188
+ continue;
189
+ }
190
+ f += g, _ ? (u += h, d += g) : (u && (c += u, u = "", d = 0), c += h);
191
+ }
192
+ return u && (c += u), c && (a.push(c), o.push(f)), a.length === 1 && (f += i), {
193
+ accumWidth: f,
194
+ lines: a,
195
+ linesWidths: o
196
+ };
197
+ }
198
+ function k(e, t, n, r, s, c) {
199
+ if (e.baseX = n, e.baseY = r, e.outerWidth = e.outerHeight = null, t) {
200
+ var l = t.width * 2, u = t.height * 2;
201
+ i.set(A, a(n, l, s), o(r, u, c), l, u), i.intersect(t, A, null, j);
202
+ var d = j.outIntersectRect;
203
+ e.outerWidth = d.width, e.outerHeight = d.height, e.baseX = a(d.x, d.width, s, !0), e.baseY = o(d.y, d.height, c, !0);
204
+ }
205
+ }
206
+ var A = new i(0, 0, 0, 0), j = {
207
+ outIntersectRect: {},
208
+ clamp: !0
209
+ };
210
+ function M(e) {
211
+ return e == null ? e = "" : e += "";
212
+ }
213
+ function N(e) {
214
+ var t = M(e.text), n = e.font;
215
+ return P(e, u(s(n), t), c(n), null);
216
+ }
217
+ function P(e, t, n, r) {
218
+ var s = new i(a(e.x || 0, t, e.textAlign), o(e.y || 0, n, e.textBaseline), t, n), c = r ?? (F(e) ? e.lineWidth : 0);
219
+ return c > 0 && (s.x -= c / 2, s.y -= c / 2, s.width += c, s.height += c), s;
220
+ }
221
+ function F(e) {
222
+ var t = e.stroke;
223
+ return t != null && t !== "none" && e.lineWidth > 0;
224
+ }
225
+ //#endregion
226
+ export { k as calcInnerTextOverflowArea, y as parsePlainText, C as parseRichText, N as tSpanCreateBoundingRect, P as tSpanCreateBoundingRect2, F as tSpanHasStroke };
@@ -0,0 +1,21 @@
1
+ import e from "./smoothBezier.js";
2
+ //#region node_modules/zrender/lib/graphic/helper/poly.js
3
+ function t(t, n, r) {
4
+ var i = n.smooth, a = n.points;
5
+ if (a && a.length >= 2) {
6
+ if (i) {
7
+ var o = e(a, i, r, n.smoothConstraint);
8
+ t.moveTo(a[0][0], a[0][1]);
9
+ for (var s = a.length, c = 0; c < (r ? s : s - 1); c++) {
10
+ var l = o[c * 2], u = o[c * 2 + 1], d = a[(c + 1) % s];
11
+ t.bezierCurveTo(l[0], l[1], u[0], u[1], d[0], d[1]);
12
+ }
13
+ } else {
14
+ t.moveTo(a[0][0], a[0][1]);
15
+ for (var c = 1, f = a.length; c < f; c++) t.lineTo(a[c][0], a[c][1]);
16
+ }
17
+ r && t.closePath();
18
+ }
19
+ }
20
+ //#endregion
21
+ export { t as buildPath };
@@ -0,0 +1,9 @@
1
+ //#region node_modules/zrender/lib/graphic/helper/roundRect.js
2
+ function e(e, t) {
3
+ var n = t.x, r = t.y, i = t.width, a = t.height, o = t.r, s, c, l, u;
4
+ i < 0 && (n += i, i = -i), a < 0 && (r += a, a = -a), typeof o == "number" ? s = c = l = u = o : o instanceof Array ? o.length === 1 ? s = c = l = u = o[0] : o.length === 2 ? (s = l = o[0], c = u = o[1]) : o.length === 3 ? (s = o[0], c = u = o[1], l = o[2]) : (s = o[0], c = o[1], l = o[2], u = o[3]) : s = c = l = u = 0;
5
+ var d;
6
+ s + c > i && (d = s + c, s *= i / d, c *= i / d), l + u > i && (d = l + u, l *= i / d, u *= i / d), c + l > a && (d = c + l, c *= a / d, l *= a / d), s + u > a && (d = s + u, s *= a / d, u *= a / d), e.moveTo(n + s, r), e.lineTo(n + i - c, r), c !== 0 && e.arc(n + i - c, r + c, c, -Math.PI / 2, 0), e.lineTo(n + i, r + a - l), l !== 0 && e.arc(n + i - l, r + a - l, l, 0, Math.PI / 2), e.lineTo(n + u, r + a), u !== 0 && e.arc(n + u, r + a - u, u, Math.PI / 2, Math.PI), e.lineTo(n, r + s), s !== 0 && e.arc(n + s, r + s, s, Math.PI, Math.PI * 1.5), e.closePath();
7
+ }
8
+ //#endregion
9
+ export { e as buildPath };
@@ -0,0 +1,85 @@
1
+ import { isArray as e } from "../../core/util.js";
2
+ //#region node_modules/zrender/lib/graphic/helper/roundSector.js
3
+ var t = Math.PI, n = t * 2, r = Math.sin, i = Math.cos, a = Math.acos, o = Math.atan2, s = Math.abs, c = Math.sqrt, l = Math.max, u = Math.min, d = 1e-4;
4
+ function f(e, t, n, r, i, a, o, s) {
5
+ var c = n - e, l = r - t, u = o - i, f = s - a, p = f * c - u * l;
6
+ if (!(p * p < d)) return p = (u * (t - a) - f * (e - i)) / p, [e + p * c, t + p * l];
7
+ }
8
+ function p(e, t, n, r, i, a, o) {
9
+ var s = e - n, u = t - r, d = (o ? a : -a) / c(s * s + u * u), f = d * u, p = -d * s, m = e + f, h = t + p, g = n + f, _ = r + p, v = (m + g) / 2, y = (h + _) / 2, b = g - m, x = _ - h, S = b * b + x * x, C = i - a, w = m * _ - g * h, T = (x < 0 ? -1 : 1) * c(l(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, M = O - v, N = k - y;
10
+ return A * A + j * j > M * M + N * N && (E = O, D = k), {
11
+ cx: E,
12
+ cy: D,
13
+ x0: -f,
14
+ y0: -p,
15
+ x1: E * (i / C - 1),
16
+ y1: D * (i / C - 1)
17
+ };
18
+ }
19
+ function m(t) {
20
+ var n;
21
+ if (e(t)) {
22
+ var r = t.length;
23
+ if (!r) return t;
24
+ n = r === 1 ? [
25
+ t[0],
26
+ t[0],
27
+ 0,
28
+ 0
29
+ ] : r === 2 ? [
30
+ t[0],
31
+ t[0],
32
+ t[1],
33
+ t[1]
34
+ ] : r === 3 ? t.concat(t[2]) : t;
35
+ } else n = [
36
+ t,
37
+ t,
38
+ t,
39
+ t
40
+ ];
41
+ return n;
42
+ }
43
+ function h(e, h) {
44
+ var g, _ = l(h.r, 0), v = l(h.r0 || 0, 0), y = _ > 0;
45
+ if (!(!y && !(v > 0))) {
46
+ if (y || (_ = v, v = 0), v > _) {
47
+ var b = _;
48
+ _ = v, v = b;
49
+ }
50
+ var x = h.startAngle, S = h.endAngle;
51
+ if (!(isNaN(x) || isNaN(S))) {
52
+ var C = h.cx, w = h.cy, T = !!h.clockwise, E = s(S - x), D = E > n && E % n;
53
+ if (D > d && (E = D), !(_ > d)) e.moveTo(C, w);
54
+ else if (E > n - d) e.moveTo(C + _ * i(x), w + _ * r(x)), e.arc(C, w, _, x, S, !T), v > d && (e.moveTo(C + v * i(S), w + v * r(S)), e.arc(C, w, v, S, x, T));
55
+ else {
56
+ var O = void 0, k = void 0, A = void 0, j = void 0, M = void 0, N = void 0, ee = void 0, te = void 0, P = void 0, F = void 0, I = void 0, L = void 0, R = void 0, z = void 0, B = void 0, V = void 0, H = _ * i(x), U = _ * r(x), W = v * i(S), G = v * r(S), K = E > d;
57
+ if (K) {
58
+ var ne = h.cornerRadius;
59
+ ne && (g = m(ne), O = g[0], k = g[1], A = g[2], j = g[3]);
60
+ var q = s(_ - v) / 2;
61
+ if (M = u(q, A), N = u(q, j), ee = u(q, O), te = u(q, k), I = P = l(M, N), L = F = l(ee, te), (P > d || F > d) && (R = _ * i(S), z = _ * r(S), B = v * i(x), V = v * r(x), E < t)) {
62
+ var J = f(H, U, B, V, R, z, W, G);
63
+ if (J) {
64
+ var Y = H - J[0], re = U - J[1], ie = R - J[0], ae = z - J[1], oe = 1 / r(a((Y * ie + re * ae) / (c(Y * Y + re * re) * c(ie * ie + ae * ae))) / 2), se = c(J[0] * J[0] + J[1] * J[1]);
65
+ I = u(P, (_ - se) / (oe + 1)), L = u(F, (v - se) / (oe - 1));
66
+ }
67
+ }
68
+ }
69
+ if (!K) e.moveTo(C + H, w + U);
70
+ else if (I > d) {
71
+ var X = u(A, I), Z = u(j, I), Q = p(B, V, H, U, _, X, T), $ = p(R, z, W, G, _, Z, T);
72
+ e.moveTo(C + Q.cx + Q.x0, w + Q.cy + Q.y0), I < P && X === Z ? e.arc(C + Q.cx, w + Q.cy, I, o(Q.y0, Q.x0), o($.y0, $.x0), !T) : (X > 0 && e.arc(C + Q.cx, w + Q.cy, X, o(Q.y0, Q.x0), o(Q.y1, Q.x1), !T), e.arc(C, w, _, o(Q.cy + Q.y1, Q.cx + Q.x1), o($.cy + $.y1, $.cx + $.x1), !T), Z > 0 && e.arc(C + $.cx, w + $.cy, Z, o($.y1, $.x1), o($.y0, $.x0), !T));
73
+ } else e.moveTo(C + H, w + U), e.arc(C, w, _, x, S, !T);
74
+ if (!(v > d) || !K) e.lineTo(C + W, w + G);
75
+ else if (L > d) {
76
+ var X = u(O, L), Z = u(k, L), Q = p(W, G, R, z, v, -Z, T), $ = p(H, U, B, V, v, -X, T);
77
+ e.lineTo(C + Q.cx + Q.x0, w + Q.cy + Q.y0), L < F && X === Z ? e.arc(C + Q.cx, w + Q.cy, L, o(Q.y0, Q.x0), o($.y0, $.x0), !T) : (Z > 0 && e.arc(C + Q.cx, w + Q.cy, Z, o(Q.y0, Q.x0), o(Q.y1, Q.x1), !T), e.arc(C, w, v, o(Q.cy + Q.y1, Q.cx + Q.x1), o($.cy + $.y1, $.cx + $.x1), T), X > 0 && e.arc(C + $.cx, w + $.cy, X, o($.y1, $.x1), o($.y0, $.x0), !T));
78
+ } else e.lineTo(C + W, w + G), e.arc(C, w, v, S, x, T);
79
+ }
80
+ e.closePath();
81
+ }
82
+ }
83
+ }
84
+ //#endregion
85
+ export { h as buildPath };
@@ -0,0 +1,26 @@
1
+ import { add as e, clone as t, distance as n, max as r, min as i, scale as a, sub as o } from "../../core/vector.js";
2
+ //#region node_modules/zrender/lib/graphic/helper/smoothBezier.js
3
+ function s(s, c, l, u) {
4
+ var d = [], f = [], p = [], m = [], h, g, _, v;
5
+ if (u) {
6
+ _ = [Infinity, Infinity], v = [-Infinity, -Infinity];
7
+ for (var y = 0, b = s.length; y < b; y++) i(_, _, s[y]), r(v, v, s[y]);
8
+ i(_, _, u[0]), r(v, v, u[1]);
9
+ }
10
+ for (var y = 0, b = s.length; y < b; y++) {
11
+ var x = s[y];
12
+ if (l) h = s[y ? y - 1 : b - 1], g = s[(y + 1) % b];
13
+ else if (y === 0 || y === b - 1) {
14
+ d.push(t(s[y]));
15
+ continue;
16
+ } else h = s[y - 1], g = s[y + 1];
17
+ o(f, g, h), a(f, f, c);
18
+ var S = n(x, h), C = n(x, g), w = S + C;
19
+ w !== 0 && (S /= w, C /= w), a(p, f, -S), a(m, f, C);
20
+ var T = e([], x, p), E = e([], x, m);
21
+ u && (r(T, T, _), i(T, T, v), r(E, E, _), i(E, E, v)), d.push(T), d.push(E);
22
+ }
23
+ return l && d.push(d.shift()), d;
24
+ }
25
+ //#endregion
26
+ export { s as default };
@@ -0,0 +1,25 @@
1
+ //#region node_modules/zrender/lib/graphic/helper/subPixelOptimize.js
2
+ var e = Math.round;
3
+ function t(t, n, i) {
4
+ if (n) {
5
+ var a = n.x1, o = n.x2, s = n.y1, c = n.y2;
6
+ t.x1 = a, t.x2 = o, t.y1 = s, t.y2 = c;
7
+ var l = i && i.lineWidth;
8
+ return l ? (e(a * 2) === e(o * 2) && (t.x1 = t.x2 = r(a, l, !0)), e(s * 2) === e(c * 2) && (t.y1 = t.y2 = r(s, l, !0)), t) : t;
9
+ }
10
+ }
11
+ function n(e, t, n) {
12
+ if (t) {
13
+ var i = t.x, a = t.y, o = t.width, s = t.height;
14
+ e.x = i, e.y = a, e.width = o, e.height = s;
15
+ var c = n && n.lineWidth;
16
+ return c ? (e.x = r(i, c, !0), e.y = r(a, c, !0), e.width = Math.max(r(i + o, c, !1) - e.x, o === 0 ? 0 : 1), e.height = Math.max(r(a + s, c, !1) - e.y, s === 0 ? 0 : 1), e) : e;
17
+ }
18
+ }
19
+ function r(t, n, r) {
20
+ if (!n) return t;
21
+ var i = e(t * 2);
22
+ return (i + e(n)) % 2 == 0 ? i / 2 : (i + (r ? 1 : -1)) / 2;
23
+ }
24
+ //#endregion
25
+ export { r as subPixelOptimize, t as subPixelOptimizeLine, n as subPixelOptimizeRect };
@@ -0,0 +1,28 @@
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/shape/Arc.js
4
+ var n = function() {
5
+ function e() {
6
+ this.cx = 0, this.cy = 0, this.r = 0, this.startAngle = 0, this.endAngle = Math.PI * 2, this.clockwise = !0;
7
+ }
8
+ return e;
9
+ }(), r = function(t) {
10
+ e(r, t);
11
+ function r(e) {
12
+ return t.call(this, e) || this;
13
+ }
14
+ return r.prototype.getDefaultStyle = function() {
15
+ return {
16
+ stroke: "#000",
17
+ fill: null
18
+ };
19
+ }, r.prototype.getDefaultShape = function() {
20
+ return new n();
21
+ }, r.prototype.buildPath = function(e, t) {
22
+ var n = t.cx, r = t.cy, i = Math.max(t.r, 0), a = t.startAngle, o = t.endAngle, s = t.clockwise, c = Math.cos(a), l = Math.sin(a);
23
+ e.moveTo(c * i + n, l * i + r), e.arc(n, r, i, a, o, !s);
24
+ }, r;
25
+ }(t);
26
+ r.prototype.type = "arc";
27
+ //#endregion
28
+ export { r as default };
@@ -0,0 +1,40 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import { normalize as t } from "../../core/vector.js";
3
+ import { cubicAt as n, cubicDerivativeAt as r, cubicSubdivide as i, quadraticAt as a, quadraticDerivativeAt as o, quadraticSubdivide as s } from "../../core/curve.js";
4
+ import c from "../Path.js";
5
+ //#region node_modules/zrender/lib/graphic/shape/BezierCurve.js
6
+ var l = [], u = function() {
7
+ function e() {
8
+ this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.cpx1 = 0, this.cpy1 = 0, this.percent = 1;
9
+ }
10
+ return e;
11
+ }();
12
+ function d(e, t, i) {
13
+ var s = e.cpx2, c = e.cpy2;
14
+ return s != null || c != null ? [(i ? r : n)(e.x1, e.cpx1, e.cpx2, e.x2, t), (i ? r : n)(e.y1, e.cpy1, e.cpy2, e.y2, t)] : [(i ? o : a)(e.x1, e.cpx1, e.x2, t), (i ? o : a)(e.y1, e.cpy1, e.y2, t)];
15
+ }
16
+ var f = function(n) {
17
+ e(r, n);
18
+ function r(e) {
19
+ return n.call(this, e) || this;
20
+ }
21
+ return r.prototype.getDefaultStyle = function() {
22
+ return {
23
+ stroke: "#000",
24
+ fill: null
25
+ };
26
+ }, r.prototype.getDefaultShape = function() {
27
+ return new u();
28
+ }, r.prototype.buildPath = function(e, t) {
29
+ var n = t.x1, r = t.y1, a = t.x2, o = t.y2, c = t.cpx1, u = t.cpy1, d = t.cpx2, f = t.cpy2, p = t.percent;
30
+ p !== 0 && (e.moveTo(n, r), d == null || f == null ? (p < 1 && (s(n, c, a, p, l), c = l[1], a = l[2], s(r, u, o, p, l), u = l[1], o = l[2]), e.quadraticCurveTo(c, u, a, o)) : (p < 1 && (i(n, c, d, a, p, l), c = l[1], d = l[2], a = l[3], i(r, u, f, o, p, l), u = l[1], f = l[2], o = l[3]), e.bezierCurveTo(c, u, d, f, a, o)));
31
+ }, r.prototype.pointAt = function(e) {
32
+ return d(this.shape, e, !1);
33
+ }, r.prototype.tangentAt = function(e) {
34
+ var n = d(this.shape, e, !0);
35
+ return t(n, n);
36
+ }, r;
37
+ }(c);
38
+ f.prototype.type = "bezier-curve";
39
+ //#endregion
40
+ export { f as default };
@@ -0,0 +1,22 @@
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/shape/Circle.js
4
+ var n = function() {
5
+ function e() {
6
+ this.cx = 0, this.cy = 0, this.r = 0;
7
+ }
8
+ return e;
9
+ }(), r = function(t) {
10
+ e(r, t);
11
+ function r(e) {
12
+ return t.call(this, e) || this;
13
+ }
14
+ return r.prototype.getDefaultShape = function() {
15
+ return new n();
16
+ }, r.prototype.buildPath = function(e, t) {
17
+ e.moveTo(t.cx + t.r, t.cy), e.arc(t.cx, t.cy, t.r, 0, Math.PI * 2);
18
+ }, r;
19
+ }(t);
20
+ r.prototype.type = "circle";
21
+ //#endregion
22
+ export { r as default };
@@ -0,0 +1,23 @@
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/shape/Ellipse.js
4
+ var n = function() {
5
+ function e() {
6
+ this.cx = 0, this.cy = 0, this.rx = 0, this.ry = 0;
7
+ }
8
+ return e;
9
+ }(), r = function(t) {
10
+ e(r, t);
11
+ function r(e) {
12
+ return t.call(this, e) || this;
13
+ }
14
+ return r.prototype.getDefaultShape = function() {
15
+ return new n();
16
+ }, r.prototype.buildPath = function(e, t) {
17
+ var n = .5522848, r = t.cx, i = t.cy, a = t.rx, o = t.ry, s = a * n, c = o * n;
18
+ e.moveTo(r - a, i), e.bezierCurveTo(r - a, i - c, r - s, i - o, r, i - o), e.bezierCurveTo(r + s, i - o, r + a, i - c, r + a, i), e.bezierCurveTo(r + a, i + c, r + s, i + o, r, i + o), e.bezierCurveTo(r - s, i + o, r - a, i + c, r - a, i), e.closePath();
19
+ }, r;
20
+ }(t);
21
+ r.prototype.type = "ellipse";
22
+ //#endregion
23
+ export { r as default };
@@ -0,0 +1,37 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../Path.js";
3
+ import { subPixelOptimizeLine as n } from "../helper/subPixelOptimize.js";
4
+ //#region node_modules/zrender/lib/graphic/shape/Line.js
5
+ var r = {}, i = function() {
6
+ function e() {
7
+ this.x1 = 0, this.y1 = 0, this.x2 = 0, this.y2 = 0, this.percent = 1;
8
+ }
9
+ return e;
10
+ }(), a = function(t) {
11
+ e(a, t);
12
+ function a(e) {
13
+ return t.call(this, e) || this;
14
+ }
15
+ return a.prototype.getDefaultStyle = function() {
16
+ return {
17
+ stroke: "#000",
18
+ fill: null
19
+ };
20
+ }, a.prototype.getDefaultShape = function() {
21
+ return new i();
22
+ }, a.prototype.buildPath = function(e, t) {
23
+ var i, a, o, s;
24
+ if (this.subPixelOptimize) {
25
+ var c = n(r, t, this.style);
26
+ i = c.x1, a = c.y1, o = c.x2, s = c.y2;
27
+ } else i = t.x1, a = t.y1, o = t.x2, s = t.y2;
28
+ var l = t.percent;
29
+ l !== 0 && (e.moveTo(i, a), l < 1 && (o = i * (1 - l) + o * l, s = a * (1 - l) + s * l), e.lineTo(o, s));
30
+ }, a.prototype.pointAt = function(e) {
31
+ var t = this.shape;
32
+ return [t.x1 * (1 - e) + t.x2 * e, t.y1 * (1 - e) + t.y2 * e];
33
+ }, a;
34
+ }(t);
35
+ a.prototype.type = "line";
36
+ //#endregion
37
+ export { a as default };
@@ -0,0 +1,23 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../Path.js";
3
+ import { buildPath as n } from "../helper/poly.js";
4
+ //#region node_modules/zrender/lib/graphic/shape/Polygon.js
5
+ var r = function() {
6
+ function e() {
7
+ this.points = null, this.smooth = 0, this.smoothConstraint = null;
8
+ }
9
+ return e;
10
+ }(), i = function(t) {
11
+ e(i, t);
12
+ function i(e) {
13
+ return t.call(this, e) || this;
14
+ }
15
+ return i.prototype.getDefaultShape = function() {
16
+ return new r();
17
+ }, i.prototype.buildPath = function(e, t) {
18
+ n(e, t, !0);
19
+ }, i;
20
+ }(t);
21
+ i.prototype.type = "polygon";
22
+ //#endregion
23
+ export { i as default };
@@ -0,0 +1,28 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../Path.js";
3
+ import { buildPath as n } from "../helper/poly.js";
4
+ //#region node_modules/zrender/lib/graphic/shape/Polyline.js
5
+ var r = function() {
6
+ function e() {
7
+ this.points = null, this.percent = 1, this.smooth = 0, this.smoothConstraint = null;
8
+ }
9
+ return e;
10
+ }(), i = function(t) {
11
+ e(i, t);
12
+ function i(e) {
13
+ return t.call(this, e) || this;
14
+ }
15
+ return i.prototype.getDefaultStyle = function() {
16
+ return {
17
+ stroke: "#000",
18
+ fill: null
19
+ };
20
+ }, i.prototype.getDefaultShape = function() {
21
+ return new r();
22
+ }, i.prototype.buildPath = function(e, t) {
23
+ n(e, t, !1);
24
+ }, i;
25
+ }(t);
26
+ i.prototype.type = "polyline";
27
+ //#endregion
28
+ export { i as default };
@@ -0,0 +1,31 @@
1
+ import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
2
+ import t from "../Path.js";
3
+ import { buildPath as n } from "../helper/roundRect.js";
4
+ import { subPixelOptimizeRect as r } from "../helper/subPixelOptimize.js";
5
+ //#region node_modules/zrender/lib/graphic/shape/Rect.js
6
+ var i = function() {
7
+ function e() {
8
+ this.x = 0, this.y = 0, this.width = 0, this.height = 0;
9
+ }
10
+ return e;
11
+ }(), a = {}, o = function(t) {
12
+ e(o, t);
13
+ function o(e) {
14
+ return t.call(this, e) || this;
15
+ }
16
+ return o.prototype.getDefaultShape = function() {
17
+ return new i();
18
+ }, o.prototype.buildPath = function(e, t) {
19
+ var i, o, s, c;
20
+ if (this.subPixelOptimize) {
21
+ var l = r(a, t, this.style);
22
+ i = l.x, o = l.y, s = l.width, c = l.height, l.r = t.r, t = l;
23
+ } else i = t.x, o = t.y, s = t.width, c = t.height;
24
+ t.r ? n(e, t) : e.rect(i, o, s, c);
25
+ }, o.prototype.isZeroArea = function() {
26
+ return !this.shape.width || !this.shape.height;
27
+ }, o;
28
+ }(t);
29
+ o.prototype.type = "rect";
30
+ //#endregion
31
+ export { o as default };
@@ -0,0 +1,23 @@
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/shape/Ring.js
4
+ var n = function() {
5
+ function e() {
6
+ this.cx = 0, this.cy = 0, this.r = 0, this.r0 = 0;
7
+ }
8
+ return e;
9
+ }(), r = function(t) {
10
+ e(r, t);
11
+ function r(e) {
12
+ return t.call(this, e) || this;
13
+ }
14
+ return r.prototype.getDefaultShape = function() {
15
+ return new n();
16
+ }, r.prototype.buildPath = function(e, t) {
17
+ var n = t.cx, r = t.cy, i = Math.PI * 2;
18
+ e.moveTo(n + t.r, r), e.arc(n, r, t.r, 0, i, !1), e.moveTo(n + t.r0, r), e.arc(n, r, t.r0, 0, i, !0);
19
+ }, r;
20
+ }(t);
21
+ r.prototype.type = "ring";
22
+ //#endregion
23
+ export { r as default };