@genome-spy/app 1.1.0 → 1.2.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.
Files changed (47) hide show
  1. package/dist/{agentApi-BgZUOeB-.js → agentApi-8hMSlqAQ.js} +8459 -6960
  2. package/dist/agentApi.es.js +5609 -4236
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-DiPQvNtZ.js → canvas2d-Bd8H8MMo.js} +149 -134
  5. package/dist/{canvas2d-t_N10CeW.js → canvas2d-D6VYooRf.js} +136 -122
  6. package/dist/{clipOptions-Cba4I0AO.js → clipOptions-DElJ8dTZ.js} +2274 -2080
  7. package/dist/{clipOptions-B5PibDq3.js → clipOptions-D_wBNhzs.js} +2121 -1957
  8. package/dist/{viewIdentityRegistry-BW415b3o.js → containerView-CRJSc4bM.js} +24 -31
  9. package/dist/{viewIdentityRegistry-_F0E7nkA.js → containerView-aEVmYmkA.js} +24 -31
  10. package/dist/{debug-DP4WzTNo.js → debug-CQ0agCrd.js} +9 -9
  11. package/dist/{debug-CVAlrcZt.js → debug-DkIMiGdW.js} +10 -10
  12. package/dist/index.es.js +1133 -1115
  13. package/dist/index.js +757 -513
  14. package/dist/{indexer-En7gpvLN.js → indexer-DDC0YRGn.js} +1 -1
  15. package/dist/{indexer-DbFTKGlm.js → indexer-DOYMJ-Md.js} +1 -1
  16. package/dist/markUtils-CvLDz744.js +75 -0
  17. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  18. package/dist/{order-R043xTpC.js → order-BVvkjDRT.js} +369 -316
  19. package/dist/{order-BkYCnwD7.js → order-DmMoZsi1.js} +360 -308
  20. package/dist/{rasterExport-C_FcNBkC.js → rasterExport-DxvowWjH.js} +4 -4
  21. package/dist/{rasterExport-Z7gs5346.js → rasterExport-jeRVq6kY.js} +4 -4
  22. package/dist/rasterization-CFogVB3B.js +50 -0
  23. package/dist/rasterization-DFj3Cvx4.js +67 -0
  24. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  25. package/dist/rectangle-Dl4Dy0hS.js +191 -0
  26. package/dist/{renderCanvas2D-DK1c9TFK.js → renderCanvas2D-Bfm1NHFu.js} +99 -94
  27. package/dist/{renderCanvas2D-IM-A9DYG.js → renderCanvas2D-DVjhp834.js} +101 -96
  28. package/dist/scalePosition-0aeqp_kz.js +18 -0
  29. package/dist/schema.json +27198 -13709
  30. package/dist/style.css +1 -1
  31. package/dist/{svg-DW3tfUmm.js → svg-Bm2zxBPu.js} +316 -317
  32. package/dist/{svg-PabUdcDi.js → svg-CkfuhONt.js} +290 -291
  33. package/dist/{svgRasterizer-B6YtWLJs.js → svgRasterizer-DoRQEqFA.js} +3 -3
  34. package/dist/{svgRasterizer-BEVDyyS3.js → svgRasterizer-raDDhBF-.js} +3 -3
  35. package/dist/{vega-scale-Byaw1K8O.js → vega-scale-BoGHANI7.js} +90 -90
  36. package/dist/{vega-scale-Ctz_wa3z.js → vega-scale-o9TRyzYH.js} +699 -699
  37. package/dist/viewError-BkJeVYXA.js +33 -0
  38. package/dist/viewError-IYqyluc7.js +33 -0
  39. package/dist/{viewSelectors-KtD-QSN0.js → viewSelectors-7LyasQN-.js} +572 -478
  40. package/dist/{viewSelectors-DYz-PhTO.js → viewSelectors-CbmkSQRT.js} +624 -530
  41. package/dist/{viewUtils-BZGPseMx.js → viewUtils-DuddMNNw.js} +2146 -2016
  42. package/dist/{webgl-tdKf9SlZ.js → webgl-CQfvgnxo.js} +1247 -1137
  43. package/dist/{webgl-BKSGqHaz.js → webgl-DVYkXtiZ.js} +1495 -1386
  44. package/package.json +4 -4
  45. package/src/spec/view.d.ts +44 -5
  46. package/dist/rasterization-_-9JmSas.js +0 -63
  47. package/dist/viewError-BiR9VCgL.js +0 -29
