vue-data-ui 2.6.50 → 2.6.52-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +1 -3
  2. package/dist/{Arrow-DgCzka34.js → Arrow-BrgzjEu9.js} +1 -1
  3. package/dist/{Arrow-Cj0UP9DN.cjs → Arrow-i892KlJJ.cjs} +1 -1
  4. package/dist/{BaseIcon-Dug6kYBB.js → BaseIcon-1Kh1hniD.js} +1 -1
  5. package/dist/{BaseIcon-BeRHKYU4.cjs → BaseIcon-OIGwOnCM.cjs} +1 -1
  6. package/dist/{ColorPicker-C-VVlvta.cjs → ColorPicker-C5fe9E7-.cjs} +1 -1
  7. package/dist/{ColorPicker-8EgjF14O.js → ColorPicker-Cxeiob9V.js} +3 -3
  8. package/dist/{DataTable-Qe7lM3JL.js → DataTable-C4Zf4XLF.js} +15 -15
  9. package/dist/DataTable-DJyyRRlW.cjs +1 -0
  10. package/dist/{Legend-lzTl1S1b.js → Legend-1pyX_J1z.js} +2 -2
  11. package/dist/{Legend-CjiKxR8b.cjs → Legend-Dx4tku_Q.cjs} +1 -1
  12. package/dist/{PackageVersion-DqsBfaeh.js → PackageVersion-BPpaTwrM.js} +1 -1
  13. package/dist/{PackageVersion-yiiAD1cf.cjs → PackageVersion-Di08b2vs.cjs} +1 -1
  14. package/dist/{PenAndPaper-AvORsvqF.js → PenAndPaper-B21RAf9P.js} +5 -5
  15. package/dist/PenAndPaper-C0I2pjPq.cjs +1 -0
  16. package/dist/{Shape-2KuBmTJV.cjs → Shape-Bn0OAR4-.cjs} +1 -1
  17. package/dist/{Shape-Jg6afnuk.js → Shape-BrtnGizi.js} +1 -1
  18. package/dist/{Slicer-DPPVa8zE.js → Slicer-BeRcAG--.js} +25 -25
  19. package/dist/Slicer-BrIoq1c-.cjs +1 -0
  20. package/dist/{Title-cjYd6IYr.cjs → Title-CcW9kRtT.cjs} +1 -1
  21. package/dist/{Title-DPXXRQ-w.js → Title-rbJs8Cs3.js} +1 -1
  22. package/dist/{Tooltip-YBqthQ_8.cjs → Tooltip-BzDUupFB.cjs} +1 -1
  23. package/dist/{Tooltip-C4H6zELy.js → Tooltip-DZGBhn8l.js} +1 -1
  24. package/dist/documentation/installation.md +0 -1
  25. package/dist/dom-to-png-BpstRczV.cjs +1 -0
  26. package/dist/dom-to-png-DFDQ3B5I.js +119 -0
  27. package/dist/img-DN4K4BLQ.cjs +1 -0
  28. package/dist/img-hntVQbmL.js +19 -0
  29. package/dist/index-CuIvJLJx.cjs +9 -0
  30. package/dist/{index-BdAppyf2.js → index-DYjLUPYr.js} +291 -349
  31. package/dist/pdf-BwewXrne.js +46 -0
  32. package/dist/pdf-ClzzT4YP.cjs +1 -0
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +0 -64
  35. package/dist/types/vue-data-ui.d.ts +0 -64
  36. package/dist/{useNestedProp-B3UWJnDQ.cjs → useNestedProp-B3OcLUMU.cjs} +1 -1
  37. package/dist/{useNestedProp-BGSJvQb3.js → useNestedProp-DPpLpUNG.js} +1 -1
  38. package/dist/usePanZoom-CUkkqW81.js +116 -0
  39. package/dist/usePanZoom-PXRi2Rwx.cjs +1 -0
  40. package/dist/usePrinter-BwwdT1Uh.cjs +1 -0
  41. package/dist/{usePrinter-Bvq0gUmP.js → usePrinter-GOjH1UQd.js} +5 -5
  42. package/dist/{vue-data-ui-B66itXhe.js → vue-data-ui-CgYIT4l6.js} +60 -62
  43. package/dist/vue-data-ui-XSn3UFqP.cjs +9 -0
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +35 -36
  46. package/dist/{vue-ui-3d-bar-kESBThJe.js → vue-ui-3d-bar-BFA4GviN.js} +11 -11
  47. package/dist/{vue-ui-3d-bar-Bp1Qx_3s.cjs → vue-ui-3d-bar-d2lzwwD0.cjs} +2 -2
  48. package/dist/{vue-ui-accordion-Btv7fZHc.cjs → vue-ui-accordion-ZlcsLKVn.cjs} +1 -1
  49. package/dist/{vue-ui-accordion-dAJcVBnP.js → vue-ui-accordion-zFcofzrb.js} +3 -3
  50. package/dist/{vue-ui-age-pyramid-yogLIZ0-.cjs → vue-ui-age-pyramid-BrS-QXEl.cjs} +1 -1
  51. package/dist/{vue-ui-age-pyramid-DOf4u3G7.js → vue-ui-age-pyramid-HYnV6m7j.js} +10 -10
  52. package/dist/{vue-ui-annotator-CSE9-lNO.js → vue-ui-annotator-Bnl6xoGx.js} +84 -85
  53. package/dist/vue-ui-annotator-DpcBNv4G.cjs +371 -0
  54. package/dist/{vue-ui-bullet-CrO7QKNT.js → vue-ui-bullet-BMAoQg9X.js} +8 -8
  55. package/dist/{vue-ui-bullet-C12nLt5L.cjs → vue-ui-bullet-CUg-Tqm5.cjs} +1 -1
  56. package/dist/{vue-ui-candlestick-DdwcejCS.cjs → vue-ui-candlestick-BB_TlvHs.cjs} +1 -1
  57. package/dist/{vue-ui-candlestick-fZNnGqnR.js → vue-ui-candlestick-D99-OMzs.js} +11 -11
  58. package/dist/{vue-ui-carousel-table-Be2jjnQa.cjs → vue-ui-carousel-table-BLMby8AI.cjs} +1 -1
  59. package/dist/{vue-ui-carousel-table-D7TTErUh.js → vue-ui-carousel-table-Cj28UhyG.js} +4 -4
  60. package/dist/{vue-ui-chestnut-DXxpU3iH.js → vue-ui-chestnut-BcHI2rpx.js} +8 -8
  61. package/dist/{vue-ui-chestnut-OYsNRpL_.cjs → vue-ui-chestnut-CK_b_ta8.cjs} +1 -1
  62. package/dist/{vue-ui-circle-pack-i0GUh3ui.js → vue-ui-circle-pack-BYhg53UE.js} +9 -9
  63. package/dist/{vue-ui-circle-pack-CzGyZQx0.cjs → vue-ui-circle-pack-ClzkEDGg.cjs} +1 -1
  64. package/dist/vue-ui-cursor-B3u3ldcD.cjs +1 -0
  65. package/dist/{vue-ui-cursor-7vhZ073K.js → vue-ui-cursor-DkcChdeb.js} +4 -4
  66. package/dist/{vue-ui-dashboard-Z0ukqnTc.js → vue-ui-dashboard-BdnlFgl5.js} +8 -8
  67. package/dist/vue-ui-dashboard-Nt0DdH9L.cjs +1 -0
  68. package/dist/{vue-ui-digits-CnSmR9jO.js → vue-ui-digits-D_BKH_j3.js} +2 -2
  69. package/dist/{vue-ui-digits-er9gte-s.cjs → vue-ui-digits-LJ5NoBDi.cjs} +1 -1
  70. package/dist/{vue-ui-donut-DlBL_0yx.js → vue-ui-donut-DKIAm-ME.js} +12 -12
  71. package/dist/{vue-ui-donut-evolution-U0GNz2fp.js → vue-ui-donut-evolution-B_aFgOze.js} +14 -14
  72. package/dist/{vue-ui-donut-evolution-BDuXBSjv.cjs → vue-ui-donut-evolution-BtnTa4le.cjs} +1 -1
  73. package/dist/{vue-ui-donut-DVg5ro7B.cjs → vue-ui-donut-kRhrhvjt.cjs} +1 -1
  74. package/dist/{vue-ui-dumbbell-PioEuDZQ.cjs → vue-ui-dumbbell-BFYVlYa4.cjs} +1 -1
  75. package/dist/{vue-ui-dumbbell-aIYpaGN0.js → vue-ui-dumbbell-jzYimGnw.js} +10 -10
  76. package/dist/{vue-ui-flow-BOlMAhh0.cjs → vue-ui-flow-BuXSGu-i.cjs} +1 -1
  77. package/dist/{vue-ui-flow-BcaSo6z0.js → vue-ui-flow-CqihZo8O.js} +9 -9
  78. package/dist/{vue-ui-funnel-AgQn4mH5.js → vue-ui-funnel-B9OFgkeR.js} +9 -9
  79. package/dist/{vue-ui-funnel-DrkVJPw1.cjs → vue-ui-funnel-CpaBBSbU.cjs} +1 -1
  80. package/dist/{vue-ui-galaxy-D85_jVQh.cjs → vue-ui-galaxy-BCQr-U2u.cjs} +1 -1
  81. package/dist/{vue-ui-galaxy-DWSIn-eK.js → vue-ui-galaxy-FOIZdAZe.js} +11 -11
  82. package/dist/{vue-ui-gauge-8ULXCGzO.js → vue-ui-gauge-B42XWwB2.js} +7 -7
  83. package/dist/{vue-ui-gauge-BHj3D_VH.cjs → vue-ui-gauge-kZxueLp8.cjs} +1 -1
  84. package/dist/{vue-ui-gizmo-D1j6MDV_.js → vue-ui-gizmo-DNzFp5mg.js} +3 -3
  85. package/dist/{vue-ui-gizmo-CEsmiN_U.cjs → vue-ui-gizmo-DtQnmFnB.cjs} +1 -1
  86. package/dist/{vue-ui-heatmap-tMQOgzTJ.js → vue-ui-heatmap-CBahWBfm.js} +10 -10
  87. package/dist/{vue-ui-heatmap-Cww1BNvU.cjs → vue-ui-heatmap-DwTkeSCE.cjs} +1 -1
  88. package/dist/{vue-ui-history-plot-CrVMrU9H.cjs → vue-ui-history-plot-BLZfokqh.cjs} +1 -1
  89. package/dist/{vue-ui-history-plot-17Ayxmx8.js → vue-ui-history-plot-JF7Cxj70.js} +11 -11
  90. package/dist/{vue-ui-kpi-C9kltMQ9.js → vue-ui-kpi-Dd7_MpTH.js} +3 -3
  91. package/dist/{vue-ui-kpi-BALQ_M2s.cjs → vue-ui-kpi-DgYNzLPE.cjs} +1 -1
  92. package/dist/{vue-ui-mini-loader-DzObX7ZU.cjs → vue-ui-mini-loader-AnEvVAeN.cjs} +1 -1
  93. package/dist/{vue-ui-mini-loader-zkvcqGEg.js → vue-ui-mini-loader-CYlUH9YB.js} +2 -2
  94. package/dist/{vue-ui-molecule-C8d0BNOu.js → vue-ui-molecule-CwjSX0qp.js} +253 -226
  95. package/dist/vue-ui-molecule-DenzPBhZ.cjs +1 -0
  96. package/dist/{vue-ui-mood-radar-Bl-PDTeX.js → vue-ui-mood-radar-B_ZdNRq7.js} +11 -11
  97. package/dist/{vue-ui-mood-radar-B-I03OhG.cjs → vue-ui-mood-radar-oZi1r3t2.cjs} +1 -1
  98. package/dist/{vue-ui-nested-donuts-DnuV1MXZ.cjs → vue-ui-nested-donuts-1iw0Uhgn.cjs} +1 -1
  99. package/dist/{vue-ui-nested-donuts-BxTLEwZg.js → vue-ui-nested-donuts-u6o7Mo5w.js} +11 -11
  100. package/dist/{vue-ui-onion-ChlD0lEh.js → vue-ui-onion-BIgB8q-o.js} +11 -11
  101. package/dist/{vue-ui-onion-jrh-OYsj.cjs → vue-ui-onion-nSs841wa.cjs} +1 -1
  102. package/dist/{vue-ui-parallel-coordinate-plot-DEsxCUkG.cjs → vue-ui-parallel-coordinate-plot-CLZbLwv6.cjs} +1 -1
  103. package/dist/{vue-ui-parallel-coordinate-plot-DaQ5VVjw.js → vue-ui-parallel-coordinate-plot-CzdztQbb.js} +12 -12
  104. package/dist/{vue-ui-quadrant-BhwxemSE.cjs → vue-ui-quadrant-DVJk4jVY.cjs} +1 -1
  105. package/dist/{vue-ui-quadrant-DHwHNx0L.js → vue-ui-quadrant-Dqj0kKDK.js} +12 -12
  106. package/dist/{vue-ui-quick-chart-DCKBR3yK.js → vue-ui-quick-chart-C16V9Aae.js} +9 -9
  107. package/dist/{vue-ui-quick-chart-CKzMyPRh.cjs → vue-ui-quick-chart-DseczpPU.cjs} +1 -1
  108. package/dist/{vue-ui-radar-BKa6M5Wq.cjs → vue-ui-radar-BAeIHJpy.cjs} +1 -1
  109. package/dist/{vue-ui-radar-B5llyhiL.js → vue-ui-radar-Db7iB_Qj.js} +12 -12
  110. package/dist/{vue-ui-rating-ChPyKOUl.cjs → vue-ui-rating-D0Dx6ZXa.cjs} +1 -1
  111. package/dist/{vue-ui-rating-BLdhelA-.js → vue-ui-rating-JEdFnT3W.js} +2 -2
  112. package/dist/{vue-ui-relation-circle-CS8SHw7f.cjs → vue-ui-relation-circle-DQna8U5y.cjs} +1 -1
  113. package/dist/{vue-ui-relation-circle-CDhd8AAr.js → vue-ui-relation-circle-gakSZ4S6.js} +7 -7
  114. package/dist/{vue-ui-rings-bZCTJMWv.js → vue-ui-rings-D5n6DT_A.js} +12 -12
  115. package/dist/{vue-ui-rings-DJS0iOwC.cjs → vue-ui-rings-DtRyfbLl.cjs} +1 -1
  116. package/dist/{vue-ui-scatter-BP8fVV4q.cjs → vue-ui-scatter-Bi6D12HK.cjs} +1 -1
  117. package/dist/{vue-ui-scatter-BKvtGb58.js → vue-ui-scatter-PREHAey0.js} +12 -12
  118. package/dist/{vue-ui-skeleton-CIPY7Xfo.cjs → vue-ui-skeleton-B3iHjtI-.cjs} +1 -1
  119. package/dist/{vue-ui-skeleton-BvIz3HzY.js → vue-ui-skeleton-Bvgys0sE.js} +3 -3
  120. package/dist/{vue-ui-smiley-CF97kVSw.js → vue-ui-smiley-Bbz2pMRt.js} +2 -2
  121. package/dist/{vue-ui-smiley-Dcw6DDUd.cjs → vue-ui-smiley-CPZZHQxU.cjs} +1 -1
  122. package/dist/{vue-ui-spark-trend-H77En2yP.cjs → vue-ui-spark-trend-BQJgJLH1.cjs} +1 -1
  123. package/dist/{vue-ui-spark-trend-DDWZF8FE.js → vue-ui-spark-trend-OSzSYi-e.js} +5 -5
  124. package/dist/{vue-ui-sparkbar-D_J5RsQ7.cjs → vue-ui-sparkbar-CMXau9-B.cjs} +1 -1
  125. package/dist/{vue-ui-sparkbar-DS7rL1J8.js → vue-ui-sparkbar-CTBKE2AF.js} +4 -4
  126. package/dist/{vue-ui-sparkgauge-MSEo6cmu.js → vue-ui-sparkgauge-Cut-q8bg.js} +4 -4
  127. package/dist/{vue-ui-sparkgauge-lyri9BYV.cjs → vue-ui-sparkgauge-DXGiSj1v.cjs} +1 -1
  128. package/dist/{vue-ui-sparkhistogram-DZPn2dDv.js → vue-ui-sparkhistogram-Bc9284wI.js} +5 -5
  129. package/dist/{vue-ui-sparkhistogram-qNy_nXl3.cjs → vue-ui-sparkhistogram-D0JFcRmB.cjs} +1 -1
  130. package/dist/{vue-ui-sparkline-DhUWmLtU.cjs → vue-ui-sparkline-BjuntN3v.cjs} +1 -1
  131. package/dist/{vue-ui-sparkline-DmMQ2SZ_.js → vue-ui-sparkline-JtLdV2lv.js} +4 -4
  132. package/dist/{vue-ui-sparkstackbar-DgmKIPN-.js → vue-ui-sparkstackbar-Dnb7y-aL.js} +5 -5
  133. package/dist/{vue-ui-sparkstackbar-DSWq3rmC.cjs → vue-ui-sparkstackbar-UHMiNIcM.cjs} +1 -1
  134. package/dist/{vue-ui-stackbar-2RHJInUq.cjs → vue-ui-stackbar-B3tfGGNG.cjs} +2 -2
  135. package/dist/{vue-ui-stackbar-DYOgS1Qd.js → vue-ui-stackbar-Do4pbvT_.js} +15 -15
  136. package/dist/{vue-ui-strip-plot-6VO97qw1.cjs → vue-ui-strip-plot-BL_QIbRg.cjs} +1 -1
  137. package/dist/{vue-ui-strip-plot-Dt2b8qR2.js → vue-ui-strip-plot-DpEyBQVy.js} +11 -11
  138. package/dist/{vue-ui-table-DB16XLTw.cjs → vue-ui-table-Bo6YTb5z.cjs} +1 -1
  139. package/dist/{vue-ui-table-CUXgc62i.js → vue-ui-table-DOy0Vino.js} +1 -1
  140. package/dist/{vue-ui-table-heatmap-CCE1VZlG.js → vue-ui-table-heatmap-BBtNwXmc.js} +4 -4
  141. package/dist/{vue-ui-table-heatmap-Awh619At.cjs → vue-ui-table-heatmap-BEyXNXkX.cjs} +1 -1
  142. package/dist/{vue-ui-table-sparkline-Cmmla_Dx.js → vue-ui-table-sparkline-CgMtPPVk.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-DYQYdZbN.cjs → vue-ui-table-sparkline-CjOt6yUn.cjs} +1 -1
  144. package/dist/{vue-ui-thermometer-DOwFD-a9.cjs → vue-ui-thermometer-DDzJGu-3.cjs} +1 -1
  145. package/dist/{vue-ui-thermometer-C-9ZCOYE.js → vue-ui-thermometer-mxQsDV23.js} +7 -7
  146. package/dist/{vue-ui-timer-DhmCBz29.cjs → vue-ui-timer-BoHc9W-g.cjs} +1 -1
  147. package/dist/{vue-ui-timer-BJWfxtwA.js → vue-ui-timer-py5C5kre.js} +5 -5
  148. package/dist/{vue-ui-tiremarks-C_fjzZx1.cjs → vue-ui-tiremarks-DfzjVsQy.cjs} +1 -1
  149. package/dist/{vue-ui-tiremarks-DWb36mmN.js → vue-ui-tiremarks-cOumsgMp.js} +7 -7
  150. package/dist/vue-ui-treemap-BapuAvm_.cjs +1 -0
  151. package/dist/{vue-ui-treemap-BvQ-fZ2Q.js → vue-ui-treemap-D52gL3aO.js} +185 -185
  152. package/dist/{vue-ui-vertical-bar-Bx-Hgjrl.js → vue-ui-vertical-bar-B7xGhcol.js} +12 -12
  153. package/dist/{vue-ui-vertical-bar-BX82g5XY.cjs → vue-ui-vertical-bar-tUOVTrhe.cjs} +1 -1
  154. package/dist/{vue-ui-waffle-6bPlupZ9.cjs → vue-ui-waffle-D_eTTi3G.cjs} +1 -1
  155. package/dist/{vue-ui-waffle-XBYHZddH.js → vue-ui-waffle-Dl3103a6.js} +12 -12
  156. package/dist/{vue-ui-wheel-BAGyz9kV.cjs → vue-ui-wheel-BF-ixbP0.cjs} +1 -1
  157. package/dist/{vue-ui-wheel-B3opMdjn.js → vue-ui-wheel-j5qr7c2B.js} +7 -7
  158. package/dist/vue-ui-word-cloud-CDCHlEtX.js +628 -0
  159. package/dist/vue-ui-word-cloud-DzhX3V-T.cjs +1 -0
  160. package/dist/{vue-ui-xy-DCMV8GPA.js → vue-ui-xy-Cqd9LwBJ.js} +18 -18
  161. package/dist/vue-ui-xy-DXp678aj.cjs +3 -0
  162. package/dist/{vue-ui-xy-canvas-DKhymJYh.cjs → vue-ui-xy-canvas-DfYwxC06.cjs} +2 -2
  163. package/dist/{vue-ui-xy-canvas-DDf9P1hu.js → vue-ui-xy-canvas-byW5VmrH.js} +16 -16
  164. package/package.json +2 -3
  165. package/dist/DataTable-DtXoZKgy.cjs +0 -1
  166. package/dist/PenAndPaper-Btnlb4RH.cjs +0 -1
  167. package/dist/Slicer-BGrOB5Ac.cjs +0 -1
  168. package/dist/img-BIeSHu0f.js +0 -15
  169. package/dist/img-D6uvziU0.cjs +0 -1
  170. package/dist/index-BVYLM95-.cjs +0 -9
  171. package/dist/pdf-BpXLKlRx.cjs +0 -1
  172. package/dist/pdf-H8Iw_Wax.js +0 -44
  173. package/dist/usePanZoom-BI9ALAYy.cjs +0 -1
  174. package/dist/usePanZoom-D76xCBni.js +0 -97
  175. package/dist/usePrinter-CkJDEgjQ.cjs +0 -1
  176. package/dist/vue-data-ui-CgyB5G6z.cjs +0 -9
  177. package/dist/vue-ui-annotator-DVCxXtI-.cjs +0 -371
  178. package/dist/vue-ui-cursor-BjYOyMry.cjs +0 -1
  179. package/dist/vue-ui-dashboard-zYOnUnUa.cjs +0 -1
  180. package/dist/vue-ui-molecule-mDLCkrh8.cjs +0 -1
  181. package/dist/vue-ui-screenshot-BLvYddQy.cjs +0 -3
  182. package/dist/vue-ui-screenshot-CAciP-qg.js +0 -161
  183. package/dist/vue-ui-treemap-ksooFSp3.cjs +0 -1
  184. package/dist/vue-ui-word-cloud-1Lsf7r8k.cjs +0 -1
  185. package/dist/vue-ui-word-cloud-DJGCUigw.js +0 -571
  186. package/dist/vue-ui-xy-aSB6TWYQ.cjs +0 -3
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),a=require("./index-BVYLM95-.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],v=["d","fill","stroke","stroke-width"],p=["points","fill","stroke","stroke-width"],y={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:d}){const e=n,i=d;function m(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const r=o.computed(()=>m(e.shape)),s=o.computed(()=>e.shape!=="star"?null:a.createStar({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1)})),k=o.computed(()=>a.createPolygonPath({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1),sides:r.value.points,rotation:r.value.rotation}).path);return(u,t)=>(o.openBlock(),o.createElementBlock("g",null,[r.value&&r.value.points===1?(o.openBlock(),o.createElementBlock("circle",{key:0,class:"vdui-shape-circle",cx:n.plot.x,cy:n.plot.y,r:e.radius*(e.isSelected?e.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[0]||(t[0]=l=>i("mouseover")),onMouseout:t[1]||(t[1]=l=>i("mouseout")),onClick:t[2]||(t[2]=l=>i("click"))},null,40,c)):o.createCommentVNode("",!0),r.value&&r.value.points>=n.limit?(o.openBlock(),o.createElementBlock("path",{key:1,class:"vdui-shape-polygon",d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[3]||(t[3]=l=>i("mouseover")),onMouseout:t[4]||(t[4]=l=>i("mouseout")),onClick:t[5]||(t[5]=l=>i("click"))},null,40,v)):o.createCommentVNode("",!0),s.value?(o.openBlock(),o.createElementBlock("polygon",{key:2,class:"vdui-shape-star",points:s.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[6]||(t[6]=l=>i("mouseover")),onMouseout:t[7]||(t[7]=l=>i("mouseout")),onClick:t[8]||(t[8]=l=>i("click"))},null,40,p)):o.createCommentVNode("",!0)]))}};exports._sfc_main=y;
1
+ "use strict";const o=require("vue"),a=require("./index-CuIvJLJx.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],v=["d","fill","stroke","stroke-width"],p=["points","fill","stroke","stroke-width"],y={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:d}){const e=n,i=d;function m(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const r=o.computed(()=>m(e.shape)),s=o.computed(()=>e.shape!=="star"?null:a.createStar({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1)})),k=o.computed(()=>a.createPolygonPath({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1),sides:r.value.points,rotation:r.value.rotation}).path);return(u,t)=>(o.openBlock(),o.createElementBlock("g",null,[r.value&&r.value.points===1?(o.openBlock(),o.createElementBlock("circle",{key:0,class:"vdui-shape-circle",cx:n.plot.x,cy:n.plot.y,r:e.radius*(e.isSelected?e.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[0]||(t[0]=l=>i("mouseover")),onMouseout:t[1]||(t[1]=l=>i("mouseout")),onClick:t[2]||(t[2]=l=>i("click"))},null,40,c)):o.createCommentVNode("",!0),r.value&&r.value.points>=n.limit?(o.openBlock(),o.createElementBlock("path",{key:1,class:"vdui-shape-polygon",d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[3]||(t[3]=l=>i("mouseover")),onMouseout:t[4]||(t[4]=l=>i("mouseout")),onClick:t[5]||(t[5]=l=>i("click"))},null,40,v)):o.createCommentVNode("",!0),s.value?(o.openBlock(),o.createElementBlock("polygon",{key:2,class:"vdui-shape-star",points:s.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[6]||(t[6]=l=>i("mouseover")),onMouseout:t[7]||(t[7]=l=>i("mouseout")),onClick:t[8]||(t[8]=l=>i("click"))},null,40,p)):o.createCommentVNode("",!0)]))}};exports._sfc_main=y;
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
2
- import { Y as c, Q as f } from "./index-BdAppyf2.js";
2
+ import { Y as c, Q as f } from "./index-DYjLUPYr.js";
3
3
  const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
4
4
  __name: "Shape",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
- import Ve from "./BaseIcon-Dug6kYBB.js";
2
+ import Ve from "./BaseIcon-1Kh1hniD.js";
3
3
  import { t as We, u as Xe } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-BdAppyf2.js";
4
+ import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-DYjLUPYr.js";
5
5
  import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Ge = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -124,13 +124,13 @@ const Ge = {
124
124
  emits: ["update:start", "update:end", "reset", "trapMouse"],
125
125
  setup(a, { expose: fe, emit: ge }) {
126
126
  Ie((e) => ({
127
- a9eaaa56: xe.value,
128
- 43003349: w.value,
129
- "084765fa": be.value,
130
- 23357479: a.selectColor,
131
- "3d8e0af2": ye.value
127
+ "05c06dde": xe.value,
128
+ d5d55cf6: w.value,
129
+ "1783e736": ye.value,
130
+ "754a92b5": a.selectColor,
131
+ "6a46ca7a": be.value
132
132
  }));
133
- const t = a, f = u(null), o = u(t.min), r = u(t.max), M = s(() => !!t.minimap.length), D = u(Ue()), pe = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), y = ge, b = s(() => {
133
+ const t = a, f = u(null), o = u(t.min), r = u(t.max), M = s(() => !!t.minimap.length), D = u(Ue()), pe = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), b = ge, y = s(() => {
134
134
  const e = t.max - t.min, l = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
135
135
  return {
136
136
  left: `${l}%`,
@@ -141,20 +141,20 @@ const Ge = {
141
141
  arrowLeft: !G.value,
142
142
  arrowRight: !j.value
143
143
  };
144
- }), G = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - t.min) / (t.max - t.min)) - U.value / 2 < 0 : !1), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), xe = s(() => t.inputColor), ye = s(() => t.background), be = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), q = s(() => {
144
+ }), G = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - t.min) / (t.max - t.min)) - U.value / 2 < 0 : !1), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), xe = s(() => t.inputColor), be = s(() => t.background), ye = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), q = s(() => {
145
145
  let e = [];
146
146
  for (let l = 0; l < t.minimap.length; l += 1)
147
147
  e.push(l);
148
148
  return e;
149
149
  });
