vue-data-ui 3.20.2 → 3.20.3

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-f0MuYk3R.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-C3m9eNp0.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-Bfcitq55.js +0 -1757
  204. package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
  205. package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +0 -1238
  206. package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
  207. package/dist/vue-ui-bullet-DAeyHSHC.js +0 -710
  208. package/dist/vue-ui-bump-DsiXfIFL.js +0 -1249
  209. package/dist/vue-ui-candlestick-BadEBUcF.js +0 -1826
  210. package/dist/vue-ui-carousel-table-_LCF7RFm.js +0 -455
  211. package/dist/vue-ui-chestnut-BTuAvc7L.js +0 -2010
  212. package/dist/vue-ui-chord-CAyRIJlh.js +0 -1391
  213. package/dist/vue-ui-circle-pack-BWzwg8Qb.js +0 -1608
  214. package/dist/vue-ui-cursor-C6t7nAT4.js +0 -283
  215. package/dist/vue-ui-dag-8Puv77-a.js +0 -2909
  216. package/dist/vue-ui-dashboard-CXDvRu27.js +0 -513
  217. package/dist/vue-ui-digits-BlHqILF0.js +0 -209
  218. package/dist/vue-ui-donut-CclzduCs.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +0 -1510
  220. package/dist/vue-ui-dumbbell-BG5C4Hdg.js +0 -1530
  221. package/dist/vue-ui-flow-B73dHBrL.js +0 -1235
  222. package/dist/vue-ui-funnel-Bn3c5lWX.js +0 -777
  223. package/dist/vue-ui-galaxy-eBY55Fue.js +0 -1077
  224. package/dist/vue-ui-gauge-s8pl305B.js +0 -920
  225. package/dist/vue-ui-geo-Ca2ZPVhH.js +0 -1516
  226. package/dist/vue-ui-gizmo-CBNDeAzT.js +0 -225
  227. package/dist/vue-ui-heatmap-V79kNqUi.js +0 -1568
  228. package/dist/vue-ui-history-plot-jiJh8oaM.js +0 -1554
  229. package/dist/vue-ui-horizontal-bar-60b88qqU.js +0 -1681
  230. package/dist/vue-ui-kpi-DnfazUeY.js +0 -96
  231. package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
  232. package/dist/vue-ui-molecule-BeIVS2yp.js +0 -925
  233. package/dist/vue-ui-mood-radar-DHY1ry9I.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +0 -1487
  235. package/dist/vue-ui-onion-DghkeKRu.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.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-BBucQ_8r.js +0 -1978
  240. package/dist/vue-ui-quick-chart-DxxGq-5d.js +0 -2469
  241. package/dist/vue-ui-radar-B0gW_Iur.js +0 -1229
  242. package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
  243. package/dist/vue-ui-relation-circle-C-fNOxJM.js +0 -924
  244. package/dist/vue-ui-ridgeline-CzDR20s3.js +0 -1622
  245. package/dist/vue-ui-rings-DNRdTVqV.js +0 -1246
  246. package/dist/vue-ui-scatter-CRgFebuE.js +0 -2413
  247. package/dist/vue-ui-skeleton-iNzRGgRn.js +0 -2556
  248. package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
  249. package/dist/vue-ui-spark-trend-CPgTOFNY.js +0 -438
  250. package/dist/vue-ui-sparkbar-B4C_YxU-.js +0 -393
  251. package/dist/vue-ui-sparkgauge-DDkSKiba.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +0 -560
  253. package/dist/vue-ui-sparkline-TTSEEs7R.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +0 -662
  255. package/dist/vue-ui-stackbar-CwFVpEgH.js +0 -2270
  256. package/dist/vue-ui-stackline-Bph0kD43.js +0 -2398
  257. package/dist/vue-ui-strip-plot-D2_WSwTF.js +0 -1340
  258. package/dist/vue-ui-table-BzmQMHxi.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
  260. package/dist/vue-ui-table-sparkline-CXNxbqIw.js +0 -707
  261. package/dist/vue-ui-thermometer-Cqw2_Jpi.js +0 -763
  262. package/dist/vue-ui-timer-BHP_5wgz.js +0 -439
  263. package/dist/vue-ui-tiremarks-D8wFTxXl.js +0 -552
  264. package/dist/vue-ui-treemap-DbSebes7.js +0 -1587
  265. package/dist/vue-ui-waffle-CAIBpbY0.js +0 -1362
  266. package/dist/vue-ui-wheel-B5Cyopnp.js +0 -885
  267. package/dist/vue-ui-word-cloud-BaGDKrKL.js +0 -1656
  268. package/dist/vue-ui-world-DLcVBwLg.js +0 -14264
  269. package/dist/vue-ui-xy-CyP5FAo8.js +0 -4578
  270. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
  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,237 +0,0 @@
