vue-data-ui 2.6.52-beta.1 → 2.6.52-beta.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.
- package/dist/{Arrow-I48MZsS9.js → Arrow-DiNBdsBR.js} +1 -1
- package/dist/{Arrow-kIFF7ZYV.cjs → Arrow-DmffZD1f.cjs} +1 -1
- package/dist/{BaseIcon-BOQVvTGG.cjs → BaseIcon-Bp-RjM-c.cjs} +1 -1
- package/dist/{BaseIcon-CFB6fPTZ.js → BaseIcon-CSsYWiU2.js} +1 -1
- package/dist/{ColorPicker-oHlXqJ1s.js → ColorPicker-BJYBOldY.js} +3 -3
- package/dist/{ColorPicker-Dsyn6kHE.cjs → ColorPicker-Bcr7mC1K.cjs} +1 -1
- package/dist/{DataTable-mQHJFe7I.cjs → DataTable-BmZTs83d.cjs} +1 -1
- package/dist/{DataTable-DGdwXWsw.js → DataTable-DsumsWPy.js} +2 -2
- package/dist/{Legend-1Ck4SMAf.js → Legend-3Uf--eIS.js} +2 -2
- package/dist/{Legend-DTO9ZsCn.cjs → Legend-By57mmm2.cjs} +1 -1
- package/dist/{PackageVersion-Bjsb4wZp.cjs → PackageVersion-D8KZgCw5.cjs} +1 -1
- package/dist/{PackageVersion-BvgxXhNs.js → PackageVersion-D_MkCShi.js} +1 -1
- package/dist/{PenAndPaper-Ck-AwE4Q.js → PenAndPaper-BFAN1w_X.js} +3 -3
- package/dist/{PenAndPaper-D7jbmI-E.cjs → PenAndPaper-Q1L1D-dK.cjs} +1 -1
- package/dist/{Shape-CPCH8j2H.js → Shape-CR5LkbGf.js} +1 -1
- package/dist/{Shape-CJaW8bX9.cjs → Shape-z-_tEFYn.cjs} +1 -1
- package/dist/{Slicer-DNZDQslR.js → Slicer-CGUh4gb0.js} +2 -2
- package/dist/{Slicer-CC32--YM.cjs → Slicer-CJAAZNYV.cjs} +1 -1
- package/dist/{Title-cUV-IKQY.cjs → Title-C6N1U1c3.cjs} +1 -1
- package/dist/{Title-B_6aT-6J.js → Title-Cn4fLLU3.js} +1 -1
- package/dist/{Tooltip-WSVLbzMX.cjs → Tooltip-k96eOhda.cjs} +1 -1
- package/dist/{Tooltip-Ue-AAjZt.js → Tooltip-vtobQSf9.js} +1 -1
- package/dist/dom-to-png-8Zjm_0Ye.cjs +2 -0
- package/dist/dom-to-png-CbjeuMOH.js +151 -0
- package/dist/{img-UIozzgIR.js → img-CQ46zmI3.js} +1 -1
- package/dist/{img-11TFQm4X.cjs → img-aT6AqktJ.cjs} +1 -1
- package/dist/{index-CSxlyqJ7.cjs → index-C9re_4Mx.cjs} +1 -1
- package/dist/{index-BkzHk-mH.js → index-DCmAuNVn.js} +1 -1
- package/dist/{pdf-BRtlQnE2.js → pdf-BDz9e2x2.js} +1 -1
- package/dist/{pdf-Cs21Kg1k.cjs → pdf-ZE7npdXY.cjs} +1 -1
- package/dist/{useNestedProp-BMWO2CO2.cjs → useNestedProp-B1Yt4wkE.cjs} +1 -1
- package/dist/{useNestedProp-K8B9GMrW.js → useNestedProp-dyO4jvX0.js} +1 -1
- package/dist/{usePrinter-BYER6sQ7.cjs → usePrinter-CLOF9GWZ.cjs} +1 -1
- package/dist/{usePrinter-zF7SO-jf.js → usePrinter-DvbGw9Ry.js} +3 -3
- package/dist/{vue-data-ui-BMg9P9Ko.js → vue-data-ui-C42Y4feH.js} +60 -60
- package/dist/{vue-data-ui-YsV6liep.cjs → vue-data-ui-XZwPSkyK.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BrwW8AgR.cjs → vue-ui-3d-bar-1Y5cgMOC.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DSzHyy5V.js → vue-ui-3d-bar-Qs15FNIt.js} +9 -9
- package/dist/{vue-ui-accordion-PlYDvxUG.cjs → vue-ui-accordion-Bps0B_OF.cjs} +1 -1
- package/dist/{vue-ui-accordion-BISaJ4se.js → vue-ui-accordion-CBUCYslb.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BqoBtF0a.cjs → vue-ui-age-pyramid-CirG3UO4.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C3FyApR-.js → vue-ui-age-pyramid-crlmSQjL.js} +10 -10
- package/dist/{vue-ui-annotator-DpgKrG5x.js → vue-ui-annotator-ViJo7osH.js} +2 -2
- package/dist/{vue-ui-annotator-BtSw5RTy.cjs → vue-ui-annotator-s6X8rlvC.cjs} +1 -1
- package/dist/{vue-ui-bullet-CGi-_8Ex.cjs → vue-ui-bullet-C4OVmUeS.cjs} +1 -1
- package/dist/{vue-ui-bullet-DbcQ3wBe.js → vue-ui-bullet-C9Y7pknc.js} +8 -8
- package/dist/{vue-ui-candlestick-tRVF3zq2.js → vue-ui-candlestick-9ZlVQUJq.js} +11 -11
- package/dist/{vue-ui-candlestick-BH8jTbOQ.cjs → vue-ui-candlestick-iKAe9fYy.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BWCwHbxI.cjs → vue-ui-carousel-table-Cou3ZWyA.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D8sL6coX.js → vue-ui-carousel-table-Dydk5R4P.js} +4 -4
- package/dist/{vue-ui-chestnut-CpTCDjC9.cjs → vue-ui-chestnut-CVVY79HA.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CroVLVsl.js → vue-ui-chestnut-D0e6mmXV.js} +8 -8
- package/dist/{vue-ui-circle-pack-B2tf5UQ1.js → vue-ui-circle-pack-CfWSsNWH.js} +9 -9
- package/dist/{vue-ui-circle-pack-C3wA6hOc.cjs → vue-ui-circle-pack-Do4xfk-9.cjs} +1 -1
- package/dist/{vue-ui-cursor-DL-bISlq.cjs → vue-ui-cursor-3sWD6sWb.cjs} +1 -1
- package/dist/{vue-ui-cursor-96gSvyiC.js → vue-ui-cursor-xQ174Exh.js} +2 -2
- package/dist/{vue-ui-dashboard-BUdFapPP.cjs → vue-ui-dashboard-BunxEhYt.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Dp5jRRt4.js → vue-ui-dashboard-C1uUPCjM.js} +3 -3
- package/dist/{vue-ui-digits-BezGWOAR.js → vue-ui-digits-DUZmkmYd.js} +2 -2
- package/dist/{vue-ui-digits-XY3jIcLV.cjs → vue-ui-digits-N1cnBghF.cjs} +1 -1
- package/dist/{vue-ui-donut-BdsK9pBW.cjs → vue-ui-donut-Cj03ZYot.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Dv7fyWwE.cjs → vue-ui-donut-evolution-6Q0nYlTW.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Ii8EmOJK.js → vue-ui-donut-evolution-cvXK5LQ5.js} +11 -11
- package/dist/{vue-ui-donut-CIe8gApD.js → vue-ui-donut-ihaNFaYc.js} +12 -12
- package/dist/{vue-ui-dumbbell-DJ3wkIdL.cjs → vue-ui-dumbbell-BE4I_toV.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CR60USAn.js → vue-ui-dumbbell-bdqK39uJ.js} +10 -10
- package/dist/{vue-ui-flow-3clUbPLS.cjs → vue-ui-flow-Vtqld7-0.cjs} +1 -1
- package/dist/{vue-ui-flow-xiil6BiJ.js → vue-ui-flow-tRxrMO0D.js} +9 -9
- package/dist/{vue-ui-funnel-BAkm-e1r.cjs → vue-ui-funnel-B9njr1Nz.cjs} +1 -1
- package/dist/{vue-ui-funnel-B_C8XDGt.js → vue-ui-funnel-Dry3d3qO.js} +9 -9
- package/dist/{vue-ui-galaxy-CyaoeQSJ.js → vue-ui-galaxy-5Vz4zEz-.js} +11 -11
- package/dist/{vue-ui-galaxy-CcW4rvCT.cjs → vue-ui-galaxy-BTi9JvKL.cjs} +1 -1
- package/dist/{vue-ui-gauge-DQKc53lU.js → vue-ui-gauge-Bj0xQcGC.js} +7 -7
- package/dist/{vue-ui-gauge-BSB-sjTl.cjs → vue-ui-gauge-DFKo2qK_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DGbdinaX.cjs → vue-ui-gizmo-DcMLj8GJ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CpfXe7sK.js → vue-ui-gizmo-DkrEfq4T.js} +3 -3
- package/dist/{vue-ui-heatmap-CCmoyf1C.cjs → vue-ui-heatmap-CV8cOzBd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DMHGF1P2.js → vue-ui-heatmap-Pq6a_jDP.js} +10 -10
- package/dist/{vue-ui-history-plot-nEHSahCX.js → vue-ui-history-plot-BiEJuEnw.js} +11 -11
- package/dist/{vue-ui-history-plot-DEyodaqF.cjs → vue-ui-history-plot-GmOwowDC.cjs} +1 -1
- package/dist/{vue-ui-kpi-mOUIJEXy.js → vue-ui-kpi-DaPI81Bo.js} +3 -3
- package/dist/{vue-ui-kpi-pREkpkrt.cjs → vue-ui-kpi-kHmLWTNw.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DBEfeiv2.cjs → vue-ui-mini-loader-B5jVqYcv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BC28g1xw.js → vue-ui-mini-loader-R2hOjF82.js} +2 -2
- package/dist/{vue-ui-molecule-DL4vsgin.js → vue-ui-molecule--fQXkEaj.js} +11 -11
- package/dist/{vue-ui-molecule-P-E8liNf.cjs → vue-ui-molecule-BDa0HjPC.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-ucZjBaMd.js → vue-ui-mood-radar-D3Al6Qak.js} +11 -11
- package/dist/{vue-ui-mood-radar-vFL9b0RB.cjs → vue-ui-mood-radar-ZqFerlfg.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BoNxqHBv.js → vue-ui-nested-donuts-BjsNie1V.js} +11 -11
- package/dist/{vue-ui-nested-donuts-WOIeKM41.cjs → vue-ui-nested-donuts-DhPGQnPZ.cjs} +1 -1
- package/dist/{vue-ui-onion-BK6_uToF.js → vue-ui-onion-ANhD1-xT.js} +11 -11
- package/dist/{vue-ui-onion-D-RVPykW.cjs → vue-ui-onion-rYqiON-p.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-C-skJdiu.js → vue-ui-parallel-coordinate-plot-Cf6C0BI5.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BtYgR4eK.cjs → vue-ui-parallel-coordinate-plot-DNzVMbn-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DwKSro9l.js → vue-ui-quadrant-CPDzqrz9.js} +12 -12
- package/dist/{vue-ui-quadrant-DK3JBMd_.cjs → vue-ui-quadrant-J5VZ_r-X.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CZcqcglo.cjs → vue-ui-quick-chart-BkWUL5Dw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-RoCE-7bx.js → vue-ui-quick-chart-KxRJkti5.js} +9 -9
- package/dist/{vue-ui-radar-k50yck9x.cjs → vue-ui-radar-C8qxkHCz.cjs} +1 -1
- package/dist/{vue-ui-radar-DsJu_WF9.js → vue-ui-radar-uoqEuZvh.js} +12 -12
- package/dist/{vue-ui-rating-BiTJkogW.js → vue-ui-rating-CiXHDAuv.js} +2 -2
- package/dist/{vue-ui-rating-DqNYM80G.cjs → vue-ui-rating-x88MZzrY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B3g0MhAd.cjs → vue-ui-relation-circle-C1BCtW_d.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CXAwYlII.js → vue-ui-relation-circle-ClYqH2X0.js} +7 -7
- package/dist/{vue-ui-rings-BLb7r3Vs.cjs → vue-ui-rings-B-6ZYUC8.cjs} +1 -1
- package/dist/{vue-ui-rings-Oof8uK1q.js → vue-ui-rings-B7wtkqJZ.js} +12 -12
- package/dist/{vue-ui-scatter-Dso8zcQ-.cjs → vue-ui-scatter-Btr4II9d.cjs} +1 -1
- package/dist/{vue-ui-scatter-D2aNkZYy.js → vue-ui-scatter-DsqXzwI4.js} +12 -12
- package/dist/{vue-ui-skeleton-DxHXl65y.js → vue-ui-skeleton-CnsAwf_n.js} +3 -3
- package/dist/{vue-ui-skeleton-CG-VHaCK.cjs → vue-ui-skeleton-DYyqgW1y.cjs} +1 -1
- package/dist/{vue-ui-smiley-B1s0Pz0I.cjs → vue-ui-smiley-DNrk9tcx.cjs} +1 -1
- package/dist/{vue-ui-smiley-B8Oar29S.js → vue-ui-smiley-HuwpntLu.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ckz2Ct-0.cjs → vue-ui-spark-trend-DVfrIf5F.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C28svcHz.js → vue-ui-spark-trend-Dqv6EGso.js} +5 -5
- package/dist/{vue-ui-sparkbar-s2eymivO.cjs → vue-ui-sparkbar-D3m2WDSt.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-zR50kBP5.js → vue-ui-sparkbar-DD4fyARG.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DVnrILJy.cjs → vue-ui-sparkgauge-CCE5ckqh.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BHykT4UY.js → vue-ui-sparkgauge-CxeysWIf.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CAjWW3AJ.cjs → vue-ui-sparkhistogram-D666DpIw.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DbO2SI38.js → vue-ui-sparkhistogram-DUpS6-1w.js} +5 -5
- package/dist/{vue-ui-sparkline-DZMLTb2s.js → vue-ui-sparkline-BAF8Ef3J.js} +4 -4
- package/dist/{vue-ui-sparkline-C-RM0mDc.cjs → vue-ui-sparkline-CWi3no2l.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-HA1vQs01.js → vue-ui-sparkstackbar--4-0dhr9.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-X7aKVG4D.cjs → vue-ui-sparkstackbar-Z3PZWw9J.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CxnUlGuM.js → vue-ui-stackbar-CBjd8UPy.js} +13 -13
- package/dist/{vue-ui-stackbar-CGL_gUOb.cjs → vue-ui-stackbar-ChuAEHKO.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D8rkli8L.js → vue-ui-strip-plot-4wxNeZ93.js} +11 -11
- package/dist/{vue-ui-strip-plot-BdV8E2mU.cjs → vue-ui-strip-plot-CX8FTyYJ.cjs} +1 -1
- package/dist/{vue-ui-table-C91BPx4E.cjs → vue-ui-table-BcU9UA1y.cjs} +1 -1
- package/dist/{vue-ui-table-DElTWwyP.js → vue-ui-table-GYowfNdb.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B9BrmNF4.cjs → vue-ui-table-heatmap-Bn0HtFJU.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CE0NipCw.js → vue-ui-table-heatmap-Dodh9Ua9.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BXTmILTU.js → vue-ui-table-sparkline-CK_Hi_hX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CjRvXelB.cjs → vue-ui-table-sparkline-DbxkTQur.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CP1LDoqq.cjs → vue-ui-thermometer-C14HJqFg.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C6i-p0hg.js → vue-ui-thermometer-DEJinzBY.js} +7 -7
- package/dist/{vue-ui-timer-Cgfs3wKV.cjs → vue-ui-timer-C8jPewHS.cjs} +1 -1
- package/dist/{vue-ui-timer-l3Wc-x8d.js → vue-ui-timer-Cq--rn4B.js} +5 -5
- package/dist/{vue-ui-tiremarks-D_5DNlgH.js → vue-ui-tiremarks-Bu0RsRXg.js} +7 -7
- package/dist/{vue-ui-tiremarks-BmIfZyJk.cjs → vue-ui-tiremarks-DT9J2DdG.cjs} +1 -1
- package/dist/{vue-ui-treemap-BjIi-bzk.cjs → vue-ui-treemap-BErj9-_-.cjs} +1 -1
- package/dist/{vue-ui-treemap-vRqafziK.js → vue-ui-treemap-DE9p3eNT.js} +12 -12
- package/dist/{vue-ui-vertical-bar-ZkFfYNVT.js → vue-ui-vertical-bar-C4pmy1lf.js} +12 -12
- package/dist/{vue-ui-vertical-bar-0lou3eUl.cjs → vue-ui-vertical-bar-Dfs23Rre.cjs} +1 -1
- package/dist/{vue-ui-waffle-B4sJZZwD.js → vue-ui-waffle-AVIMsLqB.js} +12 -12
- package/dist/{vue-ui-waffle-BPVMcyHO.cjs → vue-ui-waffle-CTVWizXy.cjs} +1 -1
- package/dist/{vue-ui-wheel-DWfsxrSb.cjs → vue-ui-wheel-C2GtGiW1.cjs} +1 -1
- package/dist/{vue-ui-wheel-BVVPh7ke.js → vue-ui-wheel-t9Jkx5hZ.js} +7 -7
- package/dist/{vue-ui-word-cloud-CynGL0Rl.cjs → vue-ui-word-cloud-CE8ANVRG.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-D4297p4B.js → vue-ui-word-cloud-bBrWIYZX.js} +10 -10
- package/dist/{vue-ui-xy-CJ_nzjCC.cjs → vue-ui-xy-DW7yh_de.cjs} +2 -2
- package/dist/{vue-ui-xy-KwmX3h7W.js → vue-ui-xy-UFr5RWM3.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BYoUyBzb.cjs → vue-ui-xy-canvas-CPM4XeV9.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B_ZxmLAx.js → vue-ui-xy-canvas-DCpZijXn.js} +12 -12
- package/package.json +1 -1
- package/dist/dom-to-png-9admCVmW.cjs +0 -1
- package/dist/dom-to-png-Bt7F5Nv1.js +0 -128
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Q as H, Y as q, a7 as j, c as X, A as $, F as ee, w as te, s as le, o as ae, $ as re, a8 as ie, x as se, C as ne, y as ce, a5 as oe, e as he, r as ue, f as U, a9 as de, S as ge, T as fe, q as Ie, b as me, z as Ne, d as xe, aa as be, v as Fe, ab as _e, a3 as ye, ac as Ae, i as Le, G as Ce, L as Se, u as ke, p as we, B as Oe, a as Ge, t as ve } from "./index-
|
|
2
|
-
import { D as pe } from "./DataTable-
|
|
3
|
-
import { _ as Me } from "./Title-
|
|
4
|
-
import { u as ze, _ as Te } from "./Tooltip-
|
|
5
|
-
import { U as Pe } from "./usePrinter-
|
|
6
|
-
import { _ as Ve } from "./Shape-
|
|
7
|
-
import Re from "./BaseIcon-
|
|
8
|
-
import He from "./vue-ui-table-sparkline-
|
|
9
|
-
import De from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Be } from "./Slicer-
|
|
11
|
-
import Ee from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Ye } from "./PackageVersion-
|
|
14
|
-
import { P as We } from "./PenAndPaper-
|
|
1
|
+
import { Q as H, Y as q, a7 as j, c as X, A as $, F as ee, w as te, s as le, o as ae, $ as re, a8 as ie, x as se, C as ne, y as ce, a5 as oe, e as he, r as ue, f as U, a9 as de, S as ge, T as fe, q as Ie, b as me, z as Ne, d as xe, aa as be, v as Fe, ab as _e, a3 as ye, ac as Ae, i as Le, G as Ce, L as Se, u as ke, p as we, B as Oe, a as Ge, t as ve } from "./index-DCmAuNVn.js";
|
|
2
|
+
import { D as pe } from "./DataTable-DsumsWPy.js";
|
|
3
|
+
import { _ as Me } from "./Title-Cn4fLLU3.js";
|
|
4
|
+
import { u as ze, _ as Te } from "./Tooltip-vtobQSf9.js";
|
|
5
|
+
import { U as Pe } from "./usePrinter-DvbGw9Ry.js";
|
|
6
|
+
import { _ as Ve } from "./Shape-CR5LkbGf.js";
|
|
7
|
+
import Re from "./BaseIcon-CSsYWiU2.js";
|
|
8
|
+
import He from "./vue-ui-table-sparkline-CK_Hi_hX.js";
|
|
9
|
+
import De from "./vue-ui-skeleton-CnsAwf_n.js";
|
|
10
|
+
import { S as Be } from "./Slicer-CGUh4gb0.js";
|
|
11
|
+
import Ee from "./vue-ui-accordion-CBUCYslb.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-dyO4jvX0.js";
|
|
13
|
+
import { _ as Ye } from "./PackageVersion-D_MkCShi.js";
|
|
14
|
+
import { P as We } from "./PenAndPaper-BFAN1w_X.js";
|
|
15
15
|
import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as x, normalizeClass as B, createBlock as D, createCommentVNode as u, createVNode as W, createSlots as qe, withCtx as P, renderSlot as S, normalizeProps as E, guardReactiveProps as Y, createElementVNode as f, createTextVNode as J, Fragment as d, renderList as I, toDisplayString as T, mergeProps as Q, withDirectives as Xe, vModelCheckbox as Ue } from "vue";
|
|
16
16
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Je = X(), Qe = {
|
|
@@ -1103,7 +1103,7 @@ const Je = X(), Qe = {
|
|
|
1103
1103
|
async generatePdf() {
|
|
1104
1104
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1105
1105
|
try {
|
|
1106
|
-
const { default: t } = await import("./pdf-
|
|
1106
|
+
const { default: t } = await import("./pdf-BDz9e2x2.js");
|
|
1107
1107
|
await t({
|
|
1108
1108
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1109
1109
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1126,7 +1126,7 @@ const Je = X(), Qe = {
|
|
|
1126
1126
|
async generateImage() {
|
|
1127
1127
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1128
1128
|
try {
|
|
1129
|
-
const { default: t } = await import("./img-
|
|
1129
|
+
const { default: t } = await import("./img-CQ46zmI3.js");
|
|
1130
1130
|
await t({
|
|
1131
1131
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1132
1132
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-CSxlyqJ7.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-WSVLbzMX.cjs"),dt=require("./Legend-DTO9ZsCn.cjs"),ht=require("./Title-cUV-IKQY.cjs"),ft=require("./Slicer-CC32--YM.cjs"),Ye=require("./usePrinter-BYER6sQ7.cjs"),yt=require("./vue-ui-accordion-PlYDvxUG.cjs"),pt=require("./DataTable-mQHJFe7I.cjs"),gt=require("./vue-ui-skeleton-CG-VHaCK.cjs"),He=require("./useNestedProp-BMWO2CO2.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-BOQVvTGG.cjs"),xt=require("./ColorPicker-Dsyn6kHE.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C9re_4Mx.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-k96eOhda.cjs"),dt=require("./Legend-By57mmm2.cjs"),ht=require("./Title-C6N1U1c3.cjs"),ft=require("./Slicer-CJAAZNYV.cjs"),Ye=require("./usePrinter-CLOF9GWZ.cjs"),yt=require("./vue-ui-accordion-Bps0B_OF.cjs"),pt=require("./DataTable-BmZTs83d.cjs"),gt=require("./vue-ui-skeleton-DYyqgW1y.cjs"),He=require("./useNestedProp-B1Yt4wkE.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-Bp-RjM-c.cjs"),xt=require("./ColorPicker-Bcr7mC1K.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as i, computed as T, onMounted as Ge, nextTick as Ie, onBeforeUnmount as bt, watch as te, createElementBlock as X, openBlock as C, Fragment as We, createCommentVNode as le, normalizeClass as fe, createElementVNode as U, withDirectives as Ut, normalizeStyle as W, createVNode as ke, vModelText as Wt, withModifiers as dt, unref as D, renderList as Vt, useSlots as Zt, createBlock as ue, createSlots as Gt, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as _t } from "vue";
|
|
2
|
-
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-
|
|
2
|
+
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, $ as tl, J as ll, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-DCmAuNVn.js";
|
|
3
3
|
import { d as il, t as cl, u as vl, c as dl, a as gt, l as I, r as Ze, b as ee, p as pt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as hl } from "./Tooltip-
|
|
5
|
-
import { L as fl } from "./Legend-
|
|
6
|
-
import { _ as yl } from "./Title-
|
|
7
|
-
import { S as gl } from "./Slicer-
|
|
8
|
-
import { u as pl, U as ml } from "./usePrinter-
|
|
9
|
-
import bl from "./vue-ui-accordion-
|
|
10
|
-
import { D as xl } from "./DataTable-
|
|
11
|
-
import kl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as mt } from "./useNestedProp-
|
|
4
|
+
import { _ as hl } from "./Tooltip-vtobQSf9.js";
|
|
5
|
+
import { L as fl } from "./Legend-3Uf--eIS.js";
|
|
6
|
+
import { _ as yl } from "./Title-Cn4fLLU3.js";
|
|
7
|
+
import { S as gl } from "./Slicer-CGUh4gb0.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-DvbGw9Ry.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-CBUCYslb.js";
|
|
10
|
+
import { D as xl } from "./DataTable-DsumsWPy.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-CnsAwf_n.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-dyO4jvX0.js";
|
|
13
13
|
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as Cl } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import Ye from "./BaseIcon-
|
|
16
|
-
import { C as wl } from "./ColorPicker-
|
|
15
|
+
import Ye from "./BaseIcon-CSsYWiU2.js";
|
|
16
|
+
import { C as wl } from "./ColorPicker-BJYBOldY.js";
|
|
17
17
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ fe({
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("./index-CSxlyqJ7.cjs");async function $(e){const n=e.querySelectorAll("img"),o=[];n.forEach(t=>{t.src&&!t.src.startsWith("data:")&&o.push(new Promise(r=>{const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const s=document.createElement("canvas");s.width=a.naturalWidth,s.height=a.naturalHeight,s.getContext("2d").drawImage(a,0,0),t.src=s.toDataURL()}catch{}r()},a.onerror=function(){r()},a.src=t.src}))}),await Promise.all(o)}function I(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(o=>{o.parentNode&&o.parentNode.removeChild(o)})}function b(e,n,o){const t=window.getComputedStyle(n);let r={},a=e.getAttribute("style");typeof a!="string"&&(a=""),a.split(";").forEach(i=>{if(typeof i=="string"&&i.trim()){const[d,f]=i.split(":");d&&f!==void 0&&(r[d.trim()]=f.trim())}});for(let i=0;i<t.length;i+=1){const d=t[i],f=t.getPropertyValue(d);r[d]=f}r.overflow="visible",r["overflow-x"]="visible",r["overflow-y"]="visible";const s=n.getBoundingClientRect();s.width>0&&(r.width=s.width+"px");const p=Math.max(n.scrollHeight,s.height);p>0&&(r.height=p+"px"),o&&(r["font-family"]=o);let w="";for(const i in r)w+=`${i}:${r[i]};`;e.setAttribute("style",w);const l=e.children||[],h=n.children||[];for(let i=0;i<l.length;i++)l[i].nodeType===1&&h[i]&&b(l[i],h[i],o)}function L(e,n){e.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",n),t.style.fontFamily=n})}function N(e){const n=new TextEncoder().encode(e);let o="";return n.forEach(t=>o+=String.fromCharCode(t)),btoa(o)}function P(e,n,o){let r=new XMLSerializer().serializeToString(e);r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(r=r.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(r))),s=new window.Image;return s.src=`data:image/svg+xml;base64,${a}`,new Promise((p,w)=>{s.onload=function(){const l=document.createElement("canvas");l.width=n,l.height=o,l.getContext("2d").drawImage(s,0,0,n,o),p(l.toDataURL("image/png",1))},s.onerror=l=>w(l)})}function C(e){if(e.nodeType!==1)return;const n=window.getComputedStyle(e);let o="";for(let t=0;t<n.length;t++){const r=n[t];o+=`${r}:${n.getPropertyValue(r)};`}e.setAttribute("style",o);for(let t=0;t<e.children.length;t++)C(e.children[t])}async function T({container:e,scale:n=2}){if(!e)throw new Error("No container provided");await document.fonts.ready;const o=window.getComputedStyle(e).fontFamily,t=e.cloneNode(!0),r=t.querySelectorAll("canvas"),a=e.querySelectorAll("canvas");for(let m=0;m<a.length;m+=1){const c=a[m],g=r[m];if(c&&g){const u=document.createElement("img");u.src=c.toDataURL("image/png"),u.width=c.width,u.height=c.height,u.style.width=c.style.width||c.width+"px",u.style.height=c.style.height||c.height+"px",g.replaceWith(u)}}const s=e.querySelector("svg[aria-label]");if(s){const m=s.getBoundingClientRect(),c=m.width,g=m.height;C(s),L(s,o);const u=Math.round(c*n),E=Math.round(g*n),M=await P(s,u,E),S=t.querySelector("svg[aria-label]");if(S){const y=document.createElement("img");y.src=M,y.width=c,y.height=g,y.style.width=c+"px",y.style.height=g+"px",S.parentNode.replaceChild(y,S)}}b(t,e,o),I(t),await $(t);const{width:p,height:w}=e.getBoundingClientRect(),l=Math.round(Math.max(t.scrollWidth,p)*n),h=Math.round(Math.max(t.scrollHeight,w)*1.01*n),i=document.createElementNS(x.XMLNS,"svg");i.setAttribute("viewBox",`0 0 ${l} ${h}`),i.setAttribute("width",l),i.setAttribute("height",h),i.setAttribute("style",`font-family:${o};`);const d=document.createElementNS(x.XMLNS,"foreignObject");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",l),d.setAttribute("height",h),d.setAttribute("style",`font-family:${o};`),t.style.transform=`scale(${n})`,t.style.transformOrigin="top left",t.style.width=p+"px",t.style.height=w+"px",t.style.background=window.getComputedStyle(e).backgroundColor,d.appendChild(t),i.appendChild(d);const f=new XMLSerializer().serializeToString(i),A=N(f),v=new window.Image;return v.crossOrigin="anonymous",v.src=`data:image/svg+xml;base64,${A}`,new Promise((m,c)=>{v.onload=function(){try{const g=document.createElement("canvas");g.width=l,g.height=h,g.getContext("2d").drawImage(v,0,0,l,h),m(g.toDataURL("image/png",1))}catch(g){c("Failed to draw SVG on canvas: "+g)}},v.onerror=function(){c("Failed to load SVG image for conversion")}})}exports.domToPng=T;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { X as x } from "./index-BkzHk-mH.js";
|
|
2
|
-
async function $(e) {
|
|
3
|
-
const n = e.querySelectorAll("img"), o = [];
|
|
4
|
-
n.forEach((t) => {
|
|
5
|
-
t.src && !t.src.startsWith("data:") && o.push(
|
|
6
|
-
new Promise((r) => {
|
|
7
|
-
const a = new window.Image();
|
|
8
|
-
a.crossOrigin = "anonymous", a.onload = function() {
|
|
9
|
-
try {
|
|
10
|
-
const s = document.createElement("canvas");
|
|
11
|
-
s.width = a.naturalWidth, s.height = a.naturalHeight, s.getContext("2d").drawImage(a, 0, 0), t.src = s.toDataURL();
|
|
12
|
-
} catch {
|
|
13
|
-
}
|
|
14
|
-
r();
|
|
15
|
-
}, a.onerror = function() {
|
|
16
|
-
r();
|
|
17
|
-
}, a.src = t.src;
|
|
18
|
-
})
|
|
19
|
-
);
|
|
20
|
-
}), await Promise.all(o);
|
|
21
|
-
}
|
|
22
|
-
function I(e) {
|
|
23
|
-
e.querySelectorAll("[data-dom-to-png-ignore]").forEach((o) => {
|
|
24
|
-
o.parentNode && o.parentNode.removeChild(o);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function b(e, n, o) {
|
|
28
|
-
const t = window.getComputedStyle(n);
|
|
29
|
-
let r = {}, a = e.getAttribute("style");
|
|
30
|
-
typeof a != "string" && (a = ""), a.split(";").forEach((i) => {
|
|
31
|
-
if (typeof i == "string" && i.trim()) {
|
|
32
|
-
const [d, w] = i.split(":");
|
|
33
|
-
d && w !== void 0 && (r[d.trim()] = w.trim());
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
for (let i = 0; i < t.length; i += 1) {
|
|
37
|
-
const d = t[i], w = t.getPropertyValue(d);
|
|
38
|
-
r[d] = w;
|
|
39
|
-
}
|
|
40
|
-
r.overflow = "visible", r["overflow-x"] = "visible", r["overflow-y"] = "visible";
|
|
41
|
-
const s = n.getBoundingClientRect();
|
|
42
|
-
s.width > 0 && (r.width = s.width + "px");
|
|
43
|
-
const p = Math.max(n.scrollHeight, s.height);
|
|
44
|
-
p > 0 && (r.height = p + "px"), o && (r["font-family"] = o);
|
|
45
|
-
let f = "";
|
|
46
|
-
for (const i in r)
|
|
47
|
-
f += `${i}:${r[i]};`;
|
|
48
|
-
e.setAttribute("style", f);
|
|
49
|
-
const l = e.children || [], h = n.children || [];
|
|
50
|
-
for (let i = 0; i < l.length; i++)
|
|
51
|
-
l[i].nodeType === 1 && h[i] && b(l[i], h[i], o);
|
|
52
|
-
}
|
|
53
|
-
function L(e, n) {
|
|
54
|
-
e.querySelectorAll("text").forEach((t) => {
|
|
55
|
-
t.setAttribute("font-family", n), t.style.fontFamily = n;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function D(e) {
|
|
59
|
-
const n = new TextEncoder().encode(e);
|
|
60
|
-
let o = "";
|
|
61
|
-
return n.forEach((t) => o += String.fromCharCode(t)), btoa(o);
|
|
62
|
-
}
|
|
63
|
-
function N(e, n, o) {
|
|
64
|
-
let r = new XMLSerializer().serializeToString(e);
|
|
65
|
-
r.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (r = r.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
|
|
66
|
-
const a = window.btoa(unescape(encodeURIComponent(r))), s = new window.Image();
|
|
67
|
-
return s.src = `data:image/svg+xml;base64,${a}`, new Promise((p, f) => {
|
|
68
|
-
s.onload = function() {
|
|
69
|
-
const l = document.createElement("canvas");
|
|
70
|
-
l.width = n, l.height = o, l.getContext("2d").drawImage(s, 0, 0, n, o), p(l.toDataURL("image/png", 1));
|
|
71
|
-
}, s.onerror = (l) => f(l);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function C(e) {
|
|
75
|
-
if (e.nodeType !== 1) return;
|
|
76
|
-
const n = window.getComputedStyle(e);
|
|
77
|
-
let o = "";
|
|
78
|
-
for (let t = 0; t < n.length; t++) {
|
|
79
|
-
const r = n[t];
|
|
80
|
-
o += `${r}:${n.getPropertyValue(r)};`;
|
|
81
|
-
}
|
|
82
|
-
e.setAttribute("style", o);
|
|
83
|
-
for (let t = 0; t < e.children.length; t++)
|
|
84
|
-
C(e.children[t]);
|
|
85
|
-
}
|
|
86
|
-
async function R({ container: e, scale: n = 2 }) {
|
|
87
|
-
if (!e) throw new Error("No container provided");
|
|
88
|
-
await document.fonts.ready;
|
|
89
|
-
const o = window.getComputedStyle(e).fontFamily, t = e.cloneNode(!0), r = t.querySelectorAll("canvas"), a = e.querySelectorAll("canvas");
|
|
90
|
-
for (let m = 0; m < a.length; m += 1) {
|
|
91
|
-
const c = a[m], g = r[m];
|
|
92
|
-
if (c && g) {
|
|
93
|
-
const u = document.createElement("img");
|
|
94
|
-
u.src = c.toDataURL("image/png"), u.width = c.width, u.height = c.height, u.style.width = c.style.width || c.width + "px", u.style.height = c.style.height || c.height + "px", g.replaceWith(u);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const s = e.querySelector("svg[aria-label]");
|
|
98
|
-
if (s) {
|
|
99
|
-
const m = s.getBoundingClientRect(), c = m.width, g = m.height;
|
|
100
|
-
C(s), L(s, o);
|
|
101
|
-
const u = Math.round(c * n), E = Math.round(g * n), M = await N(s, u, E), S = t.querySelector("svg[aria-label]");
|
|
102
|
-
if (S) {
|
|
103
|
-
const y = document.createElement("img");
|
|
104
|
-
y.src = M, y.width = c, y.height = g, y.style.width = c + "px", y.style.height = g + "px", S.parentNode.replaceChild(y, S);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
b(t, e, o), I(t), await $(t);
|
|
108
|
-
const { width: p, height: f } = e.getBoundingClientRect(), l = Math.round(Math.max(t.scrollWidth, p) * n), h = Math.round(Math.max(t.scrollHeight, f) * 1.01 * n), i = document.createElementNS(x, "svg");
|
|
109
|
-
i.setAttribute("viewBox", `0 0 ${l} ${h}`), i.setAttribute("width", l), i.setAttribute("height", h), i.setAttribute("style", `font-family:${o};`);
|
|
110
|
-
const d = document.createElementNS(x, "foreignObject");
|
|
111
|
-
d.setAttribute("x", 0), d.setAttribute("y", 0), d.setAttribute("width", l), d.setAttribute("height", h), d.setAttribute("style", `font-family:${o};`), t.style.transform = `scale(${n})`, t.style.transformOrigin = "top left", t.style.width = p + "px", t.style.height = f + "px", t.style.background = window.getComputedStyle(e).backgroundColor, d.appendChild(t), i.appendChild(d);
|
|
112
|
-
const w = new XMLSerializer().serializeToString(i), A = D(w), v = new window.Image();
|
|
113
|
-
return v.crossOrigin = "anonymous", v.src = `data:image/svg+xml;base64,${A}`, new Promise((m, c) => {
|
|
114
|
-
v.onload = function() {
|
|
115
|
-
try {
|
|
116
|
-
const g = document.createElement("canvas");
|
|
117
|
-
g.width = l, g.height = h, g.getContext("2d").drawImage(v, 0, 0, l, h), m(g.toDataURL("image/png", 1));
|
|
118
|
-
} catch (g) {
|
|
119
|
-
c("Failed to draw SVG on canvas: " + g);
|
|
120
|
-
}
|
|
121
|
-
}, v.onerror = function() {
|
|
122
|
-
c("Failed to load SVG image for conversion");
|
|
123
|
-
};
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
export {
|
|
127
|
-
R as d
|
|
128
|
-
};
|