150
150
  function J() {
151
- y("reset");
151
+ b("reset");
152
152
  }
153
153
  function we() {
154
- Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), y("update:start", Number(o.value));
154
+ Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), b("update:start", Number(o.value));
155
155
  }
156
156
  function Se() {
157
- Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), y("update:end", Number(r.value));
157
+ Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), b("update:end", Number(r.value));
158
158
  }
159
159
  R(
160
160
  () => t.min,
@@ -208,14 +208,14 @@ const Ge = {
208
208
  N.value = e + t.valueStart;
209
209
  }, { immediate: !0 });
210
210
  function ke(e) {
211
- N.value = e, e >= t.valueStart && e < t.valueEnd && y("trapMouse", e - t.valueStart);
211
+ N.value = e, e >= t.valueStart && e < t.valueEnd && b("trapMouse", e - t.valueStart);
212
212
  }
213
213
  const Ce = u(0), I = u(null), P = u(null);
214
214
  function z(e) {
215
- o.value = e, I.value && (I.value.value = e), y("update:start", Number(o.value));
215
+ o.value = e, I.value && (I.value.value = e), b("update:start", Number(o.value));
216
216
  }
217
217
  function A(e) {
218
- r.value = e, P.value && (P.value.value = e), y("update:end", Number(r.value));
218
+ r.value = e, P.value && (P.value.value = e), b("update:end", Number(r.value));
219
219
  }
