vue-data-ui 3.20.0 → 3.20.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/package.json +120 -120
  2. package/dist/A11yDataTable-BCbtxMU6.js +0 -45
  3. package/dist/Arrow-D6j6ocXm.js +0 -116
  4. package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
  5. package/dist/BaseIcon-DfLoHNUj.js +0 -502
  6. package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
  7. package/dist/BaseScanner-Dr2a1Msy.js +0 -27
  8. package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
  9. package/dist/ColorPicker-Bjwxnvfh.js +0 -255
  10. package/dist/DataTable-B--IN22e.js +0 -150
  11. package/dist/Legend-Cz2uQ5gs.js +0 -114
  12. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
  13. package/dist/PackageVersion-xcyrdRmY.js +0 -11
  14. package/dist/PenAndPaper-DqrClVfb.js +0 -461
  15. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  16. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  17. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  18. package/dist/Shape-BPCJfphn.js +0 -141
  19. package/dist/Slicer-SHBj0VaV.js +0 -1144
  20. package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
  21. package/dist/SparkTooltip-CfE6yCad.js +0 -93
  22. package/dist/Title-NWp4qB4K.js +0 -87
  23. package/dist/Tooltip-BENq327o.js +0 -312
  24. package/dist/UserOptions-C1NgoGu6.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  26. package/dist/canvas-lib-BOP_HS11.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-BYtB4BF3.js +0 -237
  99. package/dist/exposedLib-CI8ji8G-.js +0 -19
  100. package/dist/geoProjections-Czak6Jn1.js +0 -145
  101. package/dist/img-1cKsci8e.js +0 -74
  102. package/dist/labelUtils-CUctkYoA.js +0 -19
  103. package/dist/lib-DUeYQsS0.js +0 -1882
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-CS7hn6at.js +0 -258
  106. package/dist/pdf-D0eZ99cP.js +0 -90
  107. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -17190
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -93
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
  115. package/dist/types/vue-ui-annotator.d.ts +0 -34
  116. package/dist/types/vue-ui-bullet.d.ts +0 -85
  117. package/dist/types/vue-ui-bump.d.ts +0 -92
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -106
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -59
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -98
  121. package/dist/types/vue-ui-chord.d.ts +0 -110
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -126
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -125
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -68
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
  128. package/dist/types/vue-ui-donut.d.ts +0 -123
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -94
  130. package/dist/types/vue-ui-flow.d.ts +0 -106
  131. package/dist/types/vue-ui-funnel.d.ts +0 -79
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -114
  133. package/dist/types/vue-ui-gauge.d.ts +0 -89
  134. package/dist/types/vue-ui-geo.d.ts +0 -94
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -101
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -114
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -112
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -92
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
  145. package/dist/types/vue-ui-onion.d.ts +0 -106
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -125
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -108
  151. package/dist/types/vue-ui-radar.d.ts +0 -116
  152. package/dist/types/vue-ui-rating.d.ts +0 -42
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -92
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -106
  155. package/dist/types/vue-ui-rings.d.ts +0 -98
  156. package/dist/types/vue-ui-scatter.d.ts +0 -97
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -28
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -49
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -59
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -118
  166. package/dist/types/vue-ui-stackline.d.ts +0 -114
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -96
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
  170. package/dist/types/vue-ui-table.d.ts +0 -38
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -70
  172. package/dist/types/vue-ui-timer.d.ts +0 -49
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -70
  174. package/dist/types/vue-ui-treemap.d.ts +0 -104
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -101
  177. package/dist/types/vue-ui-wheel.d.ts +0 -70
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -97
  179. package/dist/types/vue-ui-world.d.ts +0 -98
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
  181. package/dist/types/vue-ui-xy.d.ts +0 -146
  182. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
  183. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  184. package/dist/useConfig-DAyQk86L.js +0 -7479
  185. package/dist/useFitSvgText-CT3nmlaS.js +0 -63
  186. package/dist/useNestedProp-CNcoy38D.js +0 -10
  187. package/dist/useObjectBindings-BI7hP-BC.js +0 -189
  188. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  189. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  190. package/dist/usePrinter-C1Gqt_Sp.js +0 -49
  191. package/dist/useResponsive-BfnK0KxU.js +0 -19
  192. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  193. package/dist/useSvgExport-SVIsDot8.js +0 -755
  194. package/dist/useTableResponsive-B24Uwt2E.js +0 -24
  195. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  196. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  197. package/dist/useTimeLabels-BmBRv27Y.js +0 -272
  198. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-DUrZWttG.js +0 -13
  201. package/dist/vue-data-ui-qpQv-4uP.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
  204. package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
  205. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
  206. package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
  207. package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
  208. package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
  209. package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
  210. package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
  211. package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
  212. package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
  213. package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
  214. package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
  215. package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
  216. package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
  217. package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
  218. package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
  220. package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
  221. package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
  222. package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
  223. package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
  224. package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
  225. package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
  226. package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
  227. package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
  228. package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
  229. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
  230. package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
  231. package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
  232. package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
  233. package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
  235. package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
  237. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  238. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  239. package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
  240. package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
  241. package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
  242. package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
  243. package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
  244. package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
  245. package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
  246. package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
  247. package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
  248. package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
  249. package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
  250. package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
  251. package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
  253. package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
  255. package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
  256. package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
  257. package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
  258. package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
  260. package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
  261. package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
  262. package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
  263. package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
  264. package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
  265. package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
  266. package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
  267. package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
  268. package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
  270. package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
  271. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
  273. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  274. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  275. package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
  276. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  277. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  278. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  279. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  280. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  281. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
  282. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  283. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  284. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  285. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  286. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  287. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  288. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  289. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  291. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  292. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  293. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  294. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  296. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  297. package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
  298. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  299. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  300. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  301. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  302. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  303. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  304. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  305. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  307. package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  309. package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
  310. package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
  311. package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
  312. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  313. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  314. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  315. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  316. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  318. package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
  319. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  320. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  321. package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
  322. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
@@ -1,114 +0,0 @@
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 };
@@ -1,577 +0,0 @@
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 };
@@ -1,11 +0,0 @@
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.0", 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 };