@genome-spy/app 0.78.0 → 0.79.1
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.es.js +4918 -2499
- package/dist/agentShared.es.js +20 -22
- package/dist/{blosc-DL1kZHdE.js → blosc-JROzDOnd.js} +1 -1
- package/dist/{chunk-INHXZS53-DwEV9sMh.js → chunk-INHXZS53-CsrPGdTf.js} +1 -1
- package/dist/{componentStyles-CIXoKEp0.js → componentStyles-BGy033io.js} +2 -2
- package/dist/dialog.es.js +3 -3
- package/dist/{esm-D2-C5ZzN.js → esm-80V4xF_D.js} +226 -212
- package/dist/esm-B8j57WO7.js +441 -0
- package/dist/{esm-BkagIzhP.js → esm-BEHZgiVL.js} +30 -30
- package/dist/esm-BNd2PfFt.js +1367 -0
- package/dist/esm-BdLYkz-m.js +248 -0
- package/dist/{esm-id9DWBZW.js → esm-BdT7qUL-.js} +51 -31
- package/dist/esm-Bn4VTHqw.js +128 -0
- package/dist/{esm-C_XrKaCY.js → esm-C3k-CPce.js} +51 -31
- package/dist/{esm-CHVYSGF2.js → esm-CPzTvCZH.js} +226 -212
- package/dist/{esm-CPufCnsG.js → esm-CWd6i_cL.js} +30 -30
- package/dist/{esm-BgpwI2cq.js → esm-Cx-EbkOj.js} +13 -13
- package/dist/esm-D-iG_TIX.js +441 -0
- package/dist/esm-WxH0jQt4.js +128 -0
- package/dist/esm-cvhwoclu.js +1367 -0
- package/dist/{esm-BL9SNSnj.js → esm-k9p3oHkt.js} +133 -158
- package/dist/index.es.js +41477 -11008
- package/dist/index.js +579 -662
- package/dist/{lit-ymUSmGBw.js → lit-ByuJ0FJ4.js} +1 -1
- package/dist/{lz4-Csz5aoFA.js → lz4-CUYSbVey.js} +1 -1
- package/dist/{parquetRead-C33mgLEo.js → parquetRead-CBUyqZwZ.js} +473 -399
- package/dist/{chunk-CPXzm0be.js → rolldown-runtime-DF993M8W.js} +1 -1
- package/dist/schema.json +20018 -6213
- package/dist/{viewUtils-B7-F_Ae-.js → viewUtils-BBRWguwj.js} +4947 -4127
- package/dist/{zstd-dJuUp1fl.js → zstd-YMzMcush.js} +1 -1
- package/package.json +6 -4
- package/src/appTypes.d.ts +0 -1
- package/src/sampleView/state/payloadTypes.d.ts +9 -2
- package/src/spec/sampleView.d.ts +53 -0
- package/dist/AbortablePromiseCache-beUIcZcW.js +0 -96
- package/dist/agentApi-BwbEWjvl.js +0 -27118
- package/dist/blosc-BX4BJ8sR.js +0 -692
- package/dist/chunk-INHXZS53-Dx2aFznx.js +0 -13
- package/dist/esm-BHjeb8gt.js +0 -1426
- package/dist/esm-BI-plmf6.js +0 -121
- package/dist/esm-BwW--bVV.js +0 -369
- package/dist/esm-COzpU5N8.js +0 -1221
- package/dist/esm-CZvS2Ldm.js +0 -155
- package/dist/esm-D-y0Ce1M.js +0 -573
- package/dist/esm-D2_c7lXY.js +0 -298
- package/dist/esm-Daho46bY.js +0 -121
- package/dist/esm-DjF6pKy5.js +0 -369
- package/dist/esm-sPWfZg9X.js +0 -1426
- package/dist/esm-s_SlArJ8.js +0 -298
- package/dist/lz4-BSYl80V8.js +0 -626
- package/dist/parquetRead-m8-8_SpH.js +0 -1609
- package/dist/zstd-BAfRM3IH.js +0 -583
- /package/dist/{AbortablePromiseCache-BDH1cqFl.js → AbortablePromiseCache-BTmAcN-t.js} +0 -0
- /package/dist/{esm-Bz_92nH0.js → esm-VvpZ9hsq.js} +0 -0
package/dist/agentShared.es.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import "./lit-ymUSmGBw.js";
|
|
4
|
-
import { n as x, t as S } from "./componentStyles-CIXoKEp0.js";
|
|
1
|
+
import { $n as e, Dt as t, F as n, H as r, I as i, L as a, N as o, P as s, R as c, Rt as l, V as u, Xn as d, Zn as f, at as p, i as m, mt as h, nt as g, ot as _, s as v, tt as y, z as b } from "./viewUtils-BBRWguwj.js";
|
|
2
|
+
import { n as x, t as S } from "./componentStyles-BGy033io.js";
|
|
5
3
|
//#region src/viewScopeUtils.js
|
|
6
4
|
function C(e, t) {
|
|
7
5
|
return !w(e, t.param) || !Array.isArray(t.scope) || t.scope.length === 0 ? t.param : t.scope.join("/") + "/" + t.param;
|
|
@@ -9,7 +7,7 @@ function C(e, t) {
|
|
|
9
7
|
function w(e, t) {
|
|
10
8
|
if (!e || typeof e.visit != "function") return !1;
|
|
11
9
|
let n = 0;
|
|
12
|
-
for (let r of
|
|
10
|
+
for (let r of g(e)) r.selector.param === t && (n += 1);
|
|
13
11
|
return n > 1;
|
|
14
12
|
}
|
|
15
13
|
//#endregion
|
|
@@ -36,11 +34,11 @@ function D(e) {
|
|
|
36
34
|
//#region src/sampleView/viewRef.js
|
|
37
35
|
function O(e) {
|
|
38
36
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
39
|
-
return
|
|
37
|
+
return p(e);
|
|
40
38
|
}
|
|
41
39
|
function k(e) {
|
|
42
40
|
if (!e.explicitName) return;
|
|
43
|
-
let t =
|
|
41
|
+
let t = p(e);
|
|
44
42
|
return JSON.stringify({
|
|
45
43
|
s: t.scope,
|
|
46
44
|
v: t.view
|
|
@@ -70,7 +68,7 @@ function N(e, t, n) {
|
|
|
70
68
|
if (n) try {
|
|
71
69
|
let t = [];
|
|
72
70
|
e.visit((e) => {
|
|
73
|
-
e instanceof
|
|
71
|
+
e instanceof v && e.isVisible() && ne(e, r) && t.push(e);
|
|
74
72
|
});
|
|
75
73
|
for (let e of t) {
|
|
76
74
|
let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
|
|
@@ -161,7 +159,7 @@ function ne(e, t) {
|
|
|
161
159
|
function re(e) {
|
|
162
160
|
if (e.view.getEncoding()?.x2) return !0;
|
|
163
161
|
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
164
|
-
return t ?
|
|
162
|
+
return t ? l(t) : !1;
|
|
165
163
|
}
|
|
166
164
|
function ie(e) {
|
|
167
165
|
return e === "quantitative" ? M : ee;
|
|
@@ -192,16 +190,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
|
|
|
192
190
|
}
|
|
193
191
|
};
|
|
194
192
|
}
|
|
195
|
-
var le =
|
|
193
|
+
var le = f({
|
|
196
194
|
name: "paramProvenance",
|
|
197
195
|
initialState: { entries: {} },
|
|
198
196
|
reducers: {
|
|
199
197
|
paramChange: (e, t) => {
|
|
200
|
-
let n =
|
|
198
|
+
let n = _(t.payload.selector);
|
|
201
199
|
e.entries[n] = t.payload;
|
|
202
200
|
},
|
|
203
201
|
expandPointSelection: (e, t) => {
|
|
204
|
-
let n = t.payload, r =
|
|
202
|
+
let n = t.payload, r = _(n.selector), i;
|
|
205
203
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
206
204
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
207
205
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4712,13 +4710,13 @@ function Gn(e, t, n) {
|
|
|
4712
4710
|
}
|
|
4713
4711
|
//#endregion
|
|
4714
4712
|
//#region src/utils/safeMarkdown.js
|
|
4715
|
-
function Kn(e,
|
|
4716
|
-
let
|
|
4717
|
-
|
|
4718
|
-
for (let e of
|
|
4719
|
-
for (let e of
|
|
4720
|
-
let
|
|
4721
|
-
return
|
|
4713
|
+
function Kn(e, n = {}) {
|
|
4714
|
+
let r = Gn(e), i = new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>${r}</div></body></html>`, "text/html");
|
|
4715
|
+
i.normalize(), qn(i.body);
|
|
4716
|
+
for (let e of i.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href", t(e.getAttribute("href"), n.baseUrl));
|
|
4717
|
+
for (let e of i.querySelectorAll("img[src]")) e.setAttribute("src", t(e.getAttribute("src"), n.baseUrl));
|
|
4718
|
+
let a = i.body.removeChild(i.querySelector("body > div"));
|
|
4719
|
+
return a.className = "markdown", a;
|
|
4722
4720
|
}
|
|
4723
4721
|
function qn(e) {
|
|
4724
4722
|
if (e.nodeType !== 3) {
|
|
@@ -4733,10 +4731,10 @@ function qn(e) {
|
|
|
4733
4731
|
//#endregion
|
|
4734
4732
|
//#region src/agentShared/index.js
|
|
4735
4733
|
function Jn(e) {
|
|
4736
|
-
if (e.startsWith("sampleView/")) return
|
|
4734
|
+
if (e.startsWith("sampleView/")) return u.actions[e.slice(11)];
|
|
4737
4735
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4738
|
-
if (e.startsWith("viewSettings/")) return
|
|
4736
|
+
if (e.startsWith("viewSettings/")) return d.actions[e.slice(13)];
|
|
4739
4737
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4740
4738
|
}
|
|
4741
4739
|
//#endregion
|
|
4742
|
-
export {
|
|
4740
|
+
export { o as addValueColors, n as buildCategoricalCountsSummary, i as buildCategoricalFieldSummary, a as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, c as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, r as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, s as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, y as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, b as templateResultToString };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./chunk-INHXZS53-
|
|
1
|
+
import { t as e } from "./chunk-INHXZS53-CsrPGdTf.js";
|
|
2
2
|
//#region ../../node_modules/numcodecs/dist/blosc.js
|
|
3
3
|
var t = (typeof document < "u" && document.currentScript && document.currentScript.src, function(e = {}) {
|
|
4
4
|
var t = e, n, r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region ../../node_modules/numcodecs/dist/chunk-INHXZS53.js
|
|
2
2
|
var e = /* @__PURE__ */ (() => {
|
|
3
|
-
for (var e = new Uint8Array(128), t = 0; t < 64; t++) e[t < 26 ? t + 65 : t < 52 ? t + 71 : t < 62 ? t - 4 : t * 4 - 205] = t;
|
|
3
|
+
for (var e = /* @__PURE__ */ new Uint8Array(128), t = 0; t < 64; t++) e[t < 26 ? t + 65 : t < 52 ? t + 71 : t < 62 ? t - 4 : t * 4 - 205] = t;
|
|
4
4
|
return (t) => {
|
|
5
5
|
for (var n = t.length, r = new Uint8Array((n - (t[n - 1] == "=") - (t[n - 2] == "=")) * 3 / 4 | 0), i = 0, a = 0; i < n;) {
|
|
6
6
|
var o = e[t.charCodeAt(i++)], s = e[t.charCodeAt(i++)], c = e[t.charCodeAt(i++)], l = e[t.charCodeAt(i++)];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, s as t } from "./lit-
|
|
1
|
+
import { o as e, s as t } from "./lit-ByuJ0FJ4.js";
|
|
2
2
|
//#region ../../node_modules/@fortawesome/fontawesome-svg-core/index.mjs
|
|
3
3
|
function n(e, t, n) {
|
|
4
4
|
return (t = o(t)) in e ? Object.defineProperty(e, t, {
|
|
@@ -178,7 +178,7 @@ var _ = !!m.documentElement && !!m.head && typeof m.addEventListener == "functio
|
|
|
178
178
|
300: "fasdl",
|
|
179
179
|
100: "fasdt"
|
|
180
180
|
}
|
|
181
|
-
}, se = new Map([
|
|
181
|
+
}, se = /* @__PURE__ */ new Map([
|
|
182
182
|
["classic", {
|
|
183
183
|
defaultShortPrefixId: "fas",
|
|
184
184
|
defaultStyleId: "solid",
|
package/dist/dialog.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, n as t, o as n, t as r } from "./lit-
|
|
2
|
-
import { n as i, r as a, t as o } from "./componentStyles-
|
|
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-BGy033io.js";
|
|
3
3
|
//#region src/components/generic/baseDialog.js
|
|
4
|
-
var s = new Set([
|
|
4
|
+
var s = /* @__PURE__ */ new Set([
|
|
5
5
|
"text",
|
|
6
6
|
"search",
|
|
7
7
|
"email",
|