220
220
  const F = s(() => t.valueEnd - t.valueStart), H = u(!1);
221
221
  let V = u(null);
@@ -284,7 +284,7 @@ const Ge = {
284
284
  setStartValue: z,
285
285
  setEndValue: A
286
286
  }), (e, l) => (m(), v("div", {
287
- "data-html2canvas-ignore": "",
287
+ "data-dom-to-png-ignore": "",
288
288
  style: { padding: "0 24px" },
289
289
  class: "vue-data-ui-zoom",
290
290
  ref_key: "zoomWrapper",
@@ -446,7 +446,7 @@ const Ge = {
446
446
  onMouseup: l[1] || (l[1] = (S) => k.value = !1),
447
447
  onMouseenter: (S) => ke(n),
448
448
  onMouseleave: l[2] || (l[2] = (S) => {
449
- N.value = null, y("trapMouse", null);
449
+ N.value = null, b("trapMouse", null);
450
450
  })
451
451
  }, null, 44, rt))), 256))
452
452
  ], 8, Je))
@@ -460,7 +460,7 @@ const Ge = {
460
460
  onMousedown: l[3] || (l[3] = (n) => k.value = !0),
461
461
  onMouseup: l[4] || (l[4] = (n) => k.value = !1),
462
462
  style: $({
463
- ...b.value,
463
+ ...y.value,
464
464
  cursor: k.value ? "grabbing" : "grab"
465
465
  })
466
466
  }, null, 38),
