vue-data-ui 3.10.0 → 3.10.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-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { d as st, u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { B as ut } from "./BaseZoomControls-
|
|
15
|
-
import { _ as
|
|
16
|
-
function
|
|
1
|
+
import { useCssVars as Zt, defineAsyncComponent as ne, computed as le, ref as M, toRefs as Vt, watch as we, shallowRef as tt, onMounted as Ut, onBeforeUnmount as Lt, createElementBlock as J, openBlock as W, unref as A, normalizeStyle as Xe, createBlock as se, createCommentVNode as N, createVNode as Re, withCtx as E, renderSlot as z, normalizeProps as Z, guardReactiveProps as V, createSlots as ot, normalizeClass as at, createElementVNode as $e, Fragment as jt, renderList as Ht, toDisplayString as De, resolveDynamicComponent as qt, mergeProps as Gt, createTextVNode as nt, nextTick as lt } from "vue";
|
|
2
|
+
import { d as st, u as Jt } from "./useResponsive-DfdjqQps.js";
|
|
3
|
+
import { c as Kt, t as Qt, I as eo, U as to, i as oo, j as Te, o as rt, g as it, l as ao, d as no, X as lo, v as so, r as ro, y as io } from "./lib-CVHM9FhP.js";
|
|
4
|
+
import { u as uo, a as Ye } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
+
import { u as co, B as mo } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as fo } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as vo } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as ho } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
+
import { u as po } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as go } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import bo from "./img-6fNF_rG0.js";
|
|
12
|
+
import yo from "./Title-NgeRXqRA.js";
|
|
13
|
+
import { u as Co } from "./usePanZoom-CDF7rb3o.js";
|
|
14
|
+
import { B as ut } from "./BaseZoomControls-Cb-Qq9_R.js";
|
|
15
|
+
import { _ as ko } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
function wo({
|
|
17
17
|
word: o,
|
|
18
18
|
fontSize: l,
|
|
19
19
|
pad: m,
|
|
@@ -47,7 +47,7 @@ function Co({
|
|
|
47
47
|
maxY: x
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function xo(o) {
|
|
51
51
|
const l = [];
|
|
52
52
|
if (!o.length) return l;
|
|
53
53
|
let m = o[0][1], c = o[0][0], i = c;
|
|
@@ -66,7 +66,7 @@ function vt(o) {
|
|
|
66
66
|
function ht(o) {
|
|
67
67
|
return 4294967295 >>> 31 - o >>> 0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ao({
|
|
70
70
|
maskBits: o,
|
|
71
71
|
maskRowStride: l,
|
|
72
72
|
maskW: m,
|
|
@@ -99,7 +99,7 @@ function wo({
|
|
|
99
99
|
}
|
|
100
100
|
return !0;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Fo({
|
|
103
103
|
maskBits: o,
|
|
104
104
|
maskRowStride: l,
|
|
105
105
|
maskW: m,
|
|
@@ -131,7 +131,7 @@ function xo({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function So({ wordMask: o, w: l, h: m, dilation: c }) {
|
|
135
135
|
const i = new Uint8Array(l * m), d = [];
|
|
136
136
|
for (let a = 0; a < o.length; a += 1) {
|
|
137
137
|
const p = o[a][0], g = o[a][1] * l + p;
|
|
@@ -158,7 +158,7 @@ function Fo({ wordMask: o, w: l, h: m, dilation: c }) {
|
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function $o({
|
|
162
162
|
runs: o,
|
|
163
163
|
w: l,
|
|
164
164
|
h: m,
|
|
@@ -195,7 +195,7 @@ function Ao({
|
|
|
195
195
|
}
|
|
196
196
|
return r;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function To(o, l) {
|
|
199
199
|
const m = o.runs, c = o.w, i = o.h, d = Math.max(1, Math.round(c * l)), r = Math.max(1, Math.round(i * l)), a = new Array(r);
|
|
200
200
|
let p = d, f = r, g = 0, y = 0, b = !1;
|
|
201
201
|
for (let u = 0; u < m.length; u += 1) {
|
|
@@ -239,11 +239,11 @@ function So(o, l) {
|
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
const ct = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map();
|
|
242
|
-
function
|
|
242
|
+
function Mo({ word: o, fontSize: l, pad: m, svg: c }) {
|
|
243
243
|
const i = c.style && c.style.bold ? 1 : 0, d = m || 0;
|
|
244
244
|
return `${o.name}::${l}::${d}::${i}`;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Io({
|
|
247
247
|
word: o,
|
|
248
248
|
fontSize: l,
|
|
249
249
|
pad: m,
|
|
@@ -251,12 +251,12 @@ function To({
|
|
|
251
251
|
ctx: i,
|
|
252
252
|
svg: d
|
|
253
253
|
}) {
|
|
254
|
-
const r =
|
|
254
|
+
const r = Mo({ word: o, fontSize: l, pad: m, svg: d }), a = ct.get(r);
|
|
255
255
|
if (a) return { key: r, bitmap: a };
|
|
256
|
-
const p =
|
|
256
|
+
const p = wo({ word: o, fontSize: l, pad: m, canvas: c, ctx: i, svg: d });
|
|
257
257
|
return ct.set(r, p), { key: r, bitmap: p };
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Oo({
|
|
260
260
|
bitmapKey: o,
|
|
261
261
|
wordMask: l,
|
|
262
262
|
w: m,
|
|
@@ -265,20 +265,20 @@ function Mo({
|
|
|
265
265
|
}) {
|
|
266
266
|
const d = `${o}::d${i}`, r = dt.get(d);
|
|
267
267
|
if (r) return r;
|
|
268
|
-
const a =
|
|
268
|
+
const a = So({ wordMask: l, w: m, h: c, dilation: i }), p = xo(a), f = { wordMask: a, runs: p };
|
|
269
269
|
return dt.set(d, f), f;
|
|
270
270
|
}
|
|
271
|
-
const
|
|
272
|
-
for (let o = 0; o < 360; o +=
|
|
271
|
+
const Eo = 6, zo = 2, pt = Math.PI / 180, gt = [], bt = [];
|
|
272
|
+
for (let o = 0; o < 360; o += Eo) {
|
|
273
273
|
const l = o * pt;
|
|
274
274
|
gt.push(Math.cos(l)), bt.push(Math.sin(l));
|
|
275
275
|
}
|
|
276
276
|
const yt = [], Ct = [];
|
|
277
|
-
for (let o = 0; o < 360; o +=
|
|
277
|
+
for (let o = 0; o < 360; o += zo) {
|
|
278
278
|
const l = o * pt;
|
|
279
279
|
yt.push(Math.cos(l)), Ct.push(Math.sin(l));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Po(o, l, m) {
|
|
282
282
|
if (!o.length) return;
|
|
283
283
|
let c = 1 / 0, i = -1 / 0, d = 1 / 0, r = -1 / 0;
|
|
284
284
|
for (let u = 0; u < o.length; u += 1) {
|
|
@@ -304,10 +304,10 @@ function Eo(o, l, m) {
|
|
|
304
304
|
s.x *= b, s.y *= b, s.width *= b, s.height *= b, s.fontSize *= b, s.minX *= b, s.maxX *= b, s.minY *= b, s.maxY *= b;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Xo() {
|
|
308
308
|
return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ro({
|
|
311
311
|
value: o,
|
|
312
312
|
minimumValue: l,
|
|
313
313
|
maximumValue: m,
|
|
@@ -322,7 +322,7 @@ function Po({
|
|
|
322
322
|
Math.min(i, r)
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Do({
|
|
326
326
|
currentBitmap: o,
|
|
327
327
|
strictPixelPadding: l,
|
|
328
328
|
scaleFactor: m,
|
|
@@ -340,7 +340,7 @@ function Xo({
|
|
|
340
340
|
bitmapMaximumX: g,
|
|
341
341
|
bitmapMaximumY: y
|
|
342
342
|
} : m === 1 ? {
|
|
343
|
-
runs:
|
|
343
|
+
runs: Oo({
|
|
344
344
|
bitmapKey: i,
|
|
345
345
|
wordMask: c.wordMask,
|
|
346
346
|
w: c.w,
|
|
@@ -354,7 +354,7 @@ function Xo({
|
|
|
354
354
|
bitmapMaximumX: g,
|
|
355
355
|
bitmapMaximumY: y
|
|
356
356
|
} : {
|
|
357
|
-
runs:
|
|
357
|
+
runs: $o({
|
|
358
358
|
runs: d,
|
|
359
359
|
w: r,
|
|
360
360
|
h: a,
|
|
@@ -392,7 +392,7 @@ async function mt({
|
|
|
392
392
|
}) {
|
|
393
393
|
let w = 1;
|
|
394
394
|
for (; w >= m; ) {
|
|
395
|
-
const _ = w === 1 ? o :
|
|
395
|
+
const _ = w === 1 ? o : To(o, w), B = Do({
|
|
396
396
|
currentBitmap: _,
|
|
397
397
|
strictPixelPadding: y,
|
|
398
398
|
scaleFactor: w,
|
|
@@ -418,7 +418,7 @@ async function mt({
|
|
|
418
418
|
);
|
|
419
419
|
if (L < 0 || j < 0 || L + P > d || j + U > r)
|
|
420
420
|
continue;
|
|
421
|
-
if (
|
|
421
|
+
if (Ao({
|
|
422
422
|
maskBits: c,
|
|
423
423
|
maskRowStride: i,
|
|
424
424
|
maskW: d,
|
|
@@ -443,7 +443,7 @@ async function mt({
|
|
|
443
443
|
maxX: e,
|
|
444
444
|
maxY: ie
|
|
445
445
|
};
|
|
446
|
-
return
|
|
446
|
+
return Fo({
|
|
447
447
|
maskBits: c,
|
|
448
448
|
maskRowStride: i,
|
|
449
449
|
maskW: d,
|
|
@@ -460,7 +460,7 @@ async function mt({
|
|
|
460
460
|
}
|
|
461
461
|
return null;
|
|
462
462
|
}
|
|
463
|
-
async function
|
|
463
|
+
async function Yo({
|
|
464
464
|
baseBitmap: o,
|
|
465
465
|
baseFontSize: l,
|
|
466
466
|
minimumScaleFactor: m,
|
|
@@ -525,7 +525,7 @@ async function Ro({
|
|
|
525
525
|
maybeYield: s
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
|
-
async function
|
|
528
|
+
async function Wo({
|
|
529
529
|
words: o,
|
|
530
530
|
proximity: l = 0,
|
|
531
531
|
svg: m,
|
|
@@ -533,7 +533,7 @@ async function Do({
|
|
|
533
533
|
onProgress: i,
|
|
534
534
|
debugTiming: d = !1
|
|
535
535
|
}) {
|
|
536
|
-
const r =
|
|
536
|
+
const r = Xo(), a = r(), p = 12;
|
|
537
537
|
let f = a;
|
|
538
538
|
async function g() {
|
|
539
539
|
r() - f >= p && (await new Promise((Y) => setTimeout(Y, 0)), f = r());
|
|
@@ -550,13 +550,13 @@ async function Do({
|
|
|
550
550
|
(D, Y) => Y.value - D.value
|
|
551
551
|
), R = [], L = 0.9;
|
|
552
552
|
for (let D = 0; D < oe.length; D += 1) {
|
|
553
|
-
const Y = oe[D], ue = R.length, ce =
|
|
553
|
+
const Y = oe[D], ue = R.length, ce = Ro({
|
|
554
554
|
value: Y.value,
|
|
555
555
|
minimumValue: h,
|
|
556
556
|
maximumValue: w,
|
|
557
557
|
configuredMinimumFontSize: S,
|
|
558
558
|
maximumFontSize: k
|
|
559
|
-
}), xe =
|
|
559
|
+
}), xe = Io({
|
|
560
560
|
word: Y,
|
|
561
561
|
fontSize: ce,
|
|
562
562
|
pad: l,
|
|
@@ -571,7 +571,7 @@ async function Do({
|
|
|
571
571
|
const H = Math.max(
|
|
572
572
|
s / ce,
|
|
573
573
|
0.1
|
|
574
|
-
), Q = await
|
|
574
|
+
), Q = await Yo({
|
|
575
575
|
baseBitmap: I,
|
|
576
576
|
baseFontSize: ce,
|
|
577
577
|
minimumScaleFactor: H,
|
|
@@ -599,38 +599,42 @@ async function Do({
|
|
|
599
599
|
}
|
|
600
600
|
if (!R.length)
|
|
601
601
|
return [];
|
|
602
|
-
|
|
602
|
+
Po(R, v, u);
|
|
603
603
|
const he = r() - a;
|
|
604
604
|
return d && typeof console < "u" && console.log && console.log(
|
|
605
605
|
"[vue-data-ui][word-cloud] positionWordsAsync:",
|
|
606
606
|
`${he.toFixed(2)} ms for ${o.length} words`
|
|
607
607
|
), R.sort((D, Y) => Y.fontSize - D.fontSize);
|
|
608
608
|
}
|
|
609
|
-
const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } },
|
|
609
|
+
const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, xt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, controls: { backgroundColor: "#2A2A2A", buttonColor: "#2A2A2A", color: "#CCCCCC", border: "1px solid #4A4A4A" }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, At = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, controls: { backgroundColor: "#FFF8E1", buttonColor: "#FFF8E1", color: "#424242", border: "1px solid #d9bbb2" }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ft = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, controls: { backgroundColor: "#1E1E1E", buttonColor: "#1E1E1E", color: "#BDBDBD", border: "1px solid #3A3A3A" }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", controls: { backgroundColor: "#1A1A1A", buttonColor: "#1A1A1A", color: "#99AA99", border: "1px solid #1e361e" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, $t = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", controls: { backgroundColor: "#fbfafa", buttonColor: "#fbfafa", color: "#99AA99", border: "1px solid #ebded3" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Tt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", controls: { backgroundColor: "#f6f6fb", buttonColor: "#f6f6fb", color: "#50606C", border: "1px solid #98aab8", borderRadius: "0" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Mt = {
|
|
610
610
|
default: {},
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
611
|
+
minimal: kt,
|
|
612
|
+
minimalDark: wt,
|
|
613
|
+
dark: xt,
|
|
614
|
+
celebration: At,
|
|
615
|
+
celebrationNight: Ft,
|
|
616
|
+
hack: St,
|
|
617
|
+
zen: $t,
|
|
618
|
+
concrete: Tt
|
|
619
|
+
}, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
618
620
|
__proto__: null,
|
|
619
|
-
celebration:
|
|
620
|
-
celebrationNight:
|
|
621
|
-
concrete:
|
|
622
|
-
dark:
|
|
623
|
-
default:
|
|
624
|
-
hack:
|
|
625
|
-
|
|
626
|
-
|
|
621
|
+
celebration: At,
|
|
622
|
+
celebrationNight: Ft,
|
|
623
|
+
concrete: Tt,
|
|
624
|
+
dark: xt,
|
|
625
|
+
default: Mt,
|
|
626
|
+
hack: St,
|
|
627
|
+
minimal: kt,
|
|
628
|
+
minimalDark: wt,
|
|
629
|
+
zen: $t
|
|
630
|
+
}, Symbol.toStringTag, { value: "Module" })), Bo = ["id", "data-resizing", "data-relayout"], _o = ["xmlns", "viewBox"], No = ["width", "height"], Zo = ["transform"], Vo = ["transform"], Uo = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], Lo = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], jo = {
|
|
627
631
|
key: 4,
|
|
628
632
|
class: "vue-data-ui-watermark"
|
|
629
|
-
},
|
|
633
|
+
}, Ho = {
|
|
630
634
|
key: 5,
|
|
631
635
|
"data-dom-to-png-ignore": "",
|
|
632
636
|
class: "reset-wrapper"
|
|
633
|
-
},
|
|
637
|
+
}, qo = ["innerHTML"], Go = {
|
|
634
638
|
__name: "vue-ui-word-cloud",
|
|
635
639
|
props: {
|
|
636
640
|
config: {
|
|
@@ -647,18 +651,18 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
647
651
|
}
|
|
648
652
|
},
|
|
649
653
|
setup(o, { expose: l }) {
|
|
650
|
-
|
|
654
|
+
Zt((t) => ({
|
|
651
655
|
d5ca9ade: t.slicerColor
|
|
652
656
|
}));
|
|
653
|
-
const m = ne(() => import("./Tooltip-
|
|
657
|
+
const m = ne(() => import("./Tooltip-B6qvABDL.js")), c = ne(() => import("./BaseIcon-4uOct8re.js")), i = ne(() => import("./vue-ui-accordion-DFKaB_05.js")), d = ne(() => import("./DataTable-DyoDzNNY.js")), r = ne(() => import("./PenAndPaper-LTuSTmWE.js")), a = ne(() => import("./UserOptions-CX7Xsusk.js")), p = ne(() => import("./PackageVersion-CQxJyGQr.js")), f = ne(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_word_cloud: g } = uo(), { isThemeValid: y, warnInvalidTheme: b } = ho(), v = o, u = le({
|
|
654
658
|
get() {
|
|
655
659
|
return !!v.dataset && v.dataset.length;
|
|
656
660
|
},
|
|
657
661
|
set(t) {
|
|
658
662
|
return t;
|
|
659
663
|
}
|
|
660
|
-
}), s = M(
|
|
661
|
-
...
|
|
664
|
+
}), s = M(Kt()), S = M(0), k = M(null), x = M(null), h = M(null), w = M(0), _ = M(0), B = M(!1), X = M(null), P = M(null), U = M(!1), te = M(!1), re = M(null), e = M(ue()), { loading: ie, FINAL_DATASET: K, manualLoading: oe } = co({
|
|
665
|
+
...Vt(v),
|
|
662
666
|
FINAL_CONFIG: e,
|
|
663
667
|
prepareConfig: ue,
|
|
664
668
|
callback: () => {
|
|
@@ -716,7 +720,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
716
720
|
{ name: "fames", value: 1 },
|
|
717
721
|
{ name: "ante", value: 1 }
|
|
718
722
|
],
|
|
719
|
-
skeletonConfig:
|
|
723
|
+
skeletonConfig: Qt({
|
|
720
724
|
defaultConfig: e.value,
|
|
721
725
|
userConfig: {
|
|
722
726
|
userOptions: { show: !1 },
|
|
@@ -739,12 +743,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
739
743
|
})
|
|
740
744
|
}), R = M(L());
|
|
741
745
|
function L() {
|
|
742
|
-
return typeof K.value == "string" ?
|
|
746
|
+
return typeof K.value == "string" ? eo(K.value) : K.value.map((t, C) => ({
|
|
743
747
|
...t,
|
|
744
|
-
value:
|
|
748
|
+
value: to(t.value)
|
|
745
749
|
}));
|
|
746
750
|
}
|
|
747
|
-
const { userOptionsVisible: j, setUserOptionsVisibility: he, keepUserOptionState: D } =
|
|
751
|
+
const { userOptionsVisible: j, setUserOptionsVisibility: he, keepUserOptionState: D } = po({ config: e.value }), { svgRef: Y } = go({ config: e.value.style.chart.title });
|
|
748
752
|
function ue() {
|
|
749
753
|
const t = Ye({
|
|
750
754
|
userConfig: v.config,
|
|
@@ -754,15 +758,15 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
754
758
|
if (!y.value(t))
|
|
755
759
|
return b(t), t;
|
|
756
760
|
const n = Ye({
|
|
757
|
-
userConfig:
|
|
761
|
+
userConfig: Mt[C] || v.config,
|
|
758
762
|
defaultConfig: t
|
|
759
|
-
}),
|
|
763
|
+
}), F = Ye({
|
|
760
764
|
userConfig: v.config,
|
|
761
765
|
defaultConfig: n
|
|
762
766
|
});
|
|
763
767
|
return {
|
|
764
|
-
...
|
|
765
|
-
customPalette:
|
|
768
|
+
...F,
|
|
769
|
+
customPalette: F.customPalette.length ? F.customPalette : oo[C] || Te
|
|
766
770
|
};
|
|
767
771
|
}
|
|
768
772
|
const me = M({ x: 0, y: 0 });
|
|
@@ -773,7 +777,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
773
777
|
width: Math.max(10, I.value.width),
|
|
774
778
|
height: Math.max(10, I.value.height)
|
|
775
779
|
};
|
|
776
|
-
|
|
780
|
+
Pt(t), me.value = {
|
|
777
781
|
x: t.x + t.width / 2,
|
|
778
782
|
y: t.y + t.height / 2
|
|
779
783
|
}, ye();
|
|
@@ -793,7 +797,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
793
797
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
794
798
|
bold: e.value.style.chart.words.bold
|
|
795
799
|
}), Me = st(() => {
|
|
796
|
-
const { width: t, height: C } =
|
|
800
|
+
const { width: t, height: C } = Jt({
|
|
797
801
|
chart: k.value,
|
|
798
802
|
title: e.value.style.chart.title.text ? x.value : null,
|
|
799
803
|
legend: e.value.style.chart.controls.show ? re.value?.$el : null,
|
|
@@ -805,7 +809,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
805
809
|
}, 100), Ie = () => {
|
|
806
810
|
fe.value = !0, Me();
|
|
807
811
|
}, H = tt(null), Q = tt(null);
|
|
808
|
-
|
|
812
|
+
Ut(We);
|
|
809
813
|
const pe = le(() => !!e.value.debug);
|
|
810
814
|
function We() {
|
|
811
815
|
rt(v.dataset) ? it({
|
|
@@ -813,7 +817,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
813
817
|
type: "dataset",
|
|
814
818
|
debug: pe.value
|
|
815
819
|
}) : R.value.forEach((t, C) => {
|
|
816
|
-
|
|
820
|
+
ao({
|
|
817
821
|
datasetObject: t,
|
|
818
822
|
requiredAttributes: ["name", "value"]
|
|
819
823
|
}).forEach((n) => {
|
|
@@ -827,10 +831,10 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
827
831
|
});
|
|
828
832
|
}), rt(v.dataset) || (oe.value = e.value.loading), e.value.responsive && (H.value && (Q.value && H.value.unobserve(Q.value), H.value.disconnect()), H.value = new ResizeObserver(Ie), Q.value = k.value.parentNode, H.value.observe(Q.value)), ce();
|
|
829
833
|
}
|
|
830
|
-
|
|
834
|
+
Lt(() => {
|
|
831
835
|
H.value && (Q.value && H.value.unobserve(Q.value), H.value.disconnect());
|
|
832
836
|
});
|
|
833
|
-
const { isPrinting: Be, isImaging: _e, generatePdf: Ne, generateImage: Ze } =
|
|
837
|
+
const { isPrinting: Be, isImaging: _e, generatePdf: Ne, generateImage: Ze } = fo({
|
|
834
838
|
elementId: `wordCloud_${s.value}`,
|
|
835
839
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
836
840
|
options: e.value.userOptions.print
|
|
@@ -842,7 +846,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
842
846
|
we(e, () => {
|
|
843
847
|
O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.chart.tooltip.show, O.value.showZoom = e.value.style.chart.zoom.show;
|
|
844
848
|
}, { immediate: !0 });
|
|
845
|
-
function
|
|
849
|
+
function It(t, C, n = "Arial") {
|
|
846
850
|
const $ = document.createElement("canvas").getContext("2d");
|
|
847
851
|
return $.font = `${C}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
|
|
848
852
|
width: $.measureText(t).width + e.value.style.chart.words.proximity,
|
|
@@ -851,10 +855,10 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
851
855
|
}
|
|
852
856
|
const q = M([]), ge = /* @__PURE__ */ new Map();
|
|
853
857
|
function Ve() {
|
|
854
|
-
const t = [...R.value].map(($) => $.value), C = Math.max(...t), n = Math.min(...t),
|
|
858
|
+
const t = [...R.value].map(($) => $.value), C = Math.max(...t), n = Math.min(...t), F = [...R.value].map(($, T) => {
|
|
855
859
|
let G = ($.value - n) / (C - n) * (I.value.maxFontSize - I.value.minFontSize) + I.value.minFontSize;
|
|
856
860
|
G = isNaN(G) ? I.value.minFontSize : G;
|
|
857
|
-
const de =
|
|
861
|
+
const de = It($.name, G);
|
|
858
862
|
return {
|
|
859
863
|
...$,
|
|
860
864
|
id: $.id ?? `${$.name}__${T}`,
|
|
@@ -864,9 +868,9 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
864
868
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[T] || e.value.customPalette[T % e.value.customPalette.length] || Te[T] || Te[T % Te.length] : e.value.style.chart.words.color
|
|
865
869
|
};
|
|
866
870
|
});
|
|
867
|
-
q.value.length = 0, ge.clear(),
|
|
871
|
+
q.value.length = 0, ge.clear(), Wo({
|
|
868
872
|
debugTiming: pe.value,
|
|
869
|
-
words:
|
|
873
|
+
words: F,
|
|
870
874
|
svg: I.value,
|
|
871
875
|
proximity: e.value.style.chart.words.proximity,
|
|
872
876
|
strictPixelPadding: e.value.strictPixelPadding,
|
|
@@ -886,7 +890,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
886
890
|
ge.set($.id, T);
|
|
887
891
|
}), U.value = !0, te.value = !1;
|
|
888
892
|
}
|
|
889
|
-
const
|
|
893
|
+
const Ae = le(() => {
|
|
890
894
|
const t = q.value.map((n) => ({
|
|
891
895
|
name: n.name,
|
|
892
896
|
color: n.color
|
|
@@ -895,18 +899,18 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
895
899
|
});
|
|
896
900
|
function Oe(t = null) {
|
|
897
901
|
lt(() => {
|
|
898
|
-
const C =
|
|
902
|
+
const C = Ae.value.head.map(($, T) => [[
|
|
899
903
|
$.name
|
|
900
|
-
], [
|
|
901
|
-
t ? t(
|
|
904
|
+
], [Ae.value.body[T]]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(C), F = so(n);
|
|
905
|
+
t ? t(F) : ro({ csvContent: F, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
902
906
|
});
|
|
903
907
|
}
|
|
904
|
-
const
|
|
908
|
+
const Fe = le(() => {
|
|
905
909
|
const t = [
|
|
906
910
|
e.value.table.columnNames.series,
|
|
907
911
|
e.value.table.columnNames.value
|
|
908
|
-
], C =
|
|
909
|
-
const G =
|
|
912
|
+
], C = Ae.value.head.map(($, T) => {
|
|
913
|
+
const G = no({ p: e.value.table.td.prefix, v: Ae.value.body[T], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
910
914
|
return [
|
|
911
915
|
{
|
|
912
916
|
color: $.color,
|
|
@@ -940,7 +944,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
940
944
|
function Ue(t) {
|
|
941
945
|
ae.value = t, S.value += 1;
|
|
942
946
|
}
|
|
943
|
-
function
|
|
947
|
+
function Ot() {
|
|
944
948
|
return q.value;
|
|
945
949
|
}
|
|
946
950
|
function Le() {
|
|
@@ -956,25 +960,25 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
956
960
|
function He() {
|
|
957
961
|
O.value.showZoom = !O.value.showZoom;
|
|
958
962
|
}
|
|
959
|
-
const
|
|
963
|
+
const Et = le(() => !be.value && O.value.showZoom), { viewBox: Se, resetZoom: ye, isZoom: zt, setInitialViewBox: Pt, zoomByFactor: qe, scale: Ge } = Co(Y, {
|
|
960
964
|
x: 0,
|
|
961
965
|
y: 0,
|
|
962
966
|
width: I.value.width <= 0 ? 10 : I.value.width,
|
|
963
967
|
height: I.value.height <= 0 ? 10 : I.value.height
|
|
964
|
-
}, 1,
|
|
968
|
+
}, 1, Et);
|
|
965
969
|
we(() => v.dataset, () => {
|
|
966
970
|
R.value = L(), e.value.responsive || (Ve(), ce());
|
|
967
971
|
}, { immediate: !0 });
|
|
968
|
-
async function
|
|
972
|
+
async function Xt({ scale: t = 2 } = {}) {
|
|
969
973
|
if (!k.value) return;
|
|
970
|
-
const { width: C, height: n } = k.value.getBoundingClientRect(),
|
|
974
|
+
const { width: C, height: n } = k.value.getBoundingClientRect(), F = C / n, { imageUri: $, base64: T } = await bo({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
971
975
|
return {
|
|
972
976
|
imageUri: $,
|
|
973
977
|
base64: T,
|
|
974
978
|
title: e.value.style.chart.title.text,
|
|
975
979
|
width: C,
|
|
976
980
|
height: n,
|
|
977
|
-
aspectRatio:
|
|
981
|
+
aspectRatio: F
|
|
978
982
|
};
|
|
979
983
|
}
|
|
980
984
|
const Ce = le(() => {
|
|
@@ -1013,17 +1017,17 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1013
1017
|
function Je() {
|
|
1014
1018
|
O.value.showTable = !1, P.value && P.value.setTableIconState(!1);
|
|
1015
1019
|
}
|
|
1016
|
-
const
|
|
1020
|
+
const Rt = le(() => e.value.style.chart.backgroundColor), Dt = le(() => e.value.style.chart.title), { exportSvg: Yt, getSvg: Wt } = vo({
|
|
1017
1021
|
svg: Y,
|
|
1018
|
-
title:
|
|
1019
|
-
backgroundColor:
|
|
1022
|
+
title: Dt,
|
|
1023
|
+
backgroundColor: Rt
|
|
1020
1024
|
});
|
|
1021
1025
|
async function Ke({ isCb: t }) {
|
|
1022
1026
|
if (t) {
|
|
1023
|
-
const { blob: C, url: n, text:
|
|
1024
|
-
e.value.userOptions.callbacks.svg({ blob: C, url: n, text:
|
|
1027
|
+
const { blob: C, url: n, text: F, dataUrl: $ } = await Wt();
|
|
1028
|
+
e.value.userOptions.callbacks.svg({ blob: C, url: n, text: F, dataUrl: $ });
|
|
1025
1029
|
} else
|
|
1026
|
-
|
|
1030
|
+
Yt();
|
|
1027
1031
|
}
|
|
1028
1032
|
function Qe() {
|
|
1029
1033
|
qe(1.5, !0);
|
|
@@ -1032,8 +1036,8 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1032
1036
|
qe(1 / 1.5, !0);
|
|
1033
1037
|
}
|
|
1034
1038
|
l({
|
|
1035
|
-
getData:
|
|
1036
|
-
getImage:
|
|
1039
|
+
getData: Ot,
|
|
1040
|
+
getImage: Xt,
|
|
1037
1041
|
generateCsv: Oe,
|
|
1038
1042
|
generatePdf: Ne,
|
|
1039
1043
|
generateImage: Ze,
|
|
@@ -1046,29 +1050,29 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1046
1050
|
toggleZoom: He
|
|
1047
1051
|
});
|
|
1048
1052
|
const ve = M(null), ke = M(!1), ze = M(""), Pe = M(null);
|
|
1049
|
-
function
|
|
1053
|
+
function Bt(t, C) {
|
|
1050
1054
|
ve.value = null, B.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: C });
|
|
1051
1055
|
}
|
|
1052
|
-
function
|
|
1056
|
+
function _t(t, C) {
|
|
1053
1057
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: C });
|
|
1054
1058
|
}
|
|
1055
|
-
function
|
|
1059
|
+
function Nt(t, C) {
|
|
1056
1060
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: C }), !O.value.showTooltip) return;
|
|
1057
1061
|
ve.value = t.id, Pe.value = { datapoint: t, config: e.value };
|
|
1058
1062
|
const n = e.value.style.chart.tooltip.customFormat;
|
|
1059
|
-
if (ke.value = !1,
|
|
1063
|
+
if (ke.value = !1, io(n))
|
|
1060
1064
|
try {
|
|
1061
|
-
const
|
|
1065
|
+
const F = n({
|
|
1062
1066
|
datapoint: t,
|
|
1063
1067
|
config: e.value
|
|
1064
1068
|
});
|
|
1065
|
-
typeof
|
|
1069
|
+
typeof F == "string" && (ze.value = F, ke.value = !0);
|
|
1066
1070
|
} catch {
|
|
1067
1071
|
console.warn("Custom format cannot be applied."), ke.value = !1;
|
|
1068
1072
|
}
|
|
1069
1073
|
if (!ke.value) {
|
|
1070
|
-
let
|
|
1071
|
-
ze.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${
|
|
1074
|
+
let F = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
1075
|
+
ze.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${F}</div>`;
|
|
1072
1076
|
}
|
|
1073
1077
|
B.value = !0;
|
|
1074
1078
|
}
|
|
@@ -1080,12 +1084,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1080
1084
|
"data-resizing": fe.value,
|
|
1081
1085
|
"data-relayout": te.value,
|
|
1082
1086
|
style: Xe(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
1083
|
-
onMouseenter: C[3] || (C[3] = () =>
|
|
1084
|
-
onMouseleave: C[4] || (C[4] = () =>
|
|
1087
|
+
onMouseenter: C[3] || (C[3] = () => A(he)(!0)),
|
|
1088
|
+
onMouseleave: C[4] || (C[4] = () => A(he)(!1))
|
|
1085
1089
|
}, [
|
|
1086
|
-
e.value.userOptions.buttons.annotator ? (W(), se(
|
|
1090
|
+
e.value.userOptions.buttons.annotator ? (W(), se(A(r), {
|
|
1087
1091
|
key: 0,
|
|
1088
|
-
svgRef:
|
|
1092
|
+
svgRef: A(Y),
|
|
1089
1093
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1090
1094
|
color: e.value.style.chart.color,
|
|
1091
1095
|
active: be.value,
|
|
@@ -1117,7 +1121,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1117
1121
|
ref: x,
|
|
1118
1122
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1119
1123
|
}, [
|
|
1120
|
-
(W(), se(
|
|
1124
|
+
(W(), se(yo, {
|
|
1121
1125
|
key: `title_${w.value}`,
|
|
1122
1126
|
config: {
|
|
1123
1127
|
title: {
|
|
@@ -1129,14 +1133,14 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1129
1133
|
}
|
|
1130
1134
|
}, null, 8, ["config"]))
|
|
1131
1135
|
], 512)) : N("", !0),
|
|
1132
|
-
e.value.userOptions.show && u.value && (
|
|
1136
|
+
e.value.userOptions.show && u.value && (A(D) || A(j)) ? (W(), se(A(a), {
|
|
1133
1137
|
ref_key: "userOptionsRef",
|
|
1134
1138
|
ref: P,
|
|
1135
1139
|
key: `user_option_${S.value}`,
|
|
1136
1140
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1137
1141
|
color: e.value.style.chart.color,
|
|
1138
|
-
isPrinting:
|
|
1139
|
-
isImaging:
|
|
1142
|
+
isPrinting: A(Be),
|
|
1143
|
+
isImaging: A(_e),
|
|
1140
1144
|
uid: s.value,
|
|
1141
1145
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1142
1146
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -1158,22 +1162,22 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1158
1162
|
hasZoom: e.value.userOptions.buttons.zoom,
|
|
1159
1163
|
isZoom: O.value.showZoom,
|
|
1160
1164
|
onToggleFullscreen: Ue,
|
|
1161
|
-
onGeneratePdf:
|
|
1165
|
+
onGeneratePdf: A(Ne),
|
|
1162
1166
|
onGenerateCsv: Oe,
|
|
1163
|
-
onGenerateImage:
|
|
1167
|
+
onGenerateImage: A(Ze),
|
|
1164
1168
|
onGenerateSvg: Ke,
|
|
1165
1169
|
onToggleTable: Le,
|
|
1166
1170
|
onToggleTooltip: je,
|
|
1167
1171
|
onToggleAnnotator: Ee,
|
|
1168
1172
|
onToggleZoom: He,
|
|
1169
1173
|
style: Xe({
|
|
1170
|
-
visibility:
|
|
1174
|
+
visibility: A(D) ? A(j) ? "visible" : "hidden" : "visible"
|
|
1171
1175
|
})
|
|
1172
1176
|
}, ot({ _: 2 }, [
|
|
1173
1177
|
t.$slots.menuIcon ? {
|
|
1174
1178
|
name: "menuIcon",
|
|
1175
|
-
fn: E(({ isOpen: n, color:
|
|
1176
|
-
z(t.$slots, "menuIcon", Z(V({ isOpen: n, color:
|
|
1179
|
+
fn: E(({ isOpen: n, color: F }) => [
|
|
1180
|
+
z(t.$slots, "menuIcon", Z(V({ isOpen: n, color: F })), void 0, !0)
|
|
1177
1181
|
]),
|
|
1178
1182
|
key: "0"
|
|
1179
1183
|
} : void 0,
|
|
@@ -1214,46 +1218,46 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1214
1218
|
} : void 0,
|
|
1215
1219
|
t.$slots.optionFullscreen ? {
|
|
1216
1220
|
name: "optionFullscreen",
|
|
1217
|
-
fn: E(({ toggleFullscreen: n, isFullscreen:
|
|
1218
|
-
z(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen: n, isFullscreen:
|
|
1221
|
+
fn: E(({ toggleFullscreen: n, isFullscreen: F }) => [
|
|
1222
|
+
z(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen: n, isFullscreen: F })), void 0, !0)
|
|
1219
1223
|
]),
|
|
1220
1224
|
key: "6"
|
|
1221
1225
|
} : void 0,
|
|
1222
1226
|
t.$slots.optionAnnotator ? {
|
|
1223
1227
|
name: "optionAnnotator",
|
|
1224
|
-
fn: E(({ toggleAnnotator: n, isAnnotator:
|
|
1225
|
-
z(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator: n, isAnnotator:
|
|
1228
|
+
fn: E(({ toggleAnnotator: n, isAnnotator: F }) => [
|
|
1229
|
+
z(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator: n, isAnnotator: F })), void 0, !0)
|
|
1226
1230
|
]),
|
|
1227
1231
|
key: "7"
|
|
1228
1232
|
} : void 0,
|
|
1229
1233
|
t.$slots.optionZoom ? {
|
|
1230
1234
|
name: "optionZoom",
|
|
1231
|
-
fn: E(({ toggleZoom: n, isZoomLocked:
|
|
1232
|
-
z(t.$slots, "optionZoom", Z(V({ toggleZoom: n, isZoomLocked:
|
|
1235
|
+
fn: E(({ toggleZoom: n, isZoomLocked: F }) => [
|
|
1236
|
+
z(t.$slots, "optionZoom", Z(V({ toggleZoom: n, isZoomLocked: F })), void 0, !0)
|
|
1233
1237
|
]),
|
|
1234
1238
|
key: "8"
|
|
1235
1239
|
} : void 0
|
|
1236
1240
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "onGeneratePdf", "onGenerateImage", "style"])) : N("", !0),
|
|
1237
|
-
e.value.style.chart.controls.position === "top" && e.value.style.chart.controls.show && !
|
|
1241
|
+
e.value.style.chart.controls.position === "top" && e.value.style.chart.controls.show && !A(ie) ? (W(), se(ut, {
|
|
1238
1242
|
key: 3,
|
|
1239
1243
|
ref_key: "zoomControls",
|
|
1240
1244
|
ref: re,
|
|
1241
1245
|
config: e.value,
|
|
1242
|
-
scale:
|
|
1246
|
+
scale: A(Ge),
|
|
1243
1247
|
isFullscreen: ae.value,
|
|
1244
1248
|
onZoomIn: Qe,
|
|
1245
1249
|
onZoomOut: et,
|
|
1246
|
-
onResetZoom: C[0] || (C[0] = (n) =>
|
|
1250
|
+
onResetZoom: C[0] || (C[0] = (n) => A(ye)(!0))
|
|
1247
1251
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1248
1252
|
(W(), J("svg", {
|
|
1249
1253
|
ref_key: "svgRef",
|
|
1250
1254
|
ref: Y,
|
|
1251
1255
|
class: at({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
|
|
1252
|
-
xmlns:
|
|
1253
|
-
viewBox: `${
|
|
1256
|
+
xmlns: A(lo),
|
|
1257
|
+
viewBox: `${A(Se).x} ${A(Se).y} ${A(Se).width} ${A(Se).height}`,
|
|
1254
1258
|
style: "overflow:hidden;background:transparent;display:block"
|
|
1255
1259
|
}, [
|
|
1256
|
-
Re(
|
|
1260
|
+
Re(A(p)),
|
|
1257
1261
|
t.$slots["chart-background"] ? (W(), J("foreignObject", {
|
|
1258
1262
|
key: 0,
|
|
1259
1263
|
x: 0,
|
|
@@ -1265,12 +1269,12 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1265
1269
|
}
|
|
1266
1270
|
}, [
|
|
1267
1271
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
1268
|
-
], 8,
|
|
1272
|
+
], 8, No)) : N("", !0),
|
|
1269
1273
|
$e("g", {
|
|
1270
1274
|
transform: `translate(${me.value.x}, ${me.value.y})`,
|
|
1271
1275
|
class: at({ "wc-finalized": U.value })
|
|
1272
1276
|
}, [
|
|
1273
|
-
(W(!0), J(
|
|
1277
|
+
(W(!0), J(jt, null, Ht(q.value, (n, F) => (W(), J("g", {
|
|
1274
1278
|
key: n.id,
|
|
1275
1279
|
class: "vue-ui-word-cloud-word",
|
|
1276
1280
|
transform: `translate(${n.x}, ${n.y})`
|
|
@@ -1283,10 +1287,10 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1283
1287
|
height: n.maxY - n.minY,
|
|
1284
1288
|
fill: "transparent",
|
|
1285
1289
|
"pointer-events": "visiblePainted",
|
|
1286
|
-
onMouseover: ($) =>
|
|
1287
|
-
onMouseleave: ($) =>
|
|
1288
|
-
onClick: ($) =>
|
|
1289
|
-
}, null, 40,
|
|
1290
|
+
onMouseover: ($) => Nt(n, F),
|
|
1291
|
+
onMouseleave: ($) => Bt(n, F),
|
|
1292
|
+
onClick: ($) => _t(n, F)
|
|
1293
|
+
}, null, 40, Uo)) : N("", !0),
|
|
1290
1294
|
$e("text", {
|
|
1291
1295
|
fill: n.color,
|
|
1292
1296
|
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
@@ -1305,31 +1309,31 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1305
1309
|
pointer-events:none;
|
|
1306
1310
|
fill-opacity:${!ve.value || ve.value === n.id || !U.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
|
|
1307
1311
|
`)
|
|
1308
|
-
}, De(n.name), 13,
|
|
1309
|
-
], 8,
|
|
1310
|
-
], 10,
|
|
1312
|
+
}, De(n.name), 13, Lo)
|
|
1313
|
+
], 8, Vo))), 128))
|
|
1314
|
+
], 10, Zo),
|
|
1311
1315
|
z(t.$slots, "svg", {
|
|
1312
1316
|
svg: { height: I.value.height, width: I.value.width }
|
|
1313
1317
|
}, void 0, !0)
|
|
1314
|
-
], 10,
|
|
1315
|
-
t.$slots.watermark ? (W(), J("div",
|
|
1316
|
-
z(t.$slots, "watermark", Z(V({ isPrinting:
|
|
1318
|
+
], 10, _o)),
|
|
1319
|
+
t.$slots.watermark ? (W(), J("div", jo, [
|
|
1320
|
+
z(t.$slots, "watermark", Z(V({ isPrinting: A(Be) || A(_e) })), void 0, !0)
|
|
1317
1321
|
])) : N("", !0),
|
|
1318
|
-
|
|
1319
|
-
z(t.$slots, "reset-action", { reset:
|
|
1322
|
+
A(zt) ? (W(), J("div", Ho, [
|
|
1323
|
+
z(t.$slots, "reset-action", { reset: A(ye) }, void 0, !0)
|
|
1320
1324
|
])) : N("", !0),
|
|
1321
|
-
e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !
|
|
1325
|
+
e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !A(ie) ? (W(), se(ut, {
|
|
1322
1326
|
key: 6,
|
|
1323
1327
|
ref_key: "zoomControls",
|
|
1324
1328
|
ref: re,
|
|
1325
1329
|
config: e.value,
|
|
1326
|
-
scale:
|
|
1330
|
+
scale: A(Ge),
|
|
1327
1331
|
isFullscreen: ae.value,
|
|
1328
1332
|
onZoomIn: Qe,
|
|
1329
1333
|
onZoomOut: et,
|
|
1330
|
-
onResetZoom: C[1] || (C[1] = (n) =>
|
|
1334
|
+
onResetZoom: C[1] || (C[1] = (n) => A(ye)(!0))
|
|
1331
1335
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1332
|
-
Re(
|
|
1336
|
+
Re(A(m), {
|
|
1333
1337
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1334
1338
|
show: O.value.showTooltip && B.value,
|
|
1335
1339
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1366,18 +1370,18 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1366
1370
|
}, [
|
|
1367
1371
|
z(t.$slots, "source", {}, void 0, !0)
|
|
1368
1372
|
], 512)) : N("", !0),
|
|
1369
|
-
u.value && e.value.userOptions.buttons.table ? (W(), se(
|
|
1373
|
+
u.value && e.value.userOptions.buttons.table ? (W(), se(qt(Ce.value.component), Gt({ key: 8 }, Ce.value.props, {
|
|
1370
1374
|
ref_key: "tableUnit",
|
|
1371
1375
|
ref: X,
|
|
1372
1376
|
onClose: Je
|
|
1373
1377
|
}), ot({
|
|
1374
1378
|
content: E(() => [
|
|
1375
|
-
(W(), se(
|
|
1379
|
+
(W(), se(A(d), {
|
|
1376
1380
|
key: `table_${_.value}`,
|
|
1377
|
-
colNames:
|
|
1378
|
-
head:
|
|
1379
|
-
body:
|
|
1380
|
-
config:
|
|
1381
|
+
colNames: Fe.value.colNames,
|
|
1382
|
+
head: Fe.value.head,
|
|
1383
|
+
body: Fe.value.body,
|
|
1384
|
+
config: Fe.value.config,
|
|
1381
1385
|
title: e.value.table.useDialog ? "" : Ce.value.title,
|
|
1382
1386
|
withCloseButton: !e.value.table.useDialog,
|
|
1383
1387
|
onClose: Je
|
|
@@ -1386,7 +1390,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1386
1390
|
$e("div", {
|
|
1387
1391
|
innerHTML: n,
|
|
1388
1392
|
style: { display: "flex", "align-items": "center" }
|
|
1389
|
-
}, null, 8,
|
|
1393
|
+
}, null, 8, qo)
|
|
1390
1394
|
]),
|
|
1391
1395
|
td: E(({ td: n }) => [
|
|
1392
1396
|
nt(De(n.name || n), 1)
|
|
@@ -1411,7 +1415,7 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1411
1415
|
class: "vue-ui-user-options-button",
|
|
1412
1416
|
onClick: C[2] || (C[2] = (n) => Oe(e.value.userOptions.callbacks.csv))
|
|
1413
1417
|
}, [
|
|
1414
|
-
Re(
|
|
1418
|
+
Re(A(c), {
|
|
1415
1419
|
name: "excel",
|
|
1416
1420
|
stroke: Ce.value.props.color
|
|
1417
1421
|
}, null, 8, ["stroke"])
|
|
@@ -1420,15 +1424,15 @@ const kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
|
|
|
1420
1424
|
key: "1"
|
|
1421
1425
|
} : void 0
|
|
1422
1426
|
]), 1040)) : N("", !0),
|
|
1423
|
-
|
|
1424
|
-
], 44,
|
|
1427
|
+
A(ie) ? (W(), se(mo, { key: 9 })) : N("", !0)
|
|
1428
|
+
], 44, Bo));
|
|
1425
1429
|
}
|
|
1426
|
-
},
|
|
1430
|
+
}, Jo = /* @__PURE__ */ ko(Go, [["__scopeId", "data-v-aa3e07cf"]]), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1427
1431
|
__proto__: null,
|
|
1428
|
-
default:
|
|
1432
|
+
default: Jo
|
|
1429
1433
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1430
1434
|
export {
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1435
|
+
fa as a,
|
|
1436
|
+
va as b,
|
|
1437
|
+
Jo as v
|
|
1434
1438
|
};
|