1
- import { t as e } from "./lib-DUeYQsS0.js";
2
- //#region src/dom-to-png.js
3
- async function t(e) {
4
- let t = e.querySelectorAll("img"), n = Array.from(t).map((e) => new Promise((t) => {
5
- if (!e.src || e.src.startsWith("data:")) return t();
6
- if (e.complete && e.naturalWidth !== 0) {
7
- try {
8
- let t = document.createElement("canvas");
9
- t.width = e.naturalWidth, t.height = e.naturalHeight, t.getContext("2d").drawImage(e, 0, 0), e.src = t.toDataURL();
10
- } catch {}
11
- return t();
12
- }
13
- let n = new window.Image();
14
- n.crossOrigin = "anonymous", n.onload = function() {
15
- try {
16
- let t = document.createElement("canvas");
17
- t.width = n.naturalWidth, t.height = n.naturalHeight, t.getContext("2d").drawImage(n, 0, 0), e.src = t.toDataURL();
18
- } catch {}
19
- t();
20
- }, n.onerror = function() {
21
- t();
22
- }, n.src = e.src;
23
- }));
24
- await Promise.all(n);
25
- }
26
- function n(e) {
27
- e.querySelectorAll("[data-dom-to-png-ignore]").forEach((e) => {
28
- e.remove();
29
- });
30
- }
31
- function r(e, t, n) {
32
- let i = window.getComputedStyle(t), a = t.getBoundingClientRect(), o = i.display.includes("flex"), s = {}, c = e.getAttribute("style");
33
- typeof c != "string" && (c = ""), c.split(";").forEach((e) => {
34
- if (typeof e == "string" && e.trim()) {
35
- let [t, n] = e.split(":");
36
- t && n !== void 0 && (s[t.trim()] = n.trim());
37
- }
38
- });
39
- for (let e = 0; e < i.length; e += 1) {
40
- let t = i[e];
41
- s[t] = i.getPropertyValue(t);
42
- }
43
- s.color = i.color, s["background-color"] = i.backgroundColor;
44
- let l = i.fontFamily || n || "";
45
- (!l || l.trim() === "" || l === "inherit" || l === "initial" || l.toLowerCase().startsWith("system-ui") || l.toLowerCase() === "sans-serif" || l.toLowerCase() === "serif" || l.toLowerCase() === "monospace") && (l = "Helvetica, Arial, sans-serif"), s["font-family"] = l, s["font-size"] = i.fontSize, s["font-weight"] = i.fontWeight, (o || i.display.includes("grid") || [
46
- "inline-block",
47
- "absolute",
48
- "fixed"
49
- ].includes(i.position)) && (a.width > 0 && (s.width = a.width + "px"), a.height > 0 && (s.height = a.height + "px")), o && i.flexWrap === "nowrap" && (s["white-space"] = "nowrap"), [
50
- "box-sizing",
51
- "padding",
52
- "margin",
53
- "border"
54
- ].forEach((e) => {
55
- s[e] = i.getPropertyValue(e);
56
- }), s.overflow = "visible", s["overflow-x"] = "visible", s["overflow-y"] = "visible";
57
- let u = "";
58
- for (let e in s) u += `${e}:${s[e]};`;
59
- e.setAttribute("style", u);
60
- let d = e.children || [], f = t.children || [];
61
- for (let e = 0; e < d.length; e++) d[e].nodeType === 1 && f[e] && r(d[e], f[e], l);
62
- }
63
- function i(e, t) {
64
- e.querySelectorAll("text").forEach((e) => {
65
- e.setAttribute("font-family", t), e.style.fontFamily = t;
66
- });
67
- }
68
- function a(e) {
69
- let t = new TextEncoder().encode(e), n = "";
70
- return t.forEach((e) => n += String.fromCharCode(e)), btoa(n);
71
- }
72
- function o(e, t, n) {
73
- let r = new XMLSerializer().serializeToString(e);
74
- r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (r = r.replace(/^<svg/, "<svg xmlns=\"http://www.w3.org/2000/svg\""));
75
- let i = window.btoa(unescape(encodeURIComponent(r))), a = new window.Image();
76
- return a.src = `data:image/svg+xml;base64,${i}`, new Promise((e, r) => {
77
- a.onload = function() {
78
- let r = document.createElement("canvas");
79
- r.width = t, r.height = n, r.getContext("2d").drawImage(a, 0, 0, t, n), e(r.toDataURL("image/png", 1));
80
- }, a.onerror = (e) => r(e);
81
- });
82
- }
83
- function s(e) {
84
- if (e.nodeType !== 1) return;
85
- let t = window.getComputedStyle(e), n = "";
86
- for (let e = 0; e < t.length; e++) {
87
- let r = t[e];
88
- n += `${r}:${t.getPropertyValue(r)};`;
89
- }
90
- e.setAttribute("style", n);
91
- for (let t = 0; t < e.children.length; t++) s(e.children[t]);
92
- }
93
- function c() {
94
- let e = [];
95
- for (let t of document.styleSheets) try {
96
- let n = t.cssRules;
97
- if (!n) continue;
98
- for (let t of n) (typeof CSSFontFaceRule < "u" && t instanceof CSSFontFaceRule || t.cssText.trim().startsWith("@font-face")) && e.push(t.cssText);
99
- } catch {
100
- continue;
101
- }
102
- return e;
103
- }
104
- function l(e) {
105
- let t = c();
106
- if (!t.length) return;
107
- let n = document.createElement("style");
108
- n.setAttribute("type", "text/css"), n.textContent = t.join("\n");
109
- let r = e.querySelector("defs") || document.createElementNS("http://www.w3.org/2000/svg", "defs");
110
- r.appendChild(n), e.querySelector("defs") || e.insertBefore(r, e.firstChild);
111
- }
112
- function u(e, t) {
113
- let n = e.querySelectorAll("foreignObject"), r = t.querySelectorAll("foreignObject");
114
- n.forEach((e, t) => {
115
- let n = r[t];
116
- if (!n) return;
117
- function i(e, t) {
118
- if (!e || !t) return;
119
- if (e.nodeType === 1 && t.nodeType === 1) {
120
- let n = window.getComputedStyle(t), r = "";
121
- for (let e = 0; e < n.length; e++) {
122
- let t = n[e];
123
- r += `${t}:${n.getPropertyValue(t)};`;
124
- }
125
- e.setAttribute("style", r);
126
- }
127
- let n = e.children || [], r = t.children || [];
128
- for (let e = 0; e < n.length; e++) i(n[e], r[e]);
129
- }
130
- i(e, n);
131
- });
132
- }
133
- function d(e) {
134
- e.querySelectorAll("foreignObject").forEach((e) => {
135
- let t = "", n = Array.from(e.querySelectorAll("*"));
136
- if (n.length !== 0) {
137
- for (let e of document.styleSheets) {
138
- let r;
139
- try {
140
- r = e.cssRules;
141
- } catch {
142
- continue;
143
- }
144
- if (r) {
145
- for (let e of r) if (!(typeof CSSStyleRule < "u" && !(e instanceof CSSStyleRule))) try {
146
- n.some((t) => t.matches(e.selectorText)) && (t += e.cssText + "\n");
147
- } catch {
148
- continue;
149
- }
150
- }
151
- }
152
- if (t) {
153
- let n = document.createElement("style");
154
- n.textContent = t, e.insertBefore(n, e.firstChild);
155
- }
156
- }
157
- });
158
- }
159
- function f(e) {
160
- e.querySelectorAll("foreignObject").forEach((e) => {
161
- let t = e.firstElementChild;
162
- t && t.tagName.toLowerCase() !== "svg" && t.setAttribute("xmlns", "http://www.w3.org/1999/xhtml");
163
- });
164
- }
165
- function p(e, t) {
166
- let n = e.querySelectorAll("foreignObject"), r = t.querySelectorAll("foreignObject");
167
- n.forEach((e, t) => {
168
- let n = r[t];
169
- if (!e || !n) return;
170
- let i = e.firstElementChild, a = n.firstElementChild;
171
- i && a && m(i, a);
172
- });
173
- }
174
- function m(e, t) {
175
- if (e.nodeType !== 1 || !t) return;
176
- r(e, t);
177
- let n = e.children || [], i = t.children || [];
178
- for (let e = 0; e < n.length; e++) m(n[e], i[e]);
179
- }
180
- function h(e, t) {
181
- let n = Array.from(t.querySelectorAll("img"));
182
- e.querySelectorAll("img").forEach((e) => {
183
- let t = e.getAttribute("src"), r = n.find((e) => e.getAttribute("src") === t);
184
- if (r) {
185
- let t = window.getComputedStyle(r), n = "";
186
- for (let e = 0; e < t.length; e++) {
187
- let r = t[e];
188
- n += `${r}:${t.getPropertyValue(r)};`;
189
- }
190
- e.setAttribute("style", n);
191
- }
192
- });
193
- }
194
- async function g({ container: c, scale: m = 2, base64: g = !1 }) {
195
- if (!c) throw Error("No container provided");
196
- await document.fonts.ready;
197
- let _ = window.getComputedStyle(c).fontFamily || "Helvetica";
198
- _.toLowerCase().includes("helvetica") || (_ += ", Helvetica");
199
- let v = c.cloneNode(!0), y = v.querySelectorAll("canvas"), b = c.querySelectorAll("canvas");
200
- for (let e = 0; e < b.length; e += 1) {
201
- let t = b[e], n = y[e];
202
- if (t && n) {
203
- let e = document.createElement("img");
204
- e.src = t.toDataURL("image/png"), e.width = t.width, e.height = t.height, e.style.width = t.style.width || t.width + "px", e.style.height = t.style.height || t.height + "px", n.replaceWith(e);
205
- }
206
- }
207
- let x = c.querySelector("svg[aria-label]"), S = v.querySelector("svg[aria-label]");
208
- if (x && S) {
209
- f(S), d(S), u(S, x), p(S, x), s(S), i(S, _), h(S, x), await t(S);
210
- let e = x.getBoundingClientRect(), n = e.width, r = e.height, a = await o(S, Math.round(n * m), Math.round(r * m)), c = document.createElement("img");
211
- c.src = a, c.width = n, c.height = r, c.style.width = n + "px", c.style.height = r + "px", S.parentNode.replaceChild(c, S);
212
- }
213
- r(v, c, _), h(v, c), n(v), await t(v);
214
- let { width: C, height: w } = c.getBoundingClientRect(), T = Math.round(Math.max(v.scrollWidth, C) * m), E = Math.round(Math.max(v.scrollHeight, w) * 1.01 * m), D = document.createElementNS(e, "svg");
215
- D.setAttribute("viewBox", `0 0 ${T} ${E}`), D.setAttribute("width", T), D.setAttribute("height", E), D.setAttribute("style", `font-family:${_};`);
216
- let O = document.createElementNS(e, "foreignObject");
217
- O.setAttribute("x", 0), O.setAttribute("y", 0), O.setAttribute("width", T), O.setAttribute("height", E), O.setAttribute("style", `font-family:${_};`), v.style.transform = `scale(${m})`, v.style.transformOrigin = "top left", v.style.width = C + "px", v.style.height = w + "px", v.style.background = window.getComputedStyle(c).backgroundColor, O.appendChild(v), l(D), D.appendChild(O);
218
- let k = a(new XMLSerializer().serializeToString(D)), A = new window.Image();
219
- A.crossOrigin = "anonymous";
220
- let j = `data:image/svg+xml;base64,${k}`;
221
- return A.src = j, g ? new Promise((e) => {
222
- e(j);
223
- }) : new Promise((e, t) => {
224
- A.onload = function() {
225
- try {
226
- let t = document.createElement("canvas");
227
- t.width = T, t.height = E, t.getContext("2d").drawImage(A, 0, 0, T, E), e(t.toDataURL("image/png", 1));
228
- } catch (e) {
229
- t("Failed to draw SVG on canvas: " + e);
230
- }
231
- }, A.onerror = function() {
232
- t("Failed to load SVG image for conversion");
233
- };
234
- });
235
- }
236
- //#endregion
237
- export { g as t };
@@ -1,19 +0,0 @@
1
- import { Bt as e, Nt as t, W as n, bt as r, y as i } from "./lib-DUeYQsS0.js";
2
- //#region src/exposedLib.js
3
- function a(e, t) {
4
- return r(i(e), t);
5
- }
6
- function o(e, t) {
7
- return n(i(e), t);
8
- }
9
- function s(e, n) {
10
- return t(i(e), n);
11
- }
12
- function c({ defaultConfig: t, userConfig: n }) {
13
- return e({
14
- defaultConfig: t,
15
- userConfig: n
16
- });
17
- }
18
- //#endregion
19
- export { s as i, a as n, c as r, o as t };
@@ -1,145 +0,0 @@
1
- //#region src/geoProjections.js
2
- function e(e, t = []) {
3
- return {
4
- type: "FeatureCollection",
5
- features: e.features.map((e) => {
6
- let n = {};
7
- return t.forEach((t) => {
8
- e.properties && e.properties.hasOwnProperty(t) && (n[t] = e.properties[t]);
9
- }), {
10
- type: "Feature",
11
- geometry: e.geometry,
12
- properties: n
13
- };
14
- })
15
- };
16
- }
17
- var t = {
18
- mercator([e, t], n, r, i) {
19
- t = Math.max(Math.min(t, 85.05113), -85.05113);
20
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = n / (2 * Math.PI) * (s + Math.PI), l = (e) => Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 180 / 2)), u = l(85.05113), d = l(-72);
21
- return [c, (l(t) - u) / (d - u) * r];
22
- },
23
- equirectangular([e, t], n, r, i) {
24
- let [a, o] = i;
25
- return t = Math.max(Math.min(t, 90), -80), [(e - a + 180) / 360 * n, (90 - (t - o)) / 170 * r];
26
- },
27
- robinson([e, t], n, r, i) {
28
- let a = [
29
- [1, 0],
30
- [.9986, .062],
31
- [.9954, .124],
32
- [.99, .186],
33
- [.9822, .248],
34
- [.973, .31],
35
- [.96, .372],
36
- [.9427, .434],
37
- [.9216, .4958],
38
- [.8962, .5571],
39
- [.8679, .6176],
40
- [.835, .6769],
41
- [.7986, .7346],
42
- [.7597, .7903],
43
- [.7186, .8435],
44
- [.6732, .8936],
45
- [.6213, .9394],
46
- [.5722, .9761],
47
- [.5322, 1]
48
- ], [o, s] = i;
49
- e -= o, t = Math.max(-89.9999, Math.min(89.9999, t));
50
- let c = Math.abs(t), l = Math.floor(c / 5), u = c % 5 / 5, [d, f] = a[l], [p, m] = a[Math.min(l + 1, a.length - 1)], h = d + (p - d) * u, g = f + (m - f) * u, _ = e * Math.PI / 180, v = n / 2 + n / 2 * h * _ / Math.PI, y = r / 2 - r / 2 * Math.sign(t) * g / 1;
51
- return !Number.isFinite(v) || !Number.isFinite(y) ? [-9999, -9999] : [v, y];
52
- },
53
- mollweide([e, t], n, r, i) {
54
- t = Math.max(Math.min(t, 89.9999), -89.9999);
55
- let [a] = i, o = (e - a) * Math.PI / 180, s = t * Math.PI / 180, c = s, l = 1, u = 0;
56
- for (; Math.abs(l) > 1e-10 && u < 10;) l = -(2 * c + Math.sin(2 * c) - Math.PI * Math.sin(s)) / (2 + 2 * Math.cos(2 * c)), c += l, u++;
57
- isFinite(c) || (c = s > 0 ? Math.PI / 2 : -Math.PI / 2);
58
- let d = n / (2 * Math.SQRT2), f = (d * (2 * Math.SQRT2 / Math.PI) * o * Math.cos(c) + 2 * d) / (4.6 * d) * n, p = -d * Math.SQRT2 * Math.sin(c), m = -d * Math.SQRT2, h = d * Math.SQRT2, g = (p - m) / (h - m) * r;
59
- return [isFinite(f) ? f : 0, isFinite(g) ? g : 0];
60
- },
61
- winkelTripel([e, t], n, r, i) {
62
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = s * Math.cos(Math.PI / 6), u = c, d = Math.acos(Math.cos(c) * Math.cos(s / 2)), f = 2 * Math.cos(c) * Math.sin(s / 2) / (Math.sin(d) / d || 1), p = Math.sin(c) / (Math.sin(d) / d || 1);
63
- return [n / 2 + n / (2 * Math.PI) * (l + f) / 2, r / 2 - r / (2 * Math.PI) * (u + p) / 2];
64
- },
65
- aitoff([e, t], n, r, i) {
66
- Math.sinc || (Math.sinc = function(e) {
67
- return e === 0 ? 1 : Math.sin(Math.PI * e) / (Math.PI * e);
68
- });
69
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = Math.acos(Math.cos(c) * Math.cos(s / 2)), u = 0, d = 0;
70
- return l !== 0 && (u = 2 * Math.cos(c) * Math.sin(s / 2) / Math.sinc(l / Math.PI), d = Math.sin(c) / Math.sinc(l / Math.PI)), u = n / 2 + n / 4 * u, d = r / 2 - r / 2 * d, [u, d];
71
- },
72
- hammer([e, t], n, r, i) {
73
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = Math.sqrt(1 + Math.cos(c) * Math.cos(s / 2));
74
- return [n / 2 + n / 2 * (2 * Math.SQRT2 * Math.cos(c) * Math.sin(s / 2) / l) / 2.8284271247461903, r / 2 - r / 2 * (Math.SQRT2 * Math.sin(c) / l) / 1.4142135623730951];
75
- },
76
- bonne([e, t], n, r, i = [0, 0]) {
77
- let a = 45 * Math.PI / 180, [o, s] = i, c = (e - o) * Math.PI / 180, l = Math.max(Math.min(t, 89.9), -89.9) * Math.PI / 180, u = 1 / Math.tan(a), d = u + a - l, f = d === 0 ? 0 : c * Math.cos(l) / d, p = Math.min(n, r) / 2.6;
78
- return [n / 2 + p * d * Math.sin(f), r / 2 - p * (u - d * Math.cos(f))];
79
- },
80
- sinusoidal([e, t], n, r, i) {
81
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180;
82
- return [n / 2 + n / (2 * Math.PI) * s * Math.cos(c), r / 2 - r / Math.PI * c];
83
- },
84
- gallPeters([e, t], n, r, i) {
85
- let [a, o] = i;
86
- return t = Math.max(Math.min(t, 89.9999), -89.9999), [(e - a + 180) / 360 * n, r / 2 - r / Math.PI * Math.sin(t * Math.PI / 180)];
87
- },
88
- vanDerGrinten([e, t], n, r, i = [0, 0]) {
89
- let a = Math.PI, o = Math.PI / 2, s = 1e-6, c = (e - (i[0] || 0)) * a / 180, l = (t - (i[1] || 0)) * a / 180, u = Math.abs(c), d = Math.abs(l), f, p;
90
- if (d < s) f = c, p = 0;
91
- else if (u < s || Math.abs(d - o) < s) f = 0, p = Math.sign(l) * a * Math.tan(Math.asin(d / o) / 2);
92
- else {
93
- let e = d / o, t = Math.cos(Math.asin(e)), n = .5 * Math.abs(a / c - c / a), r = n * n, i = t / (e + t - 1), s = i * (2 / e - 1), u = s * s, m = u + r, h = i - u, g = r + i;
94
- f = Math.sign(c) * a * (n * h + Math.sqrt(Math.max(0, r * h * h - m * (i * i - u)))) / m, p = Math.sign(l) * a * (s * g - n * Math.sqrt(Math.max(0, (r + 1) * m - g * g))) / m;
95
- }
96
- let m = n / 2 / a * .98, h = n / 2, g = r / 2;
97
- return [h + f * m, g - p * m];
98
- },
99
- globe([e, t], n, r, i) {
100
- let [a, o] = i, s = (e - a) * Math.PI / 180, c = t * Math.PI / 180, l = o * Math.PI / 180, u = Math.min(n, r) / 2 * .95, d = n / 2, f = r / 2, p = u * Math.cos(c) * Math.sin(s) + d, m = -u * (Math.cos(l) * Math.sin(c) - Math.sin(l) * Math.cos(c) * Math.cos(s)) + f;
101
- return Math.sin(l) * Math.sin(c) + Math.cos(l) * Math.cos(c) * Math.cos(s) < 0 ? [NaN, NaN] : [p, m];
102
- },
103
- azimuthalEquidistant([e, t], n, r, i = [0, 0]) {
104
- let a = (e) => e * Math.PI / 180, [o, s] = i, c = a(e - o), l = a(t), u = a(s), d = Math.sin(u) * Math.sin(l) + Math.cos(u) * Math.cos(l) * Math.cos(c), f = Math.acos(Math.max(-1, Math.min(1, d))), p = f === 0 ? 1 : f / Math.sin(f), m = p * Math.cos(l) * Math.sin(c), h = p * (Math.cos(u) * Math.sin(l) - Math.sin(u) * Math.cos(l) * Math.cos(c)), g = Math.min(n, r) / 2 / Math.PI, _ = n / 2, v = r / 2;
105
- return [_ + m * g, v - h * g];
106
- }
107
- };
108
- function n(e, t, n, r, i = [0, 0]) {
109
- let a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
110
- for (let l of t) {
111
- let t = l.geometry, u = t.type === "Polygon" ? [t.coordinates] : t.type === "MultiPolygon" ? t.coordinates : [];
112
- for (let t of u) for (let l of t) for (let [t, u] of l) {
113
- let [l, d] = e([t, u], n, r, i);
114
- !Number.isFinite(l) || !Number.isFinite(d) || (a = Math.min(a, l), s = Math.max(s, l), o = Math.min(o, d), c = Math.max(c, d));
115
- }
116
- }
117
- return {
118
- minX: Math.floor(a) - 10,
119
- minY: Math.floor(o) - 10,
120
- width: Math.ceil(s - a) + 20,
121
- height: Math.ceil(c - o) + 20
122
- };
123
- }
124
- function r(e, t, n) {
125
- let r = e.find((e) => e.properties.admin === t || e.properties.name === t), i = e.find((e) => e.properties.admin === n || e.properties.name === n);
126
- return r && i && (r.geometry.type === "Polygon" && (r.geometry = {
127
- type: "MultiPolygon",
128
- coordinates: [r.geometry.coordinates]
129
- }), i.geometry.type === "Polygon" ? r.geometry.coordinates.push(i.geometry.coordinates) : i.geometry.type === "MultiPolygon" && r.geometry.coordinates.push(...i.geometry.coordinates), e = e.filter((e) => !(e.properties.admin === n || e.properties.name === n))), e;
130
- }
131
- function i(e, t) {
132
- let n = Array.isArray(t) ? t.map((e) => ({ ...e })) : t.features ? t.features.map((e) => ({ ...e })) : [];
133
- return e.style.chart.territory.showTaiwanAsPartOfChina && (n = r(n, "China", "Taiwan")), t.type === "FeatureCollection" ? {
134
- ...t,
135
- features: n
136
- } : n;
137
- }
138
- var a = {
139
- projections: t,
140
- getProjectedBounds: n,
141
- setupTerritories: i,
142
- simplifyGeoJSON: e
143
- };
144
- //#endregion
145
- export { a as t };
@@ -1,74 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./dom-to-png-BYtB4BF3.js";
3
- //#region src/img.js
4
- var n = /* @__PURE__ */ e({ default: () => r });
5
- async function r({ domElement: e, fileName: n, format: r = "png", scale: i = 2, base64: a = !1, img: o = !1 }) {
6
- if (!e) return Promise.reject("No element provided");
7
- let s = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
8
- if (await new Promise((e) => setTimeout(e, 200)), s) try {
9
- await t({
10
- container: e,
11
- scale: i
12
- }), await t({
13
- container: e,
14
- scale: i
15
- }), await t({
16
- container: e,
17
- scale: i
18
- }), await t({
19
- container: e,
20
- scale: i
21
- }), a && (await t({
22
- container: e,
23
- scale: i,
24
- base64: a
25
- }), await t({
26
- container: e,
27
- scale: i,
28
- base64: a
29
- }), await t({
30
- container: e,
31
- scale: i,
32
- base64: a
33
- }), await t({
34
- container: e,
35
- scale: i,
36
- base64: a
37
- }));
38
- } catch {}
39
- if (a && o) try {
40
- return {
41
- imageUri: await t({
42
- container: e,
43
- scale: i
44
- }).then((e) => e),
45
- base64: await t({
46
- container: e,
47
- scale: i,
48
- base64: a
49
- }).then((e) => e)
50
- };
51
- } catch (e) {
52
- console.error("Error generating image information for the chart", e);
53
- }
54
- else if (a) try {
55
- return t({
56
- container: e,
57
- scale: i,
58
- base64: a
59
- }).then((e) => e);
60
- } catch (e) {
61
- console.error("Error generating the base64 string of the chart", e);
62
- }
63
- else try {
64
- let a = await t({
65
- container: e,
66
- scale: i
67
- }), o = document.createElement("a");
68
- o.href = a, o.download = `${n}.${r}`, document.body.appendChild(o), o.click(), document.body.removeChild(o);
69
- } catch (e) {
70
- throw console.error("Error generating image:", e), e;
71
- }
72
- }
73
- //#endregion
74
- export { n, r as t };
@@ -1,19 +0,0 @@
1
- import { Dt as e } from "./lib-DUeYQsS0.js";
2
- //#region src/labelUtils.js
3
- function t({ config: t = {
4
- useValueParens: !1,
5
- usePercentageParens: !0,
6
- showValueFirst: !0
7
- }, val: n, percentage: r, showVal: i = !0, showPercentage: a = !0 }) {
8
- if (!i && !a) return "";
9
- let o = {
10
- value: t.useValueParens ? e(n) : n,
11
- percentage: t.usePercentageParens ? e(r) : r
12
- };
13
- return i && a ? t.showValueFirst ? `${o.value} ${o.percentage}` : `${o.percentage} ${o.value}` : i ? o.value : a ? o.percentage : "";
14
- }
15
- function n({ rounding: e, num: t, filler: n = "-" }) {
16
- return t.toFixed(e).split("").map((e) => n).join("");
17
- }
18
- //#endregion
19
- export { n, t };