vue-data-ui 3.22.0 → 3.22.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.
- package/dist/{Arrow-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- 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/vue-data-ui.d.ts +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t,
|
|
3
|
-
import { t as re } from "./useConfig-
|
|
4
|
-
import { t as ie } from "./usePrinter-
|
|
2
|
+
import { Bt as t, Ct as n, Et as r, G as i, H as a, J as o, S as s, Ut as c, Vt as l, W as u, X as d, gt as f, i as p, kt as m, r as h, t as g, x as ee, y as te, z as ne } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as re } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as ie } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as se } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ce } from "./useNestedProp-
|
|
7
|
+
import { t as ce } from "./useNestedProp-APyFoLCQ.js";
|
|
8
8
|
import { t as le } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as ue } from "./img-
|
|
10
|
-
import { n as de } from "./Title-
|
|
9
|
+
import { t as ue } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as de } from "./Title-CVYf1f8m.js";
|
|
11
11
|
import { t as fe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as pe } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as me } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -294,10 +294,10 @@ var We = class {
|
|
|
294
294
|
emits: ["selectDatapoint", "copyAlt"],
|
|
295
295
|
setup(e, { expose: fe, emit: Pe }) {
|
|
296
296
|
je((e) => ({ v0548cdba: ir.value }));
|
|
297
|
-
let Ie = C(() => import("./Tooltip-
|
|
297
|
+
let Ie = C(() => import("./Tooltip-BmGCBJuU.js")), N = C(() => import("./BaseIcon-DEtwcvEH.js").then((e) => e.n)), Le = C(() => import("./vue-ui-accordion-Di_givzQ.js").then((e) => e.n)), Re = C(() => import("./DataTable-DJZgdnIn.js")), ze = C(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Be = C(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), Ve = C(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), He = C(() => import("./BaseDraggableDialog-a9xCKjW-.js").then((e) => e.n)), P = e, Ue = Pe, { vue_ui_circle_pack: We } = re(), { isThemeValid: Ge, warnInvalidTheme: gt } = le(), _t = v(() => !!P.dataset && P.dataset.length), F = O(a()), I = O(null), vt = O(null), yt = O(null), bt = O(0), xt = O(0), St = O(0), Ct = O(null), L = O(null), wt = O(null), Tt = O(!1), Et = O(""), R = O(null), Dt = O(!1), Ot = O(!1), z = O(null), kt = O({
|
|
298
298
|
x: 0,
|
|
299
299
|
y: 0
|
|
300
|
-
}), At = O("pointer"), jt = O(!1), B = O(Rt()), V = v(() => B.value.userOptions.useCursorPointer), Mt = v(() =>
|
|
300
|
+
}), At = O("pointer"), jt = O(!1), B = O(Rt()), V = v(() => B.value.userOptions.useCursorPointer), Mt = v(() => c({
|
|
301
301
|
defaultConfig: {
|
|
302
302
|
userOptions: { show: !1 },
|
|
303
303
|
table: { show: !1 },
|
|
@@ -349,7 +349,7 @@ var We = class {
|
|
|
349
349
|
color: "#696969"
|
|
350
350
|
}
|
|
351
351
|
],
|
|
352
|
-
skeletonConfig:
|
|
352
|
+
skeletonConfig: c({
|
|
353
353
|
defaultConfig: B.value,
|
|
354
354
|
userConfig: Mt.value
|
|
355
355
|
})
|
|
@@ -358,19 +358,19 @@ var We = class {
|
|
|
358
358
|
let e = ce({
|
|
359
359
|
userConfig: P.config,
|
|
360
360
|
defaultConfig: We
|
|
361
|
-
}),
|
|
362
|
-
if (!
|
|
361
|
+
}), t = e.theme;
|
|
362
|
+
if (!t) return e;
|
|
363
363
|
if (!Ge.value(e)) return gt(e), e;
|
|
364
|
-
let
|
|
365
|
-
userConfig: ye[
|
|
364
|
+
let n = ce({
|
|
365
|
+
userConfig: ye[t] || P.config,
|
|
366
366
|
defaultConfig: e
|
|
367
|
-
}),
|
|
367
|
+
}), r = ce({
|
|
368
368
|
userConfig: P.config,
|
|
369
|
-
defaultConfig:
|
|
369
|
+
defaultConfig: n
|
|
370
370
|
});
|
|
371
371
|
return {
|
|
372
|
-
...
|
|
373
|
-
customPalette:
|
|
372
|
+
...r,
|
|
373
|
+
customPalette: r.customPalette.length ? r.customPalette : l[t] || m
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
Me(() => P.config, (e) => {
|
|
@@ -458,18 +458,18 @@ var We = class {
|
|
|
458
458
|
let t = Number(e?.value);
|
|
459
459
|
return Number.isFinite(t) && t > 0 ? t : Array.isArray(e?.children) ? e.children.reduce((e, t) => e + Xt(t), 0) : 0;
|
|
460
460
|
}
|
|
461
|
-
function Zt(e,
|
|
462
|
-
let
|
|
463
|
-
return
|
|
461
|
+
function Zt(e, t) {
|
|
462
|
+
let n = l[B.value.theme || "default"] || m, r = cn.value.length ? cn.value : n.length ? n : m;
|
|
463
|
+
return te(e.color) || r[t % r.length] || m[t % m.length];
|
|
464
464
|
}
|
|
465
465
|
function Qt(e) {
|
|
466
466
|
return !Array.isArray(e.children) || !e.children.length ? 1 : e.children.reduce((e, t) => e + Qt(t), 0);
|
|
467
467
|
}
|
|
468
|
-
function $t(e, t = null, n = 0,
|
|
469
|
-
return Array.isArray(e) ? e.map((e,
|
|
468
|
+
function $t(e, t = null, n = 0, r = []) {
|
|
469
|
+
return Array.isArray(e) ? e.map((e, i) => {
|
|
470
470
|
let o = Xt(e);
|
|
471
471
|
if (!Number.isFinite(o) || o <= 0) return null;
|
|
472
|
-
let s =
|
|
472
|
+
let s = a(), c = [...r, i], l = c.reduce((e, t, n) => e + t + n, 0), u = e.color || t?.color ? te(e.color || t?.color) : Zt(e, l), d = $t(e.children, {
|
|
473
473
|
id: s,
|
|
474
474
|
name: e.name,
|
|
475
475
|
color: u,
|
|
@@ -541,7 +541,7 @@ var We = class {
|
|
|
541
541
|
q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect(), q.value = null, J.value = null);
|
|
542
542
|
}
|
|
543
543
|
async function sn() {
|
|
544
|
-
|
|
544
|
+
r(P.dataset) && d({
|
|
545
545
|
componentName: "VueUiCirclePack",
|
|
546
546
|
type: "dataset",
|
|
547
547
|
debug: Gt.value
|
|
@@ -554,7 +554,7 @@ var We = class {
|
|
|
554
554
|
}), Me(() => Pt.value, async (e) => {
|
|
555
555
|
await sn();
|
|
556
556
|
}, { deep: !0 });
|
|
557
|
-
let cn = v(() =>
|
|
557
|
+
let cn = v(() => ee(B.value.customPalette)), Y = v(() => $t(Pt.value)), ln = v(() => G.value.length ? Math.max(...G.value.map((e) => e.r)) : 0);
|
|
558
558
|
function un(e, t) {
|
|
559
559
|
return ln.value ? t / ln.value * e : 0;
|
|
560
560
|
}
|
|
@@ -611,7 +611,7 @@ var We = class {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
function gn(e) {
|
|
614
|
-
return p(B.value.style.chart.circles.labels.value.formatter, e.value,
|
|
614
|
+
return p(B.value.style.chart.circles.labels.value.formatter, e.value, i({
|
|
615
615
|
p: B.value.style.chart.circles.labels.value.prefix,
|
|
616
616
|
v: e.value,
|
|
617
617
|
s: B.value.style.chart.circles.labels.value.suffix,
|
|
@@ -861,7 +861,7 @@ var We = class {
|
|
|
861
861
|
[B.value.table.columnNames.value]
|
|
862
862
|
]
|
|
863
863
|
].concat(t));
|
|
864
|
-
e ? e(n) :
|
|
864
|
+
e ? e(n) : o({
|
|
865
865
|
csvContent: n,
|
|
866
866
|
title: B.value.style.chart.title.text || "vue-ui-circle-pack"
|
|
867
867
|
});
|
|
@@ -874,7 +874,7 @@ var We = class {
|
|
|
874
874
|
B.value.table.columnNames.depth,
|
|
875
875
|
B.value.table.columnNames.value
|
|
876
876
|
], t = Fn.value.hierarchy.map((e) => {
|
|
877
|
-
let t =
|
|
877
|
+
let t = i({
|
|
878
878
|
p: B.value.style.chart.circles.labels.value.prefix,
|
|
879
879
|
v: e.value,
|
|
880
880
|
s: B.value.style.chart.circles.labels.value.suffix,
|
|
@@ -889,7 +889,7 @@ var We = class {
|
|
|
889
889
|
e.depth ?? 0,
|
|
890
890
|
t
|
|
891
891
|
];
|
|
892
|
-
}),
|
|
892
|
+
}), n = {
|
|
893
893
|
th: {
|
|
894
894
|
backgroundColor: B.value.table.th.backgroundColor,
|
|
895
895
|
color: B.value.table.th.color,
|
|
@@ -911,7 +911,7 @@ var We = class {
|
|
|
911
911
|
],
|
|
912
912
|
head: e,
|
|
913
913
|
body: t,
|
|
914
|
-
config:
|
|
914
|
+
config: n
|
|
915
915
|
};
|
|
916
916
|
});
|
|
917
917
|
function Rn() {
|
|
@@ -1029,10 +1029,10 @@ var We = class {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
function Zn(e) {
|
|
1031
1031
|
if (!Number.isFinite(e) || !H.value) return;
|
|
1032
|
-
let
|
|
1033
|
-
if (!
|
|
1034
|
-
let
|
|
1035
|
-
|
|
1032
|
+
let n = G.value[e];
|
|
1033
|
+
if (!n) return;
|
|
1034
|
+
let r = t(n.x, n.y, H.value);
|
|
1035
|
+
r && (kt.value = r);
|
|
1036
1036
|
}
|
|
1037
1037
|
function Qn() {
|
|
1038
1038
|
if (z.value !== null) {
|
|
@@ -1293,7 +1293,7 @@ var We = class {
|
|
|
1293
1293
|
}) }, [(D(), x("svg", {
|
|
1294
1294
|
ref_key: "svgRef",
|
|
1295
1295
|
ref: H,
|
|
1296
|
-
xmlns: j(
|
|
1296
|
+
xmlns: j(g),
|
|
1297
1297
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1298
1298
|
viewBox: `${j(Q).x} ${j(Q).y} ${j(Q).width} ${j(Q).height}`,
|
|
1299
1299
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -1317,14 +1317,14 @@ var We = class {
|
|
|
1317
1317
|
height: W.value.h,
|
|
1318
1318
|
style: { pointerEvents: "none" }
|
|
1319
1319
|
}, [k(e.$slots, "chart-background", {}, void 0, !0)], 8, Ye)) : b("", !0),
|
|
1320
|
-
(D(!0), x(_, null, Oe(G.value, (t,
|
|
1320
|
+
(D(!0), x(_, null, Oe(G.value, (t, r) => (D(), x(_, { key: t.id }, [
|
|
1321
1321
|
S("defs", null, [S("radialGradient", {
|
|
1322
1322
|
id: t.id,
|
|
1323
1323
|
fy: "30%"
|
|
1324
1324
|
}, [
|
|
1325
1325
|
S("stop", {
|
|
1326
1326
|
offset: "10%",
|
|
1327
|
-
"stop-color": j(
|
|
1327
|
+
"stop-color": j(n)(t.color, B.value.style.chart.circles.gradient.intensity / 100)
|
|
1328
1328
|
}, null, 8, Ze),
|
|
1329
1329
|
S("stop", {
|
|
1330
1330
|
offset: "90%",
|
|
@@ -1348,9 +1348,9 @@ var We = class {
|
|
|
1348
1348
|
"stroke-width": B.value.style.chart.circles.strokeWidth * (ln.value || 1) / 100,
|
|
1349
1349
|
fill: B.value.style.chart.circles.gradient.show ? `url(#${t.id})` : t.color,
|
|
1350
1350
|
rx: t.r,
|
|
1351
|
-
onMouseenter: (e) => hn(t,
|
|
1352
|
-
onMouseout: (e) => dn(t,
|
|
1353
|
-
onClick: (e) => fn(t,
|
|
1351
|
+
onMouseenter: (e) => hn(t, r, "pointer"),
|
|
1352
|
+
onMouseout: (e) => dn(t, r),
|
|
1353
|
+
onClick: (e) => fn(t, r)
|
|
1354
1354
|
}, null, 40, tt),
|
|
1355
1355
|
e.$slots.pattern ? (D(), x("rect", {
|
|
1356
1356
|
key: 1,
|
|
@@ -1386,12 +1386,12 @@ var We = class {
|
|
|
1386
1386
|
ref_for: !0
|
|
1387
1387
|
}, {
|
|
1388
1388
|
...t,
|
|
1389
|
-
createTSpans: j(
|
|
1389
|
+
createTSpans: j(ne),
|
|
1390
1390
|
fontSize: {
|
|
1391
1391
|
name: t.r / 3 * B.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1392
1392
|
value: _n(t) * B.value.style.chart.circles.labels.value.fontSizeRatio
|
|
1393
1393
|
},
|
|
1394
|
-
color: B.value.style.chart.circles.labels.name.color ? B.value.style.chart.circles.labels.name.color : j(
|
|
1394
|
+
color: B.value.style.chart.circles.labels.name.color ? B.value.style.chart.circles.labels.name.color : j(h)(t.color)
|
|
1395
1395
|
}), void 0, !0) : (D(), x(_, { key: 1 }, [B.value.style.chart.circles.labels.name.show && t.name && rn(t) ? (D(), x("text", {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
style: {
|
|
@@ -1401,7 +1401,7 @@ var We = class {
|
|
|
1401
1401
|
x: t.x,
|
|
1402
1402
|
y: t.y + un(t.r, B.value.style.chart.circles.labels.name.offsetY) - t.r / 10,
|
|
1403
1403
|
"font-size": t.r / 3 * B.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
1404
|
-
fill: B.value.style.chart.circles.labels.name.color === "auto" ? j(
|
|
1404
|
+
fill: B.value.style.chart.circles.labels.name.color === "auto" ? j(h)(t.color) : B.value.style.chart.circles.labels.name.color,
|
|
1405
1405
|
"font-weight": B.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
1406
1406
|
"text-anchor": "middle"
|
|
1407
1407
|
}, A(t.name), 9, it)) : b("", !0), B.value.style.chart.circles.labels.value.show && rn(t) ? (D(), x("text", {
|
|
@@ -1413,7 +1413,7 @@ var We = class {
|
|
|
1413
1413
|
x: t.x,
|
|
1414
1414
|
y: t.y + un(t.r, B.value.style.chart.circles.labels.value.offsetY) + t.r / 2.5,
|
|
1415
1415
|
"font-size": _n(t) * B.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
1416
|
-
fill: B.value.style.chart.circles.labels.value.color === "auto" ? j(
|
|
1416
|
+
fill: B.value.style.chart.circles.labels.value.color === "auto" ? j(h)(t.color) : B.value.style.chart.circles.labels.value.color,
|
|
1417
1417
|
"font-weight": B.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
1418
1418
|
"text-anchor": "middle"
|
|
1419
1419
|
}, A(gn(t)), 9, at)) : b("", !0)], 64)), k(e.$slots, "circle", Ce({ ref_for: !0 }, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { Teleport as o, computed as s, createBlock as
|
|
2
|
+
import { Ft as t, H as n, t as ee } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as r } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as i } from "./useNestedProp-APyFoLCQ.js";
|
|
5
|
+
import { t as a } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { n as te } from "./PackageVersion-Dx81ZIAL.js";
|
|
7
|
+
import { Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, nextTick as ne, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, toDisplayString as y, unref as b } from "vue";
|
|
8
8
|
//#region src/components/vue-ui-cursor.vue
|
|
9
9
|
var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
10
10
|
"xmlns",
|
|
@@ -20,66 +20,66 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
20
20
|
"stroke",
|
|
21
21
|
"stroke-width",
|
|
22
22
|
"stroke-dasharray"
|
|
23
|
-
], se = ["r"],
|
|
23
|
+
], se = ["r"], ce = {
|
|
24
24
|
key: 2,
|
|
25
25
|
class: "wave"
|
|
26
|
-
},
|
|
26
|
+
}, S = ["id"], C = ["id"], w = ["filter", "stroke"], T = {
|
|
27
27
|
key: 3,
|
|
28
28
|
class: "crosshair"
|
|
29
|
-
},
|
|
29
|
+
}, E = [
|
|
30
30
|
"x1",
|
|
31
31
|
"stroke",
|
|
32
32
|
"stroke-width",
|
|
33
33
|
"stroke-dasharray"
|
|
34
|
-
],
|
|
34
|
+
], D = [
|
|
35
35
|
"x1",
|
|
36
36
|
"stroke",
|
|
37
37
|
"stroke-width",
|
|
38
38
|
"stroke-dasharray"
|
|
39
|
-
],
|
|
39
|
+
], O = [
|
|
40
40
|
"y1",
|
|
41
41
|
"stroke",
|
|
42
42
|
"stroke-width",
|
|
43
43
|
"stroke-dasharray"
|
|
44
|
-
],
|
|
44
|
+
], k = [
|
|
45
45
|
"y1",
|
|
46
46
|
"stroke",
|
|
47
47
|
"stroke-width",
|
|
48
48
|
"stroke-dasharray"
|
|
49
|
-
],
|
|
49
|
+
], A = [
|
|
50
50
|
"cy",
|
|
51
51
|
"r",
|
|
52
52
|
"fill"
|
|
53
|
-
],
|
|
53
|
+
], j = [
|
|
54
54
|
"cy",
|
|
55
55
|
"r",
|
|
56
56
|
"fill"
|
|
57
|
-
],
|
|
57
|
+
], M = [
|
|
58
58
|
"cx",
|
|
59
59
|
"r",
|
|
60
60
|
"fill"
|
|
61
|
-
],
|
|
61
|
+
], N = [
|
|
62
62
|
"cx",
|
|
63
63
|
"r",
|
|
64
64
|
"fill"
|
|
65
|
-
],
|
|
65
|
+
], P = {
|
|
66
66
|
key: 5,
|
|
67
67
|
class: "coordinates"
|
|
68
|
-
},
|
|
68
|
+
}, F = [
|
|
69
69
|
"x",
|
|
70
70
|
"y",
|
|
71
71
|
"font-size",
|
|
72
72
|
"fill"
|
|
73
|
-
],
|
|
73
|
+
], I = ["transform"], L = ["font-size", "fill"], R = /*#__PURE__*/ a({
|
|
74
74
|
__name: "vue-ui-cursor",
|
|
75
75
|
props: { config: {
|
|
76
76
|
type: Object,
|
|
77
77
|
default: {}
|
|
78
78
|
} },
|
|
79
79
|
setup(e) {
|
|
80
|
-
let { vue_ui_cursor:
|
|
80
|
+
let { vue_ui_cursor: a } = r(), x = e, R = v(n()), z = s(() => i({
|
|
81
81
|
userConfig: x.config,
|
|
82
|
-
defaultConfig:
|
|
82
|
+
defaultConfig: a
|
|
83
83
|
})), B = v({
|
|
84
84
|
x: -100,
|
|
85
85
|
y: -100
|
|
@@ -96,7 +96,7 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
96
96
|
}
|
|
97
97
|
let q = v(!1), J = v(null);
|
|
98
98
|
function Y() {
|
|
99
|
-
q.value = !1, J.value && clearTimeout(J.value),
|
|
99
|
+
q.value = !1, J.value && clearTimeout(J.value), ne(() => {
|
|
100
100
|
q.value = !0, J.value = setTimeout(() => {
|
|
101
101
|
q.value = !1;
|
|
102
102
|
}, 1e3);
|
|
@@ -129,56 +129,56 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
129
129
|
}), Z.value = t;
|
|
130
130
|
}), h(() => {
|
|
131
131
|
Z.value &&= (Z.value.disconnect(), null), X.value &&= (le(X.value), null);
|
|
132
|
-
}), (e,
|
|
132
|
+
}), (e, n) => (_(), c(o, { to: "body" }, [G.value ? (_(), u("svg", {
|
|
133
133
|
key: 0,
|
|
134
134
|
"data-dom-to-png-ignore": "",
|
|
135
|
-
xmlns: b(
|
|
135
|
+
xmlns: b(ee),
|
|
136
136
|
style: m(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${B.value.y}px; left:${B.value.x}px;`),
|
|
137
137
|
viewBox: "0 0 100 100",
|
|
138
138
|
height: V.value * 2,
|
|
139
139
|
width: V.value * 2
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
f(te),
|
|
142
|
+
d("defs", null, [d("radialGradient", ie, [d("stop", {
|
|
143
143
|
offset: "10%",
|
|
144
144
|
"stop-color": z.value.bubbleEffectColor,
|
|
145
145
|
"stop-opacity": z.value.bubbleEffectOpacity
|
|
146
|
-
}, null, 8, ae),
|
|
146
|
+
}, null, 8, ae), n[0] ||= d("stop", {
|
|
147
147
|
offset: "95%",
|
|
148
148
|
"stop-color": "transparent"
|
|
149
149
|
}, null, -1)])]),
|
|
150
|
-
z.value.showCenterCircle ? (_(),
|
|
150
|
+
z.value.showCenterCircle ? (_(), u("circle", {
|
|
151
151
|
key: 0,
|
|
152
152
|
cx: 50,
|
|
153
153
|
cy: 50,
|
|
154
154
|
r: V.value,
|
|
155
|
-
fill: b(
|
|
155
|
+
fill: b(t)(z.value.centerCircleColor, z.value.centerCircleOpacity * 100),
|
|
156
156
|
stroke: z.value.centerCircleStroke,
|
|
157
157
|
"stroke-width": z.value.centerCircleStrokeWidth,
|
|
158
158
|
"stroke-dasharray": z.value.centerCircleDasharray
|
|
159
|
-
}, null, 8, oe)) :
|
|
160
|
-
z.value.bubbleEffect ? (_(),
|
|
159
|
+
}, null, 8, oe)) : l("", !0),
|
|
160
|
+
z.value.bubbleEffect ? (_(), u("circle", {
|
|
161
161
|
key: 1,
|
|
162
162
|
cx: 50,
|
|
163
163
|
cy: 50,
|
|
164
164
|
r: V.value,
|
|
165
165
|
fill: "url(#follower)",
|
|
166
166
|
stroke: "none"
|
|
167
|
-
}, null, 8, se)) :
|
|
168
|
-
z.value.useWaveOnClick ? (_(),
|
|
167
|
+
}, null, 8, se)) : l("", !0),
|
|
168
|
+
z.value.useWaveOnClick ? (_(), u("g", ce, [d("defs", null, [d("filter", {
|
|
169
169
|
id: `blur_${R.value}`,
|
|
170
170
|
x: "-50%",
|
|
171
171
|
y: "-50%",
|
|
172
172
|
width: "200%",
|
|
173
173
|
height: "200%"
|
|
174
|
-
}, [
|
|
174
|
+
}, [d("feGaussianBlur", {
|
|
175
175
|
in: "SourceGraphic",
|
|
176
176
|
stdDeviation: 4,
|
|
177
177
|
id: `blur_std_${R.value}`
|
|
178
|
-
}, null, 8,
|
|
178
|
+
}, null, 8, C), n[1] ||= d("feColorMatrix", {
|
|
179
179
|
type: "saturate",
|
|
180
180
|
values: "0"
|
|
181
|
-
}, null, -1)], 8,
|
|
181
|
+
}, null, -1)], 8, S)]), q.value ? (_(), u("circle", {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: p({ "circle-wave": q.value }),
|
|
184
184
|
cx: 50,
|
|
@@ -188,9 +188,9 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
188
188
|
stroke: z.value.centerCircleStroke,
|
|
189
189
|
fill: "none",
|
|
190
190
|
"stroke-width": "3"
|
|
191
|
-
}, null, 10,
|
|
192
|
-
z.value.showCrosshair ? (_(),
|
|
193
|
-
|
|
191
|
+
}, null, 10, w)) : l("", !0)])) : l("", !0),
|
|
192
|
+
z.value.showCrosshair ? (_(), u("g", T, [
|
|
193
|
+
d("line", {
|
|
194
194
|
x1: -V.value + 50,
|
|
195
195
|
x2: -5e3,
|
|
196
196
|
y1: 50,
|
|
@@ -199,8 +199,8 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
199
199
|
"stroke-width": z.value.crosshairStrokeWidth,
|
|
200
200
|
"stroke-dasharray": z.value.crosshairDasharray,
|
|
201
201
|
"stroke-linecap": "round"
|
|
202
|
-
}, null, 8,
|
|
203
|
-
|
|
202
|
+
}, null, 8, E),
|
|
203
|
+
d("line", {
|
|
204
204
|
x1: 50 + V.value,
|
|
205
205
|
x2: 5e3,
|
|
206
206
|
y1: 50,
|
|
@@ -209,8 +209,8 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
209
209
|
"stroke-width": z.value.crosshairStrokeWidth,
|
|
210
210
|
"stroke-dasharray": z.value.crosshairDasharray,
|
|
211
211
|
"stroke-linecap": "round"
|
|
212
|
-
}, null, 8,
|
|
213
|
-
|
|
212
|
+
}, null, 8, D),
|
|
213
|
+
d("line", {
|
|
214
214
|
x1: 50,
|
|
215
215
|
x2: 50,
|
|
216
216
|
y1: -V.value + 50,
|
|
@@ -219,8 +219,8 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
219
219
|
"stroke-width": z.value.crosshairStrokeWidth,
|
|
220
220
|
"stroke-dasharray": z.value.crosshairDasharray,
|
|
221
221
|
"stroke-linecap": "round"
|
|
222
|
-
}, null, 8,
|
|
223
|
-
|
|
222
|
+
}, null, 8, O),
|
|
223
|
+
d("line", {
|
|
224
224
|
x1: 50,
|
|
225
225
|
x2: 50,
|
|
226
226
|
y1: V.value + 50,
|
|
@@ -229,38 +229,38 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
229
229
|
"stroke-width": z.value.crosshairStrokeWidth,
|
|
230
230
|
"stroke-dasharray": z.value.crosshairDasharray,
|
|
231
231
|
"stroke-linecap": "round"
|
|
232
|
-
}, null, 8,
|
|
233
|
-
])) :
|
|
234
|
-
z.value.showIntersectCircles ? (_(),
|
|
232
|
+
}, null, 8, k)
|
|
233
|
+
])) : l("", !0),
|
|
234
|
+
z.value.showIntersectCircles ? (_(), u("g", {
|
|
235
235
|
key: 4,
|
|
236
236
|
class: p({ "rotating-circles": z.value.isLoading })
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
d("circle", {
|
|
239
239
|
cx: 50,
|
|
240
240
|
cy: V.value + 50,
|
|
241
241
|
r: z.value.intersectCirclesRadius,
|
|
242
242
|
fill: z.value.intersectCirclesFill
|
|
243
|
-
}, null, 8,
|
|
244
|
-
|
|
243
|
+
}, null, 8, A),
|
|
244
|
+
d("circle", {
|
|
245
245
|
cx: 50,
|
|
246
246
|
cy: -V.value + 50,
|
|
247
247
|
r: z.value.intersectCirclesRadius,
|
|
248
248
|
fill: z.value.intersectCirclesFill
|
|
249
|
-
}, null, 8,
|
|
250
|
-
|
|
249
|
+
}, null, 8, j),
|
|
250
|
+
d("circle", {
|
|
251
251
|
cx: -V.value + 50,
|
|
252
252
|
cy: 50,
|
|
253
253
|
r: z.value.intersectCirclesRadius,
|
|
254
254
|
fill: z.value.intersectCirclesFill
|
|
255
|
-
}, null, 8,
|
|
256
|
-
|
|
255
|
+
}, null, 8, M),
|
|
256
|
+
d("circle", {
|
|
257
257
|
cx: V.value + 50,
|
|
258
258
|
cy: 50,
|
|
259
259
|
r: z.value.intersectCirclesRadius,
|
|
260
260
|
fill: z.value.intersectCirclesFill
|
|
261
|
-
}, null, 8,
|
|
262
|
-
], 2)) :
|
|
263
|
-
z.value.showCoordinates ? (_(),
|
|
261
|
+
}, null, 8, N)
|
|
262
|
+
], 2)) : l("", !0),
|
|
263
|
+
z.value.showCoordinates ? (_(), u("g", P, [d("text", {
|
|
264
264
|
"text-anchor": "end",
|
|
265
265
|
x: -V.value + 50 - z.value.coordinatesFontSize / 2 + H.value,
|
|
266
266
|
y: 50 - z.value.coordinatesFontSize / 2 + H.value,
|
|
@@ -268,15 +268,15 @@ var x = /* @__PURE__ */ e({ default: () => R }), re = [
|
|
|
268
268
|
fill: z.value.coordinatesColor,
|
|
269
269
|
style: { "font-variant-numeric": "tabular-nums" },
|
|
270
270
|
"font-family": "Arial"
|
|
271
|
-
}, y(B.value.x.toFixed(0)), 9,
|
|
271
|
+
}, y(B.value.x.toFixed(0)), 9, F), d("g", { transform: `translate(${50 - z.value.coordinatesFontSize / 2 + H.value}, ${-V.value + 50 - z.value.coordinatesFontSize / 2 + H.value})` }, [d("text", {
|
|
272
272
|
"text-anchor": "start",
|
|
273
273
|
"font-size": z.value.coordinatesFontSize,
|
|
274
274
|
fill: z.value.coordinatesColor,
|
|
275
275
|
style: { "font-variant-numeric": "tabular-nums" },
|
|
276
276
|
transform: "rotate(-90)",
|
|
277
277
|
"font-family": "Arial"
|
|
278
|
-
}, y(B.value.y.toFixed(0)), 9,
|
|
279
|
-
], 12, re)) :
|
|
278
|
+
}, y(B.value.y.toFixed(0)), 9, L)], 8, I)])) : l("", !0)
|
|
279
|
+
], 12, re)) : l("", !0)]));
|
|
280
280
|
}
|
|
281
281
|
}, [["__scopeId", "data-v-4b1f566e"]]);
|
|
282
282
|
//#endregion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as l } from "./useConfig-
|
|
4
|
-
import { t as u } from "./usePrinter-
|
|
2
|
+
import { Et as t, H as n, Ut as r, V as i, X as a, dt as o, t as s, y as c } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as l } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as u } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as d, t as f } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as p } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as m } from "./useNestedProp-
|
|
7
|
+
import { t as m } from "./useNestedProp-APyFoLCQ.js";
|
|
8
8
|
import { t as h } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as g } from "./img-
|
|
10
|
-
import { n as ee } from "./Title-
|
|
9
|
+
import { t as g } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as ee } from "./Title-CVYf1f8m.js";
|
|
11
11
|
import { t as te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as ne } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as re } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -15,7 +15,7 @@ import { t as ie } from "./A11yDataTable-DdRsVULz.js";
|
|
|
15
15
|
import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
16
|
import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
17
|
import { t as se } from "./usePanZoom-CYU3B4T3.js";
|
|
18
|
-
import { t as ce } from "./BaseZoomControls-
|
|
18
|
+
import { t as ce } from "./BaseZoomControls-BjjT6vtB.js";
|
|
19
19
|
import { t as le } from "./vue_ui_dag-TsJ_azQq.js";
|
|
20
20
|
import { Fragment as ue, Teleport as de, Transition as fe, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as pe, createTextVNode as me, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as S, mergeProps as _e, nextTick as ve, normalizeClass as ye, normalizeProps as C, normalizeStyle as be, onBeforeUnmount as xe, onMounted as Se, openBlock as w, ref as T, renderList as Ce, renderSlot as E, toDisplayString as we, toRefs as Te, unref as D, watch as Ee, watchEffect as De, withCtx as O, withModifiers as Oe } from "vue";
|
|
21
21
|
//#region src/DAG/graph.js
|
|
@@ -1600,8 +1600,8 @@ function qn(e) {
|
|
|
1600
1600
|
return n += ` L ${r.x} ${r.y}`, n;
|
|
1601
1601
|
}
|
|
1602
1602
|
function Jn(e) {
|
|
1603
|
-
let { nodes:
|
|
1604
|
-
function l(e,
|
|
1603
|
+
let { nodes: t, edges: r, configuration: i } = e, a = T(null), s = T(null), c = `dag-arrow-${n()}`;
|
|
1604
|
+
function l(e, t, r) {
|
|
1605
1605
|
s.value = null, a.value = null;
|
|
1606
1606
|
let i = {
|
|
1607
1607
|
...Gn,
|
|
@@ -1622,7 +1622,7 @@ function Jn(e) {
|
|
|
1622
1622
|
width: e.width ?? i.nodeWidth,
|
|
1623
1623
|
height: e.height ?? i.nodeHeight
|
|
1624
1624
|
});
|
|
1625
|
-
}),
|
|
1625
|
+
}), t.forEach((e) => {
|
|
1626
1626
|
l.setEdge(e.from, e.to, {
|
|
1627
1627
|
weight: e.weight ?? 1,
|
|
1628
1628
|
minlen: e.minLength ?? 1,
|
|
@@ -1643,9 +1643,9 @@ function Jn(e) {
|
|
|
1643
1643
|
}), d = l.edges().map((e) => {
|
|
1644
1644
|
let r = l.edge(e), a = r.points || [];
|
|
1645
1645
|
if (!a.length) return null;
|
|
1646
|
-
let o = i.curvedEdges ? qn(a) : Kn(a), s = i.arrowShape === "undirected" ? null : `url(#${c})`, u =
|
|
1646
|
+
let o = i.curvedEdges ? qn(a) : Kn(a), s = i.arrowShape === "undirected" ? null : `url(#${c})`, u = t.find((t) => t?.from === e.v && t?.to === e.w);
|
|
1647
1647
|
return {
|
|
1648
|
-
id: `${e.v}->${e.w}->${
|
|
1648
|
+
id: `${e.v}->${e.w}->${n()}`,
|
|
1649
1649
|
from: e.v,
|
|
1650
1650
|
to: e.w,
|
|
1651
1651
|
points: a,
|
|
@@ -1684,7 +1684,7 @@ function Jn(e) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
return De(() => {
|
|
1686
1686
|
try {
|
|
1687
|
-
l(D(
|
|
1687
|
+
l(D(t) || [], D(r) || [], D(i) || {});
|
|
1688
1688
|
} catch (e) {
|
|
1689
1689
|
console.error("[useDag] layout error:", e), s.value = e, a.value = null;
|
|
1690
1690
|
}
|
|
@@ -1693,7 +1693,7 @@ function Jn(e) {
|
|
|
1693
1693
|
lastError: s,
|
|
1694
1694
|
arrowMarkerIdentifier: c,
|
|
1695
1695
|
recomputeLayout: () => {
|
|
1696
|
-
l(D(
|
|
1696
|
+
l(D(t) || [], D(r) || [], D(i) || {});
|
|
1697
1697
|
}
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
@@ -1809,7 +1809,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
|
|
|
1809
1809
|
"rotate"
|
|
1810
1810
|
],
|
|
1811
1811
|
setup(e, { expose: o, emit: te }) {
|
|
1812
|
-
let De = ge(() => import("./PenAndPaper-
|
|
1812
|
+
let De = ge(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), ke = ge(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), Ae = ge(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_dag: je } = l(), { isThemeValid: k, warnInvalidTheme: Me } = h(), A = e, j = te, M = T(null), N = T(n()), Ne = T(null), Pe = T(null), Fe = T(null), Ie = T(0), Le = T(0), Re = T(!1), ze = T(!1), Be = T(!1), Ve = T(!1), P = T(null), F = T(null), I = T(null), L = T(null), He = T(null), Ue = T("pointer"), We = T(!1), R = T(ct()), Ge = _(() => R.value.userOptions.useCursorPointer), Ke = T(R.value.style.chart.width), qe = T(R.value.style.chart.height), Je = T({
|
|
1813
1813
|
x: 0,
|
|
1814
1814
|
y: 0
|
|
1815
1815
|
}), z = T(null), B = T(null), Ye = T({
|
|
@@ -1824,7 +1824,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
|
|
|
1824
1824
|
}), H = T(null), U = T(null), $e = T({
|
|
1825
1825
|
left: "0px",
|
|
1826
1826
|
top: "0px"
|
|
1827
|
-
}), et = T("top"), W = T(!1), G = T(!1), { svgRef: K } = oe({ config: R.value.style.chart.title }), { userOptionsVisible: tt, setUserOptionsVisibility: nt, keepUserOptionState: rt } = ae({ config: R.value }), q = T(R.value.style.chart.layout.rankDirection), it = _(() =>
|
|
1827
|
+
}), et = T("top"), W = T(!1), G = T(!1), { svgRef: K } = oe({ config: R.value.style.chart.title }), { userOptionsVisible: tt, setUserOptionsVisibility: nt, keepUserOptionState: rt } = ae({ config: R.value }), q = T(R.value.style.chart.layout.rankDirection), it = _(() => r({
|
|
1828
1828
|
defaultConfig: {
|
|
1829
1829
|
userOptions: { show: !1 },
|
|
1830
1830
|
style: { chart: {
|
|
@@ -1868,7 +1868,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
|
|
|
1868
1868
|
to: "C"
|
|
1869
1869
|
}]
|
|
1870
1870
|
},
|
|
1871
|
-
skeletonConfig:
|
|
1871
|
+
skeletonConfig: r({
|
|
1872
1872
|
defaultConfig: R.value,
|
|
1873
1873
|
userConfig: it.value
|
|
1874
1874
|
})
|
|
@@ -1891,7 +1891,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
|
|
|
1891
1891
|
}
|
|
1892
1892
|
let lt = _(() => !!R.value.debug);
|
|
1893
1893
|
Se(async () => {
|
|
1894
|
-
|
|
1894
|
+
t(A.dataset) && (a({
|
|
1895
1895
|
componentName: "VueUiDag",
|
|
1896
1896
|
type: "dataset",
|
|
1897
1897
|
debug: lt.value
|