@genome-spy/app 0.80.0 → 0.82.0
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/agentApi-BFrpf7T9.js +25713 -0
- package/dist/agentApi.es.js +3605 -2459
- package/dist/agentShared.es.js +16 -15
- package/dist/{componentStyles-BGy033io.js → componentStyles-BzJWWojD.js} +3 -3
- package/dist/{debug-CSHW8msQ.js → debug-Dqiowucf.js} +2 -2
- package/dist/{debug-BYVz83MS.js → debug-zKHyqg6H.js} +26 -26
- package/dist/dialog.es.js +1 -1
- package/dist/{esm-BNd2PfFt.js → esm-BeV56E_5.js} +1 -1
- package/dist/{esm-Cx-EbkOj.js → esm-CGLz7idZ.js} +423 -426
- package/dist/{esm-CWd6i_cL.js → esm-D8vvQAP3.js} +1 -1
- package/dist/{esm-Bn4VTHqw.js → esm-DQ3lJSQN.js} +1 -1
- package/dist/{esm-k9p3oHkt.js → esm-lwYrRdbg.js} +65 -67
- package/dist/index.es.js +14721 -39039
- package/dist/index.js +889 -380
- package/dist/metadataChannels-bEgfFn6O.js +6672 -0
- package/dist/{parquetRead-CBUyqZwZ.js → parquetRead-Cs2xRrvz.js} +1 -1
- package/dist/schema.json +2783 -181
- package/dist/src-DjOlFqSn.js +1157 -0
- package/dist/style.css +1 -1
- package/dist/{viewIdentityRegistry-DjnM56qZ.js → viewIdentityRegistry-BWGefhZp.js} +4 -4
- package/dist/{viewIdentityRegistry-BCDkwJTm.js → viewIdentityRegistry-Dbxu22Sy.js} +2137 -1886
- package/dist/viewUtils-DCmz7Bvt.js +8984 -0
- package/package.json +5 -5
- package/src/appTypes.d.ts +12 -0
- package/dist/viewUtils-BY0z0W1Y.js +0 -15206
package/dist/agentShared.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
-
import { B as t, F as n,
|
|
3
|
-
import { n as
|
|
2
|
+
import { B as t, F as n, I as r, L as i, M as a, N as o, P as s, R as c, V as l, Z as u, et as d, i as f, s as p, tt as m } from "./viewUtils-DCmz7Bvt.js";
|
|
3
|
+
import { a as h, h as g, it as _, k as v, n as y, s as b } from "./metadataChannels-bEgfFn6O.js";
|
|
4
|
+
import { n as x, t as S } from "./componentStyles-BzJWWojD.js";
|
|
4
5
|
//#region src/viewScopeUtils.js
|
|
5
6
|
function C(e, t) {
|
|
6
7
|
return !w(e, t.param) || !Array.isArray(t.scope) || t.scope.length === 0 ? t.param : t.scope.join("/") + "/" + t.param;
|
|
@@ -8,7 +9,7 @@ function C(e, t) {
|
|
|
8
9
|
function w(e, t) {
|
|
9
10
|
if (!e || typeof e.visit != "function") return !1;
|
|
10
11
|
let n = 0;
|
|
11
|
-
for (let r of
|
|
12
|
+
for (let r of y(e)) r.selector.param === t && (n += 1);
|
|
12
13
|
return n > 1;
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
@@ -35,11 +36,11 @@ function D(e) {
|
|
|
35
36
|
//#region src/sampleView/viewRef.js
|
|
36
37
|
function O(e) {
|
|
37
38
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
38
|
-
return
|
|
39
|
+
return h(e);
|
|
39
40
|
}
|
|
40
41
|
function k(e) {
|
|
41
42
|
if (!e.explicitName) return;
|
|
42
|
-
let t =
|
|
43
|
+
let t = h(e);
|
|
43
44
|
return JSON.stringify({
|
|
44
45
|
s: t.scope,
|
|
45
46
|
v: t.view
|
|
@@ -47,7 +48,7 @@ function k(e) {
|
|
|
47
48
|
}
|
|
48
49
|
function A(e) {
|
|
49
50
|
let t = /* @__PURE__ */ new Map();
|
|
50
|
-
|
|
51
|
+
g(e, (e) => {
|
|
51
52
|
let n = k(e);
|
|
52
53
|
n && t.set(n, (t.get(n) ?? 0) + 1);
|
|
53
54
|
});
|
|
@@ -69,7 +70,7 @@ function N(e, t, n) {
|
|
|
69
70
|
if (n) try {
|
|
70
71
|
let t = [];
|
|
71
72
|
e.visit((e) => {
|
|
72
|
-
e instanceof
|
|
73
|
+
e instanceof p && e.isVisible() && ne(e, r) && t.push(e);
|
|
73
74
|
});
|
|
74
75
|
for (let e of t) {
|
|
75
76
|
let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
|
|
@@ -160,7 +161,7 @@ function ne(e, t) {
|
|
|
160
161
|
function re(e) {
|
|
161
162
|
if (e.view.getEncoding()?.x2) return !0;
|
|
162
163
|
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
163
|
-
return t ?
|
|
164
|
+
return t ? _(t) : !1;
|
|
164
165
|
}
|
|
165
166
|
function ie(e) {
|
|
166
167
|
return e === "quantitative" ? M : ee;
|
|
@@ -196,11 +197,11 @@ var le = m({
|
|
|
196
197
|
initialState: { entries: {} },
|
|
197
198
|
reducers: {
|
|
198
199
|
paramChange: (e, t) => {
|
|
199
|
-
let n =
|
|
200
|
+
let n = b(t.payload.selector);
|
|
200
201
|
e.entries[n] = t.payload;
|
|
201
202
|
},
|
|
202
203
|
expandPointSelection: (e, t) => {
|
|
203
|
-
let n = t.payload, r =
|
|
204
|
+
let n = t.payload, r = b(n.selector), i;
|
|
204
205
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
205
206
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
206
207
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4714,8 +4715,8 @@ function Gn(e, t, n) {
|
|
|
4714
4715
|
function Kn(e, t = {}) {
|
|
4715
4716
|
let n = Gn(e), r = new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>${n}</div></body></html>`, "text/html");
|
|
4716
4717
|
r.normalize(), qn(r.body);
|
|
4717
|
-
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href",
|
|
4718
|
-
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src",
|
|
4718
|
+
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href", v(e.getAttribute("href"), t.baseUrl));
|
|
4719
|
+
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", v(e.getAttribute("src"), t.baseUrl));
|
|
4719
4720
|
let i = r.body.removeChild(r.querySelector("body > div"));
|
|
4720
4721
|
return i.className = "markdown", i;
|
|
4721
4722
|
}
|
|
@@ -4732,10 +4733,10 @@ function qn(e) {
|
|
|
4732
4733
|
//#endregion
|
|
4733
4734
|
//#region src/agentShared/index.js
|
|
4734
4735
|
function Jn(e) {
|
|
4735
|
-
if (e.startsWith("sampleView/")) return
|
|
4736
|
+
if (e.startsWith("sampleView/")) return t.actions[e.slice(11)];
|
|
4736
4737
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4737
|
-
if (e.startsWith("viewSettings/")) return
|
|
4738
|
+
if (e.startsWith("viewSettings/")) return d.actions[e.slice(13)];
|
|
4738
4739
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4739
4740
|
}
|
|
4740
4741
|
//#endregion
|
|
4741
|
-
export {
|
|
4742
|
+
export { a as addValueColors, s as buildCategoricalCountsSummary, n as buildCategoricalFieldSummary, r as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, i as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, l as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, o as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, u as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, c as templateResultToString };
|
|
@@ -533,7 +533,7 @@ function $e(e) {
|
|
|
533
533
|
if (t) return t.getAttribute(e);
|
|
534
534
|
}
|
|
535
535
|
function et(e) {
|
|
536
|
-
return e === "" ? !0 : e === "false" ? !1 : e === "true"
|
|
536
|
+
return e === "" ? !0 : e === "false" ? !1 : e === "true" || e;
|
|
537
537
|
}
|
|
538
538
|
m && typeof m.querySelector == "function" && [
|
|
539
539
|
["data-family-prefix", "familyPrefix"],
|
|
@@ -1541,7 +1541,7 @@ var qn = function(e) {
|
|
|
1541
1541
|
return e[t] = n[900] || [...Object.entries(n)][0][1], e;
|
|
1542
1542
|
}, {});
|
|
1543
1543
|
function rr(e) {
|
|
1544
|
-
let t = e.replace(Qn, ""), n = wt(t, 0), r = n >= $n[0] && n <= $n[1], i = t.length === 2
|
|
1544
|
+
let t = e.replace(Qn, ""), n = wt(t, 0), r = n >= $n[0] && n <= $n[1], i = t.length === 2 && t[0] === t[1];
|
|
1545
1545
|
return {
|
|
1546
1546
|
value: Ct(i ? t[0] : t),
|
|
1547
1547
|
isSecondary: r || i
|
|
@@ -1838,7 +1838,7 @@ en([
|
|
|
1838
1838
|
{ hooks() {
|
|
1839
1839
|
return { parseNodeAttributes(e, t) {
|
|
1840
1840
|
let n = t.getAttribute("data-fa-symbol");
|
|
1841
|
-
return e.symbol = n === null ? !1 : n === ""
|
|
1841
|
+
return e.symbol = n === null ? !1 : n === "" || n, e;
|
|
1842
1842
|
} };
|
|
1843
1843
|
} }
|
|
1844
1844
|
], { mixoutsTo: J }), J.noAuto, J.config, J.library;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, t as i } from "./viewIdentityRegistry-
|
|
1
|
+
import { a as e, t, x as n } from "./metadataChannels-bEgfFn6O.js";
|
|
2
|
+
import { n as r, t as i } from "./viewIdentityRegistry-BWGefhZp.js";
|
|
3
3
|
//#region ../core/src/debug/valuePreview.js
|
|
4
4
|
var a = 3, o = 12, s = 8, c = 160;
|
|
5
5
|
function l(e, t = 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-Dbxu22Sy.js";
|
|
2
2
|
//#region ../core/src/debug/valuePreview.js
|
|
3
3
|
var a = 3, o = 12, s = 8, c = 160;
|
|
4
4
|
function l(e, t = 0) {
|
|
@@ -73,24 +73,24 @@ function p(e) {
|
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region ../core/src/debug/markDebugSnapshot.js
|
|
76
|
-
function m(
|
|
77
|
-
if (!
|
|
76
|
+
function m(e, n) {
|
|
77
|
+
if (!e) return { marks: [] };
|
|
78
78
|
let r = [];
|
|
79
|
-
return h(
|
|
80
|
-
let i =
|
|
79
|
+
return h(e, (e) => {
|
|
80
|
+
let i = e.mark;
|
|
81
81
|
if (!i) return;
|
|
82
82
|
let a = i.getDebugState();
|
|
83
83
|
r.push({
|
|
84
|
-
viewId: n.getDebugId(
|
|
85
|
-
viewPath:
|
|
84
|
+
viewId: n.getDebugId(e),
|
|
85
|
+
viewPath: e.getPathString(),
|
|
86
86
|
type: i.getType(),
|
|
87
87
|
ready: !!i.isReady(),
|
|
88
88
|
pickingParticipant: i.isPickingParticipant(),
|
|
89
89
|
markUniformsAltered: a.markUniformsAltered,
|
|
90
90
|
encodingChannels: Object.keys(i.encoding),
|
|
91
91
|
encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
|
|
92
|
-
searchFields: e
|
|
93
|
-
dataCount: g(
|
|
92
|
+
searchFields: t(e.getEncoding()) ?? [],
|
|
93
|
+
dataCount: g(e),
|
|
94
94
|
vertexCount: a.vertexCount,
|
|
95
95
|
allocatedVertices: a.allocatedVertices,
|
|
96
96
|
rangeCount: i.rangeMap.size,
|
|
@@ -99,7 +99,7 @@ function m(t, n) {
|
|
|
99
99
|
}), { marks: r };
|
|
100
100
|
}
|
|
101
101
|
function h(e, t) {
|
|
102
|
-
if (t(e), e instanceof
|
|
102
|
+
if (t(e), e instanceof r) for (let n of e) h(n, t);
|
|
103
103
|
}
|
|
104
104
|
function g(e) {
|
|
105
105
|
return (e.getCollector?.())?.getItemCount();
|
|
@@ -128,7 +128,7 @@ function _(e, t) {
|
|
|
128
128
|
}), { scopes: n };
|
|
129
129
|
}
|
|
130
130
|
function v(e, t) {
|
|
131
|
-
if (t(e), e instanceof
|
|
131
|
+
if (t(e), e instanceof r) for (let n of e) v(n, t);
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region ../core/src/debug/resolutionDebugSnapshot.js
|
|
@@ -151,7 +151,7 @@ function b(e, t) {
|
|
|
151
151
|
for (let n of Object.values(t)) n && e.add(n);
|
|
152
152
|
}
|
|
153
153
|
function x(e, t) {
|
|
154
|
-
if (t(e), e instanceof
|
|
154
|
+
if (t(e), e instanceof r) for (let n of e) x(n, t);
|
|
155
155
|
}
|
|
156
156
|
function S(e, t) {
|
|
157
157
|
let n = e.getDebugState();
|
|
@@ -218,8 +218,8 @@ function w(e, t) {
|
|
|
218
218
|
}))
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
function T(
|
|
222
|
-
return
|
|
221
|
+
function T(t) {
|
|
222
|
+
return e(t) || t.getLayoutAncestors().some(e);
|
|
223
223
|
}
|
|
224
224
|
function E(e, t) {
|
|
225
225
|
return {
|
|
@@ -229,23 +229,23 @@ function E(e, t) {
|
|
|
229
229
|
}
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region ../core/src/debug/viewDebugSnapshot.js
|
|
232
|
-
function D(
|
|
233
|
-
if (!
|
|
232
|
+
function D(t, n) {
|
|
233
|
+
if (!t) return {
|
|
234
234
|
rootId: void 0,
|
|
235
235
|
nodes: []
|
|
236
236
|
};
|
|
237
|
-
let
|
|
238
|
-
let c =
|
|
239
|
-
if (c && !
|
|
240
|
-
let l =
|
|
241
|
-
if (a.push(u),
|
|
242
|
-
let
|
|
243
|
-
|
|
237
|
+
let i = n.includeChrome ?? !1, a = [], o = (t, s) => {
|
|
238
|
+
let c = e(t);
|
|
239
|
+
if (c && !i) return;
|
|
240
|
+
let l = n.getDebugId(t), u = O(t, l, s, c, n);
|
|
241
|
+
if (a.push(u), t instanceof r) for (let e of t) {
|
|
242
|
+
let t = o(e, l);
|
|
243
|
+
t && u.childIds.push(t.id);
|
|
244
244
|
}
|
|
245
245
|
return u;
|
|
246
246
|
};
|
|
247
247
|
return {
|
|
248
|
-
rootId: o(
|
|
248
|
+
rootId: o(t, void 0)?.id,
|
|
249
249
|
nodes: a
|
|
250
250
|
};
|
|
251
251
|
}
|
|
@@ -300,7 +300,7 @@ function j(e) {
|
|
|
300
300
|
if (typeof t.getMarkType == "function") return t.getMarkType();
|
|
301
301
|
}
|
|
302
302
|
function M(e) {
|
|
303
|
-
if (e.explicitName) return
|
|
303
|
+
if (e.explicitName) return n(e);
|
|
304
304
|
}
|
|
305
305
|
function N(e) {
|
|
306
306
|
let t = e.coords;
|
|
@@ -342,4 +342,4 @@ function L(e, t, n) {
|
|
|
342
342
|
return r ? n.getDebugId(r) : void 0;
|
|
343
343
|
}
|
|
344
344
|
//#endregion
|
|
345
|
-
export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot,
|
|
345
|
+
export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, i as getViewIdentityRegistry };
|
package/dist/dialog.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, t as r } from "./lit-ByuJ0FJ4.js";
|
|
2
|
-
import { n as i, r as a, t as o } from "./componentStyles-
|
|
2
|
+
import { n as i, r as a, t as o } from "./componentStyles-BzJWWojD.js";
|
|
3
3
|
//#region src/components/generic/baseDialog.js
|
|
4
4
|
var s = /* @__PURE__ */ new Set([
|
|
5
5
|
"text",
|