vue-data-ui 2.4.5 → 2.4.7

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 (149) hide show
  1. package/dist/{Arrow-Dvaq-qLp.js → Arrow-BCeetU2P.js} +1 -1
  2. package/dist/{Arrow-BeQLfJqp.cjs → Arrow-Ds1Mhkkt.cjs} +1 -1
  3. package/dist/{BaseIcon-BQM6PtJu.cjs → BaseIcon-C31iTAGj.cjs} +1 -1
  4. package/dist/{BaseIcon-D9DRVW03.js → BaseIcon-Icg3SIlH.js} +1 -1
  5. package/dist/{DataTable-rs_YrvMR.js → DataTable-CnLqhXZ2.js} +2 -2
  6. package/dist/{DataTable-DO2GAcBm.cjs → DataTable-CqaGqXkz.cjs} +1 -1
  7. package/dist/{Legend-DrmUpnIK.js → Legend-8QHo6cZQ.js} +1 -1
  8. package/dist/{Legend-BoBvZGqQ.cjs → Legend-D2iK-_M0.cjs} +1 -1
  9. package/dist/{PackageVersion-D9rYHrFZ.js → PackageVersion-Bw7N_9KM.js} +1 -1
  10. package/dist/{PackageVersion-DdLmDkTt.cjs → PackageVersion-DjuywB0J.cjs} +1 -1
  11. package/dist/PenAndPaper-BiWc81tP.js +347 -0
  12. package/dist/PenAndPaper-DoKpW2Tl.cjs +1 -0
  13. package/dist/{Shape-BGqIhzPX.cjs → Shape-BfZLKYNk.cjs} +1 -1
  14. package/dist/{Shape-CBrmBvYy.js → Shape-CppjH62a.js} +1 -1
  15. package/dist/{Slicer-4R6np1wa.js → Slicer-CA5jR9Em.js} +75 -73
  16. package/dist/Slicer-U4q5iMIE.cjs +1 -0
  17. package/dist/{Title-Dn00hErp.cjs → Title-aR9ViX_A.cjs} +1 -1
  18. package/dist/{Title-W7iJGPjg.js → Title-yJsQ5q-l.js} +1 -1
  19. package/dist/{Tooltip-DJiwKA4y.cjs → Tooltip-CN6_JyjT.cjs} +1 -1
  20. package/dist/{Tooltip-Pv3Bhir5.js → Tooltip-klg8yuWM.js} +1 -1
  21. package/dist/{index-C9HllqQA.cjs → index-Ci5MafHS.cjs} +1 -1
  22. package/dist/{index-C1GB0E49.js → index-Cn1EWnYG.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-CNAPgW6E.js → useNestedProp-BXn-g9sr.js} +1 -1
  25. package/dist/{useNestedProp-DOr0hj4s.cjs → useNestedProp-DxZ05ZEt.cjs} +1 -1
  26. package/dist/{usePrinter-FSAw5pod.cjs → usePrinter-B3HaYNI4.cjs} +1 -1
  27. package/dist/{usePrinter-y5uHyknw.js → usePrinter-ZkzmtO6K.js} +1 -1
  28. package/dist/{vue-data-ui-Bnkz3Xmu.cjs → vue-data-ui-Bn_29KuS.cjs} +1 -1
  29. package/dist/{vue-data-ui-Bg5KOKEX.js → vue-data-ui-DfGCpkA8.js} +58 -58
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-sjkBzHFn.cjs → vue-ui-3d-bar-CERRaGHQ.cjs} +1 -1
  33. package/dist/{vue-ui-3d-bar-mUrcbG6J.js → vue-ui-3d-bar-Cz7ZSFFf.js} +9 -9
  34. package/dist/{vue-ui-accordion-DWyRC3-h.js → vue-ui-accordion-UADqAdVj.js} +3 -3
  35. package/dist/{vue-ui-accordion-BkUGNe2H.cjs → vue-ui-accordion-kQwtYRmD.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-CVktvXpY.js → vue-ui-age-pyramid-DhGijqy5.js} +10 -10
  37. package/dist/{vue-ui-age-pyramid-CKQ8OHuS.cjs → vue-ui-age-pyramid-Rfk1WUfJ.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-DSJ25l4s.cjs → vue-ui-annotator-BdAFNoMu.cjs} +1 -1
  39. package/dist/{vue-ui-annotator-Cp8KDkuP.js → vue-ui-annotator-CCgDEOdY.js} +1 -1
  40. package/dist/{vue-ui-bullet-Bg3TPFgV.cjs → vue-ui-bullet-Bkx9sfrv.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-D4atsFQx.js → vue-ui-bullet-CSVuqhhg.js} +8 -8
  42. package/dist/{vue-ui-candlestick-BhdG9CY1.cjs → vue-ui-candlestick-CuNi5UZ7.cjs} +1 -1
  43. package/dist/{vue-ui-candlestick-DUNyCQ6Z.js → vue-ui-candlestick-D0RfMi-W.js} +11 -11
  44. package/dist/{vue-ui-carousel-table-DF4FhrBd.cjs → vue-ui-carousel-table-Dch3TChE.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-BRrYpr-2.js → vue-ui-carousel-table-DeY0f9Ba.js} +4 -4
  46. package/dist/{vue-ui-chestnut-CjS4qC_J.js → vue-ui-chestnut-B2Gio3KC.js} +8 -8
  47. package/dist/{vue-ui-chestnut-BLBS9QO2.cjs → vue-ui-chestnut-bqu8whHd.cjs} +1 -1
  48. package/dist/{vue-ui-cursor-C3SpabMF.js → vue-ui-cursor-BlW4uLBm.js} +2 -2
  49. package/dist/{vue-ui-cursor-DzVt5_py.cjs → vue-ui-cursor-Dnv5a5oy.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-BCOKtsyJ.js → vue-ui-dashboard-DCaNJXOd.js} +2 -2
  51. package/dist/{vue-ui-dashboard-CIv7W8Yn.cjs → vue-ui-dashboard-De5_U4a9.cjs} +1 -1
  52. package/dist/{vue-ui-digits-yNfQgOLZ.cjs → vue-ui-digits-Dc0L7473.cjs} +1 -1
  53. package/dist/{vue-ui-digits-DaMKAZkt.js → vue-ui-digits-DlteJApK.js} +2 -2
  54. package/dist/{vue-ui-donut-B_-VAqBw.js → vue-ui-donut-6Vh9u3Xp.js} +11 -11
  55. package/dist/{vue-ui-donut-Bo4SbdEe.cjs → vue-ui-donut-CBTZK6YJ.cjs} +1 -1
  56. package/dist/{vue-ui-donut-evolution-DOPY3I3Q.cjs → vue-ui-donut-evolution-CmgjvLvu.cjs} +1 -1
  57. package/dist/{vue-ui-donut-evolution-C9TXFzCm.js → vue-ui-donut-evolution-gQyMiCiu.js} +11 -11
  58. package/dist/{vue-ui-dumbbell-Cgwng71s.cjs → vue-ui-dumbbell-ByhSaE6s.cjs} +1 -1
  59. package/dist/{vue-ui-dumbbell-BP_Vf_u2.js → vue-ui-dumbbell-C4xg1FG4.js} +10 -10
  60. package/dist/{vue-ui-flow-BiQj4v8i.cjs → vue-ui-flow-Bef5hCwj.cjs} +1 -1
  61. package/dist/{vue-ui-flow-DHoxK4t1.js → vue-ui-flow-DYF0P7LD.js} +9 -9
  62. package/dist/{vue-ui-galaxy-C5ZaT8pw.cjs → vue-ui-galaxy-COY_QSwC.cjs} +1 -1
  63. package/dist/{vue-ui-galaxy-DuLPsC4Q.js → vue-ui-galaxy-aM8uOGRD.js} +11 -11
  64. package/dist/{vue-ui-gauge-26eHgOjR.cjs → vue-ui-gauge-CW8ZpODM.cjs} +1 -1
  65. package/dist/{vue-ui-gauge-BhrXiD4S.js → vue-ui-gauge-qYg_QM-A.js} +7 -7
  66. package/dist/{vue-ui-gizmo-D3kBYI1G.js → vue-ui-gizmo-BZyOCD_y.js} +3 -3
  67. package/dist/{vue-ui-gizmo-Bb_SWCsE.cjs → vue-ui-gizmo-DgS57tJ2.cjs} +1 -1
  68. package/dist/{vue-ui-heatmap-wjsvn1_e.js → vue-ui-heatmap-BfJGluVp.js} +10 -10
  69. package/dist/{vue-ui-heatmap-Bc4HvgMk.cjs → vue-ui-heatmap-Czg21edC.cjs} +1 -1
  70. package/dist/{vue-ui-kpi-DLJuo47I.js → vue-ui-kpi-C5ISBjIs.js} +3 -3
  71. package/dist/{vue-ui-kpi-BbvfVZn0.cjs → vue-ui-kpi-DQpkO2MX.cjs} +1 -1
  72. package/dist/{vue-ui-mini-loader-D4aLvv-D.js → vue-ui-mini-loader-BiaLLW3x.js} +2 -2
  73. package/dist/{vue-ui-mini-loader-BaxwhF7o.cjs → vue-ui-mini-loader-Db5Khvfw.cjs} +1 -1
  74. package/dist/{vue-ui-molecule-ZqAJHh6x.cjs → vue-ui-molecule-4AXvVmWt.cjs} +1 -1
  75. package/dist/{vue-ui-molecule-DXpMMgdW.js → vue-ui-molecule-fmAXI5nL.js} +11 -11
  76. package/dist/{vue-ui-mood-radar-BhteAPWH.cjs → vue-ui-mood-radar-BzfFikJv.cjs} +1 -1
  77. package/dist/{vue-ui-mood-radar-B_uWY92C.js → vue-ui-mood-radar-CVLad_RZ.js} +11 -11
  78. package/dist/{vue-ui-nested-donuts-By32x0Y7.js → vue-ui-nested-donuts-7VePVE4W.js} +11 -11
  79. package/dist/{vue-ui-nested-donuts-ClgkX1-p.cjs → vue-ui-nested-donuts-BP0qdKto.cjs} +1 -1
  80. package/dist/{vue-ui-onion-dQTXKNju.js → vue-ui-onion-LCcrKbXJ.js} +11 -11
  81. package/dist/{vue-ui-onion-BdIxJpfA.cjs → vue-ui-onion-tzmb3ARN.cjs} +1 -1
  82. package/dist/{vue-ui-parallel-coordinate-plot-CTF9Ujab.js → vue-ui-parallel-coordinate-plot-D0Xxq5a9.js} +12 -12
  83. package/dist/{vue-ui-parallel-coordinate-plot-D6MUp-5W.cjs → vue-ui-parallel-coordinate-plot-Dgu-tY5L.cjs} +1 -1
  84. package/dist/{vue-ui-quadrant-Coqh0pYO.js → vue-ui-quadrant-D_e1Knsr.js} +12 -12
  85. package/dist/{vue-ui-quadrant-CArA4Vmm.cjs → vue-ui-quadrant-DkOZbxio.cjs} +1 -1
  86. package/dist/{vue-ui-quick-chart-6Av74TTC.cjs → vue-ui-quick-chart-Brzheuk8.cjs} +1 -1
  87. package/dist/{vue-ui-quick-chart-Bfdddr_B.js → vue-ui-quick-chart-CIm7vclU.js} +9 -9
  88. package/dist/{vue-ui-radar-BpdGMVHw.js → vue-ui-radar-Cx_w_viT.js} +12 -12
  89. package/dist/{vue-ui-radar-CLr-gu1X.cjs → vue-ui-radar-DoNZ8Qv9.cjs} +1 -1
  90. package/dist/{vue-ui-rating-KFJoH-JV.cjs → vue-ui-rating-B4zDVBEd.cjs} +1 -1
  91. package/dist/{vue-ui-rating-B-YedcK0.js → vue-ui-rating-NRP3A0oA.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-BLVThOqT.js → vue-ui-relation-circle-C4LKLsEz.js} +7 -7
  93. package/dist/{vue-ui-relation-circle-DuGQKFor.cjs → vue-ui-relation-circle-Cuk4LDJo.cjs} +1 -1
  94. package/dist/{vue-ui-rings-DzgehQZ5.cjs → vue-ui-rings-D6Rs1eq0.cjs} +1 -1
  95. package/dist/{vue-ui-rings-BGeYkj-O.js → vue-ui-rings-DXawhL1m.js} +11 -11
  96. package/dist/{vue-ui-scatter-CsBPCCco.js → vue-ui-scatter-8EzIXx2n.js} +12 -12
  97. package/dist/{vue-ui-scatter-jPnr8qI0.cjs → vue-ui-scatter-DlfZqYP9.cjs} +1 -1
  98. package/dist/{vue-ui-screenshot-1nXVH-hp.cjs → vue-ui-screenshot-Dt0UpXVm.cjs} +1 -1
  99. package/dist/{vue-ui-screenshot-B2FTnuxH.js → vue-ui-screenshot-Wwmw7VVM.js} +1 -1
  100. package/dist/{vue-ui-skeleton-CE6ibl1T.js → vue-ui-skeleton-D3AGluiW.js} +3 -3
  101. package/dist/{vue-ui-skeleton-CPwED1As.cjs → vue-ui-skeleton-Si57O3af.cjs} +1 -1
  102. package/dist/{vue-ui-smiley-2H9hMFZ_.js → vue-ui-smiley-CRddsfyu.js} +2 -2
  103. package/dist/{vue-ui-smiley-DqOZwhT4.cjs → vue-ui-smiley-UxTt4IMY.cjs} +1 -1
  104. package/dist/{vue-ui-spark-trend-Dx9xVq9a.js → vue-ui-spark-trend-Cgr4pAvU.js} +5 -5
  105. package/dist/{vue-ui-spark-trend-CLW85O32.cjs → vue-ui-spark-trend-tMuRiISe.cjs} +1 -1
  106. package/dist/{vue-ui-sparkbar-zafUIv1n.js → vue-ui-sparkbar-B6TEBbyt.js} +4 -4
  107. package/dist/{vue-ui-sparkbar-DJDXrRyp.cjs → vue-ui-sparkbar-BZVjpA5h.cjs} +1 -1
  108. package/dist/{vue-ui-sparkgauge-CPNAXUyl.cjs → vue-ui-sparkgauge-B9P3ngyj.cjs} +1 -1
  109. package/dist/{vue-ui-sparkgauge-CFAdhTLk.js → vue-ui-sparkgauge-P5fVXRT8.js} +4 -4
  110. package/dist/{vue-ui-sparkhistogram-CHc3_xRE.cjs → vue-ui-sparkhistogram-BSQsOim4.cjs} +1 -1
  111. package/dist/{vue-ui-sparkhistogram-B3DIjpaE.js → vue-ui-sparkhistogram-vlWx_CFP.js} +5 -5
  112. package/dist/{vue-ui-sparkline-U22Yhwy7.cjs → vue-ui-sparkline-5FsmrmmU.cjs} +1 -1
  113. package/dist/{vue-ui-sparkline-C-LE7J9H.js → vue-ui-sparkline-B1UrThV_.js} +4 -4
  114. package/dist/{vue-ui-sparkstackbar-BzLoGC-y.js → vue-ui-sparkstackbar-BzrHl4LW.js} +4 -4
  115. package/dist/{vue-ui-sparkstackbar-nx-Lt8sX.cjs → vue-ui-sparkstackbar-CEXgwtwV.cjs} +1 -1
  116. package/dist/{vue-ui-stackbar-BwgHLhj2.cjs → vue-ui-stackbar-BpFxY9uX.cjs} +1 -1
  117. package/dist/{vue-ui-stackbar-C5xNRXnW.js → vue-ui-stackbar-DhnCj5jR.js} +12 -12
  118. package/dist/{vue-ui-strip-plot-6khUDDeA.js → vue-ui-strip-plot-CutPMUb1.js} +11 -11
  119. package/dist/{vue-ui-strip-plot-BFUtZW4b.cjs → vue-ui-strip-plot-DnFquLCu.cjs} +1 -1
  120. package/dist/{vue-ui-table-B3Eng0fH.cjs → vue-ui-table-CUtRHuc4.cjs} +1 -1
  121. package/dist/{vue-ui-table-DsBM7Osw.js → vue-ui-table-Cx0eqrK_.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DwCdS68z.cjs → vue-ui-table-heatmap-DS2cSiGt.cjs} +1 -1
  123. package/dist/{vue-ui-table-heatmap-ccQKInFD.js → vue-ui-table-heatmap-DyGuk9kw.js} +4 -4
  124. package/dist/{vue-ui-table-sparkline-BU-hOCZ7.js → vue-ui-table-sparkline--Ekk_QoU.js} +5 -5
  125. package/dist/{vue-ui-table-sparkline-CDmrQFKv.cjs → vue-ui-table-sparkline-C1ril5t8.cjs} +1 -1
  126. package/dist/{vue-ui-thermometer-BhHYcxmT.cjs → vue-ui-thermometer-Dr6_S2Qz.cjs} +1 -1
  127. package/dist/{vue-ui-thermometer-DuI3uDCZ.js → vue-ui-thermometer-Dz_xaxCt.js} +7 -7
  128. package/dist/{vue-ui-timer-D7EKaAqa.cjs → vue-ui-timer-BkmRYrPn.cjs} +1 -1
  129. package/dist/{vue-ui-timer-Gk3bl_em.js → vue-ui-timer-DRdgSmMv.js} +5 -5
  130. package/dist/{vue-ui-tiremarks-UX2FbnyG.cjs → vue-ui-tiremarks-BwVRnR-c.cjs} +1 -1
  131. package/dist/{vue-ui-tiremarks-AcEjMpJH.js → vue-ui-tiremarks-XuaMScx0.js} +7 -7
  132. package/dist/{vue-ui-treemap-CFTpzgX5.js → vue-ui-treemap-D8HfM8ny.js} +11 -11
  133. package/dist/{vue-ui-treemap-D6CTMfsm.cjs → vue-ui-treemap-yUQZvXta.cjs} +1 -1
  134. package/dist/{vue-ui-vertical-bar-CuBJx5l1.js → vue-ui-vertical-bar-BcWnPMjH.js} +11 -11
  135. package/dist/{vue-ui-vertical-bar-BzY2H3UC.cjs → vue-ui-vertical-bar-DpaRYTVo.cjs} +1 -1
  136. package/dist/{vue-ui-waffle-rDfZLxvH.js → vue-ui-waffle-sLIM61xh.js} +11 -11
  137. package/dist/{vue-ui-waffle-CZxR13EG.cjs → vue-ui-waffle-uur49hDo.cjs} +1 -1
  138. package/dist/{vue-ui-wheel-BM-St3xT.cjs → vue-ui-wheel-CJBuFjJt.cjs} +1 -1
  139. package/dist/{vue-ui-wheel-BFt2o4yO.js → vue-ui-wheel-D3Pfhpbe.js} +7 -7
  140. package/dist/{vue-ui-word-cloud-pNPIrJ-g.js → vue-ui-word-cloud-DhC8SN1l.js} +10 -10
  141. package/dist/{vue-ui-word-cloud-DjKyKUbA.cjs → vue-ui-word-cloud-Dhz-n0_M.cjs} +1 -1
  142. package/dist/{vue-ui-xy-CBZUMMlP.cjs → vue-ui-xy-Cn-JnSRl.cjs} +1 -1
  143. package/dist/{vue-ui-xy-DwkEc4Np.js → vue-ui-xy-D7nWzSu1.js} +14 -14
  144. package/dist/{vue-ui-xy-canvas-DWGGLom_.cjs → vue-ui-xy-canvas-BI5nAbis.cjs} +1 -1
  145. package/dist/{vue-ui-xy-canvas-CW90CROL.js → vue-ui-xy-canvas-DWZRAtDJ.js} +11 -11
  146. package/package.json +1 -1
  147. package/dist/PenAndPaper-C-KjtyNA.js +0 -308
  148. package/dist/PenAndPaper-DyMNuRla.cjs +0 -1
  149. package/dist/Slicer-BLkkkNUl.cjs +0 -1
