vue-data-ui 3.20.3 → 3.20.5-beta.1

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 (322) hide show
  1. package/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-lONuhagg.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-BhBPNDxL.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-C-YUUjqJ.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DMi31V0Y.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-CCUUgih6.js +710 -0
  207. package/dist/vue-ui-bump-YKkkm2RM.js +1249 -0
  208. package/dist/vue-ui-candlestick-Db6O_dUh.js +1826 -0
  209. package/dist/vue-ui-carousel-table-D08jupGE.js +455 -0
  210. package/dist/vue-ui-chestnut-V6Te8sgC.js +2010 -0
  211. package/dist/vue-ui-chord-I9K-eKps.js +1391 -0
  212. package/dist/vue-ui-circle-pack-COH0rpBl.js +1608 -0
  213. package/dist/vue-ui-cursor-hC1cipp9.js +283 -0
  214. package/dist/vue-ui-dag-CVbnJFGk.js +2909 -0
  215. package/dist/vue-ui-dashboard-D39BY94S.js +513 -0
  216. package/dist/vue-ui-digits-gN-D2fCk.js +209 -0
  217. package/dist/vue-ui-donut-Bo7gCNIH.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-6UG0SGNz.js +1510 -0
  219. package/dist/vue-ui-dumbbell-BTSPax-u.js +1530 -0
  220. package/dist/vue-ui-flow-pZIgyNHi.js +1235 -0
  221. package/dist/vue-ui-funnel-CJBj6xPU.js +777 -0
  222. package/dist/vue-ui-galaxy-BU9QBHvX.js +1077 -0
  223. package/dist/vue-ui-gauge-BwNfToS3.js +920 -0
  224. package/dist/vue-ui-geo-Ctw-rYCa.js +1516 -0
  225. package/dist/vue-ui-gizmo-De6bAHzZ.js +225 -0
  226. package/dist/vue-ui-heatmap-D6ZcIe-_.js +1568 -0
  227. package/dist/vue-ui-history-plot-D3LYtRUf.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-DXSHpMq5.js +1681 -0
  229. package/dist/vue-ui-kpi-BMhGvR1u.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-9Kqjw0Q2.js +925 -0
  232. package/dist/vue-ui-mood-radar-D__NPYbQ.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-tKRGmt7J.js +1487 -0
  234. package/dist/vue-ui-onion-BqToB0Lt.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-DO8Z5EoX.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-CjNKKB1Z.js +1978 -0
  239. package/dist/vue-ui-quick-chart-nlIWPrCE.js +2469 -0
  240. package/dist/vue-ui-radar-Cy94rM6C.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-M7PVX7Zl.js +924 -0
  243. package/dist/vue-ui-ridgeline-BZEelqM8.js +1622 -0
  244. package/dist/vue-ui-rings-mKhOQl1U.js +1246 -0
  245. package/dist/vue-ui-scatter-BonCg1js.js +2413 -0
  246. package/dist/vue-ui-skeleton-D1edGUlH.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-CSLIGl_Q.js +438 -0
  249. package/dist/vue-ui-sparkbar-GF5qxxDg.js +393 -0
  250. package/dist/vue-ui-sparkgauge-Br5QbmJp.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-zytzJWJt.js +560 -0
  252. package/dist/vue-ui-sparkline-C3fJW5ed.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-BZCuqHU-.js +662 -0
  254. package/dist/vue-ui-stackbar-DJs1NZaG.js +2270 -0
  255. package/dist/vue-ui-stackline-D50yykWw.js +2398 -0
  256. package/dist/vue-ui-strip-plot-BhgpmxfN.js +1340 -0
  257. package/dist/vue-ui-table-DwLSy4-K.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-BNe3NVaD.js +707 -0
  260. package/dist/vue-ui-thermometer-C-RFOIFB.js +763 -0
  261. package/dist/vue-ui-timer-BPpd6LXJ.js +439 -0
  262. package/dist/vue-ui-tiremarks-Bu2GSXdO.js +552 -0
  263. package/dist/vue-ui-treemap-BSSkoyh0.js +1587 -0
  264. package/dist/vue-ui-waffle-9vxPJRPI.js +1362 -0
  265. package/dist/vue-ui-wheel-BKwOHfWj.js +885 -0
  266. package/dist/vue-ui-word-cloud-C5NfVraH.js +1656 -0
  267. package/dist/vue-ui-world-C8mg6RCf.js +14264 -0
  268. package/dist/vue-ui-xy-CqthF3-M.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,114 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { gt as t } from "./lib-DUeYQsS0.js";
