vue-data-ui 3.25.0 → 3.25.2

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 (178) hide show
  1. package/dist/{Arrow-cWEoIMbe.js → Arrow-CL6s6WpN.js} +1 -1
  2. package/dist/{BaseDraggableDialog-obpncsqR.js → BaseDraggableDialog-Cwj9aGdF.js} +2 -2
  3. package/dist/{BaseIcon-Dmgd8MfJ.js → BaseIcon-Oj70ytWI.js} +1 -1
  4. package/dist/{BaseLegendToggle-Dj1a_tSb.js → BaseLegendToggle-Cvuc-Mrr.js} +1 -1
  5. package/dist/{BaseZoomControls-CdYm4Qh4.js → BaseZoomControls-xstFfEqA.js} +2 -2
  6. package/dist/{ColorPicker-B93_eq_J.js → ColorPicker-sZV-tVqO.js} +2 -2
  7. package/dist/{DataTable-D6vq6n14.js → DataTable-DcDMoMmQ.js} +2 -2
  8. package/dist/{HillActions-D0OMo0PZ.js → HillActions-BGA3Up35.js} +1 -1
  9. package/dist/{Legend-Du6YK6gu.js → Legend-BQxAKh7g.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DbwjIxnE.js → NonSvgPenAndPaper-1xl1Xynb.js} +3 -3
  11. package/dist/{PackageVersion-CU9Hflo-.js → PackageVersion-DWq6mo_q.js} +1 -1
  12. package/dist/PenAndPaper-Co2OSRzH.js +890 -0
  13. package/dist/{Shape-Dqpgbk7w.js → Shape-26P9pTZH.js} +1 -1
  14. package/dist/{SlicerPreview-BSjcCjhA.js → SlicerPreview-CPhQI1vX.js} +2 -2
  15. package/dist/{SparkTooltip-Da4O7iOD.js → SparkTooltip-CQDq9mwg.js} +1 -1
  16. package/dist/{Title-y2KUSK-I.js → Title-BLrnZl5j.js} +1 -1
  17. package/dist/{Tooltip-CLpW5URN.js → Tooltip-CmmM0DtW.js} +1 -1
  18. package/dist/{UserOptions-3Qr8es3g.js → UserOptions-pq95M7ss.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-CQUIoewh.js → dom-to-png-C2hxsVHU.js} +1 -1
  91. package/dist/{exposedLib-4fR8MXNd.js → exposedLib-CHbGXzAI.js} +1 -1
  92. package/dist/{img-D3Ck2d_T.js → img-EYBQVkRw.js} +1 -1
  93. package/dist/{labelUtils-CJ6EaaYo.js → labelUtils-Ba5vMXV8.js} +1 -1
  94. package/dist/{lib-DurLxjMz.js → lib-BPg41jWd.js} +6 -1
  95. package/dist/{package-CawqE4gj.js → package-ciWqdXC5.js} +1 -1
  96. package/dist/{pdf-2aQfvzB9.js → pdf-BoZtb_Ft.js} +1 -1
  97. package/dist/{render-common-DrbN2WgW.js → render-common-BEWzwi32.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-B3XMQAL1.js → useNestedProp-fNUUtYXm.js} +1 -1
  103. package/dist/{usePrinter-D53IAxB2.js → usePrinter-CsDAx75S.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-DHA6rnQ7.js → vue-data-ui-BHRh3z_-.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/{vue-ui-3d-bar-B3bLF2Fp.js → vue-ui-3d-bar-DUbSp0so.js} +6 -6
  108. package/dist/{vue-ui-accordion-D2W-dY3E.js → vue-ui-accordion-BGxpEtfk.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CvRi9Web.js → vue-ui-age-pyramid-CYHqR2NK.js} +6 -6
  110. package/dist/{vue-ui-annotator-BTozB0Fb.js → vue-ui-annotator-Q5zC15Pp.js} +6 -6
  111. package/dist/{vue-ui-bullet-BbCPpZ5k.js → vue-ui-bullet-DOF7UCo_.js} +7 -7
  112. package/dist/{vue-ui-bump-FZIoCybJ.js → vue-ui-bump-DkntyN9G.js} +6 -6
  113. package/dist/{vue-ui-candlestick-IlS8zO5O.js → vue-ui-candlestick-Cz0s9M9a.js} +7 -7
  114. package/dist/{vue-ui-carousel-table-DokjHbNr.js → vue-ui-carousel-table-f3ddW3LA.js} +4 -4
  115. package/dist/{vue-ui-chestnut-DoUFUSVm.js → vue-ui-chestnut-iwScoeK0.js} +5 -5
  116. package/dist/{vue-ui-chord-6t-7dxVu.js → vue-ui-chord-Bl_91Sut.js} +8 -8
  117. package/dist/{vue-ui-circle-pack-CexF2pcc.js → vue-ui-circle-pack-Dm9BU5Kl.js} +6 -6
  118. package/dist/{vue-ui-cursor-YbgOW5z6.js → vue-ui-cursor-D_bkWVNS.js} +3 -3
  119. package/dist/{vue-ui-dag-B4RKzj4H.js → vue-ui-dag-CF4YxXqU.js} +7 -7
  120. package/dist/{vue-ui-dashboard-BUXA_h5X.js → vue-ui-dashboard-Bwhlqoe4.js} +69 -69
  121. package/dist/{vue-ui-digits-C4eNwkQW.js → vue-ui-digits-CXM0xSi6.js} +3 -3
  122. package/dist/{vue-ui-donut-DBhaQARJ.js → vue-ui-donut-BfehCl28.js} +10 -10
  123. package/dist/{vue-ui-donut-BS9ICnxW.js → vue-ui-donut-DEn7HF5c.js} +2 -2
  124. package/dist/{vue-ui-donut-evolution-B0v3uJNo.js → vue-ui-donut-evolution-Z7fpl7Zf.js} +9 -9
  125. package/dist/{vue-ui-dumbbell-Dj-FFcXl.js → vue-ui-dumbbell-BEFPs0t1.js} +7 -7
  126. package/dist/{vue-ui-flow-CGjXnUTR.js → vue-ui-flow-DAId7lkh.js} +7 -7
  127. package/dist/{vue-ui-funnel-B8qoKSY6.js → vue-ui-funnel-D6Hvhb_C.js} +6 -6
  128. package/dist/{vue-ui-galaxy-BOqqpg7g.js → vue-ui-galaxy-So95hmON.js} +9 -9
  129. package/dist/{vue-ui-gauge-C6gbloYZ.js → vue-ui-gauge-Cs96ssGw.js} +6 -6
  130. package/dist/{vue-ui-geo-BMRhXP7L.js → vue-ui-geo-MTJoJ3_A.js} +7 -7
  131. package/dist/{vue-ui-gizmo-DjnW3oDO.js → vue-ui-gizmo-D9tbjzYe.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DyxHJCSO.js → vue-ui-heatmap-DRdQFkV_.js} +7 -7
  133. package/dist/{vue-ui-hill-C4osOxU0.js → vue-ui-hill-CdtIsBTO.js} +6 -6
  134. package/dist/{vue-ui-history-plot-Cwi7sVNg.js → vue-ui-history-plot-BaVZe6Fy.js} +8 -8
  135. package/dist/{vue-ui-horizontal-bar-CrgP4Bm8.js → vue-ui-horizontal-bar-DETeVTOn.js} +10 -10
  136. package/dist/{vue-ui-kpi-is2_nVkE.js → vue-ui-kpi-DHDy4LcL.js} +3 -3
  137. package/dist/{vue-ui-label-BbX73tEX.js → vue-ui-label-Bm5iMSie.js} +3 -3
  138. package/dist/{vue-ui-mini-loader-DntLxOr0.js → vue-ui-mini-loader-EK0wtL10.js} +2 -2
  139. package/dist/{vue-ui-molecule-CIY3r7HA.js → vue-ui-molecule-Dt31r51l.js} +5 -5
  140. package/dist/{vue-ui-mood-radar-CezYlJmD.js → vue-ui-mood-radar-CTiFn6bj.js} +7 -7
  141. package/dist/{vue-ui-nested-donuts-CF7YdoRx.js → vue-ui-nested-donuts-DKzeriUP.js} +9 -9
  142. package/dist/{vue-ui-onion-Chk8CzSw.js → vue-ui-onion-C3ZiE1dn.js} +9 -9
  143. package/dist/{vue-ui-parallel-coordinate-plot-hKkob-cX.js → vue-ui-parallel-coordinate-plot-D1xAQ_qP.js} +9 -9
  144. package/dist/{vue-ui-quadrant-B3Wy4REJ.js → vue-ui-quadrant-B82S1-8b.js} +9 -9
  145. package/dist/{vue-ui-quick-chart-rUvFKRs1.js → vue-ui-quick-chart-BeIZ2KVy.js} +7 -7
  146. package/dist/{vue-ui-radar-DA5EnHNt.js → vue-ui-radar-Bh7LKVWz.js} +8 -8
  147. package/dist/{vue-ui-rating-DglGQ_DQ.js → vue-ui-rating-AbGGnd-1.js} +2 -2
  148. package/dist/{vue-ui-relation-circle-ta7aeXOK.js → vue-ui-relation-circle-4ZeUHCx_.js} +6 -6
  149. package/dist/{vue-ui-ridgeline-BDqNGJ20.js → vue-ui-ridgeline-BmmcBvtt.js} +9 -9
  150. package/dist/{vue-ui-rings-BbSBLvb4.js → vue-ui-rings-Bx3lTcrM.js} +10 -10
  151. package/dist/{vue-ui-scatter-DwgFHsYb.js → vue-ui-scatter-Vw4JbCjp.js} +9 -9
  152. package/dist/{vue-ui-skeleton-UP0Bv65Q.js → vue-ui-skeleton-GSfVAGm5.js} +3 -3
  153. package/dist/{vue-ui-smiley-CmN35dmK.js → vue-ui-smiley-CVQ85iFx.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BHC8GKeh.js → vue-ui-spark-trend-BVS__UWD.js} +3 -3
  155. package/dist/{vue-ui-sparkbar-DG5Lx7L_.js → vue-ui-sparkbar-C-xEaUvd.js} +3 -3
  156. package/dist/{vue-ui-sparkgauge-Budj4a8D.js → vue-ui-sparkgauge-_XSE8M-e.js} +3 -3
  157. package/dist/{vue-ui-sparkhistogram-EF6l_8DB.js → vue-ui-sparkhistogram-DUM6ygCM.js} +4 -4
  158. package/dist/{vue-ui-sparkline-Bt3WUBs7.js → vue-ui-sparkline-Dg9fXwZG.js} +3 -3
  159. package/dist/{vue-ui-sparkstackbar-zcc269TN.js → vue-ui-sparkstackbar-8-iyImVK.js} +4 -4
  160. package/dist/{vue-ui-stackbar-RFBCfoIt.js → vue-ui-stackbar-zl-GieBs.js} +10 -10
  161. package/dist/{vue-ui-stackline-B2cHovb4.js → vue-ui-stackline-HcXMSuwS.js} +10 -10
  162. package/dist/{vue-ui-strip-plot-Cu-cVKCS.js → vue-ui-strip-plot-B_q_YQiP.js} +7 -7
  163. package/dist/{vue-ui-table-BukgLZ8K.js → vue-ui-table-CftOhYTO.js} +5 -5
  164. package/dist/{vue-ui-table-heatmap-y9oWnS6t.js → vue-ui-table-heatmap-DgFFlNnz.js} +5 -5
  165. package/dist/{vue-ui-table-sparkline-B4V_s9rK.js → vue-ui-table-sparkline-BsVOuCvB.js} +4 -4
  166. package/dist/{vue-ui-thermometer-CqVDnPmF.js → vue-ui-thermometer-DOECuI2_.js} +6 -6
  167. package/dist/{vue-ui-timer-D2pn3RWL.js → vue-ui-timer-B2Cd2bc6.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-BMIIhkaB.js → vue-ui-tiremarks-CrnFAVS8.js} +6 -6
  169. package/dist/{vue-ui-treemap-fFJPPf8-.js → vue-ui-treemap-DHZ6BvAc.js} +9 -9
  170. package/dist/{vue-ui-waffle-B9TaBdel.js → vue-ui-waffle-Ca4QSb5z.js} +10 -10
  171. package/dist/{vue-ui-wheel-BN-YBzNj.js → vue-ui-wheel-7U-O7-xN.js} +6 -6
  172. package/dist/{vue-ui-word-cloud-CZzUlZBc.js → vue-ui-word-cloud-CVsvKOiI.js} +7 -7
  173. package/dist/{vue-ui-world-C--4pHTs.js → vue-ui-world-B9VGieBA.js} +7 -7
  174. package/dist/{vue-ui-xy-16TcfetH.js → vue-ui-xy-CNy0avUa.js} +2 -2
  175. package/dist/{vue-ui-xy-canvas-BzbNRbft.js → vue-ui-xy-canvas-B9kzEFnY.js} +11 -11
  176. package/dist/{vue-ui-xy-BTh5QolL.js → vue-ui-xy-chRPjTTj.js} +10 -10
  177. package/package.json +1 -1
  178. package/dist/PenAndPaper-CD5tlFYh.js +0 -571
@@ -1,571 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, X as n, q as r, t as i } from "./lib-DurLxjMz.js";
3
- import { t as a } from "./BaseIcon-Dmgd8MfJ.js";
4
- import { t as o } from "./ColorPicker-B93_eq_J.js";
5
- import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, guardReactiveProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as ne, ref as _, renderSlot as v, toDisplayString as re, unref as ie, vModelText as ae, watch as y, withCtx as oe, withDirectives as se } from "vue";
6
- //#region src/atoms/PenAndPaper.vue
7
- var ce = /* @__PURE__ */ e({ default: () => b }), le = {
8
- "aria-hidden": "true",
9
- viewBox: "0 0 6 12",
10
- style: { width: "100%" }
11
- }, ue = ["fill"], de = ["fill"], fe = ["fill"], pe = ["disabled"], b = {
12
- __name: "PenAndPaper",
13
- props: {
14
- svgRef: {
15
- type: [
16
- Object,
17
- null,
18
- void 0
19
- ],
20
- required: !0
21
- },
22
- color: {
23
- type: String,
24
- default: "#2D353C"
25
- },
26
- backgroundColor: {
27
- type: String,
28
- default: "#FFFFFF"
29
- },
30
- active: {
31
- type: Boolean,
32
- default: !1
33
- },
34
- scale: {
35
- type: Number,
36
- default: 1
37
- },
38
- isCursorPointer: {
39
- type: Boolean,
40
- default: !1
41
- }
42
- },
43
- emits: ["close"],
44
- setup(e, { emit: ce }) {
45
- let b = e, me = ce, x = _([]), S = _([]), C = _(b.color), w = _(2), T = _(!1), he = _(""), E = _(null), D = _(null), O = _(null), k = _(null), ge = /* @__PURE__ */ new Map(), _e = _(`arrow-def-${r()}`), A = _(!1), j = _(null), ve = _({
46
- x: 0,
47
- y: 0
48
- }), M = _([""]), N = _({
49
- row: 0,
50
- col: 0
51
- }), P = _(16), F = _(!1), ye = [
52
- "arrow",
53
- "text",
54
- "line",
55
- "draw"
56
- ], I = _(0), L = s(() => ye[I.value]), be = {
57
- arrow: "plotArrow",
58
- text: "text",
59
- line: "plotLine",
60
- draw: "annotator"
61
- }, xe = _("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
62
- function Se() {
63
- I.value + 1 >= ye.length ? I.value = 0 : I.value += 1;
64
- }
65
- function R(e) {
66
- if (!E.value || L.value !== "text" || A.value) return;
67
- let { x: t, y: n } = H(e);
68
- ve.value = {
69
- x: t,
70
- y: n
71
- }, M.value = [""], N.value = {
72
- row: 0,
73
- col: 0
74
- }, F.value = !1;
75
- let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
76
- r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", C.value), r.setAttribute("font-size", P.value * b.scale), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
77
- let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
78
- i.setAttribute("x", t), i.setAttribute("dy", "0"), i.setAttribute("dominant-baseline", "hanging"), i.textContent = "", r.appendChild(i), r.style.pointerEvents = "none", r.style.userSelect = "none", E.value.appendChild(r), j.value = r, A.value = !0, window.addEventListener("keydown", Ce), window.addEventListener("mousedown", De, !0), we(), Ee();
79
- }
80
- function Ce(e) {
81
- if (!A.value) return;
82
- let { row: t, col: n } = N.value, r = M.value.slice(), i = !1;
83
- if (e.key === "Enter") {
84
- let a = r[t], o = a.slice(0, n), s = a.slice(n);
85
- r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
86
- } else if (e.key === "Backspace") {
87
- if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
88
- else if (t > 0) {
89
- let e = r[t - 1].length;
90
- r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
91
- }
92
- e.preventDefault();
93
- } else if (e.key === "Delete") n < r[t].length ? (r[t] = r[t].slice(0, n) + r[t].slice(n + 1), i = !0) : t < r.length - 1 && (r[t] += r[t + 1], r.splice(t + 1, 1), i = !0), e.preventDefault();
94
- else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
95
- else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
96
- else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
97
- else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
98
- else if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) r[t] = r[t].slice(0, n) + e.key + r[t].slice(n), n += 1, i = !0, e.preventDefault();
99
- else if (e.key === "Escape") {
100
- Oe(!0);
101
- return;
102
- } else e.key === "Tab" && e.preventDefault();
103
- i && (M.value = r, N.value = {
104
- row: t,
105
- col: n
106
- }, r.some((e) => e.length > 0) && !F.value && j.value && (x.value.push(j.value), S.value = [], F.value = !0), we(), Ee());
107
- }
108
- function we() {
109
- let e = j.value, { x: t } = ve.value;
110
- for (; e.firstChild;) e.removeChild(e.firstChild);
111
- M.value.forEach((n, r) => {
112
- let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
113
- i.setAttribute("x", t), i.setAttribute("dominant-baseline", "hanging"), i.setAttribute("dy", r === 0 ? "0" : `${P.value * 1.2 * b.scale}`), i.textContent = n.length ? n : "​", e.appendChild(i);
114
- });
115
- }
116
- let z = _(null);
117
- function B() {
118
- z.value !== null && (clearInterval(z.value), z.value = null);
119
- }
120
- function Te(e) {
121
- B();
122
- let t = !0;
123
- e.style.opacity = "1", z.value = setInterval(() => {
124
- if (!E.value || !e || !E.value.contains(e)) {
125
- B();
126
- return;
127
- }
128
- t = !t, e.style.opacity = t ? "1" : "0";
129
- }, 500);
130
- }
131
- function Ee() {
132
- let e = E.value?.querySelector(".vue-data-ui-svg-caret");
133
- e && E.value && E.value.removeChild(e);
134
- let t = j.value;
135
- if (!t || !E.value) return;
136
- let { x: n, y: r } = ve.value, { row: i, col: a } = N.value, o = P.value * b.scale, s = t.childNodes[i];
137
- if (!s) return;
138
- let c = s.textContent.slice(0, a);
139
- c.endsWith(" ") && (c += "\xA0");
140
- let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
141
- l.setAttribute("x", n), l.setAttribute("y", r), l.setAttribute("font-size", o), l.setAttribute("font-family", "sans-serif"), l.textContent = c || "", E.value.appendChild(l);
142
- let u = l.getBBox();
143
- E.value.removeChild(l);
144
- let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
145
- p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("rx", 1), p.setAttribute("width", 2), p.setAttribute("height", o), p.setAttribute("fill", C.value), p.setAttribute("class", "vue-data-ui-svg-caret"), E.value.appendChild(p), Te(p);
146
- }
147
- function De(e) {
148
- if (j.value && !j.value.contains(e.target)) {
149
- let e = j.value.children;
150
- e.length === 1 && (e[0].textContent === "" || e[0].textContent === "​") && j.value.remove(), Oe(!1);
151
- }
152
- }
153
- function Oe(e = !1) {
154
- window.removeEventListener("keydown", Ce), window.removeEventListener("mousedown", De, !0), B();
155
- let t = E.value?.querySelector(".vue-data-ui-svg-caret");
156
- t && E.value && E.value.removeChild(t);
157
- let n = j.value?.children, r = !1;
158
- if (n && n.length === 1) {
159
- let e = n[0].textContent;
160
- r = !e || e === "​";
161
- }
162
- (e || r) && j.value && E.value && E.value.contains(j.value) && E.value.removeChild(j.value), A.value = !1, j.value = null, M.value = [""], N.value = {
163
- row: 0,
164
- col: 0
165
- }, F.value = !1;
166
- }
167
- let V = s(() => t(b.color, .6));
168
- function ke() {
169
- if (!E.value) return;
170
- let e = E.value.querySelector(".vue-data-ui-mask");
171
- if (e && E.value.removeChild(e), b.active) {
172
- let e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
173
- e.setAttribute("class", "vue-data-ui-mask"), e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", "transparent"), e.setAttribute("pointer-events", "all"), E.value.insertBefore(e, E.value.firstChild);
174
- }
175
- }
176
- function H(e) {
177
- let t = b.svgRef;
178
- if (!t) return {
179
- x: 0,
180
- y: 0
181
- };
182
- let n = t.createSVGPoint(), r = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, i = r ? r.clientX : e.clientX, a = r ? r.clientY : e.clientY;
183
- n.x = i, n.y = a;
184
- let o = t.getScreenCTM()?.inverse();
185
- return o ? n.matrixTransform(o) : {
186
- x: 0,
187
- y: 0
188
- };
189
- }
190
- function Ae(e) {
191
- let t = e.trim().split(/\s+/);
192
- if (t.length < 4) return e;
193
- let n = t.slice(1).map(Number);
194
- if (n.length % 2 != 0) return e;
195
- let r = je(n), i = [`M ${r[0]} ${r[1]}`];
196
- for (let e = 2; e < r.length - 2; e += 2) {
197
- let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
198
- i.push(`Q ${t} ${n} ${s} ${c}`);
199
- }
200
- let a = r[r.length - 2], o = r[r.length - 1];
201
- return i.push(`L ${a} ${o}`), i.join(" ");
202
- }
203
- function je(e, t = 1) {
204
- let n = [...e];
205
- for (let r = 2; r < e.length - 2; r += 2) {
206
- let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
207
- n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
208
- }
209
- return n;
210
- }
211
- function Me(e) {
212
- let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
213
- for (let e = 0; e < t.length; e += 1) {
214
- let o = t[e];
215
- if (isNaN(o)) {
216
- if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
217
- else if (r === "Q") {
218
- let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
219
- n += r === i && o === a ? `t${s - i} ${c - a}` : `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
220
- }
221
- } else {
222
- let s = parseFloat(o), c = parseFloat(t[++e]);
223
- if (r === "L") {
224
- let e = s - i, t = c - a;
225
- n += e === 0 ? `v${t}` : t === 0 ? `h${e}` : `l${e} ${t}`, i = s, a = c;
226
- } else if (r === "Q") {
227
- let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
228
- n += r === i && o === a ? `t${l - i} ${u - a}` : `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
229
- }
230
- }
231
- }
232
- return n;
233
- }
234
- function U(e) {
235
- if (e.cancelable && e.preventDefault(), L.value !== "draw" || !b.active || !E.value) return;
236
- T.value = !0;
237
- let { x: t, y: n } = H(e);
238
- k.value = {
239
- x: t,
240
- y: n
241
- }, he.value = `M ${t} ${n}`, D.value = document.createElementNS(i, "path"), D.value.setAttribute("stroke", C.value), D.value.setAttribute("stroke-width", w.value * b.scale), D.value.setAttribute("fill", "none"), D.value.setAttribute("stroke-linecap", "round"), D.value.setAttribute("stroke-linejoin", "round"), D.value.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(D.value);
242
- }
243
- function W(e) {
244
- if (e.cancelable && e.preventDefault(), !T.value || !E.value || !D.value) return;
245
- let { x: t, y: n } = H(e);
246
- he.value += ` ${t} ${n}`, D.value.setAttribute("d", he.value);
247
- }
248
- function Ne(e) {
249
- let t = b.svgRef;
250
- if (!t) return null;
251
- let n = t.querySelector(`defs#${_e.value}`);
252
- n || (n = document.createElementNS(i, "defs"), n.setAttribute("id", _e.value), t.appendChild(n));
253
- let a = String(e).trim();
254
- if (ge.has(a)) return ge.get(a);
255
- let o = `arrow-${r()}`, s = document.createElementNS(i, "marker");
256
- s.setAttribute("id", o), s.setAttribute("markerUnits", "strokeWidth"), s.setAttribute("markerWidth", "6"), s.setAttribute("markerHeight", "6"), s.setAttribute("refX", "4"), s.setAttribute("refY", "3"), s.setAttribute("orient", "auto"), s.setAttribute("viewBox", "0 0 6 6");
257
- let c = document.createElementNS(i, "path");
258
- return c.setAttribute("d", "M 0 0 L 6 3 L 0 6 z"), c.setAttribute("fill", e), c.setAttribute("stroke", "none"), s.appendChild(c), n.appendChild(s), ge.set(a, o), o;
259
- }
260
- function G(e) {
261
- if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !b.active || !E.value) return;
262
- T.value = !0;
263
- let { x: t, y: n } = H(e);
264
- if (k.value = {
265
- x: t,
266
- y: n
267
- }, O.value = document.createElementNS(i, "line"), O.value.setAttribute("stroke", C.value), O.value.setAttribute("stroke-width", w.value * b.scale), O.value.setAttribute("stroke-linecap", "round"), O.value.setAttribute("class", "vue-data-ui-doodle"), O.value.setAttribute("x1", t), O.value.setAttribute("y1", n), O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), L.value === "arrow") {
268
- let e = Ne(C.value);
269
- e && O.value.setAttribute("marker-end", `url(#${e})`);
270
- }
271
- E.value.appendChild(O.value);
272
- }
273
- function K(e) {
274
- if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !T.value || !E.value || !O.value) return;
275
- let { x: t, y: n } = H(e);
276
- O.value.setAttribute("x2", t), O.value.setAttribute("y2", n);
277
- }
278
- function q(e) {
279
- if (T.value && E.value && O.value) {
280
- let { x: t, y: n } = H(e);
281
- O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), x.value.push(O.value), S.value = [], O.value = "";
282
- }
283
- T.value = !1;
284
- }
285
- function J(e) {
286
- if (T.value && E.value && D.value) {
287
- let { x: t, y: n } = H(e);
288
- if (k.value && k.value.x === t && k.value.y === n) {
289
- let e = document.createElementNS("http://www.w3.org/2000/svg", "circle");
290
- e.setAttribute("cx", t), e.setAttribute("cy", n), e.setAttribute("r", w.value * b.scale / 2), e.setAttribute("fill", C.value), e.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(e), x.value.push(e);
291
- } else {
292
- let e = D.value;
293
- e.setAttribute("d", Me(Ae(he.value))), x.value.push(e);
294
- }
295
- S.value = [], D.value = "";
296
- }
297
- T.value = !1;
298
- }
299
- function Pe() {
300
- if (x.value.length > 0) {
301
- let e = x.value.pop();
302
- S.value.push(e), e === j.value ? Oe(!0) : E.value && E.value.contains(e) && E.value.removeChild(e);
303
- }
304
- }
305
- function Fe() {
306
- if (S.value.length > 0) {
307
- let e = S.value.pop();
308
- x.value.push(e), E.value && E.value.appendChild(e);
309
- }
310
- }
311
- function Ie() {
312
- E.value && (E.value.innerHTML = ""), x.value = [], S.value = [], F.value = !1, ke();
313
- }
314
- y(L, (e) => {
315
- b.active && (Re(), Le(), ze());
316
- });
317
- function Le() {
318
- !b.svgRef || !b.active || (L.value === "draw" ? (b.svgRef.addEventListener("mousedown", U), b.svgRef.addEventListener("mousemove", W), b.svgRef.addEventListener("mouseup", J), b.svgRef.addEventListener("mouseleave", J), b.svgRef.addEventListener("touchstart", U, { passive: !1 }), b.svgRef.addEventListener("touchmove", W, { passive: !1 }), b.svgRef.addEventListener("touchend", J), b.svgRef.addEventListener("touchcancel", J)) : ["line", "arrow"].includes(L.value) ? (b.svgRef.addEventListener("mousedown", G), b.svgRef.addEventListener("mousemove", K), b.svgRef.addEventListener("mouseup", q), b.svgRef.addEventListener("touchstart", G, { passive: !1 }), b.svgRef.addEventListener("touchmove", K, { passive: !1 }), b.svgRef.addEventListener("touchend", q), b.svgRef.addEventListener("touchcancel", q)) : L.value === "text" && (b.svgRef.addEventListener("mousedown", R), b.svgRef.addEventListener("touchstart", R, { passive: !1 })), E.value && (E.value.style.pointerEvents = "auto"));
319
- }
320
- function Re() {
321
- b.svgRef && (b.svgRef.removeEventListener("mousedown", U), b.svgRef.removeEventListener("mousemove", W), b.svgRef.removeEventListener("mouseup", J), b.svgRef.removeEventListener("mouseleave", J), b.svgRef.removeEventListener("touchstart", U), b.svgRef.removeEventListener("touchmove", W), b.svgRef.removeEventListener("touchend", J), b.svgRef.removeEventListener("touchcancel", J), b.svgRef.removeEventListener("mousedown", G), b.svgRef.removeEventListener("mousemove", K), b.svgRef.removeEventListener("mouseup", q), b.svgRef.removeEventListener("touchstart", G), b.svgRef.removeEventListener("touchmove", K), b.svgRef.removeEventListener("touchend", q), b.svgRef.removeEventListener("touchcancel", q), b.svgRef.removeEventListener("mousedown", R), b.svgRef.removeEventListener("touchstart", R), E.value && (E.value.style.pointerEvents = "none"));
322
- }
323
- y(() => b.active, (e) => {
324
- e ? Le() : Re();
325
- }), y(() => b.active, () => {
326
- p(() => {
327
- ke();
328
- });
329
- }), y(() => b.active, (e) => {
330
- b.svgRef && (e ? b.svgRef.style.touchAction = "none" : b.svgRef.style.touchAction = "");
331
- }, { immediate: !0 });
332
- function ze() {
333
- E.value && (L.value === "text" ? E.value.style.cursor = "text" : ["line", "arrow"].includes(L.value) ? E.value.style.cursor = "crosshair" : E.value.style.cursor = xe.value);
334
- }
335
- let Y = _(null), Be = _(null), Ve = _(!1), X = _({
336
- x: 0,
337
- y: 0
338
- }), Z = _(null), Q = _(null), He = s(() => ({
339
- backgroundColor: b.backgroundColor,
340
- "--vue-ui-pen-and-paper-drag-x": `${X.value.x}px`,
341
- "--vue-ui-pen-and-paper-drag-y": `${X.value.y}px`
342
- }));
343
- function Ue() {
344
- return {
345
- width: document.documentElement.clientWidth || window.innerWidth,
346
- height: document.documentElement.clientHeight || window.innerHeight
347
- };
348
- }
349
- function We() {
350
- if (!Y.value) return null;
351
- let e = [
352
- Y.value,
353
- Y.value.querySelector(".vue-ui-pen-and-paper-drag-handle"),
354
- Y.value.querySelector(".vertical-range")
355
- ].filter(Boolean).map((e) => e.getBoundingClientRect());
356
- return {
357
- left: Math.min(...e.map((e) => e.left)),
358
- top: Math.min(...e.map((e) => e.top)),
359
- right: Math.max(...e.map((e) => e.right)),
360
- bottom: Math.max(...e.map((e) => e.bottom))
361
- };
362
- }
363
- function Ge(e) {
364
- if (e.pointerType === "mouse" && e.button !== 0 || !Y.value) return;
365
- e.preventDefault(), e.stopPropagation();
366
- let t = We();
367
- t && (Ve.value = !0, Q.value = e.pointerId, Z.value = {
368
- clientX: e.clientX,
369
- clientY: e.clientY,
370
- offsetX: X.value.x,
371
- offsetY: X.value.y,
372
- rect: t
373
- }, window.addEventListener("pointermove", Ke), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
374
- }
375
- function Ke(e) {
376
- if (!Ve.value || !Z.value || e.pointerId !== Q.value) return;
377
- e.preventDefault();
378
- let t = Z.value, { width: n, height: r } = Ue(), i = e.clientX - t.clientX, a = e.clientY - t.clientY, o = Math.min(Math.max(i, -t.rect.left), n - t.rect.right), s = Math.min(Math.max(a, -t.rect.top), r - t.rect.bottom);
379
- X.value = {
380
- x: t.offsetX + o,
381
- y: t.offsetY + s
382
- };
383
- }
384
- function $(e) {
385
- (e?.pointerId === void 0 || Q.value === null || e.pointerId === Q.value) && (Ve.value = !1, Z.value = null, Q.value = null, window.removeEventListener("pointermove", Ke), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $));
386
- }
387
- function qe() {
388
- if (!Y.value || !b.active) return;
389
- let e = We();
390
- if (!e) return;
391
- let { width: t, height: n } = Ue(), r = 0, i = 0;
392
- e.left < 0 ? r = -e.left : e.right > t && (r = t - e.right), e.top < 0 ? i = -e.top : e.bottom > n && (i = n - e.bottom), (r || i) && (X.value = {
393
- x: X.value.x + r,
394
- y: X.value.y + i
395
- });
396
- }
397
- return te(() => {
398
- window.addEventListener("resize", qe), p(() => {
399
- b.svgRef && (E.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), E.value.setAttribute("class", "vue-data-ui-doodles"), b.svgRef.appendChild(E.value), ze(), Re());
400
- });
401
- }), y(() => b.active, async (e) => {
402
- if (!e) {
403
- $(), X.value = {
404
- x: 0,
405
- y: 0
406
- };
407
- return;
408
- }
409
- await p(), Be.value?.focus();
410
- }, { flush: "post" }), ee(() => {
411
- B(), $(), window.removeEventListener("resize", qe), E.value && b.svgRef && (E.value.remove(), Re());
412
- }), (t, r) => e.active ? (ne(), l("div", {
413
- key: 0,
414
- ref_key: "menuRef",
415
- ref: Y,
416
- "data-dom-to-png-ignore": "",
417
- class: m(["vue-ui-pen-and-paper-actions", { "vue-ui-pen-and-paper-actions-dragging": Ve.value }]),
418
- style: g(He.value)
419
- }, [
420
- u("button", {
421
- type: "button",
422
- class: "vue-ui-pen-and-paper-drag-handle",
423
- "aria-label": "Move drawing toolbar",
424
- style: g({
425
- backgroundColor: e.backgroundColor,
426
- border: `1px solid ${V.value}`,
427
- color: e.color
428
- }),
429
- onPointerdown: Ge
430
- }, [(ne(), l("svg", le, [
431
- u("circle", {
432
- fill: e.color,
433
- cx: "3",
434
- cy: "3",
435
- r: "0.7"
436
- }, null, 8, ue),
437
- u("circle", {
438
- fill: e.color,
439
- cx: "3",
440
- cy: "6",
441
- r: "0.7"
442
- }, null, 8, de),
443
- u("circle", {
444
- fill: e.color,
445
- cx: "3",
446
- cy: "9",
447
- r: "0.7"
448
- }, null, 8, fe)
449
- ]))], 36),
450
- u("button", {
451
- ref_key: "buttonToggle",
452
- ref: Be,
453
- class: "vue-ui-pen-and-paper-action",
454
- onClick: r[0] ||= (e) => me("close"),
455
- style: g({
456
- backgroundColor: e.backgroundColor,
457
- border: `1px solid ${V.value}`,
458
- cursor: e.isCursorPointer ? "pointer" : "default"
459
- })
460
- }, [v(t.$slots, "annotator-action-close", {}, () => [d(a, {
461
- name: "close",
462
- stroke: e.color
463
- }, null, 8, ["stroke"])])], 4),
464
- u("button", {
465
- class: "vue-ui-pen-and-paper-action",
466
- tabindex: "-1",
467
- style: g(`padding: 0 !important; cursor: ${e.isCursorPointer ? "pointer" : "default"}`)
468
- }, [d(o, {
469
- value: C.value,
470
- "onUpdate:value": r[1] ||= (e) => C.value = e,
471
- backgroundColor: e.backgroundColor,
472
- buttonBorderColor: V.value,
473
- isCursorPointer: e.isCursorPointer
474
- }, {
475
- "annotator-action-color": oe(({ color: e }) => [v(t.$slots, "annotator-action-color", h(f({ color: e })))]),
476
- _: 3
477
- }, 8, [
478
- "value",
479
- "backgroundColor",
480
- "buttonBorderColor",
481
- "isCursorPointer"
482
- ])], 4),
483
- u("button", {
484
- class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
485
- onClick: r[2] ||= (e) => Se(),
486
- style: g({
487
- backgroundColor: e.backgroundColor,
488
- border: `1px solid ${V.value}`,
489
- cursor: e.isCursorPointer ? "pointer" : "default"
490
- })
491
- }, [v(t.$slots, "annotator-action-draw", h(f({ mode: L.value })), () => [d(a, {
492
- name: be[L.value],
493
- stroke: e.color
494
- }, null, 8, ["name", "stroke"])]), u("div", { style: g({
495
- position: "absolute",
496
- bottom: "-20px",
497
- color: V.value,
498
- width: "100%",
499
- textAlign: "center",
500
- fontSize: "12px",
501
- fontVariantNumeric: "tabular-nums"
502
- }) }, re(ie(n)({
503
- v: L.value === "text" ? Math.round(P.value) : Math.round(w.value),
504
- s: "px",
505
- r: 1
506
- })), 5)], 6),
507
- u("button", {
508
- class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
509
- disabled: !x.value.length,
510
- onClick: Pe,
511
- style: g({
512
- backgroundColor: e.backgroundColor,
513
- border: `1px solid ${V.value}`,
514
- marginTop: "20px",
515
- cursor: e.isCursorPointer ? "pointer" : "default"
516
- })
517
- }, [v(t.$slots, "annotator-action-undo", h(f({ disabled: !x.value.length })), () => [d(a, {
518
- name: "refresh",
519
- stroke: e.color
520
- }, null, 8, ["stroke"])])], 14, pe),
521
- u("button", {
522
- class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !S.value.length }]),
523
- onClick: Fe,
524
- style: g({
525
- backgroundColor: e.backgroundColor,
526
- border: `1px solid ${V.value}`,
527
- cursor: e.isCursorPointer ? "pointer" : "default"
528
- })
529
- }, [v(t.$slots, "annotator-action-redo", h(f({ disabled: !S.value.length })), () => [d(a, {
530
- name: "refresh",
531
- stroke: e.color,
532
- style: { transform: "scaleX(-1)" }
533
- }, null, 8, ["stroke"])])], 6),
534
- u("button", {
535
- class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
536
- onClick: Ie,
537
- style: g({
538
- backgroundColor: e.backgroundColor,
539
- border: `1px solid ${V.value}`,
540
- cursor: e.isCursorPointer ? "pointer" : "default"
541
- })
542
- }, [v(t.$slots, "annotator-action-delete", h(f({ disabled: !x.value.length })), () => [d(a, {
543
- name: "trash",
544
- stroke: e.color
545
- }, null, 8, ["stroke"])])], 6),
546
- L.value === "text" ? se((ne(), l("input", {
547
- key: 0,
548
- ref: "range",
549
- type: "range",
550
- class: "vertical-range",
551
- min: 3,
552
- max: 48,
553
- step: 1,
554
- "onUpdate:modelValue": r[3] ||= (e) => P.value = e,
555
- style: g({ accentColor: e.color })
556
- }, null, 4)), [[ae, P.value]]) : se((ne(), l("input", {
557
- key: 1,
558
- ref: "range",
559
- type: "range",
560
- class: "vertical-range",
561
- min: .5,
562
- max: 12,
563
- step: .1,
564
- "onUpdate:modelValue": r[4] ||= (e) => w.value = e,
565
- style: g({ accentColor: e.color })
566
- }, null, 4)), [[ae, w.value]])
567
- ], 6)) : c("", !0);
568
- }
569
- };
570
- //#endregion
571
- export { b as n, ce as t };