@@ -1,4 +1,4 @@
1
- import { v as e, y as t } from "./viewSelectors-KtD-QSN0.js";
1
+ import { v as e, y as t } from "./viewSelectors-7LyasQN-.js";
2
2
  //#region ../core/src/encoder/metadataChannels.js
3
3
  function n(e) {
4
4
  return i(e?.key, "key");
@@ -20,13 +20,27 @@ function i(e, t) {
20
20
  return r;
21
21
  }
22
22
  //#endregion
23
- //#region ../core/src/view/containerView.js
24
- var a = class n extends t {
25
- #e = /* @__PURE__ */ new Map();
26
- constructor(e, t, n, r, i, a) {
27
- super(e, t, n, r, i, a), this.spec = e;
23
+ //#region ../core/src/view/viewIdentityRegistry.js
24
+ var a = /* @__PURE__ */ new WeakMap();
25
+ function o(e) {
26
+ let t = a.get(e);
27
+ return t || (t = new s(), a.set(e, t)), t;
28
+ }
29
+ var s = class {
30
+ #e = /* @__PURE__ */ new WeakMap();
31
+ #t = /* @__PURE__ */ new Map();
32
+ #n = 0;
33
+ getId(e) {
34
+ let t = this.#e.get(e);
35
+ return t || (t = "view-" + String(this.#n), this.#n++, this.#e.set(e, t), this.#t.set(t, e)), t;
36
+ }
37
+ getView(e) {
38
+ return this.#t.get(e);
28
39
  }
40
+ }, c = class n extends t {
41
+ #e = /* @__PURE__ */ new Map();
29
42
  async initializeChildren() {}
43
+ async syncGuideViews(e) {}
30
44
  getNextAutoName(e) {
31
45
  let t = this.#e.get(e) ?? 0;
32
46
  return this.#e.set(e, t + 1), e + t;
@@ -51,16 +65,11 @@ var a = class n extends t {
51
65
  }
52
66
  findDescendantByPath(e) {
53
67
  let t = this;
54
- for (let r = 0; r < e.length; r++) {
68
+ for (let r of e) {
55
69
  if (!(t instanceof n)) return;
56
- let i = t.#t(e[r]);
57
- if (!i) return;
58
- if (r === e.length - 1) return i;
59
- t = i;
70
+ t = Iterator.from(t).find((e) => e.name === r);
60
71
  }
61
- }
62
- #t(e) {
63
- for (let t of this) if (t.name === e) return t;
72
+ return e.length ? t : void 0;
64
73
  }
65
74
  findDescendantByName(t) {
66
75
  let n;
@@ -71,22 +80,6 @@ var a = class n extends t {
71
80
  getDefaultResolution(e, t) {
72
81
  return "shared";
73
82
  }
74
- }, o = /* @__PURE__ */ new WeakMap();
75
- function s(e) {
76
- let t = o.get(e);
77
- return t || (t = new c(), o.set(e, t)), t;
78
- }
79
- var c = class {
80
- #e = /* @__PURE__ */ new WeakMap();
81
- #t = /* @__PURE__ */ new Map();
82
- #n = 0;
83
- getId(e) {
84
- let t = this.#e.get(e);
85
- return t || (t = "view-" + String(this.#n), this.#n++, this.#e.set(e, t), this.#t.set(t, e)), t;
86
- }
87
- getView(e) {
88
- return this.#t.get(e);
89
- }
90
83
  };
91
84
  //#endregion
92
- export { r as i, a as n, n as r, s as t };
85
+ export { r as i, o as n, n as r, c as t };
@@ -1,11 +1,25 @@
1
- import { _ as e, v as t } from "./viewSelectors-DYz-PhTO.js";
2
- //#region ../core/src/view/containerView.js
3
- var n = class n extends t {
4
- #e = /* @__PURE__ */ new Map();
5
- constructor(e, t, n, r, i, a) {
6
- super(e, t, n, r, i, a), this.spec = e;
1
+ import { _ as e, v as t } from "./viewSelectors-CbmkSQRT.js";
2
+ //#region ../core/src/view/viewIdentityRegistry.js
3
+ var n = /* @__PURE__ */ new WeakMap();
4
+ function r(e) {
5
+ let t = n.get(e);
6
+ return t || (t = new i(), n.set(e, t)), t;
7
+ }
8
+ var i = class {
9
+ #e = /* @__PURE__ */ new WeakMap();
10
+ #t = /* @__PURE__ */ new Map();
11
+ #n = 0;
12
+ getId(e) {
13
+ let t = this.#e.get(e);
14
+ return t || (t = "view-" + String(this.#n), this.#n++, this.#e.set(e, t), this.#t.set(t, e)), t;
15
+ }
16
+ getView(e) {
17
+ return this.#t.get(e);
7
18
  }
19
+ }, a = class n extends t {
20
+ #e = /* @__PURE__ */ new Map();
8
21
  async initializeChildren() {}
22
+ async syncGuideViews(e) {}
9
23
  getNextAutoName(e) {
10
24
  let t = this.#e.get(e) ?? 0;
11
25
  return this.#e.set(e, t + 1), e + t;
@@ -30,16 +44,11 @@ var n = class n extends t {
30
44
  }
31
45
  findDescendantByPath(e) {
32
46
  let t = this;
33
- for (let r = 0; r < e.length; r++) {
47
+ for (let r of e) {
34
48
  if (!(t instanceof n)) return;
35
- let i = t.#t(e[r]);
36
- if (!i) return;
37
- if (r === e.length - 1) return i;
38
- t = i;
49
+ t = Iterator.from(t).find((e) => e.name === r);
39
50
  }
40
- }
41
- #t(e) {
42
- for (let t of this) if (t.name === e) return t;
51
+ return e.length ? t : void 0;
43
52
  }
44
53
  findDescendantByName(t) {
45
54
  let n;
@@ -50,22 +59,6 @@ var n = class n extends t {
50
59
  getDefaultResolution(e, t) {
51
60
  return "shared";
52
61
  }
53
- }, r = /* @__PURE__ */ new WeakMap();
54
- function i(e) {
55
- let t = r.get(e);
56
- return t || (t = new a(), r.set(e, t)), t;
57
- }
58
- var a = class {
59
- #e = /* @__PURE__ */ new WeakMap();
60
- #t = /* @__PURE__ */ new Map();
61
- #n = 0;
62
- getId(e) {
63
- let t = this.#e.get(e);
64
- return t || (t = "view-" + String(this.#n), this.#n++, this.#e.set(e, t), this.#t.set(t, e)), t;
65
- }
66
- getView(e) {
67
- return this.#t.get(e);
68
- }
69
62
  };
70
63
  //#endregion
71
- export { n, i as t };
64
+ export { r as n, a as t };
@@ -1,5 +1,5 @@
1
- import { a as e, x as t } from "./viewSelectors-KtD-QSN0.js";
2
- import { i as n, n as r, t as i } from "./viewIdentityRegistry-BW415b3o.js";
1
+ import { a as e, x as t } from "./viewSelectors-7LyasQN-.js";
2
+ import { i as n, n as r, t as i } from "./containerView-CRJSc4bM.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) {
@@ -100,7 +100,7 @@ function m(e, t) {
100
100
  }), { marks: r };
101
101
  }
102
102
  function h(e, t) {
103
- if (t(e), e instanceof r) for (let n of e) h(n, t);
103
+ if (t(e), e instanceof i) for (let n of e) h(n, t);
104
104
  }
105
105
  function g(e) {
106
106
  return (e.getCollector?.())?.getItemCount();
@@ -129,7 +129,7 @@ function _(e, t) {
129
129
  }), { scopes: n };
130
130
  }
131
131
  function v(e, t) {
132
- if (t(e), e instanceof r) for (let n of e) v(n, t);
132
+ if (t(e), e instanceof i) for (let n of e) v(n, t);
133
133
  }
134
134
  //#endregion
135
135
  //#region ../core/src/debug/resolutionDebugSnapshot.js
@@ -152,7 +152,7 @@ function b(e, t) {
152
152
  for (let n of Object.values(t)) n && e.add(n);
153
153
  }
154
154
  function x(e, t) {
155
- if (t(e), e instanceof r) for (let n of e) x(n, t);
155
+ if (t(e), e instanceof i) for (let n of e) x(n, t);
156
156
  }
157
157
  function S(e, t) {
158
158
  let n = e.getDebugState();
@@ -235,11 +235,11 @@ function D(e, n) {
235
235
  rootId: void 0,
236
236
  nodes: []
237
237
  };
238
- let i = n.includeChrome ?? !1, a = [], o = (e, s) => {
238
+ let r = n.includeChrome ?? !1, a = [], o = (e, s) => {
239
239
  let c = t(e);
240
- if (c && !i) return;
240
+ if (c && !r) return;
241
241
  let l = n.getDebugId(e), u = O(e, l, s, c, n);
242
- if (a.push(u), e instanceof r) for (let t of e) {
242
+ if (a.push(u), e instanceof i) for (let t of e) {
243
243
  let e = o(t, l);
244
244
  e && u.childIds.push(e.id);
245
245
  }
@@ -343,4 +343,4 @@ function L(e, t, n) {
343
343
  return r ? n.getDebugId(r) : void 0;
344
344
  }
345
345
  //#endregion
346
- export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, i as getViewIdentityRegistry };
346
+ export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, r as getViewIdentityRegistry };
@@ -1,6 +1,6 @@
1
- import { b as e, i as t } from "./viewSelectors-DYz-PhTO.js";
2
- import { t as n } from "./metadataChannels-DV62inJh.js";
3
- import { n as r, t as i } from "./viewIdentityRegistry-_F0E7nkA.js";
1
+ import { b as e, i as t } from "./viewSelectors-CbmkSQRT.js";
2
+ import { n } from "./metadataChannels-DLSmx7kU.js";
3
+ import { n as r, t as i } from "./containerView-aEVmYmkA.js";
4
4
  //#region ../core/src/debug/valuePreview.js
5
5
  var a = 3, o = 12, s = 8, c = 160;
6
6
  function l(e, t = 0) {
@@ -101,7 +101,7 @@ function m(e, t) {
101
101
  }), { marks: r };
102
102
  }
103
103
  function h(e, t) {
104
- if (t(e), e instanceof r) for (let n of e) h(n, t);
104
+ if (t(e), e instanceof i) for (let n of e) h(n, t);
105
105
  }
106
106
  function g(e) {
107
107
  return (e.getCollector?.())?.getItemCount();
@@ -130,7 +130,7 @@ function _(e, t) {
130
130
  }), { scopes: n };
131
131
  }
132
132
  function v(e, t) {
133
- if (t(e), e instanceof r) for (let n of e) v(n, t);
133
+ if (t(e), e instanceof i) for (let n of e) v(n, t);
134
134
  }
135
135
  //#endregion
136
136
  //#region ../core/src/debug/resolutionDebugSnapshot.js
@@ -153,7 +153,7 @@ function b(e, t) {
153
153
  for (let n of Object.values(t)) n && e.add(n);
154
154
  }
155
155
  function x(e, t) {
156
- if (t(e), e instanceof r) for (let n of e) x(n, t);
156
+ if (t(e), e instanceof i) for (let n of e) x(n, t);
157
157
  }
158
158
  function S(e, t) {
159
159
  let n = e.getDebugState();
@@ -236,11 +236,11 @@ function D(t, n) {
236
236
  rootId: void 0,
237
237
  nodes: []
238
238
  };
239
- let i = n.includeChrome ?? !1, a = [], o = (t, s) => {
239
+ let r = n.includeChrome ?? !1, a = [], o = (t, s) => {
240
240
  let c = e(t);
241
- if (c && !i) return;
241
+ if (c && !r) return;
242
242
  let l = n.getDebugId(t), u = O(t, l, s, c, n);
243
- if (a.push(u), t instanceof r) for (let e of t) {
243
+ if (a.push(u), t instanceof i) for (let e of t) {
244
244
  let t = o(e, l);
245
245
  t && u.childIds.push(t.id);
246
246
  }
@@ -344,4 +344,4 @@ function L(e, t, n) {
344
344
  return r ? n.getDebugId(r) : void 0;
345
345
  }
346
346
  //#endregion
347
- export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, i as getViewIdentityRegistry };
347
+ export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, r as getViewIdentityRegistry };