vue-data-ui 3.10.2 → 3.10.3
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/{PackageVersion-CQxJyGQr.js → PackageVersion-P4S5Z27M.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-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-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-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-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-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.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-GAruO_UT.js → vue-data-ui-CYR8RBUy.js} +58 -58
- package/dist/vue-data-ui.js +59 -59
- package/dist/{vue-ui-3d-bar-t_E9saCp.js → vue-ui-3d-bar-gMhVye6x.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DKlTGZ6m.js → vue-ui-age-pyramid-O-NBUNAm.js} +1 -1
- package/dist/{vue-ui-bullet-C4FXVy8_.js → vue-ui-bullet-DoV7GQEw.js} +1 -1
- package/dist/{vue-ui-bump-BJZrexv4.js → vue-ui-bump-TEZ5ReEF.js} +1 -1
- package/dist/{vue-ui-candlestick-P7w1YVT6.js → vue-ui-candlestick-DV2sokr1.js} +1 -1
- package/dist/{vue-ui-carousel-table-DQk4RoWo.js → vue-ui-carousel-table-D7V2hBua.js} +1 -1
- package/dist/{vue-ui-chestnut-Co8x4We0.js → vue-ui-chestnut-oM6RXUAj.js} +1 -1
- package/dist/{vue-ui-chord-NjSRzToa.js → vue-ui-chord-jvxLpCkC.js} +1 -1
- package/dist/{vue-ui-circle-pack-CwrgCRKX.js → vue-ui-circle-pack-Du-ByuxU.js} +1 -1
- package/dist/{vue-ui-cursor-Bh5-9JWm.js → vue-ui-cursor-D12C-n8E.js} +1 -1
- package/dist/{vue-ui-dag-BBGpjSzH.js → vue-ui-dag-DKdh56hV.js} +1 -1
- package/dist/{vue-ui-dashboard-ekbwnmce.js → vue-ui-dashboard-C_mAqH3E.js} +54 -54
- package/dist/{vue-ui-donut-evolution-BiLhAVY8.js → vue-ui-donut-evolution-C1cVRUEy.js} +1 -1
- package/dist/{vue-ui-donut-DvLh8qa2.js → vue-ui-donut-f1dyw0fn.js} +1 -1
- package/dist/{vue-ui-dumbbell-C2OWcZvr.js → vue-ui-dumbbell-BFjSAmaz.js} +1 -1
- package/dist/{vue-ui-flow-Cp2le1ur.js → vue-ui-flow-Bw2MGPdH.js} +1 -1
- package/dist/{vue-ui-funnel-ClGo8z4y.js → vue-ui-funnel-CZT2u6CT.js} +1 -1
- package/dist/{vue-ui-galaxy-DTAl_-40.js → vue-ui-galaxy-DVnV7fer.js} +1 -1
- package/dist/{vue-ui-gauge-DOG6-lgt.js → vue-ui-gauge-68nXW4d4.js} +1 -1
- package/dist/{vue-ui-geo-BpWyHXwd.js → vue-ui-geo-CfKG2WF2.js} +1 -1
- package/dist/{vue-ui-gizmo-BMq5dzK4.js → vue-ui-gizmo-4gcSQzSQ.js} +1 -1
- package/dist/{vue-ui-heatmap-Bp9HI0Zo.js → vue-ui-heatmap-Dy3AEJ6w.js} +1 -1
- package/dist/{vue-ui-history-plot-CVM1jz1X.js → vue-ui-history-plot-DKUqSDWQ.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-B0UY6b-O.js → vue-ui-horizontal-bar-p26DrbGM.js} +1 -1
- package/dist/{vue-ui-molecule-CUppdL5f.js → vue-ui-molecule-FobCQFFt.js} +1 -1
- package/dist/{vue-ui-mood-radar-QN25VSAw.js → vue-ui-mood-radar-CS-ICKCK.js} +1 -1
- package/dist/{vue-ui-nested-donuts-ywWUDYjT.js → vue-ui-nested-donuts-ChSJX0h8.js} +1 -1
- package/dist/{vue-ui-onion-DmwZ1gg_.js → vue-ui-onion-B8UF-hki.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Bz2ROYRD.js → vue-ui-parallel-coordinate-plot-BtPxj-P8.js} +1 -1
- package/dist/{vue-ui-quadrant-CUpWOWF2.js → vue-ui-quadrant-Q9TBimzW.js} +1 -1
- package/dist/{vue-ui-quick-chart-CXrm_rzI.js → vue-ui-quick-chart-BY9S-YBa.js} +1 -1
- package/dist/{vue-ui-radar-BqLjOOnJ.js → vue-ui-radar-CswjRIF_.js} +1 -1
- package/dist/{vue-ui-relation-circle-CrYmJHLI.js → vue-ui-relation-circle-CAtxVLVz.js} +1 -1
- package/dist/{vue-ui-ridgeline-ZbmQXJxt.js → vue-ui-ridgeline-qvflk847.js} +1 -1
- package/dist/{vue-ui-rings-BxYoBfvT.js → vue-ui-rings-CyiISTOF.js} +1 -1
- package/dist/{vue-ui-scatter-BhJkoRBS.js → vue-ui-scatter-DIgqcagP.js} +1 -1
- package/dist/{vue-ui-skeleton-Bg1akQqn.js → vue-ui-skeleton-DkClk1C1.js} +1 -1
- package/dist/{vue-ui-spark-trend-CJtfXMSj.js → vue-ui-spark-trend-BAalLLmt.js} +1 -1
- package/dist/{vue-ui-sparkbar-DHJdmNDm.js → vue-ui-sparkbar-DAiByg6i.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ANfPLNuD.js → vue-ui-sparkgauge-DFDsfra7.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-CIfYUXVZ.js → vue-ui-sparkhistogram-BjPIf-WY.js} +1 -1
- package/dist/{vue-ui-sparkline-Bm0OmFUB.js → vue-ui-sparkline-Bdn5nh7q.js} +84 -84
- package/dist/{vue-ui-sparkstackbar-CCnnfsqG.js → vue-ui-sparkstackbar-CFGsSf1p.js} +152 -151
- package/dist/{vue-ui-stackbar-CK5is5H7.js → vue-ui-stackbar-CbEpDijK.js} +1 -1
- package/dist/{vue-ui-stackline-CFv2OUCL.js → vue-ui-stackline-sSqBRjIV.js} +1 -1
- package/dist/{vue-ui-strip-plot-CJ1Zkrhq.js → vue-ui-strip-plot-DNcf1Rbi.js} +1 -1
- package/dist/{vue-ui-table-CMyYl8lE.js → vue-ui-table-CMjodRzP.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Bo4nuBEx.js → vue-ui-table-sparkline-qcwN58Dc.js} +1 -1
- package/dist/{vue-ui-thermometer-h3voYVGJ.js → vue-ui-thermometer-BCjkXz1F.js} +1 -1
- package/dist/{vue-ui-timer-CazY_Z4R.js → vue-ui-timer-CAf7Dc61.js} +1 -1
- package/dist/{vue-ui-tiremarks-CTa_gpit.js → vue-ui-tiremarks-DYAAjWRA.js} +1 -1
- package/dist/{vue-ui-treemap-B6AuOtaA.js → vue-ui-treemap-Bfe4p4wX.js} +1 -1
- package/dist/{vue-ui-waffle-DnEBC07H.js → vue-ui-waffle-uk7WQn8e.js} +1 -1
- package/dist/{vue-ui-wheel-DFU2vMsP.js → vue-ui-wheel-O68mMezM.js} +1 -1
- package/dist/{vue-ui-word-cloud-DgY58NEj.js → vue-ui-word-cloud-CcgyYxsA.js} +179 -179
- package/dist/{vue-ui-world-xEUaTJDk.js → vue-ui-world-BpJd04wd.js} +1 -1
- package/dist/{vue-ui-xy-spqKboQb.js → vue-ui-xy-BoeLTTX6.js} +1 -1
- package/package.json +1 -1
|
@@ -2,42 +2,42 @@ import { useCssVars as Zt, defineAsyncComponent as ne, computed as le, ref as M,
|
|
|
2
2
|
import { d as st, u as Jt } from "./useResponsive-DfdjqQps.js";
|
|
3
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
4
|
import { u as uo, a as Ye } from "./useNestedProp-Ckf_2P_V.js";
|
|
5
|
-
import { u as co, B as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as co, B as fo } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as mo } from "./usePrinter-1NmjuP-i.js";
|
|
7
7
|
import { u as vo } from "./useSvgExport-ByUukOZt.js";
|
|
8
8
|
import { u as ho } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
9
|
import { u as po } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as go } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
11
|
import bo from "./img-6fNF_rG0.js";
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
12
|
+
import Co from "./Title-NgeRXqRA.js";
|
|
13
|
+
import { u as yo } from "./usePanZoom-CDF7rb3o.js";
|
|
14
14
|
import { B as ut } from "./BaseZoomControls-Cb-Qq9_R.js";
|
|
15
15
|
import { _ as ko } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function wo({
|
|
17
17
|
word: o,
|
|
18
18
|
fontSize: l,
|
|
19
|
-
pad:
|
|
19
|
+
pad: f,
|
|
20
20
|
canvas: c,
|
|
21
21
|
ctx: i,
|
|
22
22
|
svg: d
|
|
23
23
|
}) {
|
|
24
24
|
const a = `${d.style && d.style.bold ? "bold " : ""}${l}px Arial`;
|
|
25
25
|
i.font = a;
|
|
26
|
-
const p = i.measureText(o.name),
|
|
27
|
-
c.width =
|
|
28
|
-
const b = i.getImageData(0, 0,
|
|
29
|
-
let s =
|
|
26
|
+
const p = i.measureText(o.name), m = Math.ceil(p.width) + 2 + (f ? f * 2 : 0), g = Math.ceil(l) + 2 + (f ? f * 2 : 0);
|
|
27
|
+
c.width = m, c.height = g, i.font = a, i.textAlign = "center", i.textBaseline = "middle", i.fillStyle = "black", i.fillText(o.name, m / 2, g / 2);
|
|
28
|
+
const b = i.getImageData(0, 0, m, g).data, v = [], u = [];
|
|
29
|
+
let s = m, S = g, k = 0, x = 0, h = !1;
|
|
30
30
|
for (let w = 0; w < g; w += 1) {
|
|
31
|
-
const _ = w *
|
|
31
|
+
const _ = w * m * 4;
|
|
32
32
|
let B = -1, X = !1;
|
|
33
|
-
for (let P = 0; P <
|
|
33
|
+
for (let P = 0; P < m; P += 1) {
|
|
34
34
|
const U = _ + P * 4 + 3;
|
|
35
35
|
b[U] > 1 ? (v.push([P, w]), h = !0, P < s && (s = P), P > k && (k = P), w < S && (S = w), w > x && (x = w), X || (X = !0, B = P)) : X && (u.push([w, B, P - 1]), X = !1, B = -1);
|
|
36
36
|
}
|
|
37
|
-
X && u.push([w, B,
|
|
37
|
+
X && u.push([w, B, m - 1]);
|
|
38
38
|
}
|
|
39
39
|
return h || (s = 0, S = 0, k = 0, x = 0), {
|
|
40
|
-
w:
|
|
40
|
+
w: m,
|
|
41
41
|
h: g,
|
|
42
42
|
wordMask: v,
|
|
43
43
|
runs: u,
|
|
@@ -50,14 +50,14 @@ function wo({
|
|
|
50
50
|
function xo(o) {
|
|
51
51
|
const l = [];
|
|
52
52
|
if (!o.length) return l;
|
|
53
|
-
let
|
|
53
|
+
let f = o[0][1], c = o[0][0], i = c;
|
|
54
54
|
for (let d = 1; d < o.length; d += 1) {
|
|
55
55
|
const r = o[d][0], a = o[d][1];
|
|
56
|
-
a !==
|
|
56
|
+
a !== f ? (l.push([f, c, i]), f = a, c = r, i = r) : (r === i + 1 || (l.push([f, c, i]), c = r), i = r);
|
|
57
57
|
}
|
|
58
|
-
return l.push([
|
|
58
|
+
return l.push([f, c, i]), l;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function mt(o, l) {
|
|
61
61
|
return 4294967295 >>> 32 - (l - o + 1) << o >>> 0;
|
|
62
62
|
}
|
|
63
63
|
function vt(o) {
|
|
@@ -69,20 +69,20 @@ function ht(o) {
|
|
|
69
69
|
function Ao({
|
|
70
70
|
maskBits: o,
|
|
71
71
|
maskRowStride: l,
|
|
72
|
-
maskW:
|
|
72
|
+
maskW: f,
|
|
73
73
|
maskH: c,
|
|
74
74
|
wx: i,
|
|
75
75
|
wy: d,
|
|
76
76
|
runs: r
|
|
77
77
|
}) {
|
|
78
78
|
for (let a = 0; a < r.length; a += 1) {
|
|
79
|
-
const p = r[a][0],
|
|
80
|
-
if (
|
|
81
|
-
const b = i +
|
|
82
|
-
if (b < 0 || v >=
|
|
83
|
-
const u =
|
|
79
|
+
const p = r[a][0], m = r[a][1], g = r[a][2], C = d + p;
|
|
80
|
+
if (C < 0 || C >= c) return !1;
|
|
81
|
+
const b = i + m, v = i + g;
|
|
82
|
+
if (b < 0 || v >= f) return !1;
|
|
83
|
+
const u = C * l, s = b >>> 5, S = v >>> 5, k = b & 31, x = v & 31;
|
|
84
84
|
if (s === S) {
|
|
85
|
-
const h = o[u + s], w =
|
|
85
|
+
const h = o[u + s], w = mt(k, x);
|
|
86
86
|
if (h & w) return !1;
|
|
87
87
|
} else {
|
|
88
88
|
{
|
|
@@ -102,20 +102,20 @@ function Ao({
|
|
|
102
102
|
function Fo({
|
|
103
103
|
maskBits: o,
|
|
104
104
|
maskRowStride: l,
|
|
105
|
-
maskW:
|
|
105
|
+
maskW: f,
|
|
106
106
|
maskH: c,
|
|
107
107
|
wx: i,
|
|
108
108
|
wy: d,
|
|
109
109
|
runs: r
|
|
110
110
|
}) {
|
|
111
111
|
for (let a = 0; a < r.length; a += 1) {
|
|
112
|
-
const p = r[a][0],
|
|
113
|
-
if (
|
|
114
|
-
const b = i +
|
|
115
|
-
if (v < 0 || b >=
|
|
116
|
-
const u =
|
|
112
|
+
const p = r[a][0], m = r[a][1], g = r[a][2], C = d + p;
|
|
113
|
+
if (C < 0 || C >= c) continue;
|
|
114
|
+
const b = i + m, v = i + g;
|
|
115
|
+
if (v < 0 || b >= f) continue;
|
|
116
|
+
const u = C * l, s = b >>> 5, S = v >>> 5, k = b & 31, x = v & 31;
|
|
117
117
|
if (s === S) {
|
|
118
|
-
const h =
|
|
118
|
+
const h = mt(k, x);
|
|
119
119
|
o[u + s] |= h;
|
|
120
120
|
} else {
|
|
121
121
|
{
|
|
@@ -131,20 +131,20 @@ function Fo({
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function So({ wordMask: o, w: l, h:
|
|
135
|
-
const i = new Uint8Array(l *
|
|
134
|
+
function So({ wordMask: o, w: l, h: f, dilation: c }) {
|
|
135
|
+
const i = new Uint8Array(l * f), 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;
|
|
138
138
|
i[g] || (i[g] = 1, d.push(g));
|
|
139
139
|
}
|
|
140
140
|
for (let a = 0; a < d.length; a += 1) {
|
|
141
|
-
const p = d[a],
|
|
142
|
-
for (let
|
|
143
|
-
const b =
|
|
144
|
-
if (b < 0 || b >=
|
|
141
|
+
const p = d[a], m = p / l | 0, g = p - m * l;
|
|
142
|
+
for (let C = -c; C <= c; C += 1) {
|
|
143
|
+
const b = m + C;
|
|
144
|
+
if (b < 0 || b >= f) continue;
|
|
145
145
|
const v = b * l;
|
|
146
146
|
for (let u = -c; u <= c; u += 1) {
|
|
147
|
-
if (u === 0 &&
|
|
147
|
+
if (u === 0 && C === 0) continue;
|
|
148
148
|
const s = g + u;
|
|
149
149
|
s < 0 || s >= l || (i[v + s] = 1);
|
|
150
150
|
}
|
|
@@ -153,58 +153,58 @@ function So({ wordMask: o, w: l, h: m, dilation: c }) {
|
|
|
153
153
|
const r = [];
|
|
154
154
|
for (let a = 0; a < i.length; a += 1)
|
|
155
155
|
if (i[a]) {
|
|
156
|
-
const p = a / l | 0,
|
|
157
|
-
r.push([
|
|
156
|
+
const p = a / l | 0, m = a - p * l;
|
|
157
|
+
r.push([m, p]);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
161
|
function $o({
|
|
162
162
|
runs: o,
|
|
163
163
|
w: l,
|
|
164
|
-
h:
|
|
164
|
+
h: f,
|
|
165
165
|
dilation: c
|
|
166
166
|
}) {
|
|
167
|
-
const i = new Uint8Array(l *
|
|
167
|
+
const i = new Uint8Array(l * f), d = [];
|
|
168
168
|
for (let a = 0; a < o.length; a += 1) {
|
|
169
|
-
const p = o[a],
|
|
170
|
-
for (let v = g; v <=
|
|
169
|
+
const p = o[a], m = p[0], g = p[1], C = p[2], b = m * l;
|
|
170
|
+
for (let v = g; v <= C; v += 1) {
|
|
171
171
|
const u = b + v;
|
|
172
172
|
i[u] || (i[u] = 1, d.push(u));
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
for (let a = 0; a < d.length; a += 1) {
|
|
176
|
-
const p = d[a],
|
|
177
|
-
for (let
|
|
178
|
-
const b =
|
|
179
|
-
if (b < 0 || b >=
|
|
176
|
+
const p = d[a], m = p / l | 0, g = p - m * l;
|
|
177
|
+
for (let C = -c; C <= c; C += 1) {
|
|
178
|
+
const b = m + C;
|
|
179
|
+
if (b < 0 || b >= f) continue;
|
|
180
180
|
const v = b * l;
|
|
181
181
|
for (let u = -c; u <= c; u += 1) {
|
|
182
|
-
if (u === 0 &&
|
|
182
|
+
if (u === 0 && C === 0) continue;
|
|
183
183
|
const s = g + u;
|
|
184
184
|
s < 0 || s >= l || (i[v + s] = 1);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
const r = [];
|
|
189
|
-
for (let a = 0; a <
|
|
189
|
+
for (let a = 0; a < f; a += 1) {
|
|
190
190
|
const p = a * l;
|
|
191
|
-
let
|
|
192
|
-
for (let
|
|
193
|
-
i[p +
|
|
194
|
-
g && r.push([a,
|
|
191
|
+
let m = -1, g = !1;
|
|
192
|
+
for (let C = 0; C < l; C += 1)
|
|
193
|
+
i[p + C] ? g || (g = !0, m = C) : g && (r.push([a, m, C - 1]), g = !1, m = -1);
|
|
194
|
+
g && r.push([a, m, l - 1]);
|
|
195
195
|
}
|
|
196
196
|
return r;
|
|
197
197
|
}
|
|
198
198
|
function To(o, l) {
|
|
199
|
-
const
|
|
200
|
-
let p = d,
|
|
201
|
-
for (let u = 0; u <
|
|
202
|
-
const s =
|
|
199
|
+
const f = 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
|
+
let p = d, m = r, g = 0, C = 0, b = !1;
|
|
201
|
+
for (let u = 0; u < f.length; u += 1) {
|
|
202
|
+
const s = f[u], S = s[0], k = s[1], x = s[2], h = Math.round(S * l);
|
|
203
203
|
if (h < 0 || h >= r) continue;
|
|
204
204
|
const w = Math.round(k * l), _ = Math.round((x + 1) * l) - 1;
|
|
205
205
|
if (_ < w) continue;
|
|
206
206
|
let B = a[h];
|
|
207
|
-
B || (B = [], a[h] = B), B.push([w, _]), b = !0, w < p && (p = w), _ > g && (g = _), h <
|
|
207
|
+
B || (B = [], a[h] = B), B.push([w, _]), b = !0, w < p && (p = w), _ > g && (g = _), h < m && (m = h), h > C && (C = h);
|
|
208
208
|
}
|
|
209
209
|
if (!b)
|
|
210
210
|
return {
|
|
@@ -233,52 +233,52 @@ function To(o, l) {
|
|
|
233
233
|
h: r,
|
|
234
234
|
runs: v,
|
|
235
235
|
minX: p,
|
|
236
|
-
minY:
|
|
236
|
+
minY: m,
|
|
237
237
|
maxX: g,
|
|
238
|
-
maxY:
|
|
238
|
+
maxY: C
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
241
|
const ct = /* @__PURE__ */ new Map(), dt = /* @__PURE__ */ new Map();
|
|
242
|
-
function Mo({ word: o, fontSize: l, pad:
|
|
243
|
-
const i = c.style && c.style.bold ? 1 : 0, d =
|
|
242
|
+
function Mo({ word: o, fontSize: l, pad: f, svg: c }) {
|
|
243
|
+
const i = c.style && c.style.bold ? 1 : 0, d = f || 0;
|
|
244
244
|
return `${o.name}::${l}::${d}::${i}`;
|
|
245
245
|
}
|
|
246
246
|
function Io({
|
|
247
247
|
word: o,
|
|
248
248
|
fontSize: l,
|
|
249
|
-
pad:
|
|
249
|
+
pad: f,
|
|
250
250
|
canvas: c,
|
|
251
251
|
ctx: i,
|
|
252
252
|
svg: d
|
|
253
253
|
}) {
|
|
254
|
-
const r = Mo({ word: o, fontSize: l, pad:
|
|
254
|
+
const r = Mo({ word: o, fontSize: l, pad: f, svg: d }), a = ct.get(r);
|
|
255
255
|
if (a) return { key: r, bitmap: a };
|
|
256
|
-
const p = wo({ word: o, fontSize: l, pad:
|
|
256
|
+
const p = wo({ word: o, fontSize: l, pad: f, canvas: c, ctx: i, svg: d });
|
|
257
257
|
return ct.set(r, p), { key: r, bitmap: p };
|
|
258
258
|
}
|
|
259
259
|
function Oo({
|
|
260
260
|
bitmapKey: o,
|
|
261
261
|
wordMask: l,
|
|
262
|
-
w:
|
|
262
|
+
w: f,
|
|
263
263
|
h: c,
|
|
264
264
|
dilation: i
|
|
265
265
|
}) {
|
|
266
266
|
const d = `${o}::d${i}`, r = dt.get(d);
|
|
267
267
|
if (r) return r;
|
|
268
|
-
const a = So({ wordMask: l, w:
|
|
269
|
-
return dt.set(d,
|
|
268
|
+
const a = So({ wordMask: l, w: f, h: c, dilation: i }), p = xo(a), m = { wordMask: a, runs: p };
|
|
269
|
+
return dt.set(d, m), m;
|
|
270
270
|
}
|
|
271
271
|
const Eo = 6, zo = 2, pt = Math.PI / 180, gt = [], bt = [];
|
|
272
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
|
-
const
|
|
276
|
+
const Ct = [], yt = [];
|
|
277
277
|
for (let o = 0; o < 360; o += zo) {
|
|
278
278
|
const l = o * pt;
|
|
279
|
-
|
|
279
|
+
Ct.push(Math.cos(l)), yt.push(Math.sin(l));
|
|
280
280
|
}
|
|
281
|
-
function Po(o, l,
|
|
281
|
+
function Po(o, l, f) {
|
|
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) {
|
|
@@ -294,8 +294,8 @@ function Po(o, l, m) {
|
|
|
294
294
|
Math.abs(r)
|
|
295
295
|
);
|
|
296
296
|
if (a === 0 || p === 0) return;
|
|
297
|
-
const
|
|
298
|
-
let b = Math.min(g,
|
|
297
|
+
const m = 0.9, g = l * 0.5 * m / a, C = f * 0.5 * m / p;
|
|
298
|
+
let b = Math.min(g, C);
|
|
299
299
|
if (b <= 1) return;
|
|
300
300
|
const v = 4;
|
|
301
301
|
b > v && (b = v);
|
|
@@ -310,13 +310,13 @@ function Xo() {
|
|
|
310
310
|
function Ro({
|
|
311
311
|
value: o,
|
|
312
312
|
minimumValue: l,
|
|
313
|
-
maximumValue:
|
|
313
|
+
maximumValue: f,
|
|
314
314
|
configuredMinimumFontSize: c,
|
|
315
315
|
maximumFontSize: i
|
|
316
316
|
}) {
|
|
317
|
-
if (
|
|
317
|
+
if (f === l)
|
|
318
318
|
return i;
|
|
319
|
-
const r = (o - l) / (
|
|
319
|
+
const r = (o - l) / (f - l) * (i - c) + c;
|
|
320
320
|
return Math.max(
|
|
321
321
|
c,
|
|
322
322
|
Math.min(i, r)
|
|
@@ -325,21 +325,21 @@ function Ro({
|
|
|
325
325
|
function Do({
|
|
326
326
|
currentBitmap: o,
|
|
327
327
|
strictPixelPadding: l,
|
|
328
|
-
scaleFactor:
|
|
328
|
+
scaleFactor: f,
|
|
329
329
|
baseBitmap: c,
|
|
330
330
|
bitmapKey: i
|
|
331
331
|
}) {
|
|
332
332
|
let d = o.runs;
|
|
333
|
-
const r = o.w, a = o.h, p = o.minX,
|
|
333
|
+
const r = o.w, a = o.h, p = o.minX, m = o.minY, g = o.maxX, C = o.maxY;
|
|
334
334
|
return !l || !d.length ? {
|
|
335
335
|
runs: d,
|
|
336
336
|
bitmapWidth: r,
|
|
337
337
|
bitmapHeight: a,
|
|
338
338
|
bitmapMinimumX: p,
|
|
339
|
-
bitmapMinimumY:
|
|
339
|
+
bitmapMinimumY: m,
|
|
340
340
|
bitmapMaximumX: g,
|
|
341
|
-
bitmapMaximumY:
|
|
342
|
-
} :
|
|
341
|
+
bitmapMaximumY: C
|
|
342
|
+
} : f === 1 ? {
|
|
343
343
|
runs: Oo({
|
|
344
344
|
bitmapKey: i,
|
|
345
345
|
wordMask: c.wordMask,
|
|
@@ -350,9 +350,9 @@ function Do({
|
|
|
350
350
|
bitmapWidth: r,
|
|
351
351
|
bitmapHeight: a,
|
|
352
352
|
bitmapMinimumX: p,
|
|
353
|
-
bitmapMinimumY:
|
|
353
|
+
bitmapMinimumY: m,
|
|
354
354
|
bitmapMaximumX: g,
|
|
355
|
-
bitmapMaximumY:
|
|
355
|
+
bitmapMaximumY: C
|
|
356
356
|
} : {
|
|
357
357
|
runs: $o({
|
|
358
358
|
runs: d,
|
|
@@ -363,24 +363,24 @@ function Do({
|
|
|
363
363
|
bitmapWidth: r,
|
|
364
364
|
bitmapHeight: a,
|
|
365
365
|
bitmapMinimumX: p,
|
|
366
|
-
bitmapMinimumY:
|
|
366
|
+
bitmapMinimumY: m,
|
|
367
367
|
bitmapMaximumX: g,
|
|
368
|
-
bitmapMaximumY:
|
|
368
|
+
bitmapMaximumY: C
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
async function
|
|
371
|
+
async function ft({
|
|
372
372
|
baseBitmap: o,
|
|
373
373
|
baseFontSize: l,
|
|
374
|
-
minimumScaleFactor:
|
|
374
|
+
minimumScaleFactor: f,
|
|
375
375
|
maskBits: c,
|
|
376
376
|
maskRowStride: i,
|
|
377
377
|
maskWidth: d,
|
|
378
378
|
maskHeight: r,
|
|
379
379
|
centerX: a,
|
|
380
380
|
centerY: p,
|
|
381
|
-
maximumRadius:
|
|
381
|
+
maximumRadius: m,
|
|
382
382
|
scaleStep: g,
|
|
383
|
-
strictPixelPadding:
|
|
383
|
+
strictPixelPadding: C,
|
|
384
384
|
bitmapKey: b,
|
|
385
385
|
minimumFontSize: v,
|
|
386
386
|
rawWord: u,
|
|
@@ -391,10 +391,10 @@ async function mt({
|
|
|
391
391
|
maybeYield: h
|
|
392
392
|
}) {
|
|
393
393
|
let w = 1;
|
|
394
|
-
for (; w >=
|
|
394
|
+
for (; w >= f; ) {
|
|
395
395
|
const _ = w === 1 ? o : To(o, w), B = Do({
|
|
396
396
|
currentBitmap: _,
|
|
397
|
-
strictPixelPadding:
|
|
397
|
+
strictPixelPadding: C,
|
|
398
398
|
scaleFactor: w,
|
|
399
399
|
baseBitmap: o,
|
|
400
400
|
bitmapKey: b
|
|
@@ -408,7 +408,7 @@ async function mt({
|
|
|
408
408
|
bitmapMaximumY: ie
|
|
409
409
|
} = B;
|
|
410
410
|
let K = 0, oe = 0;
|
|
411
|
-
for (; K <
|
|
411
|
+
for (; K < m && oe < x; ) {
|
|
412
412
|
for (let R = 0; R < s.length; R += 1) {
|
|
413
413
|
oe += 1;
|
|
414
414
|
const L = Math.round(
|
|
@@ -430,7 +430,7 @@ async function mt({
|
|
|
430
430
|
const { __wcIndex: D, ...Y } = u, ue = Math.max(
|
|
431
431
|
v,
|
|
432
432
|
Math.round(l * w)
|
|
433
|
-
),
|
|
433
|
+
), fe = {
|
|
434
434
|
...Y,
|
|
435
435
|
x: L - d / 2,
|
|
436
436
|
y: j - r / 2,
|
|
@@ -451,7 +451,7 @@ async function mt({
|
|
|
451
451
|
wx: L,
|
|
452
452
|
wy: j,
|
|
453
453
|
runs: X
|
|
454
|
-
}),
|
|
454
|
+
}), fe;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
K += k, (oe & 1023) === 0 && await h();
|
|
@@ -463,16 +463,16 @@ async function mt({
|
|
|
463
463
|
async function Yo({
|
|
464
464
|
baseBitmap: o,
|
|
465
465
|
baseFontSize: l,
|
|
466
|
-
minimumScaleFactor:
|
|
466
|
+
minimumScaleFactor: f,
|
|
467
467
|
maskBits: c,
|
|
468
468
|
maskRowStride: i,
|
|
469
469
|
maskWidth: d,
|
|
470
470
|
maskHeight: r,
|
|
471
471
|
centerX: a,
|
|
472
472
|
centerY: p,
|
|
473
|
-
maximumRadius:
|
|
473
|
+
maximumRadius: m,
|
|
474
474
|
scaleStep: g,
|
|
475
|
-
strictPixelPadding:
|
|
475
|
+
strictPixelPadding: C,
|
|
476
476
|
bitmapKey: b,
|
|
477
477
|
minimumFontSize: v,
|
|
478
478
|
rawWord: u,
|
|
@@ -480,19 +480,19 @@ async function Yo({
|
|
|
480
480
|
spiralRadiusStep: S,
|
|
481
481
|
fallbackSpiralRadiusStep: k
|
|
482
482
|
}) {
|
|
483
|
-
const x = await
|
|
483
|
+
const x = await ft({
|
|
484
484
|
baseBitmap: o,
|
|
485
485
|
baseFontSize: l,
|
|
486
|
-
minimumScaleFactor:
|
|
486
|
+
minimumScaleFactor: f,
|
|
487
487
|
maskBits: c,
|
|
488
488
|
maskRowStride: i,
|
|
489
489
|
maskWidth: d,
|
|
490
490
|
maskHeight: r,
|
|
491
491
|
centerX: a,
|
|
492
492
|
centerY: p,
|
|
493
|
-
maximumRadius:
|
|
493
|
+
maximumRadius: m,
|
|
494
494
|
scaleStep: g,
|
|
495
|
-
strictPixelPadding:
|
|
495
|
+
strictPixelPadding: C,
|
|
496
496
|
bitmapKey: b,
|
|
497
497
|
minimumFontSize: v,
|
|
498
498
|
rawWord: u,
|
|
@@ -502,24 +502,24 @@ async function Yo({
|
|
|
502
502
|
maximumAttempts: 1e4,
|
|
503
503
|
maybeYield: s
|
|
504
504
|
});
|
|
505
|
-
return x || await
|
|
505
|
+
return x || await ft({
|
|
506
506
|
baseBitmap: o,
|
|
507
507
|
baseFontSize: l,
|
|
508
|
-
minimumScaleFactor:
|
|
508
|
+
minimumScaleFactor: f,
|
|
509
509
|
maskBits: c,
|
|
510
510
|
maskRowStride: i,
|
|
511
511
|
maskWidth: d,
|
|
512
512
|
maskHeight: r,
|
|
513
513
|
centerX: a,
|
|
514
514
|
centerY: p,
|
|
515
|
-
maximumRadius:
|
|
515
|
+
maximumRadius: m,
|
|
516
516
|
scaleStep: g,
|
|
517
|
-
strictPixelPadding:
|
|
517
|
+
strictPixelPadding: C,
|
|
518
518
|
bitmapKey: b,
|
|
519
519
|
minimumFontSize: v,
|
|
520
520
|
rawWord: u,
|
|
521
|
-
cosineArray:
|
|
522
|
-
sineArray:
|
|
521
|
+
cosineArray: Ct,
|
|
522
|
+
sineArray: yt,
|
|
523
523
|
radiusStep: k,
|
|
524
524
|
maximumAttempts: 25e3,
|
|
525
525
|
maybeYield: s
|
|
@@ -528,17 +528,17 @@ async function Yo({
|
|
|
528
528
|
async function Wo({
|
|
529
529
|
words: o,
|
|
530
530
|
proximity: l = 0,
|
|
531
|
-
svg:
|
|
531
|
+
svg: f,
|
|
532
532
|
strictPixelPadding: c,
|
|
533
533
|
onProgress: i,
|
|
534
534
|
debugTiming: d = !1
|
|
535
535
|
}) {
|
|
536
536
|
const r = Xo(), a = r(), p = 12;
|
|
537
|
-
let
|
|
537
|
+
let m = a;
|
|
538
538
|
async function g() {
|
|
539
|
-
r() -
|
|
539
|
+
r() - m >= p && (await new Promise((Y) => setTimeout(Y, 0)), m = r());
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const C = f.width, b = f.height, v = Math.round(C), u = Math.round(b), s = 1, S = f.minFontSize, k = Math.min(f.maxFontSize, 100), x = o.map((D) => D.value), h = Math.min(...x), w = Math.max(...x);
|
|
542
542
|
if (v <= 0 || u <= 0) return [];
|
|
543
543
|
const _ = v + 31 >>> 5, B = new Uint32Array(_ * u), X = document.createElement("canvas"), P = X.getContext("2d", { willReadFrequently: !0 });
|
|
544
544
|
X.width = v, X.height = u;
|
|
@@ -562,8 +562,8 @@ async function Wo({
|
|
|
562
562
|
pad: l,
|
|
563
563
|
canvas: X,
|
|
564
564
|
ctx: P,
|
|
565
|
-
svg:
|
|
566
|
-
}),
|
|
565
|
+
svg: f
|
|
566
|
+
}), me = xe.key, I = xe.bitmap, Me = I.w, Ie = I.h;
|
|
567
567
|
if (Me <= 0 || Ie <= 0) {
|
|
568
568
|
await g();
|
|
569
569
|
continue;
|
|
@@ -584,7 +584,7 @@ async function Wo({
|
|
|
584
584
|
maximumRadius: re,
|
|
585
585
|
scaleStep: L,
|
|
586
586
|
strictPixelPadding: c,
|
|
587
|
-
bitmapKey:
|
|
587
|
+
bitmapKey: me,
|
|
588
588
|
minimumFontSize: s,
|
|
589
589
|
rawWord: Y,
|
|
590
590
|
maybeYield: g,
|
|
@@ -606,7 +606,7 @@ async function Wo({
|
|
|
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 = { 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 = {
|
|
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" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" }, 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" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, 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" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Mt = {
|
|
610
610
|
default: {},
|
|
611
611
|
minimal: kt,
|
|
612
612
|
minimalDark: wt,
|
|
@@ -616,7 +616,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
616
616
|
hack: St,
|
|
617
617
|
zen: $t,
|
|
618
618
|
concrete: Tt
|
|
619
|
-
},
|
|
619
|
+
}, ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
620
620
|
__proto__: null,
|
|
621
621
|
celebration: At,
|
|
622
622
|
celebrationNight: Ft,
|
|
@@ -654,7 +654,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
654
654
|
Zt((t) => ({
|
|
655
655
|
d5ca9ade: t.slicerColor
|
|
656
656
|
}));
|
|
657
|
-
const
|
|
657
|
+
const f = 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-P4S5Z27M.js")), m = ne(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_word_cloud: g } = uo(), { isThemeValid: C, warnInvalidTheme: b } = ho(), v = o, u = le({
|
|
658
658
|
get() {
|
|
659
659
|
return !!v.dataset && v.dataset.length;
|
|
660
660
|
},
|
|
@@ -743,7 +743,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
743
743
|
})
|
|
744
744
|
}), R = M(L());
|
|
745
745
|
function L() {
|
|
746
|
-
return typeof K.value == "string" ? eo(K.value) : K.value.map((t,
|
|
746
|
+
return typeof K.value == "string" ? eo(K.value) : K.value.map((t, y) => ({
|
|
747
747
|
...t,
|
|
748
748
|
value: to(t.value)
|
|
749
749
|
}));
|
|
@@ -753,12 +753,12 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
753
753
|
const t = Ye({
|
|
754
754
|
userConfig: v.config,
|
|
755
755
|
defaultConfig: g
|
|
756
|
-
}),
|
|
757
|
-
if (!
|
|
758
|
-
if (!
|
|
756
|
+
}), y = t.theme;
|
|
757
|
+
if (!y) return t;
|
|
758
|
+
if (!C.value(t))
|
|
759
759
|
return b(t), t;
|
|
760
760
|
const n = Ye({
|
|
761
|
-
userConfig: Mt[
|
|
761
|
+
userConfig: Mt[y] || v.config,
|
|
762
762
|
defaultConfig: t
|
|
763
763
|
}), F = Ye({
|
|
764
764
|
userConfig: v.config,
|
|
@@ -766,10 +766,10 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
766
766
|
});
|
|
767
767
|
return {
|
|
768
768
|
...F,
|
|
769
|
-
customPalette: F.customPalette.length ? F.customPalette : oo[
|
|
769
|
+
customPalette: F.customPalette.length ? F.customPalette : oo[y] || Te
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
|
-
const
|
|
772
|
+
const fe = M({ x: 0, y: 0 });
|
|
773
773
|
function ce() {
|
|
774
774
|
const t = {
|
|
775
775
|
x: 0,
|
|
@@ -777,15 +777,15 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
777
777
|
width: Math.max(10, I.value.width),
|
|
778
778
|
height: Math.max(10, I.value.height)
|
|
779
779
|
};
|
|
780
|
-
Pt(t),
|
|
780
|
+
Pt(t), fe.value = {
|
|
781
781
|
x: t.x + t.width / 2,
|
|
782
782
|
y: t.y + t.height / 2
|
|
783
|
-
},
|
|
783
|
+
}, Ce();
|
|
784
784
|
}
|
|
785
785
|
const xe = st(() => {
|
|
786
786
|
Ve();
|
|
787
|
-
}, 100),
|
|
788
|
-
we(() =>
|
|
787
|
+
}, 100), me = M(!1);
|
|
788
|
+
we(() => me.value, (t) => {
|
|
789
789
|
t === !1 && (te.value = !0, xe(), ce());
|
|
790
790
|
}), we(() => v.config, (t) => {
|
|
791
791
|
e.value = ue(), j.value = !e.value.userOptions.showOnChartHover, We(), w.value += 1, _.value += 1, 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;
|
|
@@ -797,17 +797,17 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
797
797
|
minFontSize: e.value.style.chart.words.minFontSize,
|
|
798
798
|
bold: e.value.style.chart.words.bold
|
|
799
799
|
}), Me = st(() => {
|
|
800
|
-
const { width: t, height:
|
|
800
|
+
const { width: t, height: y } = Jt({
|
|
801
801
|
chart: k.value,
|
|
802
802
|
title: e.value.style.chart.title.text ? x.value : null,
|
|
803
803
|
legend: e.value.style.chart.controls.show ? re.value?.$el : null,
|
|
804
804
|
source: h.value
|
|
805
805
|
});
|
|
806
806
|
requestAnimationFrame(async () => {
|
|
807
|
-
I.value.width = Math.max(10, t), I.value.height = Math.max(10,
|
|
807
|
+
I.value.width = Math.max(10, t), I.value.height = Math.max(10, y - 12), await lt(), me.value = !1;
|
|
808
808
|
});
|
|
809
809
|
}, 100), Ie = () => {
|
|
810
|
-
|
|
810
|
+
me.value = !0, Me();
|
|
811
811
|
}, H = tt(null), Q = tt(null);
|
|
812
812
|
Ut(We);
|
|
813
813
|
const pe = le(() => !!e.value.debug);
|
|
@@ -816,7 +816,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
816
816
|
componentName: "VueUiWordCloud",
|
|
817
817
|
type: "dataset",
|
|
818
818
|
debug: pe.value
|
|
819
|
-
}) : R.value.forEach((t,
|
|
819
|
+
}) : R.value.forEach((t, y) => {
|
|
820
820
|
ao({
|
|
821
821
|
datasetObject: t,
|
|
822
822
|
requiredAttributes: ["name", "value"]
|
|
@@ -825,7 +825,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
825
825
|
componentName: "VueUiWordCloud",
|
|
826
826
|
type: "datasetSerieAttribute",
|
|
827
827
|
property: n,
|
|
828
|
-
index:
|
|
828
|
+
index: y,
|
|
829
829
|
debug: pe.value
|
|
830
830
|
});
|
|
831
831
|
});
|
|
@@ -834,7 +834,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
834
834
|
Lt(() => {
|
|
835
835
|
H.value && (Q.value && H.value.unobserve(Q.value), H.value.disconnect());
|
|
836
836
|
});
|
|
837
|
-
const { isPrinting: Be, isImaging: _e, generatePdf: Ne, generateImage: Ze } =
|
|
837
|
+
const { isPrinting: Be, isImaging: _e, generatePdf: Ne, generateImage: Ze } = mo({
|
|
838
838
|
elementId: `wordCloud_${s.value}`,
|
|
839
839
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
|
|
840
840
|
options: e.value.userOptions.print
|
|
@@ -846,17 +846,17 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
846
846
|
we(e, () => {
|
|
847
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;
|
|
848
848
|
}, { immediate: !0 });
|
|
849
|
-
function It(t,
|
|
849
|
+
function It(t, y, n = "Arial") {
|
|
850
850
|
const $ = document.createElement("canvas").getContext("2d");
|
|
851
|
-
return $.font = `${
|
|
851
|
+
return $.font = `${y}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
|
|
852
852
|
width: $.measureText(t).width + e.value.style.chart.words.proximity,
|
|
853
|
-
height:
|
|
853
|
+
height: y
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
const q = M([]), ge = /* @__PURE__ */ new Map();
|
|
857
857
|
function Ve() {
|
|
858
|
-
const t = [...R.value].map(($) => $.value),
|
|
859
|
-
let G = ($.value - n) / (
|
|
858
|
+
const t = [...R.value].map(($) => $.value), y = Math.max(...t), n = Math.min(...t), F = [...R.value].map(($, T) => {
|
|
859
|
+
let G = ($.value - n) / (y - n) * (I.value.maxFontSize - I.value.minFontSize) + I.value.minFontSize;
|
|
860
860
|
G = isNaN(G) ? I.value.minFontSize : G;
|
|
861
861
|
const de = It($.name, G);
|
|
862
862
|
return {
|
|
@@ -894,14 +894,14 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
894
894
|
const t = q.value.map((n) => ({
|
|
895
895
|
name: n.name,
|
|
896
896
|
color: n.color
|
|
897
|
-
})),
|
|
898
|
-
return { head: t, body:
|
|
897
|
+
})), y = q.value.map((n) => n.value);
|
|
898
|
+
return { head: t, body: y };
|
|
899
899
|
});
|
|
900
900
|
function Oe(t = null) {
|
|
901
901
|
lt(() => {
|
|
902
|
-
const
|
|
902
|
+
const y = Ae.value.head.map(($, T) => [[
|
|
903
903
|
$.name
|
|
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(
|
|
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(y), F = so(n);
|
|
905
905
|
t ? t(F) : ro({ csvContent: F, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
906
906
|
});
|
|
907
907
|
}
|
|
@@ -909,7 +909,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
909
909
|
const t = [
|
|
910
910
|
e.value.table.columnNames.series,
|
|
911
911
|
e.value.table.columnNames.value
|
|
912
|
-
],
|
|
912
|
+
], y = Ae.value.head.map(($, T) => {
|
|
913
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 });
|
|
914
914
|
return [
|
|
915
915
|
{
|
|
@@ -937,7 +937,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
937
937
|
e.value.table.columnNames.value
|
|
938
938
|
],
|
|
939
939
|
head: t,
|
|
940
|
-
body:
|
|
940
|
+
body: y,
|
|
941
941
|
config: n
|
|
942
942
|
};
|
|
943
943
|
}), ae = M(!1);
|
|
@@ -960,7 +960,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
960
960
|
function He() {
|
|
961
961
|
O.value.showZoom = !O.value.showZoom;
|
|
962
962
|
}
|
|
963
|
-
const Et = le(() => !be.value && O.value.showZoom), { viewBox: Se, resetZoom:
|
|
963
|
+
const Et = le(() => !be.value && O.value.showZoom), { viewBox: Se, resetZoom: Ce, isZoom: zt, setInitialViewBox: Pt, zoomByFactor: qe, scale: Ge } = yo(Y, {
|
|
964
964
|
x: 0,
|
|
965
965
|
y: 0,
|
|
966
966
|
width: I.value.width <= 0 ? 10 : I.value.width,
|
|
@@ -971,20 +971,20 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
971
971
|
}, { immediate: !0 });
|
|
972
972
|
async function Xt({ scale: t = 2 } = {}) {
|
|
973
973
|
if (!k.value) return;
|
|
974
|
-
const { width:
|
|
974
|
+
const { width: y, height: n } = k.value.getBoundingClientRect(), F = y / n, { imageUri: $, base64: T } = await bo({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
975
975
|
return {
|
|
976
976
|
imageUri: $,
|
|
977
977
|
base64: T,
|
|
978
978
|
title: e.value.style.chart.title.text,
|
|
979
|
-
width:
|
|
979
|
+
width: y,
|
|
980
980
|
height: n,
|
|
981
981
|
aspectRatio: F
|
|
982
982
|
};
|
|
983
983
|
}
|
|
984
|
-
const
|
|
985
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
984
|
+
const ye = le(() => {
|
|
985
|
+
const t = e.value.table.useDialog && !e.value.table.show, y = O.value.showTable;
|
|
986
986
|
return {
|
|
987
|
-
component: t ?
|
|
987
|
+
component: t ? m : i,
|
|
988
988
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
989
989
|
props: t ? {
|
|
990
990
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -997,7 +997,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
997
997
|
} : {
|
|
998
998
|
hideDetails: !0,
|
|
999
999
|
config: {
|
|
1000
|
-
open:
|
|
1000
|
+
open: y,
|
|
1001
1001
|
maxHeight: 1e4,
|
|
1002
1002
|
body: {
|
|
1003
1003
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1024,8 +1024,8 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1024
1024
|
});
|
|
1025
1025
|
async function Ke({ isCb: t }) {
|
|
1026
1026
|
if (t) {
|
|
1027
|
-
const { blob:
|
|
1028
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
1027
|
+
const { blob: y, url: n, text: F, dataUrl: $ } = await Wt();
|
|
1028
|
+
e.value.userOptions.callbacks.svg({ blob: y, url: n, text: F, dataUrl: $ });
|
|
1029
1029
|
} else
|
|
1030
1030
|
Yt();
|
|
1031
1031
|
}
|
|
@@ -1042,7 +1042,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1042
1042
|
generatePdf: Ne,
|
|
1043
1043
|
generateImage: Ze,
|
|
1044
1044
|
generateSvg: Ke,
|
|
1045
|
-
resetZoom:
|
|
1045
|
+
resetZoom: Ce,
|
|
1046
1046
|
toggleTable: Le,
|
|
1047
1047
|
toggleTooltip: je,
|
|
1048
1048
|
toggleAnnotator: Ee,
|
|
@@ -1050,14 +1050,14 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1050
1050
|
toggleZoom: He
|
|
1051
1051
|
});
|
|
1052
1052
|
const ve = M(null), ke = M(!1), ze = M(""), Pe = M(null);
|
|
1053
|
-
function Bt(t,
|
|
1054
|
-
ve.value = null, B.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
1053
|
+
function Bt(t, y) {
|
|
1054
|
+
ve.value = null, B.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: y });
|
|
1055
1055
|
}
|
|
1056
|
-
function _t(t,
|
|
1057
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
1056
|
+
function _t(t, y) {
|
|
1057
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: y });
|
|
1058
1058
|
}
|
|
1059
|
-
function Nt(t,
|
|
1060
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
1059
|
+
function Nt(t, y) {
|
|
1060
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: y }), !O.value.showTooltip) return;
|
|
1061
1061
|
ve.value = t.id, Pe.value = { datapoint: t, config: e.value };
|
|
1062
1062
|
const n = e.value.style.chart.tooltip.customFormat;
|
|
1063
1063
|
if (ke.value = !1, io(n))
|
|
@@ -1076,16 +1076,16 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1076
1076
|
}
|
|
1077
1077
|
B.value = !0;
|
|
1078
1078
|
}
|
|
1079
|
-
return (t,
|
|
1079
|
+
return (t, y) => (W(), J("div", {
|
|
1080
1080
|
class: "vue-data-ui-component vue-ui-word-cloud",
|
|
1081
1081
|
ref_key: "wordCloudChart",
|
|
1082
1082
|
ref: k,
|
|
1083
1083
|
id: `wordCloud_${s.value}`,
|
|
1084
|
-
"data-resizing":
|
|
1084
|
+
"data-resizing": me.value,
|
|
1085
1085
|
"data-relayout": te.value,
|
|
1086
1086
|
style: Xe(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
1087
|
-
onMouseenter:
|
|
1088
|
-
onMouseleave:
|
|
1087
|
+
onMouseenter: y[3] || (y[3] = () => A(he)(!0)),
|
|
1088
|
+
onMouseleave: y[4] || (y[4] = () => A(he)(!1))
|
|
1089
1089
|
}, [
|
|
1090
1090
|
e.value.userOptions.buttons.annotator ? (W(), se(A(r), {
|
|
1091
1091
|
key: 0,
|
|
@@ -1121,7 +1121,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1121
1121
|
ref: x,
|
|
1122
1122
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1123
1123
|
}, [
|
|
1124
|
-
(W(), se(
|
|
1124
|
+
(W(), se(Co, {
|
|
1125
1125
|
key: `title_${w.value}`,
|
|
1126
1126
|
config: {
|
|
1127
1127
|
title: {
|
|
@@ -1247,7 +1247,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1247
1247
|
isFullscreen: ae.value,
|
|
1248
1248
|
onZoomIn: Qe,
|
|
1249
1249
|
onZoomOut: et,
|
|
1250
|
-
onResetZoom:
|
|
1250
|
+
onResetZoom: y[0] || (y[0] = (n) => A(Ce)(!0))
|
|
1251
1251
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1252
1252
|
(W(), J("svg", {
|
|
1253
1253
|
ref_key: "svgRef",
|
|
@@ -1271,7 +1271,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1271
1271
|
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
1272
1272
|
], 8, No)) : N("", !0),
|
|
1273
1273
|
$e("g", {
|
|
1274
|
-
transform: `translate(${
|
|
1274
|
+
transform: `translate(${fe.value.x}, ${fe.value.y})`,
|
|
1275
1275
|
class: at({ "wc-finalized": U.value })
|
|
1276
1276
|
}, [
|
|
1277
1277
|
(W(!0), J(jt, null, Ht(q.value, (n, F) => (W(), J("g", {
|
|
@@ -1320,7 +1320,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1320
1320
|
z(t.$slots, "watermark", Z(V({ isPrinting: A(Be) || A(_e) })), void 0, !0)
|
|
1321
1321
|
])) : N("", !0),
|
|
1322
1322
|
A(zt) ? (W(), J("div", Ho, [
|
|
1323
|
-
z(t.$slots, "reset-action", { reset: A(
|
|
1323
|
+
z(t.$slots, "reset-action", { reset: A(Ce) }, void 0, !0)
|
|
1324
1324
|
])) : N("", !0),
|
|
1325
1325
|
e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !A(ie) ? (W(), se(ut, {
|
|
1326
1326
|
key: 6,
|
|
@@ -1331,9 +1331,9 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1331
1331
|
isFullscreen: ae.value,
|
|
1332
1332
|
onZoomIn: Qe,
|
|
1333
1333
|
onZoomOut: et,
|
|
1334
|
-
onResetZoom:
|
|
1334
|
+
onResetZoom: y[1] || (y[1] = (n) => A(Ce)(!0))
|
|
1335
1335
|
}, null, 8, ["config", "scale", "isFullscreen"])) : N("", !0),
|
|
1336
|
-
Re(A(
|
|
1336
|
+
Re(A(f), {
|
|
1337
1337
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1338
1338
|
show: O.value.showTooltip && B.value,
|
|
1339
1339
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1370,7 +1370,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1370
1370
|
}, [
|
|
1371
1371
|
z(t.$slots, "source", {}, void 0, !0)
|
|
1372
1372
|
], 512)) : N("", !0),
|
|
1373
|
-
u.value && e.value.userOptions.buttons.table ? (W(), se(qt(
|
|
1373
|
+
u.value && e.value.userOptions.buttons.table ? (W(), se(qt(ye.value.component), Gt({ key: 8 }, ye.value.props, {
|
|
1374
1374
|
ref_key: "tableUnit",
|
|
1375
1375
|
ref: X,
|
|
1376
1376
|
onClose: Je
|
|
@@ -1382,7 +1382,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1382
1382
|
head: Fe.value.head,
|
|
1383
1383
|
body: Fe.value.body,
|
|
1384
1384
|
config: Fe.value.config,
|
|
1385
|
-
title: e.value.table.useDialog ? "" :
|
|
1385
|
+
title: e.value.table.useDialog ? "" : ye.value.title,
|
|
1386
1386
|
withCloseButton: !e.value.table.useDialog,
|
|
1387
1387
|
onClose: Je
|
|
1388
1388
|
}, {
|
|
@@ -1403,7 +1403,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1403
1403
|
e.value.table.useDialog ? {
|
|
1404
1404
|
name: "title",
|
|
1405
1405
|
fn: E(() => [
|
|
1406
|
-
nt(De(
|
|
1406
|
+
nt(De(ye.value.title), 1)
|
|
1407
1407
|
]),
|
|
1408
1408
|
key: "0"
|
|
1409
1409
|
} : void 0,
|
|
@@ -1413,18 +1413,18 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1413
1413
|
$e("button", {
|
|
1414
1414
|
tabindex: "0",
|
|
1415
1415
|
class: "vue-ui-user-options-button",
|
|
1416
|
-
onClick:
|
|
1416
|
+
onClick: y[2] || (y[2] = (n) => Oe(e.value.userOptions.callbacks.csv))
|
|
1417
1417
|
}, [
|
|
1418
1418
|
Re(A(c), {
|
|
1419
1419
|
name: "excel",
|
|
1420
|
-
stroke:
|
|
1420
|
+
stroke: ye.value.props.color
|
|
1421
1421
|
}, null, 8, ["stroke"])
|
|
1422
1422
|
])
|
|
1423
1423
|
]),
|
|
1424
1424
|
key: "1"
|
|
1425
1425
|
} : void 0
|
|
1426
1426
|
]), 1040)) : N("", !0),
|
|
1427
|
-
A(ie) ? (W(), se(
|
|
1427
|
+
A(ie) ? (W(), se(fo, { key: 9 })) : N("", !0)
|
|
1428
1428
|
], 44, Bo));
|
|
1429
1429
|
}
|
|
1430
1430
|
}, Jo = /* @__PURE__ */ ko(Go, [["__scopeId", "data-v-aa3e07cf"]]), va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1432,7 +1432,7 @@ const kt = { userOptions: { show: !1 } }, wt = { userOptions: { show: !1 }, styl
|
|
|
1432
1432
|
default: Jo
|
|
1433
1433
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1434
1434
|
export {
|
|
1435
|
-
|
|
1435
|
+
ma as a,
|
|
1436
1436
|
va as b,
|
|
1437
1437
|
Jo as v
|
|
1438
1438
|
};
|