3
+ import { t as n } from "./Shape-BPCJfphn.js";
4
+ import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
+ import { Fragment as i, createCommentVNode as a, createElementBlock as o, createVNode as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderList as f, renderSlot as p, unref as m } from "vue";
6
+ //#region src/atoms/Legend.vue
7
+ var h = /* @__PURE__ */ e({ default: () => y }), g = ["id"], _ = [
8
+ "role",
9
+ "tabindex",
10
+ "onKeydown",
11
+ "onFocus"
12
+ ], v = ["onClick", "viewBox"], y = /* @__PURE__ */ r({
13
+ __name: "Legend",
14
+ props: {
15
+ legendSet: {
16
+ type: Array,
17
+ default() {
18
+ return [];
19
+ }
20
+ },
21
+ config: {
22
+ type: Object,
23
+ default() {
24
+ return {};
25
+ }
26
+ },
27
+ id: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ clickable: {
32
+ type: Boolean,
33
+ default: !0
34
+ },
35
+ isCursorPointer: {
36
+ type: Boolean,
37
+ default: !1
38
+ }
39
+ },
40
+ emits: ["clickMarker", "focusMarker"],
41
+ setup(e, { emit: r }) {
42
+ let h = e, y = r;
43
+ function b(e, t) {
44
+ h.clickable && y("clickMarker", {
45
+ legend: e,
46
+ i: t
47
+ });
48
+ }
49
+ function x(e, t, n) {
50
+ h.clickable && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), b(t, n));
51
+ }
52
+ function S(e, t, n) {
53
+ e.preventDefault(), y("focusMarker", {
54
+ legend: t,
55
+ i: n
56
+ });
57
+ }
58
+ return (r, h) => (d(), o("div", {
59
+ id: e.id,
60
+ class: "vue-data-ui-legend",
61
+ style: u({
62
+ background: e.config.backgroundColor,
63
+ color: e.config.color,
64
+ paddingBottom: (e.config.paddingBottom ?? 0) + "px",
65
+ paddingTop: (e.config.paddingTop ?? 12) + "px",
66
+ fontWeight: e.config.fontWeight,
67
+ fontSize: `var(--legend-font-size, ${e.config.fontSize ?? 14}px)`
68
+ })
69
+ }, [
70
+ p(r.$slots, "legendTitle", { titleSet: e.legendSet }, void 0, !0),
71
+ p(r.$slots, "legendToggle", {}, void 0, !0),
72
+ (d(!0), o(i, null, f(e.legendSet, (i, f) => (d(), o("div", {
73
+ key: `legend_${f}`,
74
+ class: l({
75
+ "vue-data-ui-legend-item": !0,
76
+ active: e.clickable && e.isCursorPointer
77
+ }),
78
+ role: e.clickable ? "button" : void 0,
79
+ tabindex: e.clickable ? 0 : void 0,
80
+ onKeydown: (e) => x(e, i, f),
81
+ onFocus: (e) => S(e, i, f)
82
+ }, [i.shape ? (d(), o("svg", {
83
+ key: 0,
84
+ onClick: (e) => b(i, f),
85
+ height: "1em",
86
+ width: "1em",
87
+ viewBox: i.shape && i.shape === "star" ? "-10 -10 80 80" : "0 0 60 60",
88
+ style: u(`overflow: visible; opacity:${i.opacity}`),
89
+ "aria-hidden": "true"
90
+ }, [s(n, {
91
+ stroke: "none",
92
+ shape: i.shape,
93
+ radius: 30,
94
+ plot: {
95
+ x: 30,
96
+ y: i.shape === "triangle" ? 36 : 30
97
+ },
98
+ fill: i.color
99
+ }, null, 8, [
100
+ "shape",
101
+ "plot",
102
+ "fill"
103
+ ]), p(r.$slots, "legend-pattern", c({ ref_for: !0 }, {
104
+ legend: i,
105
+ index: m(t)(i.absoluteIndex) ? i.absoluteIndex : f
106
+ }), void 0, !0)], 12, v)) : a("", !0), p(r.$slots, "item", {
107
+ legend: i,
108
+ index: f
109
+ }, void 0, !0)], 42, _))), 128))
110
+ ], 12, g));
111
+ }
112
+ }, [["__scopeId", "data-v-5f0ae4cc"]]);
113
+ //#endregion
114
+ export { h as n, y as t };
@@ -0,0 +1,577 @@
1
+ import { G as e, H as t, bt as n, t as r } from "./lib-DUeYQsS0.js";
2
+ import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { t as a } from "./BaseIcon-DfLoHNUj.js";
4
+ import { t as o } from "./ColorPicker-Bjwxnvfh.js";
5
+ import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, guardReactiveProps as p, nextTick as ee, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as te, onMounted as ne, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as re, vModelText as ie, watch as S, withCtx as ae, withDirectives as oe, withModifiers as se } from "vue";
6
+ //#region src/atoms/NonSvgPenAndPaper.vue
7
+ var ce = ["disabled"], le = [
8
+ "data-mode",
9
+ "xmlns",
10
+ "viewBox"
11
+ ], ue = [
12
+ "cx",
13
+ "cy",
14
+ "r",
15
+ "fill"
16
+ ], de = [
17
+ "x1",
18
+ "y1",
19
+ "x2",
20
+ "y2",
21
+ "stroke",
22
+ "stroke-width"
23
+ ], fe = [
24
+ "x1",
25
+ "y1",
26
+ "x2",
27
+ "y2",
28
+ "stroke",
29
+ "stroke-width",
30
+ "marker-end"
31
+ ], pe = [
32
+ "d",
33
+ "stroke",
34
+ "stroke-width"
35
+ ], me = [
36
+ "x",
37
+ "y",
38
+ "fill",
39
+ "font-size"
40
+ ], he = ["x", "dy"], ge = [
41
+ "d",
42
+ "stroke",
43
+ "stroke-width"
44
+ ], _e = /* @__PURE__ */ i({
45
+ __name: "NonSvgPenAndPaper",
46
+ props: {
47
+ parent: { type: HTMLElement },
48
+ backgroundColor: {
49
+ type: String,
50
+ default: "#FFFFFF"
51
+ },
52
+ color: {
53
+ type: String,
54
+ default: "#2D353C"
55
+ },
56
+ active: {
57
+ type: Boolean,
58
+ default: !1
59
+ },
60
+ isCursorPointer: {
61
+ type: Boolean,
62
+ default: !1
63
+ }
64
+ },
65
+ emits: ["close"],
66
+ setup(i, { emit: _e }) {
67
+ let C = i, ve = _e, w = v([]), T = v([]), ye = v("0 0 0 0"), E = v(C.color), D = v(1), O = v(null), k = v(!1), A = v(null), j = v({
68
+ x: 0,
69
+ y: 0
70
+ }), M = v([""]), N = v({
71
+ row: 0,
72
+ col: 0
73
+ }), P = v(16), be = 1, F = [
74
+ "arrow",
75
+ "text",
76
+ "line",
77
+ "draw"
78
+ ], I = v(0), L = c(() => F[I.value]), R = v(null);
79
+ v(null), v(null);
80
+ let z = v(`arrow-${t()}`), B = v(`arrow-def-${t()}`), xe = {
81
+ arrow: "plotArrow",
82
+ text: "text",
83
+ line: "plotLine",
84
+ draw: "annotator"
85
+ };
86
+ function Se() {
87
+ I.value + 1 >= F.length ? I.value = 0 : I.value += 1;
88
+ }
89
+ function V() {
90
+ return be++;
91
+ }
92
+ function Ce(e) {
93
+ let t = J.value;
94
+ if (!t) return {
95
+ x: 0,
96
+ y: 0
97
+ };
98
+ let n = t.createSVGPoint(), r = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, i = r ? r.clientX : e.clientX, a = r ? r.clientY : e.clientY;
99
+ n.x = i, n.y = a;
100
+ let o = t.getScreenCTM()?.inverse();
101
+ return o ? n.matrixTransform(o) : {
102
+ x: 0,
103
+ y: 0
104
+ };
105
+ }
106
+ function H(e) {
107
+ if (!O.value || L.value !== "text" || k.value) return;
108
+ let { x: t, y: n } = Ce(e);
109
+ j.value = {
110
+ x: t,
111
+ y: n
112
+ }, M.value = [""], N.value = {
113
+ row: 0,
114
+ col: 0
115
+ };
116
+ let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
117
+ r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", E.value), r.setAttribute("font-size", P.value), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
118
+ let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
119
+ i.setAttribute("x", t), i.setAttribute("dy", "0"), i.textContent = "", r.appendChild(i), r.style.pointerEvents = "none", r.style.userSelect = "none", O.value.appendChild(r), A.value = r, k.value = !0, window.addEventListener("keydown", we), window.addEventListener("mousedown", De, !0), Te(), Ee();
120
+ }
121
+ function we(e) {
122
+ if (!k.value) return;
123
+ let { row: t, col: n } = N.value, r = M.value.slice(), i = !1;
124
+ if (e.key === "Enter") {
125
+ let a = r[t], o = a.slice(0, n), s = a.slice(n);
126
+ r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
127
+ } else if (e.key === "Backspace") {
128
+ if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
129
+ else if (t > 0) {
130
+ let e = r[t - 1].length;
131
+ r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
132
+ }
133
+ e.preventDefault();
134
+ } else if (e.key === "Delete") n < r[t].length ? (r[t] = r[t].slice(0, n) + r[t].slice(n + 1), i = !0) : t < r.length - 1 && (r[t] += r[t + 1], r.splice(t + 1, 1), i = !0), e.preventDefault();
135
+ else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
136
+ else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
137
+ else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
138
+ else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
139
+ else if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) r[t] = r[t].slice(0, n) + e.key + r[t].slice(n), n += 1, i = !0, e.preventDefault();
140
+ else if (e.key === "Escape") {
141
+ Oe(!0);
142
+ return;
143
+ } else e.key === "Tab" && e.preventDefault();
144
+ i && (M.value = r, N.value = {
145
+ row: t,
146
+ col: n
147
+ }, Te(), Ee());
148
+ }
149
+ function Te() {
150
+ let e = A.value, { x: t, y: n } = j.value;
151
+ for (; e.firstChild;) e.removeChild(e.firstChild);
152
+ M.value.forEach((n, r) => {
153
+ let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
154
+ i.setAttribute("x", t), i.setAttribute("dy", r === 0 ? "0" : `${P.value * 1.2}`), i.textContent = n.length ? n : "​", e.appendChild(i);
155
+ });
156
+ }
157
+ function Ee() {
158
+ let e = O.value.querySelector(".vue-data-ui-svg-caret");
159
+ e && O.value.removeChild(e);
160
+ let t = A.value;
161
+ if (!t) return;
162
+ let { x: n, y: r } = j.value, { row: i, col: a } = N.value, o = P.value, s = t.childNodes[i];
163
+ if (!s) return;
164
+ let c = s.textContent.slice(0, a);
165
+ c.endsWith(" ") && (c += "\xA0");
166
+ let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
167
+ l.setAttribute("x", n), l.setAttribute("y", r), l.setAttribute("font-size", o), l.setAttribute("font-family", "sans-serif"), l.textContent = c || "", O.value.appendChild(l);
168
+ let u = l.getBBox();
169
+ O.value.removeChild(l);
170
+ let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
171
+ p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("width", 1), p.setAttribute("height", o), p.setAttribute("fill", E.value), p.setAttribute("class", "vue-data-ui-svg-caret"), O.value.appendChild(p);
172
+ }
173
+ function De(e) {
174
+ if (A.value && !A.value.contains(e.target)) {
175
+ let e = A.value.children;
176
+ e.length === 1 && (e[0].textContent === "" || e[0].textContent === "​") && A.value.remove(), Oe(!1);
177
+ }
178
+ }
179
+ function Oe(e = !1) {
180
+ window.removeEventListener("keydown", we), window.removeEventListener("mousedown", De, !0);
181
+ let t = O.value?.querySelector(".vue-data-ui-svg-caret");
182
+ t && O.value.removeChild(t);
183
+ let n = M.value.every((e) => !e || e === "​");
184
+ e || n || w.value.push({
185
+ id: V(),
186
+ type: "text",
187
+ x: j.value.x,
188
+ y: j.value.y,
189
+ color: E.value,
190
+ fontSize: P.value,
191
+ lines: M.value.map((e) => e)
192
+ }), A.value && O.value && O.value.contains(A.value) && O.value.removeChild(A.value), k.value = !1, A.value = null, M.value = [""], N.value = {
193
+ row: 0,
194
+ col: 0
195
+ };
196
+ }
197
+ let U = c(() => n(C.color, .6));
198
+ function W({ width: e, height: t }) {
199
+ ye.value = `0 0 ${e} ${t}`;
200
+ }
201
+ let G = v(null);
202
+ ne(() => {
203
+ ee(() => {
204
+ if (C.parent) {
205
+ G.value = new ResizeObserver((e) => {
206
+ for (let t of e) {
207
+ let { width: e, height: n } = t.contentRect;
208
+ W({
209
+ width: e,
210
+ height: n
211
+ });
212
+ }
213
+ }), G.value.observe(C.parent);
214
+ let { width: e, height: t } = C.parent.getBoundingClientRect();
215
+ W({
216
+ width: e,
217
+ height: t
218
+ });
219
+ }
220
+ }), O.value = J.value.querySelector("g");
221
+ }), te(() => {
222
+ G.value && G.value.disconnect();
223
+ }), S(() => C.parent, (e) => {
224
+ if (!e) return;
225
+ let { width: t, height: n } = C.parent.getBoundingClientRect();
226
+ W({
227
+ width: t,
228
+ height: n
229
+ });
230
+ }, { immediate: !0 }), S(L, (e) => {
231
+ J.value && (J.value.removeEventListener("mousedown", H), J.value.removeEventListener("touchstart", H), e === "text" && (J.value.addEventListener("mousedown", H), J.value.addEventListener("touchstart", H, { passive: !1 })));
232
+ });
233
+ let K = v(!1), q = v(""), J = v(null), Y = v(!1), ke = v(null);
234
+ S(() => C.active, (e) => {
235
+ J.value && (J.value.style.touchAction = e ? "none" : "");
236
+ }, { immediate: !0 });
237
+ function Ae(e) {
238
+ if (e.cancelable && e.preventDefault(), L.value !== "draw" || !J.value) return;
239
+ K.value = !0;
240
+ let { x: t, y: n } = Q(e);
241
+ q.value = `M ${t} ${n}`;
242
+ }
243
+ function je(e) {
244
+ if (e.cancelable && e.preventDefault(), L.value !== "draw" || !K.value || !J.value) return;
245
+ let { x: t, y: n } = Q(e);
246
+ q.value += ` ${t} ${n}`;
247
+ }
248
+ function Me() {
249
+ let e = J.value;
250
+ if (!e) return;
251
+ let t = e.querySelector(`defs#${B.value}`);
252
+ if (t || (t = document.createElementNS(r, "defs"), t.setAttribute("id", B.value), e.appendChild(t)), t.querySelector(`#${z.value}`)) return;
253
+ let n = document.createElementNS(r, "marker");
254
+ n.setAttribute("id", z.value), n.setAttribute("markerUnits", "strokeWidth"), n.setAttribute("markerWidth", "6"), n.setAttribute("markerHeight", "6"), n.setAttribute("refX", "4"), n.setAttribute("refY", "3"), n.setAttribute("orient", "auto"), n.setAttribute("viewBox", "0 0 6 6");
255
+ let i = document.createElementNS(r, "path");
256
+ i.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), i.setAttribute("fill", "context-stroke"), i.setAttribute("stroke", "none"), n.appendChild(i), t.appendChild(n);
257
+ }
258
+ function Ne(e) {
259
+ if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !J.value || !O.value) return;
260
+ L.value === "arrow" && Me(), Y.value = !0;
261
+ let { x: t, y: n } = Q(e);
262
+ ke.value = {
263
+ x: t,
264
+ y: n
265
+ }, R.value = document.createElementNS(r, "line"), R.value.setAttribute("x1", t), R.value.setAttribute("y1", n), R.value.setAttribute("x2", t), R.value.setAttribute("y2", n), R.value.setAttribute("stroke", E.value), R.value.setAttribute("stroke-width", D.value), R.value.setAttribute("stroke-linecap", "round"), R.value.setAttribute("class", "vue-data-ui-doodle"), L.value === "arrow" && R.value.setAttribute("marker-end", `url(#${z.value})`), O.value.appendChild(R.value);
266
+ }
267
+ function Pe(e) {
268
+ if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !Y.value || !R.value) return;
269
+ let { x: t, y: n } = Q(e);
270
+ R.value.setAttribute("x2", t), R.value.setAttribute("y2", n);
271
+ }
272
+ function X(e) {
273
+ if (e?.cancelable && e.preventDefault(), !Y.value || !R.value) return;
274
+ let { x: t, y: n } = Q(e);
275
+ R.value.setAttribute("x2", t), R.value.setAttribute("y2", n), w.value.push({
276
+ id: V(),
277
+ type: L.value,
278
+ x1: parseFloat(R.value.getAttribute("x1")),
279
+ y1: parseFloat(R.value.getAttribute("y1")),
280
+ x2: t,
281
+ y2: n,
282
+ strokeWidth: D.value,
283
+ color: E.value
284
+ }), T.value = [], O.value.contains(R.value) && O.value.removeChild(R.value), R.value = null, ke.value = null, Y.value = !1;
285
+ }
286
+ function Fe(e) {
287
+ let t = e.trim().split(/\s+/);
288
+ if (t.length < 4) return e;
289
+ let n = t.slice(1).map(Number);
290
+ if (n.length % 2 != 0) return e;
291
+ let r = Ie(n), i = [`M ${r[0]} ${r[1]}`];
292
+ for (let e = 2; e < r.length - 2; e += 2) {
293
+ let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
294
+ i.push(`Q ${t} ${n} ${s} ${c}`);
295
+ }
296
+ let a = r[r.length - 2], o = r[r.length - 1];
297
+ return i.push(`L ${a} ${o}`), i.join(" ");
298
+ }
299
+ function Ie(e, t = 1) {
300
+ let n = [...e];
301
+ for (let r = 2; r < e.length - 2; r += 2) {
302
+ let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
303
+ n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
304
+ }
305
+ return n;
306
+ }
307
+ function Le(e) {
308
+ let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
309
+ for (let e = 0; e < t.length; e += 1) {
310
+ let o = t[e];
311
+ if (isNaN(o)) {
312
+ if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
313
+ else if (r === "Q") {
314
+ let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
315
+ r === i && o === a ? n += `t${s - i} ${c - a}` : n += `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
316
+ }
317
+ } else {
318
+ let s = parseFloat(o), c = parseFloat(t[++e]);
319
+ if (r === "L") {
320
+ let e = s - i, t = c - a;
321
+ e === 0 ? n += `v${t}` : t === 0 ? n += `h${e}` : n += `l${e} ${t}`, i = s, a = c;
322
+ } else if (r === "Q") {
323
+ let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
324
+ r === i && o === a ? n += `t${l - i} ${u - a}` : n += `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
325
+ }
326
+ }
327
+ }
328
+ return n;
329
+ }
330
+ function Z(e) {
331
+ e?.cancelable && e.preventDefault(), L.value === "draw" && (K.value && (w.value.push({
332
+ id: V(),
333
+ strokeWidth: D.value,
334
+ path: Le(Fe(q.value)),
335
+ color: E.value
336
+ }), T.value = [], q.value = ""), K.value = !1);
337
+ }
338
+ function Q(e) {
339
+ if (!J.value) return {
340
+ x: 0,
341
+ y: 0
342
+ };
343
+ let t = J.value.getBoundingClientRect(), n = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, r = n ? n.clientX : e.clientX, i = n ? n.clientY : e.clientY;
344
+ return {
345
+ x: r - t.left,
346
+ y: i - t.top
347
+ };
348
+ }
349
+ function Re() {
350
+ if (w.value.length > 0) {
351
+ let e = w.value.pop();
352
+ T.value.push(e);
353
+ }
354
+ }
355
+ function ze() {
356
+ if (T.value.length > 0) {
357
+ let e = T.value.pop();
358
+ w.value.push(e);
359
+ }
360
+ }
361
+ function Be() {
362
+ w.value = [], T.value = [];
363
+ }
364
+ let $ = v(null);
365
+ return (t, n) => (_(), u(s, null, [i.active ? (_(), u("div", {
366
+ key: 0,
367
+ "data-dom-to-png-ignore": "",
368
+ class: m({
369
+ "vue-ui-pen-and-paper-actions": !0,
370
+ visible: i.active
371
+ }),
372
+ style: g({ backgroundColor: i.backgroundColor })
373
+ }, [
374
+ d("button", {
375
+ class: "vue-ui-pen-and-paper-action",
376
+ style: g({
377
+ backgroundColor: i.backgroundColor,
378
+ border: `1px solid ${U.value}`,
379
+ cursor: i.isCursorPointer ? "pointer" : "default"
380
+ }),
381
+ onClick: n[0] ||= (e) => ve("close")
382
+ }, [b(t.$slots, "annotator-action-close", {}, () => [f(a, {
383
+ name: "close",
384
+ stroke: i.color
385
+ }, null, 8, ["stroke"])], !0)], 4),
386
+ d("button", {
387
+ class: m({ "vue-ui-pen-and-paper-action": !0 }),
388
+ style: g({
389
+ padding: "0 !important",
390
+ cursor: i.isCursorPointer ? "pointer" : "default"
391
+ })
392
+ }, [f(o, {
393
+ value: E.value,
394
+ "onUpdate:value": n[1] ||= (e) => E.value = e,
395
+ backgroundColor: i.backgroundColor,
396
+ buttonBorderColor: U.value
397
+ }, {
398
+ "annotator-action-color": ae(({ color: e }) => [b(t.$slots, "annotator-action-color", h(p({ color: e })), void 0, !0)]),
399
+ _: 3
400
+ }, 8, [
401
+ "value",
402
+ "backgroundColor",
403
+ "buttonBorderColor"
404
+ ])], 4),
405
+ d("button", {
406
+ class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
407
+ onClick: n[2] ||= (e) => Se(),
408
+ style: g({
409
+ backgroundColor: i.backgroundColor,
410
+ border: `1px solid ${U.value}`,
411
+ cursor: i.isCursorPointer ? "pointer" : "default"
412
+ })
413
+ }, [b(t.$slots, "annotator-action-draw", h(p({ mode: L.value })), () => [f(a, {
414
+ name: xe[L.value],
415
+ stroke: i.color
416
+ }, null, 8, ["name", "stroke"])], !0), d("div", { style: g({
417
+ position: "absolute",
418
+ bottom: "-20px",
419
+ color: U.value,
420
+ width: "100%",
421
+ textAlign: "center",
422
+ fontSize: "12px"
423
+ }) }, x(re(e)({
424
+ v: L.value === "text" ? P.value : D.value,
425
+ s: "px",
426
+ r: 1
427
+ })), 5)], 6),
428
+ d("button", {
429
+ class: m({
430
+ "vue-ui-pen-and-paper-action": !0,
431
+ "vue-ui-pen-and-paper-action-disabled": !w.value.length
432
+ }),
433
+ disabled: !w.value.length,
434
+ style: g({
435
+ backgroundColor: i.backgroundColor,
436
+ border: `1px solid ${U.value}`,
437
+ marginTop: "20px",
438
+ cursor: i.isCursorPointer ? "pointer" : "default"
439
+ }),
440
+ onClick: Re
441
+ }, [b(t.$slots, "annotator-action-undo", h(p({ disabled: !w.value.length })), () => [f(a, {
442
+ name: "refresh",
443
+ stroke: i.color
444
+ }, null, 8, ["stroke"])], !0)], 14, ce),
445
+ d("button", {
446
+ class: m({
447
+ "vue-ui-pen-and-paper-action": !0,
448
+ "vue-ui-pen-and-paper-action-disabled": !T.value.length
449
+ }),
450
+ style: g({
451
+ backgroundColor: i.backgroundColor,
452
+ border: `1px solid ${U.value}`,
453
+ cursor: i.isCursorPointer ? "pointer" : "default"
454
+ }),
455
+ onClick: ze
456
+ }, [b(t.$slots, "annotator-action-redo", h(p({ disabled: !T.value.length })), () => [f(a, {
457
+ name: "refresh",
458
+ stroke: i.color,
459
+ style: { transform: "scaleX(-1)" }
460
+ }, null, 8, ["stroke"])], !0)], 6),
461
+ d("button", {
462
+ class: m([{
463
+ "vue-ui-pen-and-paper-action": !0,
464
+ "vue-ui-pen-and-paper-action-disabled": !w.value.length
465
+ }, "vue-ui-pen-and-paper-action"]),
466
+ style: g({
467
+ backgroundColor: i.backgroundColor,
468
+ border: `1px solid ${U.value}`,
469
+ cursor: i.isCursorPointer ? "pointer" : "default"
470
+ }),
471
+ onClick: Be
472
+ }, [b(t.$slots, "annotator-action-delete", h(p({ disabled: !w.value.length })), () => [f(a, {
473
+ name: "trash",
474
+ stroke: i.color
475
+ }, null, 8, ["stroke"])], !0)], 6),
476
+ L.value === "draw" ? oe((_(), u("input", {
477
+ key: 0,
478
+ ref_key: "range",
479
+ ref: $,
480
+ type: "range",
481
+ class: "vertical-range",
482
+ min: .5,
483
+ max: 12,
484
+ step: .1,
485
+ "onUpdate:modelValue": n[3] ||= (e) => D.value = e,
486
+ style: g({ accentColor: i.color })
487
+ }, null, 4)), [[ie, D.value]]) : l("", !0),
488
+ L.value === "text" ? oe((_(), u("input", {
489
+ key: 1,
490
+ ref_key: "range",
491
+ ref: $,
492
+ type: "range",
493
+ class: "vertical-range",
494
+ min: 3,
495
+ max: 48,
496
+ step: .1,
497
+ "onUpdate:modelValue": n[4] ||= (e) => P.value = e,
498
+ style: g({ accentColor: i.color })
499
+ }, null, 4)), [[ie, P.value]]) : l("", !0)
500
+ ], 6)) : l("", !0), (_(), u("svg", {
501
+ "data-mode": L.value,
502
+ ref_key: "svgElement",
503
+ ref: J,
504
+ xmlns: re(r),
505
+ viewBox: ye.value,
506
+ class: m({
507
+ "vue-ui-pen-and-paper": !0,
508
+ inactive: !i.active
509
+ }),
510
+ onMousedown: n[5] ||= (e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null,
511
+ onMousemove: n[6] ||= (e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null,
512
+ onMouseup: n[7] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
513
+ onMouseleave: n[8] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
514
+ onTouchstart: n[9] ||= se((e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null, ["prevent"]),
515
+ onTouchmove: n[10] ||= se((e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null, ["prevent"]),
516
+ onTouchend: n[11] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
517
+ onTouchcancel: n[12] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null
518
+ }, [d("g", {
519
+ ref_key: "G",
520
+ ref: O
521
+ }, [(_(!0), u(s, null, y(w.value, (e) => (_(), u(s, { key: e.id }, [e.path && e.path.replace("M", "").split(" ").length === 2 ? (_(), u("circle", {
522
+ key: 0,
523
+ cx: e.path.replace("M", "").split(" ")[0],
524
+ cy: e.path.replace("M", "").split(" ")[1],
525
+ r: e.strokeWidth / 2,
526
+ fill: e.color
527
+ }, null, 8, ue)) : e.type === "line" ? (_(), u("line", {
528
+ key: 1,
529
+ class: "vue-ui-pen-and-paper-path",
530
+ x1: e.x1,
531
+ y1: e.y1,
532
+ x2: e.x2,
533
+ y2: e.y2,
534
+ stroke: e.color,
535
+ "stroke-width": e.strokeWidth
536
+ }, null, 8, de)) : e.type === "arrow" ? (_(), u("line", {
537
+ key: 2,
538
+ class: "vue-ui-pen-and-paper-path",
539
+ x1: e.x1,
540
+ y1: e.y1,
541
+ x2: e.x2,
542
+ y2: e.y2,
543
+ stroke: e.color,
544
+ "stroke-width": e.strokeWidth,
545
+ "marker-end": `url(#${z.value})`
546
+ }, null, 8, fe)) : e.path ? (_(), u("path", {
547
+ key: 3,
548
+ class: "vue-ui-pen-and-paper-path",
549
+ d: e.path,
550
+ stroke: e.color,
551
+ "stroke-width": e.strokeWidth,
552
+ fill: "none"
553
+ }, null, 8, pe)) : e.type === "text" ? (_(), u("text", {
554
+ key: 4,
555
+ x: e.x,
556
+ y: e.y,
557
+ fill: e.color,
558
+ "font-size": e.fontSize,
559
+ "font-family": "sans-serif",
560
+ "dominant-baseline": "hanging",
561
+ class: "vue-ui-pen-and-paper-text"
562
+ }, [(_(!0), u(s, null, y(e.lines, (t, n) => (_(), u("tspan", {
563
+ key: n,
564
+ x: e.x,
565
+ dy: n === 0 ? "0" : e.fontSize * 1.2
566
+ }, x(t.length ? t : "​"), 9, he))), 128))], 8, me)) : l("", !0)], 64))), 128))], 512), K.value ? (_(), u("path", {
567
+ key: 0,
568
+ class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
569
+ d: Fe(q.value),
570
+ stroke: E.value,
571
+ "stroke-width": D.value * 1.1,
572
+ fill: "none"
573
+ }, null, 8, ge)) : l("", !0)], 42, le))], 64));
574
+ }
575
+ }, [["__scopeId", "data-v-42e6ba29"]]);
576
+ //#endregion
577
+ export { _e as default };
@@ -0,0 +1,11 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { createElementBlock as t, openBlock as n, toDisplayString as r, unref as i } from "vue";
3
+ //#region package.json
4
+ var a = "3.20.5-beta.1", o = /* @__PURE__ */ e({ default: () => c }), s = { "aria-hidden": "true" }, c = {
5
+ __name: "PackageVersion",
6
+ setup(e) {
7
+ return (e, o) => (n(), t("desc", s, "Composed with Vue Data UI " + r(i(a)), 1));
8
+ }
9
+ };
10
+ //#endregion
11
+ export { c as n, o as t };