@@ -0,0 +1,347 @@
1
+ import { computed as I, ref as p, watch as Q, openBlock as k, createElementBlock as y, normalizeStyle as w, createElementVNode as $, createVNode as F, onMounted as Z, nextTick as ee, onBeforeUnmount as te, Fragment as R, normalizeClass as P, withDirectives as oe, vModelText as ne, createCommentVNode as U, unref as le, withModifiers as W, renderList as ae } from "vue";
2
+ import { F as re, l as se, X as ue } from "./index-Cn1EWnYG.js";
3
+ import z from "./BaseIcon-Icg3SIlH.js";
4
+ import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const ce = ["value"], ie = { class: "icon" }, de = {
6
+ __name: "ColorPicker",
7
+ props: {
8
+ value: {
9
+ type: String,
10
+ default: "#ffffff"
11
+ },
12
+ size: {
13
+ type: String,
14
+ default: "50px"
15
+ }
16
+ },
17
+ emits: ["update:value"],
18
+ setup(r, { emit: Y }) {
19
+ const v = r, f = I(() => ({
20
+ backgroundColor: v.value,
21
+ width: "100%",
22
+ height: "100%",
23
+ cursor: "pointer"
24
+ })), m = p(null), L = () => {
25
+ var u;
26
+ (u = m.value) == null || u.click();
27
+ }, x = (u) => {
28
+ const b = u.target.value;
29
+ Y("update:value", b);
30
+ }, C = I(() => re(v.value));
31
+ return Q(
32
+ () => v.value,
33
+ (u) => {
34
+ m.value.value = u;
35
+ }
36
+ ), (u, b) => (k(), y("div", {
37
+ style: w(f.value),
38
+ class: "color-picker-wrapper",
39
+ onClick: L
40
+ }, [
41
+ $("input", {
42
+ ref_key: "colorInput",
43
+ ref: m,
44
+ type: "color",
45
+ value: r.value,
46
+ class: "hidden-input",
47
+ onInput: x
48
+ }, null, 40, ce),
49
+ $("div", ie, [
50
+ F(z, {
51
+ name: "palette",
52
+ stroke: C.value,
53
+ size: 22
54
+ }, null, 8, ["stroke"])
55
+ ])
56
+ ], 4));
57
+ }
58
+ }, pe = /* @__PURE__ */ q(de, [["__scopeId", "data-v-d3f01240"]]), ve = {
59
+ class: /* @__PURE__ */ P({
60
+ "vue-ui-pen-and-paper-action": !0
61
+ }),
62
+ style: { padding: "0 !important" }
63
+ }, fe = ["disabled"], he = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], ge = ["cx", "cy", "r", "fill"], me = ["d", "stroke", "stroke-width"], ke = ["d", "stroke", "stroke-width"], ye = {
64
+ __name: "PenAndPaper",
65
+ props: {
66
+ parent: {
67
+ type: HTMLElement
68
+ },
69
+ backgroundColor: {
70
+ type: String,
71
+ default: "#FFFFFF"
72
+ },
73
+ color: {
74
+ type: String,
75
+ default: "#2D353C"
76
+ },
77
+ active: {
78
+ type: Boolean,
79
+ default: !1
80
+ }
81
+ },
82
+ emits: ["close"],
83
+ setup(r, { emit: Y }) {
84
+ const v = r, f = p([]), m = p([]), L = p("0 0 0 0"), x = p(v.color), C = p(1), u = I(() => se(v.color, 0.6));
85
+ function b({ width: o, height: t }) {
86
+ L.value = `0 0 ${o} ${t}`;
87
+ }
88
+ const N = p(null);
89
+ Z(() => {
90
+ ee(() => {
91
+ if (v.parent) {
92
+ N.value = new ResizeObserver((e) => {
93
+ for (const n of e) {
94
+ const { width: l, height: a } = n.contentRect;
95
+ b({ width: l, height: a });
96
+ }
97
+ }), N.value.observe(v.parent);
98
+ const { width: o, height: t } = v.parent.getBoundingClientRect();
99
+ b({ width: o, height: t });
100
+ }
101
+ });
102
+ }), te(() => {
103
+ N.value && N.value.disconnect();
104
+ }), Q(
105
+ () => v.parent,
106
+ (o) => {
107
+ if (!o) return;
108
+ const { width: t, height: e } = v.parent.getBoundingClientRect();
109
+ b({ width: t, height: e });
110
+ },
111
+ { immediate: !0 }
112
+ );
113
+ const M = p(!1), B = p(""), X = p(null);
114
+ function _(o) {
115
+ if (!X.value) return;
116
+ M.value = !0;
117
+ const { x: t, y: e } = V(o);
118
+ B.value = `M ${t} ${e}`;
119
+ }
120
+ function E(o) {
121
+ if (!M.value || !X.value) return;
122
+ const { x: t, y: e } = V(o);
123
+ B.value += ` ${t} ${e}`;
124
+ }
125
+ function A(o) {
126
+ const t = o.trim().split(/\s+/);
127
+ if (t.length < 4)
128
+ return o;
129
+ const e = t.slice(1).map(Number);
130
+ if (e.length % 2 !== 0)
131
+ return o;
132
+ const n = H(e), l = [`M ${n[0]} ${n[1]}`];
133
+ for (let c = 2; c < n.length - 2; c += 2) {
134
+ const h = n[c - 2], g = n[c - 1], i = n[c], d = n[c + 1], S = (h + i) / 2, T = (g + d) / 2;
135
+ l.push(`Q ${h} ${g} ${S} ${T}`);
136
+ }
137
+ const a = n[n.length - 2], s = n[n.length - 1];
138
+ return l.push(`L ${a} ${s}`), l.join(" ");
139
+ }
140
+ function H(o, t = 1) {
141
+ const e = [...o];
142
+ for (let n = 2; n < o.length - 2; n += 2) {
143
+ const l = o[n], a = o[n + 1], s = o[n - 2], c = o[n - 1], h = o[n + 2], g = o[n + 3];
144
+ e[n] = l + t * ((s + h) / 2 - l), e[n + 1] = a + t * ((c + g) / 2 - a);
145
+ }
146
+ return e;
147
+ }
148
+ function O(o) {
149
+ const t = o.trim().split(/\s+/);
150
+ let e = "", n = "", l = null, a = null;
151
+ for (let s = 0; s < t.length; s += 1) {
152
+ const c = t[s];
153
+ if (isNaN(c)) {
154
+ if (n = c, n === "M" || n === "L")
155
+ l = parseFloat(t[++s]), a = parseFloat(t[++s]), e += `${n}${l} ${a}`;
156
+ else if (n === "Q") {
157
+ const h = parseFloat(t[++s]), g = parseFloat(t[++s]), i = parseFloat(t[++s]), d = parseFloat(t[++s]);
158
+ h === l && g === a ? e += `t${i - l} ${d - a}` : e += `q${h - l} ${g - a} ${i - l} ${d - a}`, l = i, a = d;
159
+ }
160
+ } else {
161
+ const h = parseFloat(c), g = parseFloat(t[++s]);
162
+ if (n === "L") {
163
+ const i = h - l, d = g - a;
164
+ i === 0 ? e += `v${d}` : d === 0 ? e += `h${i}` : e += `l${i} ${d}`, l = h, a = g;
165
+ } else if (n === "Q") {
166
+ const i = h, d = g, S = parseFloat(t[++s]), T = parseFloat(t[++s]);
167
+ i === l && d === a ? e += `t${S - l} ${T - a}` : e += `q${i - l} ${d - a} ${S - l} ${T - a}`, l = S, a = T;
168
+ }
169
+ }
170
+ }
171
+ return e;
172
+ }
173
+ function D() {
174
+ M.value && (f.value.push({
175
+ strokeWidth: C.value,
176
+ path: O(A(B.value)),
177
+ color: x.value
178
+ }), m.value = [], B.value = ""), M.value = !1;
179
+ }
180
+ function V(o) {
181
+ if (!X.value) return { x: 0, y: 0 };
182
+ const t = X.value.getBoundingClientRect();
183
+ let e, n;
184
+ return o.touches && o.touches.length ? (e = o.touches[0].clientX, n = o.touches[0].clientY) : (e = o.clientX, n = o.clientY), {
185
+ x: e - t.left,
186
+ y: n - t.top
187
+ };
188
+ }
189
+ p(!1);
190
+ function j() {
191
+ if (f.value.length > 0) {
192
+ const o = f.value.pop();
193
+ m.value.push(o);
194
+ }
195
+ }
196
+ function G() {
197
+ if (m.value.length > 0) {
198
+ const o = m.value.pop();
199
+ f.value.push(o);
200
+ }
201
+ }
202
+ function J() {
203
+ f.value = [], m.value = [];
204
+ }
205
+ const K = p(null);
206
+ return (o, t) => (k(), y(R, null, [
207
+ r.active ? (k(), y("div", {
208
+ key: 0,
209
+ "data-html2canvas-ignore": "",
210
+ class: P({
211
+ "vue-ui-pen-and-paper-actions": !0,
212
+ visible: r.active
213
+ })
214
+ }, [
215
+ $("button", {
216
+ class: "vue-ui-pen-and-paper-action",
217
+ style: w({
218
+ backgroundColor: r.backgroundColor,
219
+ border: `1px solid ${u.value}`
220
+ }),
221
+ onClick: t[0] || (t[0] = (e) => Y("close"))
222
+ }, [
223
+ F(z, {
224
+ name: "close",
225
+ stroke: r.color
226
+ }, null, 8, ["stroke"])
227
+ ], 4),
228
+ $("button", ve, [
229
+ F(pe, {
230
+ value: x.value,
231
+ "onUpdate:value": t[1] || (t[1] = (e) => x.value = e)
232
+ }, null, 8, ["value"])
233
+ ]),
234
+ $("button", {
235
+ class: P({
236
+ "vue-ui-pen-and-paper-action": !0,
237
+ "vue-ui-pen-and-paper-action-disabled": !f.value.length
238
+ }),
239
+ disabled: !f.value.length,
240
+ style: w({
241
+ backgroundColor: r.backgroundColor,
242
+ border: `1px solid ${u.value}`
243
+ }),
244
+ onClick: j
245
+ }, [
246
+ F(z, {
247
+ name: "restart",
248
+ stroke: r.color
249
+ }, null, 8, ["stroke"])
250
+ ], 14, fe),
251
+ $("button", {
252
+ class: P({
253
+ "vue-ui-pen-and-paper-action": !0,
254
+ "vue-ui-pen-and-paper-action-disabled": !m.value.length
255
+ }),
256
+ style: w({
257
+ backgroundColor: r.backgroundColor,
258
+ border: `1px solid ${u.value}`
259
+ }),
260
+ onClick: G
261
+ }, [
262
+ F(z, {
263
+ name: "restart",
264
+ stroke: r.color,
265
+ style: { transform: "scaleX(-1)" }
266
+ }, null, 8, ["stroke"])
267
+ ], 6),
268
+ $("button", {
269
+ class: P([{
270
+ "vue-ui-pen-and-paper-action": !0,
271
+ "vue-ui-pen-and-paper-action-disabled": !f.value.length
272
+ }, "vue-ui-pen-and-paper-action"]),
273
+ style: w({
274
+ backgroundColor: r.backgroundColor,
275
+ border: `1px solid ${u.value}`
276
+ }),
277
+ onClick: J
278
+ }, [
279
+ F(z, {
280
+ name: "trash",
281
+ stroke: r.color
282
+ }, null, 8, ["stroke"])
283
+ ], 6),
284
+ oe($("input", {
285
+ ref_key: "range",
286
+ ref: K,
287
+ type: "range",
288
+ class: "vertical-range",
289
+ min: 0.5,
290
+ max: 12,
291
+ step: 0.1,
292
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => C.value = e),
293
+ style: w({
294
+ accentColor: r.color
295
+ })
296
+ }, null, 4), [
297
+ [ne, C.value]
298
+ ])
299
+ ], 2)) : U("", !0),
300
+ (k(), y("svg", {
301
+ ref_key: "svgElement",
302
+ ref: X,
303
+ xmlns: le(ue),
304
+ viewBox: L.value,
305
+ class: P({
306
+ "vue-ui-pen-and-paper": !0,
307
+ inactive: !r.active
308
+ }),
309
+ onMousedown: _,
310
+ onMousemove: E,
311
+ onMouseup: D,
312
+ onMouseleave: D,
313
+ onTouchstart: W(_, ["prevent"]),
314
+ onTouchmove: W(E, ["prevent"]),
315
+ onTouchend: D
316
+ }, [
317
+ (k(!0), y(R, null, ae(f.value, (e) => (k(), y(R, { key: e }, [
318
+ e.path.replace("M", "").split(" ").length === 2 ? (k(), y("circle", {
319
+ key: 0,
320
+ cx: e.path.replace("M", "").split(" ")[0],
321
+ cy: e.path.replace("M", "").split(" ")[1],
322
+ r: e.strokeWidth / 2,
323
+ fill: e.color
324
+ }, null, 8, ge)) : (k(), y("path", {
325
+ key: 1,
326
+ class: "vue-ui-pen-and-paper-path",
327
+ d: e.path,
328
+ stroke: e.color,
329
+ "stroke-width": e.strokeWidth,
330
+ fill: "none"
331
+ }, null, 8, me))
332
+ ], 64))), 128)),
333
+ M.value ? (k(), y("path", {
334
+ key: 0,
335
+ class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
336
+ d: B.value,
337
+ stroke: x.value,
338
+ "stroke-width": C.value * 1.1,
339
+ fill: "none"
340
+ }, null, 8, ke)) : U("", !0)
341
+ ], 42, he))
342
+ ], 64));
343
+ }
344
+ }, we = /* @__PURE__ */ q(ye, [["__scopeId", "data-v-53209a48"]]);
345
+ export {
346
+ we as P
347
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),P=require("./index-Ci5MafHS.cjs"),N=require("./BaseIcon-C31iTAGj.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=["value"],W={class:"icon"},A={__name:"ColorPicker",props:{value:{type:String,default:"#ffffff"},size:{type:String,default:"50px"}},emits:["update:value"],setup(c,{emit:z}){const v=c,f=e.computed(()=>({backgroundColor:v.value,width:"100%",height:"100%",cursor:"pointer"})),k=e.ref(null),E=()=>{var u;(u=k.value)==null||u.click()},g=u=>{const $=u.target.value;z("update:value",$)},y=e.computed(()=>P.adaptColorToBackground(v.value));return e.watch(()=>v.value,u=>{k.value.value=u}),(u,$)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(f.value),class:"color-picker-wrapper",onClick:E},[e.createElementVNode("input",{ref_key:"colorInput",ref:k,type:"color",value:c.value,class:"hidden-input",onInput:g},null,40,U),e.createElementVNode("div",W,[e.createVNode(N.default,{name:"palette",stroke:y.value,size:22},null,8,["stroke"])])],4))}},H=T._export_sfc(A,[["__scopeId","data-v-d3f01240"]]),Q={class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},O=["disabled"],j=["xmlns","viewBox","onTouchstart","onTouchmove"],G=["cx","cy","r","fill"],J=["d","stroke","stroke-width"],K=["d","stroke","stroke-width"],Z={__name:"PenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(c,{emit:z}){const v=c,f=e.ref([]),k=e.ref([]),E=e.ref("0 0 0 0"),g=e.ref(v.color),y=e.ref(1),u=e.computed(()=>P.lightenHexColor(v.color,.6));function $({width:n,height:o}){E.value=`0 0 ${n} ${o}`}const V=e.ref(null);e.onMounted(()=>{e.nextTick(()=>{if(v.parent){V.value=new ResizeObserver(t=>{for(const l of t){const{width:r,height:a}=l.contentRect;$({width:r,height:a})}}),V.value.observe(v.parent);const{width:n,height:o}=v.parent.getBoundingClientRect();$({width:n,height:o})}})}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()}),e.watch(()=>v.parent,n=>{if(!n)return;const{width:o,height:t}=v.parent.getBoundingClientRect();$({width:o,height:t})},{immediate:!0});const C=e.ref(!1),x=e.ref(""),b=e.ref(null);function M(n){if(!b.value)return;C.value=!0;const{x:o,y:t}=X(n);x.value=`M ${o} ${t}`}function S(n){if(!C.value||!b.value)return;const{x:o,y:t}=X(n);x.value+=` ${o} ${t}`}function _(n){const o=n.trim().split(/\s+/);if(o.length<4)return n;const t=o.slice(1).map(Number);if(t.length%2!==0)return n;const l=L(t),r=[`M ${l[0]} ${l[1]}`];for(let i=2;i<l.length-2;i+=2){const m=l[i-2],h=l[i-1],d=l[i],p=l[i+1],B=(m+d)/2,w=(h+p)/2;r.push(`Q ${m} ${h} ${B} ${w}`)}const a=l[l.length-2],s=l[l.length-1];return r.push(`L ${a} ${s}`),r.join(" ")}function L(n,o=1){const t=[...n];for(let l=2;l<n.length-2;l+=2){const r=n[l],a=n[l+1],s=n[l-2],i=n[l-1],m=n[l+2],h=n[l+3];t[l]=r+o*((s+m)/2-r),t[l+1]=a+o*((i+h)/2-a)}return t}function Y(n){const o=n.trim().split(/\s+/);let t="",l="",r=null,a=null;for(let s=0;s<o.length;s+=1){const i=o[s];if(isNaN(i)){if(l=i,l==="M"||l==="L")r=parseFloat(o[++s]),a=parseFloat(o[++s]),t+=`${l}${r} ${a}`;else if(l==="Q"){const m=parseFloat(o[++s]),h=parseFloat(o[++s]),d=parseFloat(o[++s]),p=parseFloat(o[++s]);m===r&&h===a?t+=`t${d-r} ${p-a}`:t+=`q${m-r} ${h-a} ${d-r} ${p-a}`,r=d,a=p}}else{const m=parseFloat(i),h=parseFloat(o[++s]);if(l==="L"){const d=m-r,p=h-a;d===0?t+=`v${p}`:p===0?t+=`h${d}`:t+=`l${d} ${p}`,r=m,a=h}else if(l==="Q"){const d=m,p=h,B=parseFloat(o[++s]),w=parseFloat(o[++s]);d===r&&p===a?t+=`t${B-r} ${w-a}`:t+=`q${d-r} ${p-a} ${B-r} ${w-a}`,r=B,a=w}}}return t}function F(){C.value&&(f.value.push({strokeWidth:y.value,path:Y(_(x.value)),color:g.value}),k.value=[],x.value=""),C.value=!1}function X(n){if(!b.value)return{x:0,y:0};const o=b.value.getBoundingClientRect();let t,l;return n.touches&&n.touches.length?(t=n.touches[0].clientX,l=n.touches[0].clientY):(t=n.clientX,l=n.clientY),{x:t-o.left,y:l-o.top}}e.ref(!1);function D(){if(f.value.length>0){const n=f.value.pop();k.value.push(n)}}function R(){if(k.value.length>0){const n=k.value.pop();f.value.push(n)}}function q(){f.value=[],k.value=[]}const I=e.ref(null);return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.active?(e.openBlock(),e.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:e.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:c.active})},[e.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:o[0]||(o[0]=t=>z("close"))},[e.createVNode(N.default,{name:"close",stroke:c.color},null,8,["stroke"])],4),e.createElementVNode("button",Q,[e.createVNode(H,{value:g.value,"onUpdate:value":o[1]||(o[1]=t=>g.value=t)},null,8,["value"])]),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!f.value.length}),disabled:!f.value.length,style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:D},[e.createVNode(N.default,{name:"restart",stroke:c.color},null,8,["stroke"])],14,O),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!k.value.length}),style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:R},[e.createVNode(N.default,{name:"restart",stroke:c.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),e.createElementVNode("button",{class:e.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!f.value.length},"vue-ui-pen-and-paper-action"]),style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:q},[e.createVNode(N.default,{name:"trash",stroke:c.color},null,8,["stroke"])],6),e.withDirectives(e.createElementVNode("input",{ref_key:"range",ref:I,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":o[2]||(o[2]=t=>y.value=t),style:e.normalizeStyle({accentColor:c.color})},null,4),[[e.vModelText,y.value]])],2)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgElement",ref:b,xmlns:e.unref(P.XMLNS),viewBox:E.value,class:e.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!c.active}),onMousedown:M,onMousemove:S,onMouseup:F,onMouseleave:F,onTouchstart:e.withModifiers(M,["prevent"]),onTouchmove:e.withModifiers(S,["prevent"]),onTouchend:F},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t.path.replace("M","").split(" ").length===2?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.path.replace("M","").split(" ")[0],cy:t.path.replace("M","").split(" ")[1],r:t.strokeWidth/2,fill:t.color},null,8,G)):(e.openBlock(),e.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:t.path,stroke:t.color,"stroke-width":t.strokeWidth,fill:"none"},null,8,J))],64))),128)),C.value?(e.openBlock(),e.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:x.value,stroke:g.value,"stroke-width":y.value*1.1,fill:"none"},null,8,K)):e.createCommentVNode("",!0)],42,j))],64))}},ee=T._export_sfc(Z,[["__scopeId","data-v-53209a48"]]);exports.PenAndPaper=ee;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),a=require("./index-C9HllqQA.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__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:r}){const t=n;function d(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 s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
1
+ "use strict";const e=require("vue"),a=require("./index-Ci5MafHS.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__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:r}){const t=n;function d(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 s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
@@ -1,5 +1,5 @@
1
1
  import { computed as u, openBlock as l, createElementBlock as i, createCommentVNode as a } from "vue";
2
- import { U as p, O as f } from "./index-C1GB0E49.js";
2
+ import { U as p, O as f } from "./index-Cn1EWnYG.js";
3
3
  const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], c = ["d", "fill", "stroke", "stroke-width"], g = ["points", "fill", "stroke", "stroke-width"], $ = {
4
4
  __name: "Shape",
5
5
  props: {