@genome-spy/app 1.2.0 → 1.3.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/{SharedReadCache-Ey5QIiPM.js → SharedReadCache-9sT2aIxW.js} +6 -12
- package/dist/__vite-browser-external-Dgu_Ldik.js +7 -0
- package/dist/{agentApi-8hMSlqAQ.js → agentApi-BclFF9zB.js} +7130 -7509
- package/dist/agentApi.es.js +4344 -4015
- package/dist/agentShared.es.js +431 -458
- package/dist/arrayUtils-Bm7QnzhN.js +1306 -0
- package/dist/{blosc-JROzDOnd.js → blosc-C-W97QwH.js} +3 -3
- package/dist/{canvas2d-Bd8H8MMo.js → canvas2d-8MSf70d4.js} +78 -86
- package/dist/{canvas2d-D6VYooRf.js → canvas2d-BwGNI_Rx.js} +83 -91
- package/dist/clipOptions-SrrxeAEU.js +4316 -0
- package/dist/clipOptions-clBEbkjv.js +4326 -0
- package/dist/{layoutResult-D50MSHXR.js → color-jETn8xK_.js} +29 -10
- package/dist/color-uTRRsy8i.js +116 -0
- package/dist/{componentStyles-DGtQXvwc.js → componentStyles-C7FbjS-a.js} +1 -1
- package/dist/{containerView-aEVmYmkA.js → containerView-BItRtKqu.js} +5 -1
- package/dist/{containerView-CRJSc4bM.js → containerView-CWa6ZIJW.js} +5 -1
- package/dist/{debug-CQ0agCrd.js → debug-23s-jja_.js} +3 -2
- package/dist/{debug-DkIMiGdW.js → debug-CWRxvAss.js} +2 -3
- package/dist/dialog.es.js +1 -1
- package/dist/dist-CmY6iewb.js +1501 -0
- package/dist/dist-D6xbz5Ks.js +1501 -0
- package/dist/{esm-CjkeZi__.js → esm-BFwBAnbO.js} +25 -25
- package/dist/esm-BUkWqSr2.js +299 -0
- package/dist/{esm-C-6g-SkZ.js → esm-C0xXMLsR.js} +37 -41
- package/dist/{esm-CJeszW-t.js → esm-C2xhhXs0.js} +7 -7
- package/dist/esm-C6erfjPM.js +252 -0
- package/dist/{esm-DFHFX1sH.js → esm-CVjC7qA4.js} +34 -38
- package/dist/esm-CqY5ezGz.js +1249 -0
- package/dist/esm-DfMIJ_N2.js +1522 -0
- package/dist/esm-Dls41IbZ.js +787 -0
- package/dist/{esm-Bv7Frz7C.js → esm-DzQDfrsZ.js} +7 -10
- package/dist/esm-aGLCvYRP.js +238 -0
- package/dist/{esm-VFJeyk9i.js → esm-nzwgJFGz.js} +40 -36
- package/dist/figWigMetadataSourceAdapter-8Kf_vZRf.js +36 -0
- package/dist/figWigMetadataSourceAdapter-DdDMZpYO.js +36 -0
- package/dist/flowNode-BSjy0Wz3.js +1306 -0
- package/dist/flowOutput-D5qpxWe0.js +183 -0
- package/dist/index.es.js +4756 -5528
- package/dist/index.js +707 -547
- package/dist/inflate-BdC5KvHn.js +886 -0
- package/dist/{lz4-CUYSbVey.js → lz4-BLPgBOlE.js} +1 -1
- package/dist/{markUtils-CvLDz744.js → markUtils-RaatLEa-.js} +9 -6
- package/dist/metadataUtils-DxEPe0vj.js +879 -0
- package/dist/{order-BVvkjDRT.js → order-BnKzKjt4.js} +383 -347
- package/dist/{order-DmMoZsi1.js → order-BpJnq_nV.js} +375 -339
- package/dist/{parquetRead-0hFIa3Cc.js → parquetRead-D-yY8njE.js} +3 -11
- package/dist/{rasterExport-jeRVq6kY.js → rasterExport-B-WrX1pa.js} +5 -5
- package/dist/{rasterExport-DxvowWjH.js → rasterExport-C_vx4Jwd.js} +3 -3
- package/dist/{rasterization-DFj3Cvx4.js → rasterization-QktH8Sn2.js} +1 -1
- package/dist/{rectangle-Dl4Dy0hS.js → rectangle-BAdoDPXu.js} +34 -31
- package/dist/{renderCanvas2D-Bfm1NHFu.js → renderCanvas2D-CsRO78Pq.js} +88 -87
- package/dist/{renderCanvas2D-DVjhp834.js → renderCanvas2D-Y7pkRzbC.js} +93 -92
- package/dist/{rolldown-runtime-DF993M8W.js → rolldown-runtime-DeIk2rA4.js} +1 -1
- package/dist/{indexer-DOYMJ-Md.js → scaleNull-CVzag4z8.js} +2 -12
- package/dist/{indexer-DDC0YRGn.js → scaleNull-Pbz7QGnl.js} +2 -12
- package/dist/{scalePosition-0aeqp_kz.js → scalePosition-CRXa0rCC.js} +1 -1
- package/dist/schema.json +3801 -816
- package/dist/{svg-Bm2zxBPu.js → svg-BBMtLgtM.js} +369 -285
- package/dist/{svg-CkfuhONt.js → svg-JjWL6U-T.js} +371 -287
- package/dist/{svgRasterizer-DoRQEqFA.js → svgRasterizer-6OcftuoI.js} +2 -2
- package/dist/{svgRasterizer-raDDhBF-.js → svgRasterizer-DkNRaCPs.js} +4 -4
- package/dist/tableMetadataSourceAdapter-CUNwLsdi.js +291 -0
- package/dist/tableMetadataSourceAdapter-DQrEXCo6.js +1283 -0
- package/dist/url-DeOdSRrv.js +183 -0
- package/dist/{viewError-BkJeVYXA.js → viewError-B0TMfOpB.js} +1 -1
- package/dist/{viewError-IYqyluc7.js → viewError-D9aO90cI.js} +1 -1
- package/dist/{viewSelectors-7LyasQN-.js → viewSelectors-DkFvo33d.js} +832 -734
- package/dist/{viewSelectors-CbmkSQRT.js → viewSelectors-lM93fHAq.js} +900 -802
- package/dist/{viewUtils-DuddMNNw.js → viewUtils-0SJOewM6.js} +1861 -2459
- package/dist/webgl-CXIO3OQz.js +5782 -0
- package/dist/webgl-Pdvfhio5.js +5783 -0
- package/package.json +7 -5
- package/src/agentApi/index.d.ts +3 -2
- package/src/agentShared/index.d.ts +2 -0
- package/src/appTypes.d.ts +1 -6
- package/src/embedTypes.d.ts +36 -1
- package/src/index.d.ts +6 -0
- package/src/spec/sampleView.d.ts +68 -13
- package/src/state/paramProvenanceTypes.d.ts +25 -2
- package/src/state.d.ts +14 -52
- package/dist/clipOptions-DElJ8dTZ.js +0 -3097
- package/dist/clipOptions-D_wBNhzs.js +0 -3087
- package/dist/esm-Dndm-NaA.js +0 -1193
- package/dist/vega-scale-BoGHANI7.js +0 -2446
- package/dist/vega-scale-o9TRyzYH.js +0 -2443
- package/dist/webgl-CQfvgnxo.js +0 -5633
- package/dist/webgl-DVYkXtiZ.js +0 -5632
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Sn as e } from "./clipOptions-SrrxeAEU.js";
|
|
1
2
|
//#region ../core/src/view/renderingContext/viewRenderingContext.js
|
|
2
|
-
var
|
|
3
|
+
var t = class {
|
|
3
4
|
constructor(e) {
|
|
4
5
|
this.globalOptions = e;
|
|
5
6
|
}
|
|
@@ -14,11 +15,11 @@ var e = class {
|
|
|
14
15
|
};
|
|
15
16
|
//#endregion
|
|
16
17
|
//#region ../core/src/view/layout/layoutResult.js
|
|
17
|
-
function
|
|
18
|
-
let a = new
|
|
19
|
-
return e.arrange(a, t,
|
|
18
|
+
function n(e, t, { devicePixelRatio: n = 1, renderingOptions: r = {} } = {}) {
|
|
19
|
+
let a = new i(n);
|
|
20
|
+
return e.arrange(a, t, r), a.complete();
|
|
20
21
|
}
|
|
21
|
-
var
|
|
22
|
+
var r = class {
|
|
22
23
|
#e;
|
|
23
24
|
constructor(e) {
|
|
24
25
|
this.#e = e;
|
|
@@ -43,7 +44,7 @@ var n = class {
|
|
|
43
44
|
default: throw Error("Unknown layout command");
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
},
|
|
47
|
+
}, i = class extends t {
|
|
47
48
|
#e = [];
|
|
48
49
|
#t = [];
|
|
49
50
|
#n = 0;
|
|
@@ -80,18 +81,36 @@ var n = class {
|
|
|
80
81
|
this.#e.push({
|
|
81
82
|
type: "renderMark",
|
|
82
83
|
mark: e,
|
|
83
|
-
options:
|
|
84
|
+
options: a(t)
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
complete() {
|
|
87
88
|
if (this.#t.length > 0) throw Error("Unclosed view scope");
|
|
88
89
|
if (this.#n > 0) throw Error("Unclosed sample facet batch scope");
|
|
89
|
-
return new
|
|
90
|
+
return new r(this.#e);
|
|
90
91
|
}
|
|
91
92
|
};
|
|
92
|
-
function
|
|
93
|
+
function a(e) {
|
|
93
94
|
let t = { ...e };
|
|
94
95
|
return e.sampleFacetRenderingOptions && (t.sampleFacetRenderingOptions = { ...e.sampleFacetRenderingOptions }), e.placement && (t.placement = { ...e.placement }), e.clip && (t.clip = { ...e.clip }), t;
|
|
95
96
|
}
|
|
96
97
|
//#endregion
|
|
97
|
-
|
|
98
|
+
//#region ../core/src/rendering/color.js
|
|
99
|
+
function o(t) {
|
|
100
|
+
let n = e(t);
|
|
101
|
+
if (!n) throw Error("Invalid color: " + t);
|
|
102
|
+
let r = n.rgb(), i = Math.max(0, Math.min(1, r.opacity));
|
|
103
|
+
return i === 0 ? [
|
|
104
|
+
0,
|
|
105
|
+
0,
|
|
106
|
+
0,
|
|
107
|
+
0
|
|
108
|
+
] : [
|
|
109
|
+
r.r / 255,
|
|
110
|
+
r.g / 255,
|
|
111
|
+
r.b / 255,
|
|
112
|
+
i
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { n, t as r, o as t };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { xn as e } from "./clipOptions-clBEbkjv.js";
|
|
2
|
+
//#region ../core/src/view/renderingContext/viewRenderingContext.js
|
|
3
|
+
var t = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this.globalOptions = e;
|
|
6
|
+
}
|
|
7
|
+
beginSampleFacetBatch() {}
|
|
8
|
+
endSampleFacetBatch() {}
|
|
9
|
+
pushView(e, t) {}
|
|
10
|
+
popView(e) {}
|
|
11
|
+
renderMark(e, t) {}
|
|
12
|
+
getDevicePixelRatio() {
|
|
13
|
+
return 1;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../core/src/view/layout/layoutResult.js
|
|
18
|
+
function n(e, t, { devicePixelRatio: n = 1, renderingOptions: r = {} } = {}) {
|
|
19
|
+
let a = new i(n);
|
|
20
|
+
return e.arrange(a, t, r), a.complete();
|
|
21
|
+
}
|
|
22
|
+
var r = class {
|
|
23
|
+
#e;
|
|
24
|
+
constructor(e) {
|
|
25
|
+
this.#e = e;
|
|
26
|
+
}
|
|
27
|
+
collectRenderCommands(e) {
|
|
28
|
+
for (let t of this.#e) switch (t.type) {
|
|
29
|
+
case "beginSampleFacetBatch":
|
|
30
|
+
e.beginSampleFacetBatch();
|
|
31
|
+
break;
|
|
32
|
+
case "endSampleFacetBatch":
|
|
33
|
+
e.endSampleFacetBatch();
|
|
34
|
+
break;
|
|
35
|
+
case "pushView":
|
|
36
|
+
e.pushView(t.view, t.coords);
|
|
37
|
+
break;
|
|
38
|
+
case "popView":
|
|
39
|
+
e.popView(t.view);
|
|
40
|
+
break;
|
|
41
|
+
case "renderMark":
|
|
42
|
+
e.renderMark(t.mark, t.options);
|
|
43
|
+
break;
|
|
44
|
+
default: throw Error("Unknown layout command");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, i = class extends t {
|
|
48
|
+
#e = [];
|
|
49
|
+
#t = [];
|
|
50
|
+
#n = 0;
|
|
51
|
+
#r;
|
|
52
|
+
constructor(e) {
|
|
53
|
+
super({}), this.#r = e;
|
|
54
|
+
}
|
|
55
|
+
getDevicePixelRatio() {
|
|
56
|
+
return this.#r;
|
|
57
|
+
}
|
|
58
|
+
beginSampleFacetBatch() {
|
|
59
|
+
this.#n++, this.#e.push({ type: "beginSampleFacetBatch" });
|
|
60
|
+
}
|
|
61
|
+
endSampleFacetBatch() {
|
|
62
|
+
if (this.#n == 0) throw Error("Unbalanced sample facet batch scope");
|
|
63
|
+
this.#n--, this.#e.push({ type: "endSampleFacetBatch" });
|
|
64
|
+
}
|
|
65
|
+
pushView(e, t) {
|
|
66
|
+
this.#t.push(e), this.#e.push({
|
|
67
|
+
type: "pushView",
|
|
68
|
+
view: e,
|
|
69
|
+
coords: t
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
popView(e) {
|
|
73
|
+
if (this.#t.pop() !== e) throw Error("Unbalanced view scope");
|
|
74
|
+
this.#e.push({
|
|
75
|
+
type: "popView",
|
|
76
|
+
view: e
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
renderMark(e, t) {
|
|
80
|
+
if (this.#t.length == 0) throw Error("A mark must be inside a view scope");
|
|
81
|
+
this.#e.push({
|
|
82
|
+
type: "renderMark",
|
|
83
|
+
mark: e,
|
|
84
|
+
options: a(t)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
complete() {
|
|
88
|
+
if (this.#t.length > 0) throw Error("Unclosed view scope");
|
|
89
|
+
if (this.#n > 0) throw Error("Unclosed sample facet batch scope");
|
|
90
|
+
return new r(this.#e);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
function a(e) {
|
|
94
|
+
let t = { ...e };
|
|
95
|
+
return e.sampleFacetRenderingOptions && (t.sampleFacetRenderingOptions = { ...e.sampleFacetRenderingOptions }), e.placement && (t.placement = { ...e.placement }), e.clip && (t.clip = { ...e.clip }), t;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../core/src/rendering/color.js
|
|
99
|
+
function o(t) {
|
|
100
|
+
let n = e(t);
|
|
101
|
+
if (!n) throw Error("Invalid color: " + t);
|
|
102
|
+
let r = n.rgb(), i = Math.max(0, Math.min(1, r.opacity));
|
|
103
|
+
return i === 0 ? [
|
|
104
|
+
0,
|
|
105
|
+
0,
|
|
106
|
+
0,
|
|
107
|
+
0
|
|
108
|
+
] : [
|
|
109
|
+
r.r / 255,
|
|
110
|
+
r.g / 255,
|
|
111
|
+
r.b / 255,
|
|
112
|
+
i
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
//#endregion
|
|
116
|
+
export { n, t as r, o as t };
|
|
@@ -1272,7 +1272,7 @@ function In(e) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
function Ln(e) {
|
|
1274
1274
|
let t = e.getAttribute("data-prefix"), n = e.getAttribute("data-icon"), r = e.innerText === void 0 ? "" : e.innerText.trim(), i = U(at(e));
|
|
1275
|
-
return i.prefix ||= V(), t && n && (i.prefix = t, i.iconName = n), i.iconName && i.prefix
|
|
1275
|
+
return i.prefix ||= V(), t && n && (i.prefix = t, i.iconName = n), i.iconName && i.prefix || (i.prefix && r.length > 0 && (i.iconName = Bt(i.prefix, e.innerText) || zt(i.prefix, Ct(e.innerText))), !i.iconName && O.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = e.firstChild.data)), i;
|
|
1276
1276
|
}
|
|
1277
1277
|
function Rn(e) {
|
|
1278
1278
|
let t = N(e.attributes).reduce((e, t) => (e.name !== "class" && e.name !== "style" && (e[t.name] = t.value), e), {}), n = e.getAttribute("title"), r = e.getAttribute("data-fa-title-id");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, v as t } from "./viewSelectors-
|
|
1
|
+
import { _ as e, v as t } from "./viewSelectors-DkFvo33d.js";
|
|
2
2
|
//#region ../core/src/view/viewIdentityRegistry.js
|
|
3
3
|
var n = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
function r(e) {
|
|
@@ -19,6 +19,10 @@ var i = class {
|
|
|
19
19
|
}, a = class n extends t {
|
|
20
20
|
#e = /* @__PURE__ */ new Map();
|
|
21
21
|
async initializeChildren() {}
|
|
22
|
+
async createChildViews(e, t) {
|
|
23
|
+
let n = await Promise.allSettled(e), r = n.filter((e) => e.status === "fulfilled").map((e) => e.value), i = n.find((e) => e.status === "rejected");
|
|
24
|
+
if (t(r), i) throw i.reason;
|
|
25
|
+
}
|
|
22
26
|
async syncGuideViews(e) {}
|
|
23
27
|
getNextAutoName(e) {
|
|
24
28
|
let t = this.#e.get(e) ?? 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as e, y as t } from "./viewSelectors-
|
|
1
|
+
import { v as e, y as t } from "./viewSelectors-lM93fHAq.js";
|
|
2
2
|
//#region ../core/src/encoder/metadataChannels.js
|
|
3
3
|
function n(e) {
|
|
4
4
|
return i(e?.key, "key");
|
|
@@ -40,6 +40,10 @@ var s = class {
|
|
|
40
40
|
}, c = class n extends t {
|
|
41
41
|
#e = /* @__PURE__ */ new Map();
|
|
42
42
|
async initializeChildren() {}
|
|
43
|
+
async createChildViews(e, t) {
|
|
44
|
+
let n = await Promise.allSettled(e), r = n.filter((e) => e.status === "fulfilled").map((e) => e.value), i = n.find((e) => e.status === "rejected");
|
|
45
|
+
if (t(r), i) throw i.reason;
|
|
46
|
+
}
|
|
43
47
|
async syncGuideViews(e) {}
|
|
44
48
|
getNextAutoName(e) {
|
|
45
49
|
let t = this.#e.get(e) ?? 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e, x as t } from "./viewSelectors-DkFvo33d.js";
|
|
2
|
+
import { n } from "./metadataChannels-DLSmx7kU.js";
|
|
3
|
+
import { n as r, t as i } from "./containerView-BItRtKqu.js";
|
|
3
4
|
//#region ../core/src/debug/valuePreview.js
|
|
4
5
|
var a = 3, o = 12, s = 8, c = 160;
|
|
5
6
|
function l(e, t = 0) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n } from "./
|
|
3
|
-
import { n as r, t as i } from "./containerView-aEVmYmkA.js";
|
|
1
|
+
import { S as e, a as t } from "./viewSelectors-lM93fHAq.js";
|
|
2
|
+
import { i as n, n as r, t as i } from "./containerView-CWa6ZIJW.js";
|
|
4
3
|
//#region ../core/src/debug/valuePreview.js
|
|
5
4
|
var a = 3, o = 12, s = 8, c = 160;
|
|
6
5
|
function l(e, t = 0) {
|
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-CoXp9NFX.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-C7FbjS-a.js";
|
|
3
3
|
//#region src/components/generic/baseDialog.js
|
|
4
4
|
var s = /* @__PURE__ */ new Set([
|
|
5
5
|
"text",
|