@@ -499,11 +499,11 @@ const Ge = {
499
499
  class: L({
500
500
  "range-tooltip": !0,
501
501
  "range-tooltip-visible": C.value,
502
- "range-tooltip-arrow": b.value.arrowLeft && !a.verticalHandles,
503
- "range-tooltip-arrow-left": !b.value.arrowLeft && !a.verticalHandles
502
+ "range-tooltip-arrow": y.value.arrowLeft && !a.verticalHandles,
503
+ "range-tooltip-arrow-left": !y.value.arrowLeft && !a.verticalHandles
504
504
  }),
505
505
  style: $({
506
- left: b.value.tooltipLeft,
506
+ left: y.value.tooltipLeft,
507
507
  color: Z(he)(a.selectColor),
508
508
  backgroundColor: a.selectColor,
509
509
  border: `1px solid ${w.value}`,
@@ -517,11 +517,11 @@ const Ge = {
517
517
  class: L({
518
518
  "range-tooltip": !0,
519
519
  "range-tooltip-visible": C.value,
520
- "range-tooltip-arrow": b.value.arrowRight && !a.verticalHandles,
521
- "range-tooltip-arrow-right": !b.value.arrowRight && !a.verticalHandles
520
+ "range-tooltip-arrow": y.value.arrowRight && !a.verticalHandles,
521
+ "range-tooltip-arrow-right": !y.value.arrowRight && !a.verticalHandles
522
522
  }),
523
523
  style: $({
524
- left: b.value.tooltipRight,
524
+ left: y.value.tooltipRight,
525
525
  color: Z(he)(a.selectColor),
526
526
  backgroundColor: a.selectColor,
527
527
  border: `1px solid ${w.value}`,
@@ -531,7 +531,7 @@ const Ge = {
531
531
  ], 544)
532
532
  ], 544));
533
533
  }
534
- }, pt = /* @__PURE__ */ Ze(vt, [["__scopeId", "data-v-04e0735b"]]);
534
+ }, pt = /* @__PURE__ */ Ze(vt, [["__scopeId", "data-v-8948b724"]]);
535
535
  export {
536
536
  pt as S
537
537
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),xe=require("./BaseIcon-OIGwOnCM.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-CuIvJLJx.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./useNestedProp-B3UWJnDQ.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"atom-title",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"atom-subtitle",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
1
+ "use strict";const e=require("vue"),r=require("./useNestedProp-B3OcLUMU.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"atom-title",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"atom-subtitle",style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-BGSJvQb3.js";
2
+ import { u as c } from "./useNestedProp-DPpLpUNG.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),p=require("./index-BVYLM95-.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:f=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:d,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<d?n.value=-r+(r-(o.x-d)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<d+r?n.value=-r+(r-(o.x-d)):n.value=-r),o.y+c>v&&!f&&(s.value=-c-a)}return{top:o.y+s.value,left:o.x+n.value}}function b(e,l,o){t.onMounted(()=>e.addEventListener(l,o)),t.onUnmounted(()=>e.removeEventListener(l,o))}function m(){const e=t.ref(0),l=t.ref(0);return b(window,"mousemove",o=>{e.value=o.clientX,l.value=o.clientY}),{x:e,y:l}}const h=["aria-hidden"],g=["innerHTML"],x={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1}},setup(e){const l=e,o=t.ref(null),u=t.ref(m(l.parent)),a=t.computed(()=>y({tooltip:o.value,chart:l.parent,clientPosition:u.value,positionPreference:l.position,defaultOffsetY:l.offsetY,blockShiftY:l.blockShiftY})),f=t.computed(()=>p.setOpacity(l.backgroundColor,l.backgroundOpacity));return(n,s)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.isFullscreen?e.parent:"body"},[e.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"tooltip",ref:o,role:"tooltip","aria-hidden":!e.show,"aria-live":"polite",class:t.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:t.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};z-index:2147483647;`)},[t.renderSlot(n.$slots,"tooltip-before"),t.renderSlot(n.$slots,"default"),t.createElementVNode("div",{innerHTML:e.content},null,8,g),t.renderSlot(n.$slots,"tooltip-after")],14,h)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
1
+ "use strict";const t=require("vue"),p=require("./index-CuIvJLJx.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:f=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:d,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<d?n.value=-r+(r-(o.x-d)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<d+r?n.value=-r+(r-(o.x-d)):n.value=-r),o.y+c>v&&!f&&(s.value=-c-a)}return{top:o.y+s.value,left:o.x+n.value}}function b(e,l,o){t.onMounted(()=>e.addEventListener(l,o)),t.onUnmounted(()=>e.removeEventListener(l,o))}function m(){const e=t.ref(0),l=t.ref(0);return b(window,"mousemove",o=>{e.value=o.clientX,l.value=o.clientY}),{x:e,y:l}}const h=["aria-hidden"],g=["innerHTML"],x={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1}},setup(e){const l=e,o=t.ref(null),u=t.ref(m(l.parent)),a=t.computed(()=>y({tooltip:o.value,chart:l.parent,clientPosition:u.value,positionPreference:l.position,defaultOffsetY:l.offsetY,blockShiftY:l.blockShiftY})),f=t.computed(()=>p.setOpacity(l.backgroundColor,l.backgroundOpacity));return(n,s)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.isFullscreen?e.parent:"body"},[e.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"tooltip",ref:o,role:"tooltip","aria-hidden":!e.show,"aria-live":"polite",class:t.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:t.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${f.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};z-index:2147483647;`)},[t.renderSlot(n.$slots,"tooltip-before"),t.renderSlot(n.$slots,"default"),t.createElementVNode("div",{innerHTML:e.content},null,8,g),t.renderSlot(n.$slots,"tooltip-after")],14,h)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as b, onUnmounted as h, computed as p, createBlock as g, openBlock as v, Teleport as x, createElementBlock as S, createCommentVNode as k, normalizeStyle as $, normalizeClass as C, renderSlot as c, createElementVNode as B } from "vue";
2
- import { s as F } from "./index-BdAppyf2.js";
2
+ import { s as F } from "./index-DYjLUPYr.js";
3
3
  function w({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: u = 24, blockShiftY: s = !1 }) {
4
4
  const l = a(0), f = a(u);
5
5
  if (e && o) {
@@ -211,7 +211,6 @@ From the dataset you pass into the props, this component will produce the most a
211
211
  | `VueUiDigits` | `number` | `VueUiDigitsConfig` | ❌ | ❌ |
212
212
  | `VueUiKpi` | `number` | `VueUiKpiConfig` | ❌ | `#title`, `#value`, `#comment-before`, `#comment-after` |
213
213
  | `VueUiMiniLoader` | ❌ | `VueUiMiniLoaderConfig` | ❌ | ❌ |
214
- | `VueUiScreenshot` | ❌ | `VueUiScreenshotConfig` | `@postImage`, `shoot`, `close` | ❌ |
215
214
  | `VueUiSkeleton` | ❌ | `VueUiSkeletonConfig` | ❌ | ❌ |
216
215
  | `VueUiTimer` | ❌ | `VueUiTimerConfig` | `@start`, `@pause`, `@reset`, `@restart`, `@lap` | `#time`, `#controls`, `#laps`, `#chart-background` |
217
216
  | `VueUiIcon` | see below |
@@ -0,0 +1 @@
1
+ "use strict";const v=require("./index-CuIvJLJx.cjs");async function A(e){const o=e.querySelectorAll("img"),t=[];o.forEach(n=>{n.src&&!n.src.startsWith("data:")&&t.push(new Promise(i=>{const l=new window.Image;l.crossOrigin="anonymous",l.onload=function(){try{const r=document.createElement("canvas");r.width=l.naturalWidth,r.height=l.naturalHeight,r.getContext("2d").drawImage(l,0,0),n.src=r.toDataURL()}catch{}i()},l.onerror=function(){i()},l.src=n.src}))}),await Promise.all(t)}function M(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function S(e,o,t){const n=window.getComputedStyle(o);let i={},l=e.getAttribute("style");typeof l!="string"&&(l=""),l.split(";").forEach(s=>{if(typeof s=="string"&&s.trim()){const[c,m]=s.split(":");c&&m!==void 0&&(i[c.trim()]=m.trim())}});for(let s=0;s<n.length;s+=1){const c=n[s],m=n.getPropertyValue(c);i[c]=m}i.overflow="visible",i["overflow-x"]="visible",i["overflow-y"]="visible";const r=o.getBoundingClientRect();r.width>0&&(i.width=r.width+"px");const g=Math.max(o.scrollHeight,r.height);g>0&&(i.height=g+"px"),t&&(i["font-family"]=t);let h="";for(const s in i)h+=`${s}:${i[s]};`;e.setAttribute("style",h);const a=e.children||[],f=o.children||[];for(let s=0;s<a.length;s++)a[s].nodeType===1&&f[s]&&S(a[s],f[s],t)}function E(e,o){e.querySelectorAll("text").forEach(n=>{n.setAttribute("font-family",o),n.style.fontFamily=o})}function I(e){const o=new TextEncoder().encode(e);let t="";return o.forEach(n=>t+=String.fromCharCode(n)),btoa(t)}function $(e,o,t){let i=new XMLSerializer().serializeToString(e);i.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(i=i.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const l=window.btoa(unescape(encodeURIComponent(i))),r=new window.Image;return r.src=`data:image/svg+xml;base64,${l}`,new Promise((g,h)=>{r.onload=function(){const a=document.createElement("canvas");a.width=o,a.height=t,a.getContext("2d").drawImage(r,0,0,o,t),g(a.toDataURL("image/png",1))},r.onerror=a=>h(a)})}function x(e){if(e.nodeType!==1)return;const o=window.getComputedStyle(e);let t="";for(let n=0;n<o.length;n++){const i=o[n];t+=`${i}:${o.getPropertyValue(i)};`}e.setAttribute("style",t);for(let n=0;n<e.children.length;n++)x(e.children[n])}async function N({container:e,scale:o=2}){if(!e)throw new Error("No container provided");const t=e.cloneNode(!0),n=e.querySelector("svg[aria-label]");if(n){const m=n.getBoundingClientRect(),u=m.width,d=m.height;x(n),E(n,window.getComputedStyle(e).fontFamily);const y=Math.round(u*o),b=Math.round(d*o),C=await $(n,y,b),w=t.querySelector("svg[aria-label]");if(w){const p=document.createElement("img");p.src=C,p.width=u,p.height=d,p.style.width=u+"px",p.style.height=d+"px",w.parentNode.replaceChild(p,w)}}S(t,e,window.getComputedStyle(e).fontFamily),M(t),await A(t);const{width:i,height:l}=e.getBoundingClientRect(),r=Math.round(Math.max(t.scrollWidth,i)*o),g=Math.round(Math.max(t.scrollHeight,l)*1.01*o),h=document.createElementNS(v.XMLNS,"svg");h.setAttribute("viewBox",`0 0 ${r} ${g}`),h.setAttribute("width",r),h.setAttribute("height",g);const a=document.createElementNS(v.XMLNS,"foreignObject");a.setAttribute("x",0),a.setAttribute("y",0),a.setAttribute("width",r),a.setAttribute("height",g),a.setAttribute("style",`font-family:${window.getComputedStyle(e).fontFamily};`),t.style.transform=`scale(${o})`,t.style.transformOrigin="top left",t.style.width=i+"px",t.style.height=l+"px",a.appendChild(t),h.appendChild(a);const f=new XMLSerializer().serializeToString(h),s=I(f),c=new window.Image;return c.crossOrigin="anonymous",c.src=`data:image/svg+xml;base64,${s}`,new Promise((m,u)=>{c.onload=function(){try{const d=document.createElement("canvas");d.width=r,d.height=g,d.getContext("2d").drawImage(c,0,0,r,g),m(d.toDataURL("image/png",1))}catch(d){u("Failed to draw SVG on canvas: "+d)}},c.onerror=function(d){u("Failed to load SVG image for conversion")}})}exports.domToPng=N;
@@ -0,0 +1,119 @@
1
+ import { X as v } from "./index-DYjLUPYr.js";
2
+ async function A(e) {
3
+ const n = e.querySelectorAll("img"), t = [];
4
+ n.forEach((o) => {
5
+ o.src && !o.src.startsWith("data:") && t.push(
6
+ new Promise((i) => {
7
+ const l = new window.Image();
8
+ l.crossOrigin = "anonymous", l.onload = function() {
9
+ try {
10
+ const r = document.createElement("canvas");
11
+ r.width = l.naturalWidth, r.height = l.naturalHeight, r.getContext("2d").drawImage(l, 0, 0), o.src = r.toDataURL();
12
+ } catch {
13
+ }
14
+ i();
15
+ }, l.onerror = function() {
16
+ i();
17
+ }, l.src = o.src;
18
+ })
19
+ );
20
+ }), await Promise.all(t);
21
+ }
22
+ function E(e) {
23
+ e.querySelectorAll("[data-dom-to-png-ignore]").forEach((t) => {
24
+ t.parentNode && t.parentNode.removeChild(t);
25
+ });
26
+ }
27
+ function S(e, n, t) {
28
+ const o = window.getComputedStyle(n);
29
+ let i = {}, l = e.getAttribute("style");
30
+ typeof l != "string" && (l = ""), l.split(";").forEach((s) => {
31
+ if (typeof s == "string" && s.trim()) {
32
+ const [c, m] = s.split(":");
33
+ c && m !== void 0 && (i[c.trim()] = m.trim());
34
+ }
35
+ });
36
+ for (let s = 0; s < o.length; s += 1) {
37
+ const c = o[s], m = o.getPropertyValue(c);
38
+ i[c] = m;
39
+ }
40
+ i.overflow = "visible", i["overflow-x"] = "visible", i["overflow-y"] = "visible";
41
+ const r = n.getBoundingClientRect();
42
+ r.width > 0 && (i.width = r.width + "px");
43
+ const g = Math.max(n.scrollHeight, r.height);
44
+ g > 0 && (i.height = g + "px"), t && (i["font-family"] = t);
45
+ let h = "";
46
+ for (const s in i)
47
+ h += `${s}:${i[s]};`;
48
+ e.setAttribute("style", h);
49
+ const a = e.children || [], f = n.children || [];
50
+ for (let s = 0; s < a.length; s++)
51
+ a[s].nodeType === 1 && f[s] && S(a[s], f[s], t);
52
+ }
53
+ function M(e, n) {
54
+ e.querySelectorAll("text").forEach((o) => {
55
+ o.setAttribute("font-family", n), o.style.fontFamily = n;
56
+ });
57
+ }
58
+ function I(e) {
59
+ const n = new TextEncoder().encode(e);
60
+ let t = "";
61
+ return n.forEach((o) => t += String.fromCharCode(o)), btoa(t);
62
+ }
63
+ function $(e, n, t) {
64
+ let i = new XMLSerializer().serializeToString(e);
65
+ i.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (i = i.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
66
+ const l = window.btoa(unescape(encodeURIComponent(i))), r = new window.Image();
67
+ return r.src = `data:image/svg+xml;base64,${l}`, new Promise((g, h) => {
68
+ r.onload = function() {
69
+ const a = document.createElement("canvas");
70
+ a.width = n, a.height = t, a.getContext("2d").drawImage(r, 0, 0, n, t), g(a.toDataURL("image/png", 1));
71
+ }, r.onerror = (a) => h(a);
72
+ });
73
+ }
74
+ function x(e) {
75
+ if (e.nodeType !== 1) return;
76
+ const n = window.getComputedStyle(e);
77
+ let t = "";
78
+ for (let o = 0; o < n.length; o++) {
79
+ const i = n[o];
80
+ t += `${i}:${n.getPropertyValue(i)};`;
81
+ }
82
+ e.setAttribute("style", t);
83
+ for (let o = 0; o < e.children.length; o++)
84
+ x(e.children[o]);
85
+ }
86
+ async function P({ container: e, scale: n = 2 }) {
87
+ if (!e) throw new Error("No container provided");
88
+ const t = e.cloneNode(!0), o = e.querySelector("svg[aria-label]");
89
+ if (o) {
90
+ const m = o.getBoundingClientRect(), u = m.width, d = m.height;
91
+ x(o), M(o, window.getComputedStyle(e).fontFamily);
92
+ const y = Math.round(u * n), b = Math.round(d * n), C = await $(o, y, b), w = t.querySelector("svg[aria-label]");
93
+ if (w) {
94
+ const p = document.createElement("img");
95
+ p.src = C, p.width = u, p.height = d, p.style.width = u + "px", p.style.height = d + "px", w.parentNode.replaceChild(p, w);
96
+ }
97
+ }
98
+ S(t, e, window.getComputedStyle(e).fontFamily), E(t), await A(t);
99
+ const { width: i, height: l } = e.getBoundingClientRect(), r = Math.round(Math.max(t.scrollWidth, i) * n), g = Math.round(Math.max(t.scrollHeight, l) * 1.01 * n), h = document.createElementNS(v, "svg");
100
+ h.setAttribute("viewBox", `0 0 ${r} ${g}`), h.setAttribute("width", r), h.setAttribute("height", g);
101
+ const a = document.createElementNS(v, "foreignObject");
102
+ a.setAttribute("x", 0), a.setAttribute("y", 0), a.setAttribute("width", r), a.setAttribute("height", g), a.setAttribute("style", `font-family:${window.getComputedStyle(e).fontFamily};`), t.style.transform = `scale(${n})`, t.style.transformOrigin = "top left", t.style.width = i + "px", t.style.height = l + "px", a.appendChild(t), h.appendChild(a);
103
+ const f = new XMLSerializer().serializeToString(h), s = I(f), c = new window.Image();
104
+ return c.crossOrigin = "anonymous", c.src = `data:image/svg+xml;base64,${s}`, new Promise((m, u) => {
105
+ c.onload = function() {
106
+ try {
107
+ const d = document.createElement("canvas");
108
+ d.width = r, d.height = g, d.getContext("2d").drawImage(c, 0, 0, r, g), m(d.toDataURL("image/png", 1));
109
+ } catch (d) {
110
+ u("Failed to draw SVG on canvas: " + d);
111
+ }
112
+ }, c.onerror = function(d) {
113
+ u("Failed to load SVG image for conversion");
114
+ };
115
+ });
116
+ }
117
+ export {
118
+ P as d
119
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-BpstRczV.cjs");async function d({domElement:r,fileName:n,format:t="png",scale:c=2}){if(!r)return Promise.reject("No element provided");if(t==="svg"){const o=converter.convertToImg({container:r,scale:c});if(!o)return Promise.reject("Could not create SVG image");const e=document.createElement("a");return e.href=o.src,e.download=`${n}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e),Promise.resolve()}try{const o=await i.domToPng({container:r,scale:c}),e=document.createElement("a");e.href=o,e.download=`${n}.${t}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(o){throw console.error("Error generating image:",o),o}}exports.default=d;
@@ -0,0 +1,19 @@
1
+ import { d as i } from "./dom-to-png-DFDQ3B5I.js";
2
+ async function a({ domElement: r, fileName: n, format: t = "png", scale: c = 2 }) {
3
+ if (!r) return Promise.reject("No element provided");
4
+ if (t === "svg") {
5
+ const o = converter.convertToImg({ container: r, scale: c });
6
+ if (!o) return Promise.reject("Could not create SVG image");
7
+ const e = document.createElement("a");
8
+ return e.href = o.src, e.download = `${n}.svg`, document.body.appendChild(e), e.click(), document.body.removeChild(e), Promise.resolve();
9
+ }
10
+ try {
11
+ const o = await i({ container: r, scale: c }), e = document.createElement("a");
12
+ e.href = o, e.download = `${n}.${t}`, document.body.appendChild(e), e.click(), document.body.removeChild(e);
13
+ } catch (o) {
14
+ throw console.error("Error generating image:", o), o;
15
+ }
16
+ }
17
+ export {
18
+ a as default
19
+ };