@marimo-team/islands 0.12.9-dev12 → 0.12.9-dev14
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/{ConnectedDataExplorerComponent-D0IakEkl.js → ConnectedDataExplorerComponent-vCHQMMN5.js} +2 -2
- package/dist/{VegaLite-BeHdXWPV.js → VegaLite-Ds5eIb7-.js} +3 -3
- package/dist/{_baseUniq-DMg-ffFG.js → _baseUniq-C5tIOyrt.js} +67 -67
- package/dist/{any-language-editor-Bqpcm7FW.js → any-language-editor-BZsai6GV.js} +61 -61
- package/dist/{architectureDiagram-IEHRJDOE-BYEzu9z_.js → architectureDiagram-IEHRJDOE-CLG3Fr6_.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-CTkYzTMp.js → blockDiagram-JOT3LUYC-Cfr2uCAQ.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-c4CpTGTX.js → c4Diagram-VJAJSXHY-DDLS9Smg.js} +2 -2
- package/dist/{channel-CzxtfbTt.js → channel-Cipu6YCm.js} +1 -1
- package/dist/chart-spec-Cf0EsusN.js +136 -0
- package/dist/{chunk-4BMEZGHF-D8gqDvsk.js → chunk-4BMEZGHF-D7oLoRJ5.js} +1 -1
- package/dist/{chunk-A2AXSNBT-e8cEt0ul.js → chunk-A2AXSNBT-CvgEQHj_.js} +2 -2
- package/dist/{chunk-AEK57VVT-ClEul3f6.js → chunk-AEK57VVT-6Lba71b7.js} +2 -2
- package/dist/{chunk-D6G4REZN-DLhUjcEt.js → chunk-D6G4REZN-C0WdO_VT.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-DrkrbFg5.js → chunk-RZ5BOZE2-C9FrVqDY.js} +1 -1
- package/dist/{chunk-XZIHB7SX-B3_VuCqM.js → chunk-XZIHB7SX-BJt18CVA.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-8hjY6mMV.js → classDiagram-GIVACNV2-CoiFKgG5.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-8hjY6mMV.js → classDiagram-v2-COTLJTTW-CoiFKgG5.js} +2 -2
- package/dist/{clone-B4Wzbyp8.js → clone-BwQOpQEd.js} +1 -1
- package/dist/{dagre-OKDRZEBW-0IUHsgKM.js → dagre-OKDRZEBW-yuAmFxdp.js} +6 -6
- package/dist/{data-editor-v4sxgodt.js → data-editor-Bjzf3Iu1.js} +1 -1
- package/dist/{diagram-SSKATNLV-C9r14aYB.js → diagram-SSKATNLV-BkJqoGIS.js} +3 -3
- package/dist/{diagram-VNBRO52H-BMJdRcBP.js → diagram-VNBRO52H-D9qP-V-5.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-ArCWxrXH.js → erDiagram-Q7BY3M3F-H0qWkIbt.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-BE85XML6.js → flowDiagram-4HSFHLVR-IDHUoY3H.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-DTQonuja.js → ganttDiagram-APWFNJXF-g-q0eLnS.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-Coa0OlG8.js → gitGraphDiagram-7IBYFJ6S-DXRTsysK.js} +4 -4
- package/dist/{graph-BZa4i-Ii.js → graph-BxW1MW9Y.js} +8 -8
- package/dist/{index-D6U0LzLL.js → index-3CE8iokw.js} +4 -4
- package/dist/{index-kG8Josg3.js → index-B5fAwXla.js} +1 -1
- package/dist/{index-CY1nhtc6.js → index-BPx8rtBN.js} +3 -3
- package/dist/{index-DMkv1OMH.js → index-BlhXKoPT.js} +1 -1
- package/dist/{index-k23C1aIg.js → index-BsmvdgSM.js} +4 -4
- package/dist/{index-DlDwTp7H.js → index-CRF_FzqW.js} +24 -24
- package/dist/{index-Cwyv6azt.js → index-CYDRtBSN.js} +1 -1
- package/dist/{index-rdi5VFeY.js → index-CtVoLv0s.js} +1 -1
- package/dist/{index-D7NHhIbf.js → index-DEYRfPwy.js} +4 -4
- package/dist/{index-Btn6wYtT.js → index-DLl7KOGd.js} +1 -1
- package/dist/{index-q4Aebeue.js → index-DUyE2bFu.js} +11 -11
- package/dist/{index-DwlH8lwz.js → index-DguYNhmK.js} +1 -1
- package/dist/{index-BOYdNXX-.js → index-DjA9LHD6.js} +9 -9
- package/dist/{index-WeNY2ZcK.js → index-DoOoAke3.js} +3 -3
- package/dist/{index-B_xRgppq.js → index-xiWjzZN5.js} +3 -3
- package/dist/{infoDiagram-PH2N3AL5-D34LkMuU.js → infoDiagram-PH2N3AL5-CD3YOXfd.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-Z3O5kaT-.js → journeyDiagram-U35MCT3I-D2hPG2J7.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-CzZbYHpF.js → kanban-definition-NDS4AKOZ-Df-pBCL4.js} +1 -1
- package/dist/{layout-BiI5N_ct.js → layout-CsLghbgf.js} +69 -69
- package/dist/{linear-nYr-vmBM.js → linear-Cp7DqvZO.js} +14 -14
- package/dist/{main-CvhffoE9.js → main-CfRfmfu9.js} +34924 -34064
- package/dist/main.js +1 -1
- package/dist/{mermaid-DfP9VrMP.js → mermaid-pWILEv5Q.js} +28 -28
- package/dist/min-BMYiHTjI.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-CN3gUi9r.js → mindmap-definition-ALO5MXBD-CxnHkE5n.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-DS7SS7Va.js → pieDiagram-IB7DONF6-Cle4P7ic.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-C-ekknhK.js → quadrantDiagram-7GDLP6J5-Dbnj9CQf.js} +2 -2
- package/dist/{radar-MK3ICKWK-pf7Q3x2Q.js → radar-MK3ICKWK-BVSsHRw4.js} +5 -5
- package/dist/{react-plotly-IlJA6LYI.js → react-plotly-D0kMZBzx.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-B0wYAr8-.js → requirementDiagram-KVF5MWMF-CrfFi-nO.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-CAU2Idqr.js → sankeyDiagram-QLVOVGJD-BqzB2SnR.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-CYqZGqTp.js → sequenceDiagram-X6HHIX6F-BEpuJqjT.js} +3 -3
- package/dist/{slides-component-CwBGwiXu.js → slides-component-B4wI8NbV.js} +25 -25
- package/dist/{stateDiagram-DGXRK772-CJPJ6kl9.js → stateDiagram-DGXRK772-CE-6YwWc.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-C4IUFxl_.js → stateDiagram-v2-YXO3MK2T-BhQbz88s.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-CZ_jtXi4.js → time-D54NhBzE.js} +35 -35
- package/dist/{timeline-definition-BDJGKUSR-1sKyZO0r.js → timeline-definition-BDJGKUSR-k_e3vu7M.js} +1 -1
- package/dist/{vega-component-CL55BbVo.js → vega-component-Ds6ZrLT3.js} +23 -23
- package/dist/{xychartDiagram-VJFVF3MP-_A9f3kL7.js → xychartDiagram-VJFVF3MP-B29a7ti1.js} +2 -2
- package/package.json +1 -1
- package/dist/min-BIRR9Kxe.js +0 -80
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { c as on, a as hn } from "./linear-
|
|
1
|
+
import { R as A, r as ln, o as B, q as P, C as W, u as D, v as fn } from "./timer-ly3uOrxC.js";
|
|
2
|
+
import { c as on, a as hn } from "./linear-Cp7DqvZO.js";
|
|
3
3
|
import { i as bn } from "./init-DxzjmxYy.js";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
4
|
+
import { af as gn, ag as v, ah as d, ai as k, aj as x, ak as F, al as yn, am as L, an as H, ao as R, ap as pn, aq as mn, ar as wn, as as Mn, at as vn, au as dn, av as kn, aw as j, ax as K, ay as X, az as Z, aA as $, aB as E, aC as xn } from "./main-CfRfmfu9.js";
|
|
5
|
+
function Bn(n, t) {
|
|
6
6
|
let i;
|
|
7
7
|
if (t === void 0)
|
|
8
8
|
for (const e of n)
|
|
@@ -14,7 +14,7 @@ function Wn(n, t) {
|
|
|
14
14
|
}
|
|
15
15
|
return i;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Pn(n, t) {
|
|
18
18
|
let i;
|
|
19
19
|
if (t === void 0)
|
|
20
20
|
for (const e of n)
|
|
@@ -28,10 +28,10 @@ function jn(n, t) {
|
|
|
28
28
|
}
|
|
29
29
|
function G(n, t, i, e, r, l) {
|
|
30
30
|
const s = [
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
31
|
+
[v, 1, d],
|
|
32
|
+
[v, 5, 5 * d],
|
|
33
|
+
[v, 15, 15 * d],
|
|
34
|
+
[v, 30, 30 * d],
|
|
35
35
|
[l, 1, k],
|
|
36
36
|
[l, 5, 5 * k],
|
|
37
37
|
[l, 15, 15 * k],
|
|
@@ -45,7 +45,7 @@ function G(n, t, i, e, r, l) {
|
|
|
45
45
|
[i, 1, yn],
|
|
46
46
|
[t, 1, L],
|
|
47
47
|
[t, 3, 3 * L],
|
|
48
|
-
[n, 1,
|
|
48
|
+
[n, 1, H]
|
|
49
49
|
];
|
|
50
50
|
function y(u, c, b) {
|
|
51
51
|
const f = c < u;
|
|
@@ -54,29 +54,29 @@ function G(n, t, i, e, r, l) {
|
|
|
54
54
|
return f ? m.reverse() : m;
|
|
55
55
|
}
|
|
56
56
|
function M(u, c, b) {
|
|
57
|
-
const f = Math.abs(c - u) / b, o = gn(([, ,
|
|
58
|
-
if (o === s.length) return n.every(R(u /
|
|
57
|
+
const f = Math.abs(c - u) / b, o = gn(([, , C]) => C).right(s, f);
|
|
58
|
+
if (o === s.length) return n.every(R(u / H, c / H, b));
|
|
59
59
|
if (o === 0) return pn.every(Math.max(R(u, c, b), 1));
|
|
60
60
|
const [m, I] = s[f / s[o - 1][2] < s[o][2] / f ? o - 1 : o];
|
|
61
61
|
return m.every(I);
|
|
62
62
|
}
|
|
63
63
|
return [y, M];
|
|
64
64
|
}
|
|
65
|
-
const [
|
|
65
|
+
const [Wn, jn] = G(kn, dn, vn, Mn, wn, mn), [Dn, Nn] = G(E, $, Z, X, K, j), In = Math.PI / 180, Cn = 180 / Math.PI, N = 18, J = 0.96422, O = 1, Q = 0.82521, U = 4 / 29, w = 6 / 29, V = 3 * w * w, Hn = w * w * w;
|
|
66
66
|
function _(n) {
|
|
67
67
|
if (n instanceof g) return new g(n.l, n.a, n.b, n.opacity);
|
|
68
68
|
if (n instanceof p) return nn(n);
|
|
69
|
-
n instanceof
|
|
70
|
-
var t = T(n.r), i = T(n.g), e = T(n.b), r =
|
|
71
|
-
return t === i && i === e ? l = s = r : (l =
|
|
69
|
+
n instanceof A || (n = ln(n));
|
|
70
|
+
var t = T(n.r), i = T(n.g), e = T(n.b), r = S((0.2225045 * t + 0.7168786 * i + 0.0606169 * e) / O), l, s;
|
|
71
|
+
return t === i && i === e ? l = s = r : (l = S((0.4360747 * t + 0.3850649 * i + 0.1430804 * e) / J), s = S((0.0139322 * t + 0.0971045 * i + 0.7141733 * e) / Q)), new g(116 * r - 16, 500 * (l - r), 200 * (r - s), n.opacity);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Sn(n, t, i, e) {
|
|
74
74
|
return arguments.length === 1 ? _(n) : new g(n, t, i, e ?? 1);
|
|
75
75
|
}
|
|
76
76
|
function g(n, t, i, e) {
|
|
77
77
|
this.l = +n, this.a = +t, this.b = +i, this.opacity = +e;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
B(g, Sn, P(W, {
|
|
80
80
|
brighter(n) {
|
|
81
81
|
return new g(this.l + N * (n ?? 1), this.a, this.b, this.opacity);
|
|
82
82
|
},
|
|
@@ -85,7 +85,7 @@ W(g, Yn, j(A, {
|
|
|
85
85
|
},
|
|
86
86
|
rgb() {
|
|
87
87
|
var n = (this.l + 16) / 116, t = isNaN(this.a) ? n : n + this.a / 500, i = isNaN(this.b) ? n : n - this.b / 200;
|
|
88
|
-
return t = J *
|
|
88
|
+
return t = J * Y(t), n = O * Y(n), i = Q * Y(i), new A(
|
|
89
89
|
z(3.1338561 * t - 1.6168667 * n - 0.4906146 * i),
|
|
90
90
|
z(-0.9787684 * t + 1.9161415 * n + 0.033454 * i),
|
|
91
91
|
z(0.0719453 * t - 0.2289914 * n + 1.4052427 * i),
|
|
@@ -93,10 +93,10 @@ W(g, Yn, j(A, {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
}));
|
|
96
|
-
function
|
|
97
|
-
return n >
|
|
96
|
+
function S(n) {
|
|
97
|
+
return n > Hn ? Math.pow(n, 1 / 3) : n / V + U;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Y(n) {
|
|
100
100
|
return n > w ? n * n * n : V * (n - U);
|
|
101
101
|
}
|
|
102
102
|
function z(n) {
|
|
@@ -105,14 +105,14 @@ function z(n) {
|
|
|
105
105
|
function T(n) {
|
|
106
106
|
return (n /= 255) <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Yn(n) {
|
|
109
109
|
if (n instanceof p) return new p(n.h, n.c, n.l, n.opacity);
|
|
110
110
|
if (n instanceof g || (n = _(n)), n.a === 0 && n.b === 0) return new p(NaN, 0 < n.l && n.l < 100 ? 0 : NaN, n.l, n.opacity);
|
|
111
|
-
var t = Math.atan2(n.b, n.a) *
|
|
111
|
+
var t = Math.atan2(n.b, n.a) * Cn;
|
|
112
112
|
return new p(t < 0 ? t + 360 : t, Math.sqrt(n.a * n.a + n.b * n.b), n.l, n.opacity);
|
|
113
113
|
}
|
|
114
114
|
function q(n, t, i, e) {
|
|
115
|
-
return arguments.length === 1 ?
|
|
115
|
+
return arguments.length === 1 ? Yn(n) : new p(n, t, i, e ?? 1);
|
|
116
116
|
}
|
|
117
117
|
function p(n, t, i, e) {
|
|
118
118
|
this.h = +n, this.c = +t, this.l = +i, this.opacity = +e;
|
|
@@ -122,7 +122,7 @@ function nn(n) {
|
|
|
122
122
|
var t = n.h * In;
|
|
123
123
|
return new g(n.l, Math.cos(t) * n.c, Math.sin(t) * n.c, n.opacity);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
B(p, q, P(W, {
|
|
126
126
|
brighter(n) {
|
|
127
127
|
return new p(this.h, this.c, this.l + N * (n ?? 1), this.opacity);
|
|
128
128
|
},
|
|
@@ -155,9 +155,9 @@ function qn(n) {
|
|
|
155
155
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
156
156
|
}
|
|
157
157
|
function en(n, t, i, e, r, l, s, y, M, u) {
|
|
158
|
-
var c = on(), b = c.invert, f = c.domain, o = u(".%L"), m = u(":%S"), I = u("%I:%M"),
|
|
158
|
+
var c = on(), b = c.invert, f = c.domain, o = u(".%L"), m = u(":%S"), I = u("%I:%M"), C = u("%I %p"), rn = u("%a %d"), an = u("%b %d"), cn = u("%B"), un = u("%Y");
|
|
159
159
|
function sn(a) {
|
|
160
|
-
return (M(a) < a ? o : y(a) < a ? m : s(a) < a ? I : l(a) < a ?
|
|
160
|
+
return (M(a) < a ? o : y(a) < a ? m : s(a) < a ? I : l(a) < a ? C : e(a) < a ? r(a) < a ? rn : an : i(a) < a ? cn : un)(a);
|
|
161
161
|
}
|
|
162
162
|
return c.invert = function(a) {
|
|
163
163
|
return new Date(b(a));
|
|
@@ -176,20 +176,20 @@ function en(n, t, i, e, r, l, s, y, M, u) {
|
|
|
176
176
|
}, c;
|
|
177
177
|
}
|
|
178
178
|
function Zn() {
|
|
179
|
-
return bn.apply(en(Dn, Nn, E, $, Z, X, K,
|
|
179
|
+
return bn.apply(en(Dn, Nn, E, $, Z, X, K, j, v, xn).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
Bn as a,
|
|
183
|
+
Wn as b,
|
|
184
184
|
en as c,
|
|
185
|
-
|
|
185
|
+
Cn as d,
|
|
186
186
|
q as e,
|
|
187
187
|
Xn as h,
|
|
188
188
|
Kn as i,
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
Sn as l,
|
|
190
|
+
Pn as m,
|
|
191
191
|
zn as n,
|
|
192
192
|
In as r,
|
|
193
193
|
Zn as t,
|
|
194
|
-
|
|
194
|
+
jn as u
|
|
195
195
|
};
|
package/dist/{timeline-definition-BDJGKUSR-1sKyZO0r.js → timeline-definition-BDJGKUSR-k_e3vu7M.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-
|
|
1
|
+
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-pWILEv5Q.js";
|
|
2
2
|
import { d as nt } from "./arc-CbMargV8.js";
|
|
3
3
|
var X = function() {
|
|
4
4
|
var n = /* @__PURE__ */ s(function(f, i, a, d) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as d, a as te } from "./VegaLite-
|
|
3
|
-
const
|
|
1
|
+
import { Z as I, _ as K, $ as z, a0 as R, a1 as G, a2 as W, S as f, a3 as $, Q as B, M as k, a4 as A, a5 as M, a6 as U, a7 as x, a8 as O, a9 as q, aa as Q, ab as Y, ac as J, ad as X, ae as ee } from "./main-CfRfmfu9.js";
|
|
2
|
+
import { M as d, a as te } from "./VegaLite-Ds5eIb7-.js";
|
|
3
|
+
const j = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
4
4
|
getMarkType(e) {
|
|
5
5
|
const t = typeof e == "string" ? e : e.type;
|
|
6
|
-
if (
|
|
6
|
+
if (j.has(t))
|
|
7
7
|
throw new Error("Not supported");
|
|
8
8
|
return t;
|
|
9
9
|
},
|
|
10
10
|
isInteractive(e) {
|
|
11
11
|
const t = typeof e == "string" ? e : e.type;
|
|
12
|
-
return !
|
|
12
|
+
return !j.has(t);
|
|
13
13
|
},
|
|
14
14
|
makeClickable(e) {
|
|
15
15
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -105,7 +105,7 @@ const y = {
|
|
|
105
105
|
name: y.interval(t),
|
|
106
106
|
select: {
|
|
107
107
|
type: "interval",
|
|
108
|
-
encodings:
|
|
108
|
+
encodings: T(e),
|
|
109
109
|
mark: {
|
|
110
110
|
fill: "#669EFF",
|
|
111
111
|
fillOpacity: 0.07,
|
|
@@ -123,7 +123,7 @@ const y = {
|
|
|
123
123
|
name: y.point(t),
|
|
124
124
|
select: {
|
|
125
125
|
type: "point",
|
|
126
|
-
encodings:
|
|
126
|
+
encodings: T(e),
|
|
127
127
|
on: "click[!event.metaKey]"
|
|
128
128
|
}
|
|
129
129
|
};
|
|
@@ -151,7 +151,7 @@ const y = {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function T(e) {
|
|
155
155
|
switch (v.getMarkType(e.mark)) {
|
|
156
156
|
case d.image:
|
|
157
157
|
case d.trail:
|
|
@@ -373,7 +373,7 @@ function me(e, t) {
|
|
|
373
373
|
useProxy: !0
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
W("arrow", V);
|
|
377
377
|
const pe = (e) => {
|
|
378
378
|
const t = R.c(11), {
|
|
379
379
|
value: n,
|
|
@@ -387,7 +387,7 @@ const pe = (e) => {
|
|
|
387
387
|
const {
|
|
388
388
|
data: u,
|
|
389
389
|
error: i
|
|
390
|
-
} =
|
|
390
|
+
} = G(l, g);
|
|
391
391
|
if (i) {
|
|
392
392
|
let m;
|
|
393
393
|
return t[3] !== i ? (m = /* @__PURE__ */ f.jsx($, { error: i }), t[3] = i, t[4] = m) : m = t[4], m;
|
|
@@ -405,7 +405,7 @@ const pe = (e) => {
|
|
|
405
405
|
}) => {
|
|
406
406
|
const {
|
|
407
407
|
theme: a
|
|
408
|
-
} = B(), s = k.useRef(), [l, g] = k.useState(), u =
|
|
408
|
+
} = B(), s = k.useRef(), [l, g] = k.useState(), u = A(r), i = k.useMemo(() => ie(ce(u), {
|
|
409
409
|
chartSelection: n,
|
|
410
410
|
fieldSelection: o
|
|
411
411
|
}), [u, n, o]), h = k.useMemo(() => N(i), [i]), m = M((c) => {
|
|
@@ -413,19 +413,19 @@ const pe = (e) => {
|
|
|
413
413
|
...e,
|
|
414
414
|
...c
|
|
415
415
|
});
|
|
416
|
-
}),
|
|
417
|
-
x.debug("[Vega signal]", w,
|
|
418
|
-
let E =
|
|
419
|
-
E =
|
|
416
|
+
}), S = A(h), D = k.useMemo(() => S.reduce((c, p) => (y.PAN_ZOOM === p || (c[p] = U((w, _) => {
|
|
417
|
+
x.debug("[Vega signal]", w, _);
|
|
418
|
+
let E = O.mapValues(_, ge);
|
|
419
|
+
E = O.mapValues(E, he), m({
|
|
420
420
|
[w]: E
|
|
421
421
|
});
|
|
422
|
-
}, 100)), c), {}), [
|
|
422
|
+
}, 100)), c), {}), [S, m]), F = M((c) => {
|
|
423
423
|
x.error(c), x.debug(i), g(c);
|
|
424
|
-
}),
|
|
424
|
+
}), H = M((c) => {
|
|
425
425
|
x.debug("[Vega view] created", c), s.current = c, g(void 0);
|
|
426
426
|
}), Z = () => {
|
|
427
427
|
const c = [];
|
|
428
|
-
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(
|
|
428
|
+
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(X, { delayDuration: 300, side: "left", content: /* @__PURE__ */ f.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, w) => /* @__PURE__ */ f.jsxs("div", { children: [
|
|
429
429
|
/* @__PURE__ */ f.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
430
430
|
p[0],
|
|
431
431
|
":"
|
|
@@ -435,17 +435,17 @@ const pe = (e) => {
|
|
|
435
435
|
] }, w)) }), children: /* @__PURE__ */ f.jsx(ee, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
|
|
436
436
|
};
|
|
437
437
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
438
|
-
l && /* @__PURE__ */ f.jsxs(
|
|
439
|
-
/* @__PURE__ */ f.jsx(
|
|
438
|
+
l && /* @__PURE__ */ f.jsxs(q, { variant: "destructive", children: [
|
|
439
|
+
/* @__PURE__ */ f.jsx(Q, { children: l.message }),
|
|
440
440
|
/* @__PURE__ */ f.jsx("div", { className: "text-md", children: l.stack })
|
|
441
441
|
] }),
|
|
442
442
|
/* @__PURE__ */ f.jsxs(
|
|
443
443
|
"div",
|
|
444
444
|
{
|
|
445
445
|
className: "relative",
|
|
446
|
-
onPointerDown:
|
|
446
|
+
onPointerDown: Y.stopPropagation(),
|
|
447
447
|
children: [
|
|
448
|
-
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError:
|
|
448
|
+
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError: F, onNewView: H }),
|
|
449
449
|
Z()
|
|
450
450
|
]
|
|
451
451
|
}
|
|
@@ -459,7 +459,7 @@ function he(e) {
|
|
|
459
459
|
return e instanceof Set ? [...e] : e;
|
|
460
460
|
}
|
|
461
461
|
function ge(e) {
|
|
462
|
-
return Array.isArray(e) ? e.map((t) => t instanceof Date &&
|
|
462
|
+
return Array.isArray(e) ? e.map((t) => t instanceof Date && J(t) ? new Date(t).getTime() : t) : e;
|
|
463
463
|
}
|
|
464
464
|
export {
|
|
465
465
|
pe as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-
|
|
1
|
+
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-pWILEv5Q.js";
|
|
2
2
|
import { i as Si } from "./init-DxzjmxYy.js";
|
|
3
3
|
import { o as _i } from "./ordinal-CYN5qNoq.js";
|
|
4
4
|
import { r as ki } from "./range-DdOGybNB.js";
|
|
5
|
-
import { l as Bt } from "./linear-
|
|
5
|
+
import { l as Bt } from "./linear-Cp7DqvZO.js";
|
|
6
6
|
import { l as Wt } from "./timer-ly3uOrxC.js";
|
|
7
7
|
function pt() {
|
|
8
8
|
var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, r, u, f = !1, p = 0, k = 0, R = 0.5;
|
package/package.json
CHANGED
package/dist/min-BIRR9Kxe.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { w as b, ax as x, ay as m, az as w, aA as l, B as O, aB as p, aC as P, aD as A, aE as I, aF as M, aG as o } from "./main-CvhffoE9.js";
|
|
2
|
-
import { d as h, e as y, g as E } from "./_baseUniq-DMg-ffFG.js";
|
|
3
|
-
var g = Object.prototype, F = g.hasOwnProperty, J = b(function(a, n) {
|
|
4
|
-
a = Object(a);
|
|
5
|
-
var r = -1, i = n.length, t = i > 2 ? n[2] : void 0;
|
|
6
|
-
for (t && x(n[0], n[1], t) && (i = 1); ++r < i; )
|
|
7
|
-
for (var s = n[r], e = m(s), f = -1, v = e.length; ++f < v; ) {
|
|
8
|
-
var u = e[f], d = a[u];
|
|
9
|
-
(d === void 0 || w(d, g[u]) && !F.call(a, u)) && (a[u] = s[u]);
|
|
10
|
-
}
|
|
11
|
-
return a;
|
|
12
|
-
});
|
|
13
|
-
function K(a) {
|
|
14
|
-
var n = a == null ? 0 : a.length;
|
|
15
|
-
return n ? a[n - 1] : void 0;
|
|
16
|
-
}
|
|
17
|
-
function B(a) {
|
|
18
|
-
return function(n, r, i) {
|
|
19
|
-
var t = Object(n);
|
|
20
|
-
if (!l(n)) {
|
|
21
|
-
var s = h(r);
|
|
22
|
-
n = O(n), r = function(f) {
|
|
23
|
-
return s(t[f], f, t);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
var e = a(n, r, i);
|
|
27
|
-
return e > -1 ? t[s ? n[e] : e] : void 0;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var C = Math.max;
|
|
31
|
-
function L(a, n, r) {
|
|
32
|
-
var i = a == null ? 0 : a.length;
|
|
33
|
-
if (!i)
|
|
34
|
-
return -1;
|
|
35
|
-
var t = r == null ? 0 : p(r);
|
|
36
|
-
return t < 0 && (t = C(i + t, 0)), y(a, h(n), t);
|
|
37
|
-
}
|
|
38
|
-
var N = B(L);
|
|
39
|
-
function $(a, n) {
|
|
40
|
-
var r = -1, i = l(a) ? Array(a.length) : [];
|
|
41
|
-
return E(a, function(t, s, e) {
|
|
42
|
-
i[++r] = n(t, s, e);
|
|
43
|
-
}), i;
|
|
44
|
-
}
|
|
45
|
-
function Q(a, n) {
|
|
46
|
-
var r = A(a) ? P : $;
|
|
47
|
-
return r(a, h(n));
|
|
48
|
-
}
|
|
49
|
-
var q = Object.prototype, z = q.hasOwnProperty;
|
|
50
|
-
function D(a, n) {
|
|
51
|
-
return a != null && z.call(a, n);
|
|
52
|
-
}
|
|
53
|
-
function T(a, n) {
|
|
54
|
-
return a != null && I(a, n, D);
|
|
55
|
-
}
|
|
56
|
-
function G(a, n) {
|
|
57
|
-
return a < n;
|
|
58
|
-
}
|
|
59
|
-
function H(a, n, r) {
|
|
60
|
-
for (var i = -1, t = a.length; ++i < t; ) {
|
|
61
|
-
var s = a[i], e = n(s);
|
|
62
|
-
if (e != null && (f === void 0 ? e === e && !M(e) : r(e, f)))
|
|
63
|
-
var f = e, v = s;
|
|
64
|
-
}
|
|
65
|
-
return v;
|
|
66
|
-
}
|
|
67
|
-
function U(a) {
|
|
68
|
-
return a && a.length ? H(a, o, G) : void 0;
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
G as a,
|
|
72
|
-
H as b,
|
|
73
|
-
$ as c,
|
|
74
|
-
U as d,
|
|
75
|
-
J as e,
|
|
76
|
-
N as f,
|
|
77
|
-
T as h,
|
|
78
|
-
K as l,
|
|
79
|
-
Q as m
|
|
80
|
-
};
|