vue-data-ui 3.22.6 → 3.22.8
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-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as e } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { computed as t, createElementBlock as n, createElementVNode as r, openBlock as i, unref as a } from "vue";
|
|
3
3
|
//#region src/atoms/Arrow.vue
|
|
4
4
|
var o = { class: "vue-ui-element-arrow" }, s = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { G as t, t as n } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
|
-
import { t as i } from "./BaseIcon-
|
|
4
|
+
import { t as i } from "./BaseIcon-C2qlyHc7.js";
|
|
5
5
|
import { Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onMounted as h, onUnmounted as g, openBlock as _, reactive as v, ref as y, renderSlot as b, unref as x, withModifiers as S } from "vue";
|
|
6
6
|
//#region src/atoms/BaseDraggableDialog.vue
|
|
7
7
|
var C = /* @__PURE__ */ e({ default: () => E }), w = ["xmlns"], T = { class: "draggable-dialog-actions" }, E = /*#__PURE__*/ r({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./lib-
|
|
2
|
+
import { t } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { computed as r, createElementBlock as i, normalizeClass as a, openBlock as o, unref as s, useCssVars as c, useSlots as l } from "vue";
|
|
5
5
|
//#region src/atoms/BaseIcon.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./BaseIcon-
|
|
2
|
+
import { t } from "./BaseIcon-C2qlyHc7.js";
|
|
3
3
|
import { createElementBlock as n, createElementVNode as r, createVNode as i, normalizeClass as a, normalizeStyle as o, openBlock as s, withKeys as c } from "vue";
|
|
4
4
|
var l = /*#__PURE__*/ e({
|
|
5
5
|
__name: "BaseLegendToggle",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./BaseIcon-
|
|
3
|
-
import { n } from "./exposedLib-
|
|
2
|
+
import { t } from "./BaseIcon-C2qlyHc7.js";
|
|
3
|
+
import { n } from "./exposedLib-VXFp3Z2c.js";
|
|
4
4
|
import { createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, normalizeClass as s, normalizeStyle as c, openBlock as l, toDisplayString as u, unref as d } from "vue";
|
|
5
5
|
//#region src/atoms/BaseZoomControls.vue
|
|
6
6
|
var f = ["disabled"], p = /*#__PURE__*/ e({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as e } from "./lib-
|
|
1
|
+
import { r as e } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { t as n } from "./BaseIcon-
|
|
3
|
+
import { t as n } from "./BaseIcon-C2qlyHc7.js";
|
|
4
4
|
import { t as r } from "./vClickOutside-DUrZWttG.js";
|
|
5
5
|
import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, guardReactiveProps as f, nextTick as p, normalizeProps as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, unref as S, useCssVars as C, watch as w, watchEffect as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
|
|
6
6
|
//#region src/atoms/ColorPicker.vue
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./Shape-
|
|
1
|
+
import { t as e } from "./Shape-UpH0a4Ur.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { t as n } from "./BaseIcon-
|
|
3
|
+
import { t as n } from "./BaseIcon-C2qlyHc7.js";
|
|
4
4
|
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, normalizeClass as l, normalizeStyle as u, onMounted as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useCssVars as v, withKeys as y } from "vue";
|
|
5
5
|
//#region src/atoms/DataTable.vue
|
|
6
6
|
var b = { class: "vue-ui-data-table" }, x = { style: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./Shape-
|
|
2
|
+
import { St as t } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as n } from "./Shape-UpH0a4Ur.js";
|
|
4
4
|
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m, unref as h } from "vue";
|
|
6
6
|
//#region src/atoms/Legend.vue
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as e, G as t, J as n, t as r } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
-
import { t as a } from "./BaseIcon-
|
|
4
|
-
import { t as o } from "./ColorPicker-
|
|
3
|
+
import { t as a } from "./BaseIcon-C2qlyHc7.js";
|
|
4
|
+
import { t as o } from "./ColorPicker-CK2-h611.js";
|
|
5
5
|
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, guardReactiveProps as p, nextTick as ee, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as te, onMounted as ne, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as re, vModelText as ie, watch as S, withCtx as ae, withDirectives as oe, withModifiers as se } from "vue";
|
|
6
6
|
//#region src/atoms/NonSvgPenAndPaper.vue
|
|
7
7
|
var ce = ["disabled"], le = [
|
|
@@ -77,7 +77,7 @@ var ce = ["disabled"], le = [
|
|
|
77
77
|
"draw"
|
|
78
78
|
], I = v(0), L = c(() => F[I.value]), R = v(null);
|
|
79
79
|
v(null), v(null);
|
|
80
|
-
let z = v(`arrow-${
|
|
80
|
+
let z = v(`arrow-${t()}`), B = v(`arrow-def-${t()}`), xe = {
|
|
81
81
|
arrow: "plotArrow",
|
|
82
82
|
text: "text",
|
|
83
83
|
line: "plotLine",
|
|
@@ -194,7 +194,7 @@ var ce = ["disabled"], le = [
|
|
|
194
194
|
col: 0
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
let U = c(() =>
|
|
197
|
+
let U = c(() => e(C.color, .6));
|
|
198
198
|
function W({ width: e, height: t }) {
|
|
199
199
|
ye.value = `0 0 ${e} ${t}`;
|
|
200
200
|
}
|
|
@@ -249,20 +249,20 @@ var ce = ["disabled"], le = [
|
|
|
249
249
|
let e = J.value;
|
|
250
250
|
if (!e) return;
|
|
251
251
|
let t = e.querySelector(`defs#${B.value}`);
|
|
252
|
-
if (t || (t = document.createElementNS(
|
|
253
|
-
let
|
|
254
|
-
|
|
255
|
-
let i = document.createElementNS(
|
|
256
|
-
i.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), i.setAttribute("fill", "context-stroke"), i.setAttribute("stroke", "none"),
|
|
252
|
+
if (t || (t = document.createElementNS(r, "defs"), t.setAttribute("id", B.value), e.appendChild(t)), t.querySelector(`#${z.value}`)) return;
|
|
253
|
+
let n = document.createElementNS(r, "marker");
|
|
254
|
+
n.setAttribute("id", z.value), n.setAttribute("markerUnits", "strokeWidth"), n.setAttribute("markerWidth", "6"), n.setAttribute("markerHeight", "6"), n.setAttribute("refX", "4"), n.setAttribute("refY", "3"), n.setAttribute("orient", "auto"), n.setAttribute("viewBox", "0 0 6 6");
|
|
255
|
+
let i = document.createElementNS(r, "path");
|
|
256
|
+
i.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), i.setAttribute("fill", "context-stroke"), i.setAttribute("stroke", "none"), n.appendChild(i), t.appendChild(n);
|
|
257
257
|
}
|
|
258
258
|
function Ne(e) {
|
|
259
259
|
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !J.value || !O.value) return;
|
|
260
260
|
L.value === "arrow" && Me(), Y.value = !0;
|
|
261
|
-
let { x: t, y:
|
|
261
|
+
let { x: t, y: n } = Q(e);
|
|
262
262
|
ke.value = {
|
|
263
263
|
x: t,
|
|
264
|
-
y:
|
|
265
|
-
}, R.value = document.createElementNS(
|
|
264
|
+
y: n
|
|
265
|
+
}, R.value = document.createElementNS(r, "line"), R.value.setAttribute("x1", t), R.value.setAttribute("y1", n), R.value.setAttribute("x2", t), R.value.setAttribute("y2", n), R.value.setAttribute("stroke", E.value), R.value.setAttribute("stroke-width", D.value), R.value.setAttribute("stroke-linecap", "round"), R.value.setAttribute("class", "vue-data-ui-doodle"), L.value === "arrow" && R.value.setAttribute("marker-end", `url(#${z.value})`), O.value.appendChild(R.value);
|
|
266
266
|
}
|
|
267
267
|
function Pe(e) {
|
|
268
268
|
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !Y.value || !R.value) return;
|
|
@@ -362,7 +362,7 @@ var ce = ["disabled"], le = [
|
|
|
362
362
|
w.value = [], T.value = [];
|
|
363
363
|
}
|
|
364
364
|
let $ = v(null);
|
|
365
|
-
return (e,
|
|
365
|
+
return (e, t) => (_(), u(s, null, [i.active ? (_(), u("div", {
|
|
366
366
|
key: 0,
|
|
367
367
|
"data-dom-to-png-ignore": "",
|
|
368
368
|
class: m({
|
|
@@ -378,7 +378,7 @@ var ce = ["disabled"], le = [
|
|
|
378
378
|
border: `1px solid ${U.value}`,
|
|
379
379
|
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
380
380
|
}),
|
|
381
|
-
onClick:
|
|
381
|
+
onClick: t[0] ||= (e) => ve("close")
|
|
382
382
|
}, [b(e.$slots, "annotator-action-close", {}, () => [f(a, {
|
|
383
383
|
name: "close",
|
|
384
384
|
stroke: i.color
|
|
@@ -391,7 +391,7 @@ var ce = ["disabled"], le = [
|
|
|
391
391
|
})
|
|
392
392
|
}, [f(o, {
|
|
393
393
|
value: E.value,
|
|
394
|
-
"onUpdate:value":
|
|
394
|
+
"onUpdate:value": t[1] ||= (e) => E.value = e,
|
|
395
395
|
backgroundColor: i.backgroundColor,
|
|
396
396
|
buttonBorderColor: U.value
|
|
397
397
|
}, {
|
|
@@ -404,7 +404,7 @@ var ce = ["disabled"], le = [
|
|
|
404
404
|
])], 4),
|
|
405
405
|
d("button", {
|
|
406
406
|
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
|
|
407
|
-
onClick:
|
|
407
|
+
onClick: t[2] ||= (e) => Se(),
|
|
408
408
|
style: g({
|
|
409
409
|
backgroundColor: i.backgroundColor,
|
|
410
410
|
border: `1px solid ${U.value}`,
|
|
@@ -420,7 +420,7 @@ var ce = ["disabled"], le = [
|
|
|
420
420
|
width: "100%",
|
|
421
421
|
textAlign: "center",
|
|
422
422
|
fontSize: "12px"
|
|
423
|
-
}) }, x(re(
|
|
423
|
+
}) }, x(re(n)({
|
|
424
424
|
v: L.value === "text" ? P.value : D.value,
|
|
425
425
|
s: "px",
|
|
426
426
|
r: 1
|
|
@@ -482,7 +482,7 @@ var ce = ["disabled"], le = [
|
|
|
482
482
|
min: .5,
|
|
483
483
|
max: 12,
|
|
484
484
|
step: .1,
|
|
485
|
-
"onUpdate:modelValue":
|
|
485
|
+
"onUpdate:modelValue": t[3] ||= (e) => D.value = e,
|
|
486
486
|
style: g({ accentColor: i.color })
|
|
487
487
|
}, null, 4)), [[ie, D.value]]) : l("", !0),
|
|
488
488
|
L.value === "text" ? oe((_(), u("input", {
|
|
@@ -494,27 +494,27 @@ var ce = ["disabled"], le = [
|
|
|
494
494
|
min: 3,
|
|
495
495
|
max: 48,
|
|
496
496
|
step: .1,
|
|
497
|
-
"onUpdate:modelValue":
|
|
497
|
+
"onUpdate:modelValue": t[4] ||= (e) => P.value = e,
|
|
498
498
|
style: g({ accentColor: i.color })
|
|
499
499
|
}, null, 4)), [[ie, P.value]]) : l("", !0)
|
|
500
500
|
], 6)) : l("", !0), (_(), u("svg", {
|
|
501
501
|
"data-mode": L.value,
|
|
502
502
|
ref_key: "svgElement",
|
|
503
503
|
ref: J,
|
|
504
|
-
xmlns: re(
|
|
504
|
+
xmlns: re(r),
|
|
505
505
|
viewBox: ye.value,
|
|
506
506
|
class: m({
|
|
507
507
|
"vue-ui-pen-and-paper": !0,
|
|
508
508
|
inactive: !i.active
|
|
509
509
|
}),
|
|
510
|
-
onMousedown:
|
|
511
|
-
onMousemove:
|
|
512
|
-
onMouseup:
|
|
513
|
-
onMouseleave:
|
|
514
|
-
onTouchstart:
|
|
515
|
-
onTouchmove:
|
|
516
|
-
onTouchend:
|
|
517
|
-
onTouchcancel:
|
|
510
|
+
onMousedown: t[5] ||= (e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null,
|
|
511
|
+
onMousemove: t[6] ||= (e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null,
|
|
512
|
+
onMouseup: t[7] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
513
|
+
onMouseleave: t[8] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
514
|
+
onTouchstart: t[9] ||= se((e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null, ["prevent"]),
|
|
515
|
+
onTouchmove: t[10] ||= se((e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null, ["prevent"]),
|
|
516
|
+
onTouchend: t[11] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
517
|
+
onTouchcancel: t[12] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null
|
|
518
518
|
}, [d("g", {
|
|
519
519
|
ref_key: "G",
|
|
520
520
|
ref: O
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { t } from "./package-
|
|
2
|
+
import { t } from "./package-gp9pYCfN.js";
|
|
3
3
|
import { createElementBlock as n, openBlock as r, toDisplayString as i, unref as a } from "vue";
|
|
4
4
|
//#region src/atoms/PackageVersion.vue
|
|
5
5
|
var o = /* @__PURE__ */ e({ default: () => c }), s = { "aria-hidden": "true" }, c = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as a } from "./BaseIcon-
|
|
4
|
-
import { t as o } from "./ColorPicker-
|
|
2
|
+
import { Et as t, G as n, J as r, t as i } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as a } from "./BaseIcon-C2qlyHc7.js";
|
|
4
|
+
import { t as o } from "./ColorPicker-CK2-h611.js";
|
|
5
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 _, ref as v, renderSlot as y, toDisplayString as ne, unref as re, vModelText as ie, watch as b, withCtx as ae, withDirectives as oe } from "vue";
|
|
6
6
|
//#region src/atoms/PenAndPaper.vue
|
|
7
7
|
var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
@@ -38,7 +38,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["close"],
|
|
40
40
|
setup(e, { emit: se }) {
|
|
41
|
-
let x = e, le = se, S = v([]), C = v([]), w = v(x.color), T = v(2), E = v(!1), D = v(""), O = v(null), k = v(null), A = v(null), j = v(null), M = v(`arrow-${
|
|
41
|
+
let x = e, le = se, S = v([]), C = v([]), w = v(x.color), T = v(2), E = v(!1), D = v(""), O = v(null), k = v(null), A = v(null), j = v(null), M = v(`arrow-${n()}`), ue = v(`arrow-def-${n()}`), N = v(!1), P = v(null), F = v({
|
|
42
42
|
x: 0,
|
|
43
43
|
y: 0
|
|
44
44
|
}), I = v([""]), L = v({
|
|
@@ -160,7 +160,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
160
160
|
col: 0
|
|
161
161
|
}, z.value = !1;
|
|
162
162
|
}
|
|
163
|
-
let G = s(() =>
|
|
163
|
+
let G = s(() => t(x.color, .6));
|
|
164
164
|
function xe() {
|
|
165
165
|
if (!O.value) return;
|
|
166
166
|
let e = O.value.querySelector(".vue-data-ui-mask");
|
|
@@ -234,7 +234,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
234
234
|
j.value = {
|
|
235
235
|
x: t,
|
|
236
236
|
y: n
|
|
237
|
-
}, D.value = `M ${t} ${n}`, k.value = document.createElementNS(
|
|
237
|
+
}, D.value = `M ${t} ${n}`, k.value = document.createElementNS(i, "path"), k.value.setAttribute("stroke", w.value), k.value.setAttribute("stroke-width", T.value * x.scale), k.value.setAttribute("fill", "none"), k.value.setAttribute("stroke-linecap", "round"), k.value.setAttribute("stroke-linejoin", "round"), k.value.setAttribute("class", "vue-data-ui-doodle"), O.value.appendChild(k.value);
|
|
238
238
|
}
|
|
239
239
|
function J(e) {
|
|
240
240
|
if (e.cancelable && e.preventDefault(), !E.value || !O.value || !k.value) return;
|
|
@@ -245,11 +245,11 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
245
245
|
let e = x.svgRef;
|
|
246
246
|
if (!e) return;
|
|
247
247
|
let t = e.querySelector(`defs#${ue.value}`);
|
|
248
|
-
if (t || (t = document.createElementNS(
|
|
249
|
-
let n = document.createElementNS(
|
|
248
|
+
if (t || (t = document.createElementNS(i, "defs"), t.setAttribute("id", ue.value), e.appendChild(t)), t.querySelector(`#${M.value}`)) return;
|
|
249
|
+
let n = document.createElementNS(i, "marker");
|
|
250
250
|
n.setAttribute("id", M.value), n.setAttribute("markerUnits", "strokeWidth"), n.setAttribute("markerWidth", "6"), n.setAttribute("markerHeight", "6"), n.setAttribute("refX", "4"), n.setAttribute("refY", "3"), n.setAttribute("orient", "auto"), n.setAttribute("viewBox", "0 0 6 6");
|
|
251
|
-
let
|
|
252
|
-
|
|
251
|
+
let r = document.createElementNS(i, "path");
|
|
252
|
+
r.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), r.setAttribute("fill", "context-stroke"), r.setAttribute("stroke", "none"), n.appendChild(r), t.appendChild(n);
|
|
253
253
|
}
|
|
254
254
|
function Y(e) {
|
|
255
255
|
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(V.value) || !x.active || !O.value) return;
|
|
@@ -258,7 +258,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
258
258
|
j.value = {
|
|
259
259
|
x: t,
|
|
260
260
|
y: n
|
|
261
|
-
}, A.value = document.createElementNS(
|
|
261
|
+
}, A.value = document.createElementNS(i, "line"), A.value.setAttribute("stroke", w.value), A.value.setAttribute("stroke-width", T.value * x.scale), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), A.value.setAttribute("x1", t), A.value.setAttribute("y1", n), A.value.setAttribute("x2", t), A.value.setAttribute("y2", n), V.value === "arrow" && A.value.setAttribute("marker-end", `url(#${M.value})`), O.value.appendChild(A.value);
|
|
262
262
|
}
|
|
263
263
|
function X(e) {
|
|
264
264
|
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(V.value) || !E.value || !O.value || !A.value) return;
|
|
@@ -331,7 +331,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
331
331
|
e && (await p(), je.value?.focus());
|
|
332
332
|
}, { flush: "post" }), ee(() => {
|
|
333
333
|
W(), O.value && x.svgRef && (O.value.remove(), $());
|
|
334
|
-
}), (t,
|
|
334
|
+
}), (t, n) => e.active ? (_(), l("div", {
|
|
335
335
|
key: 0,
|
|
336
336
|
"data-dom-to-png-ignore": "",
|
|
337
337
|
class: "vue-ui-pen-and-paper-actions",
|
|
@@ -341,7 +341,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
341
341
|
ref_key: "buttonToggle",
|
|
342
342
|
ref: je,
|
|
343
343
|
class: "vue-ui-pen-and-paper-action",
|
|
344
|
-
onClick:
|
|
344
|
+
onClick: n[0] ||= (e) => le("close"),
|
|
345
345
|
style: g({
|
|
346
346
|
backgroundColor: e.backgroundColor,
|
|
347
347
|
border: `1px solid ${G.value}`,
|
|
@@ -357,7 +357,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
357
357
|
style: g(`padding: 0 !important; cursor: ${e.isCursorPointer ? "pointer" : "default"}`)
|
|
358
358
|
}, [d(o, {
|
|
359
359
|
value: w.value,
|
|
360
|
-
"onUpdate:value":
|
|
360
|
+
"onUpdate:value": n[1] ||= (e) => w.value = e,
|
|
361
361
|
backgroundColor: e.backgroundColor,
|
|
362
362
|
buttonBorderColor: G.value,
|
|
363
363
|
isCursorPointer: e.isCursorPointer
|
|
@@ -372,7 +372,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
372
372
|
])], 4),
|
|
373
373
|
u("button", {
|
|
374
374
|
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": V.value === "text" }]),
|
|
375
|
-
onClick:
|
|
375
|
+
onClick: n[2] ||= (e) => me(),
|
|
376
376
|
style: g({
|
|
377
377
|
backgroundColor: e.backgroundColor,
|
|
378
378
|
border: `1px solid ${G.value}`,
|
|
@@ -389,7 +389,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
389
389
|
textAlign: "center",
|
|
390
390
|
fontSize: "12px",
|
|
391
391
|
fontVariantNumeric: "tabular-nums"
|
|
392
|
-
}) }, ne(re(
|
|
392
|
+
}) }, ne(re(r)({
|
|
393
393
|
v: V.value === "text" ? Math.round(R.value) : Math.round(T.value),
|
|
394
394
|
s: "px",
|
|
395
395
|
r: 1
|
|
@@ -441,7 +441,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
441
441
|
min: 3,
|
|
442
442
|
max: 48,
|
|
443
443
|
step: 1,
|
|
444
|
-
"onUpdate:modelValue":
|
|
444
|
+
"onUpdate:modelValue": n[3] ||= (e) => R.value = e,
|
|
445
445
|
style: g({ accentColor: e.color })
|
|
446
446
|
}, null, 4)), [[ie, R.value]]) : oe((_(), l("input", {
|
|
447
447
|
key: 1,
|
|
@@ -451,7 +451,7 @@ var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
|
451
451
|
min: .5,
|
|
452
452
|
max: 12,
|
|
453
453
|
step: .1,
|
|
454
|
-
"onUpdate:modelValue":
|
|
454
|
+
"onUpdate:modelValue": n[4] ||= (e) => T.value = e,
|
|
455
455
|
style: g({ accentColor: e.color })
|
|
456
456
|
}, null, 4)), [[ie, T.value]])
|
|
457
457
|
], 4)) : c("", !0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, L as t } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { computed as r, createCommentVNode as i, createElementBlock as a, normalizeClass as o, normalizeStyle as s, openBlock as c } from "vue";
|
|
4
4
|
//#region src/atoms/Shape.vue
|
|
@@ -82,13 +82,13 @@ var l = [
|
|
|
82
82
|
}
|
|
83
83
|
}[e];
|
|
84
84
|
}
|
|
85
|
-
let g = r(() => h(p.shape)), _ = r(() => p.shape === "star" ?
|
|
85
|
+
let g = r(() => h(p.shape)), _ = r(() => p.shape === "star" ? t({
|
|
86
86
|
plot: {
|
|
87
87
|
x: p.plot.x,
|
|
88
88
|
y: p.plot.y
|
|
89
89
|
},
|
|
90
90
|
radius: p.radius * (p.isSelected ? p.zoom : 1)
|
|
91
|
-
}) : null), v = r(() =>
|
|
91
|
+
}) : null), v = r(() => e({
|
|
92
92
|
plot: {
|
|
93
93
|
x: p.plot.x,
|
|
94
94
|
y: p.plot.y
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, G as t, M as n, P as r, qt as i, r as a, t as o, z as ee } from "./lib-JqW18y5I.js";
|
|
2
2
|
import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { c, r as te } from "./canvas-lib-BOP_HS11.js";
|
|
4
4
|
import { t as l } from "./useResponsive-BfnK0KxU.js";
|
|
5
|
-
import { t as ne } from "./BaseIcon-
|
|
5
|
+
import { t as ne } from "./BaseIcon-C2qlyHc7.js";
|
|
6
6
|
import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as re, mergeProps as ie, nextTick as ae, normalizeClass as h, normalizeProps as oe, normalizeStyle as g, onBeforeUnmount as se, onMounted as ce, onUpdated as le, openBlock as _, ref as v, renderList as y, renderSlot as ue, toDisplayString as de, unref as fe, useCssVars as pe, vModelText as me, watch as b, withDirectives as he } from "vue";
|
|
7
7
|
//#region src/atoms/Slicer.vue
|
|
8
8
|
var ge = ["data-minimap"], _e = {
|
|
@@ -323,7 +323,7 @@ var ge = ["data-minimap"], _e = {
|
|
|
323
323
|
v05b1b63a: s.selectColor,
|
|
324
324
|
v77671870: Tt.value
|
|
325
325
|
}));
|
|
326
|
-
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), lt = v(
|
|
326
|
+
let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), lt = v(t()), E = d(() => T.value && x.minimapCompact), ut = v(0);
|
|
327
327
|
ce(() => {
|
|
328
328
|
let e = () => {
|
|
329
329
|
S.value && (ut.value = S.value.getBoundingClientRect().width);
|
|
@@ -473,8 +473,8 @@ var ge = ["data-minimap"], _e = {
|
|
|
473
473
|
let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
|
|
474
474
|
return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
|
|
475
475
|
}
|
|
476
|
-
function Vt(
|
|
477
|
-
if (!
|
|
476
|
+
function Vt(t, i = !1) {
|
|
477
|
+
if (!t || !t.length) return {
|
|
478
478
|
fullSet: "",
|
|
479
479
|
points: [],
|
|
480
480
|
selectionSet: "",
|
|
@@ -486,7 +486,7 @@ var ge = ["data-minimap"], _e = {
|
|
|
486
486
|
fullMarkers: [],
|
|
487
487
|
selectionMarkers: []
|
|
488
488
|
};
|
|
489
|
-
let a = Math.max(1, j.value.height), o = Bt(F.value, I.value, a), s =
|
|
489
|
+
let a = Math.max(1, j.value.height), o = Bt(F.value, I.value, a), s = t.length, c = Math.min(Math.max(0, Q.value), Math.max(0, s - 1)), te = Math.min(s, Math.max(c + 1, $.value)), l = t.map((e, t) => {
|
|
490
490
|
let n = e, r = Number.isFinite(n), i = P.value * t + (x.minimapCompact ? 0 : P.value / 2), a = o(0);
|
|
491
491
|
return {
|
|
492
492
|
x: i,
|
|
@@ -498,9 +498,9 @@ var ge = ["data-minimap"], _e = {
|
|
|
498
498
|
};
|
|
499
499
|
}), ne = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), u = l.filter((e) => Number.isFinite(e.value) && !ne(e.i - 1) && !ne(e.i + 1)), d = u.filter((e) => e.i >= c && e.i < te), f = l.slice(c, te);
|
|
500
500
|
return {
|
|
501
|
-
fullSet: l.length >= 2 ? x.smoothMinimap ||
|
|
501
|
+
fullSet: l.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(l) : n(l.filter((e) => e.value != null)) : x.cutNullValues ? e(l) : ee(l.filter((e) => e.value != null)) : "",
|
|
502
502
|
points: l,
|
|
503
|
-
selectionSet: f.length >= 2 ? x.smoothMinimap ||
|
|
503
|
+
selectionSet: f.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(f) : n(f.filter((e) => e.value != null)) : x.cutNullValues ? e(f) : ee(f.filter((e) => e.value != null)) : "",
|
|
504
504
|
sliced: f,
|
|
505
505
|
firstPlot: l[c] || null,
|
|
506
506
|
lastPlot: l[Math.max(0, te - 1)] || null,
|
|
@@ -563,22 +563,22 @@ var ge = ["data-minimap"], _e = {
|
|
|
563
563
|
let t = S.value.getBoundingClientRect(), n = t.left + ot / 2, r = t.right - ot / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
|
|
564
564
|
return Math.round(x.min + a * o);
|
|
565
565
|
}
|
|
566
|
-
let cn = async (
|
|
566
|
+
let cn = async (e) => {
|
|
567
567
|
if (X.value = !0, !x.enableSelectionDrag) return;
|
|
568
|
-
let
|
|
569
|
-
|
|
570
|
-
let
|
|
571
|
-
if (!
|
|
568
|
+
let t = e.type === "touchstart";
|
|
569
|
+
t || e.stopPropagation();
|
|
570
|
+
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
|
|
571
|
+
if (!r || !(r instanceof Element) || r.classList && r.classList.contains("range-handle")) return;
|
|
572
572
|
H.value = !0;
|
|
573
|
-
let a =
|
|
573
|
+
let a = t ? n ? n.clientX : 0 : e.clientX;
|
|
574
574
|
if (Xt.value = a, tn.value = a, x.focusOnDrag && !Yt.value && S.value) {
|
|
575
575
|
on.value = sn(a);
|
|
576
|
-
let
|
|
577
|
-
o = Math.max(x.min, Math.min(o, x.max -
|
|
578
|
-
let ee = Math.min(x.max, o +
|
|
579
|
-
B(o), V(ee),
|
|
576
|
+
let e = Math.min(.95, Math.max(.05, x.focusRangeRatio)), t = x.max - x.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = on.value - r;
|
|
577
|
+
o = Math.max(x.min, Math.min(o, x.max - n));
|
|
578
|
+
let ee = Math.min(x.max, o + n);
|
|
579
|
+
B(o), V(ee), i(S.value, "mouseup"), await ae(), i(S.value, "mousedown", { clientX: a });
|
|
580
580
|
}
|
|
581
|
-
nn.value = Number(C.value), rn.value = Number(w.value), an.value = en.value, U =
|
|
581
|
+
nn.value = Number(C.value), rn.value = Number(w.value), an.value = en.value, U = t ? "touchmove" : "mousemove", W = t ? "touchend" : "mouseup", G = t ? un : ln, K = t ? pn : fn, window.addEventListener(U, G, { passive: !1 }), window.addEventListener(W, K);
|
|
582
582
|
};
|
|
583
583
|
function ln(e) {
|
|
584
584
|
H.value && dn(e.clientX);
|