@genome-spy/app 0.80.0 → 0.81.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.
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./rolldown-runtime-DF993M8W.js";
2
- import { B as t, F as n, H as r, I as i, L as a, P as o, R as s, Rt as c, U as l, ct as u, gt as d, i as f, kt as p, nr as m, nt as h, ot as g, rt as _, s as v, tr as y, z as b } from "./viewUtils-BY0z0W1Y.js";
2
+ import { Bt as t, F as n, H as r, I as i, L as a, N as o, P as s, R as c, V as l, at as u, ht as d, i as f, kt as p, nt as m, or as h, s as g, sr as _, st as v, tt as y, z as b } from "./viewUtils-ChwePFhK.js";
3
3
  import { n as x, t as S } from "./componentStyles-BGy033io.js";
4
4
  //#region src/viewScopeUtils.js
5
5
  function C(e, t) {
@@ -8,7 +8,7 @@ function C(e, t) {
8
8
  function w(e, t) {
9
9
  if (!e || typeof e.visit != "function") return !1;
10
10
  let n = 0;
11
- for (let r of _(e)) r.selector.param === t && (n += 1);
11
+ for (let r of m(e)) r.selector.param === t && (n += 1);
12
12
  return n > 1;
13
13
  }
14
14
  //#endregion
@@ -35,11 +35,11 @@ function D(e) {
35
35
  //#region src/sampleView/viewRef.js
36
36
  function O(e) {
37
37
  if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
38
- return g(e);
38
+ return u(e);
39
39
  }
40
40
  function k(e) {
41
41
  if (!e.explicitName) return;
42
- let t = g(e);
42
+ let t = u(e);
43
43
  return JSON.stringify({
44
44
  s: t.scope,
45
45
  v: t.view
@@ -69,7 +69,7 @@ function N(e, t, n) {
69
69
  if (n) try {
70
70
  let t = [];
71
71
  e.visit((e) => {
72
- e instanceof v && e.isVisible() && ne(e, r) && t.push(e);
72
+ e instanceof g && e.isVisible() && ne(e, r) && t.push(e);
73
73
  });
74
74
  for (let e of t) {
75
75
  let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
@@ -159,8 +159,8 @@ function ne(e, t) {
159
159
  }
160
160
  function re(e) {
161
161
  if (e.view.getEncoding()?.x2) return !0;
162
- let t = e.view.getScaleResolution("x")?.getScale()?.type;
163
- return t ? c(t) : !1;
162
+ let n = e.view.getScaleResolution("x")?.getScale()?.type;
163
+ return n ? t(n) : !1;
164
164
  }
165
165
  function ie(e) {
166
166
  return e === "quantitative" ? M : ee;
@@ -191,16 +191,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
191
191
  }
192
192
  };
193
193
  }
194
- var le = m({
194
+ var le = _({
195
195
  name: "paramProvenance",
196
196
  initialState: { entries: {} },
197
197
  reducers: {
198
198
  paramChange: (e, t) => {
199
- let n = u(t.payload.selector);
199
+ let n = v(t.payload.selector);
200
200
  e.entries[n] = t.payload;
201
201
  },
202
202
  expandPointSelection: (e, t) => {
203
- let n = t.payload, r = u(n.selector), i;
203
+ let n = t.payload, r = v(n.selector), i;
204
204
  if ("rule" in n && n.rule) i = { rule: n.rule };
205
205
  else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
206
206
  else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
@@ -4732,10 +4732,10 @@ function qn(e) {
4732
4732
  //#endregion
4733
4733
  //#region src/agentShared/index.js
4734
4734
  function Jn(e) {
4735
- if (e.startsWith("sampleView/")) return r.actions[e.slice(11)];
4735
+ if (e.startsWith("sampleView/")) return l.actions[e.slice(11)];
4736
4736
  if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
4737
- if (e.startsWith("viewSettings/")) return y.actions[e.slice(13)];
4737
+ if (e.startsWith("viewSettings/")) return h.actions[e.slice(13)];
4738
4738
  throw Error("Unsupported app actionType " + e + ".");
4739
4739
  }
4740
4740
  //#endregion
4741
- export { o as addValueColors, i as buildCategoricalCountsSummary, a as buildCategoricalFieldSummary, s as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, b as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, l as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, n as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, h as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, t as templateResultToString };
4741
+ 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,5 +1,5 @@
1
- import { ot as e, p as t, xt as n } from "./viewUtils-BY0z0W1Y.js";
2
- import { n as r, t as i } from "./viewIdentityRegistry-DjnM56qZ.js";
1
+ import { at as e, f as t, xt as n } from "./viewUtils-ChwePFhK.js";
2
+ import { n as r, t as i } from "./viewIdentityRegistry-DuZgd_T3.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 { i as e, l as t, n, t as r, w as i } from "./viewIdentityRegistry-BCDkwJTm.js";
1
+ import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-DLQWeb1Y.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(t, n) {
77
- if (!t) return { marks: [] };
76
+ function m(e, n) {
77
+ if (!e) return { marks: [] };
78
78
  let r = [];
79
- return h(t, (t) => {
80
- let i = t.mark;
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(t),
85
- viewPath: t.getPathString(),
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(t.getEncoding()) ?? [],
93
- dataCount: g(t),
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 n) for (let n of e) h(n, t);
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 n) for (let n of e) v(n, t);
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 n) for (let n of e) x(n, t);
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(e) {
222
- return i(e) || e.getLayoutAncestors().some(i);
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(e, t) {
233
- if (!e) return {
232
+ function D(t, n) {
233
+ if (!t) return {
234
234
  rootId: void 0,
235
235
  nodes: []
236
236
  };
237
- let r = t.includeChrome ?? !1, a = [], o = (e, s) => {
238
- let c = i(e);
239
- if (c && !r) return;
240
- let l = t.getDebugId(e), u = O(e, l, s, c, t);
241
- if (a.push(u), e instanceof n) for (let t of e) {
242
- let e = o(t, l);
243
- e && u.childIds.push(e.id);
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(e, void 0)?.id,
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 t(e);
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, r as getViewIdentityRegistry };
345
+ export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, i as getViewIdentityRegistry };