@genome-spy/app 0.83.1 → 0.85.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 (45) hide show
  1. package/dist/{agentApi-AxdD95yY.js → agentApi-Cz0hCnVp.js} +6576 -7722
  2. package/dist/agentApi.es.js +3747 -3317
  3. package/dist/agentShared.es.js +18 -18
  4. package/dist/arrayUtils-LJpQOu-U.js +2175 -0
  5. package/dist/bmFontMetrics-CuNB-kNN.js +31 -0
  6. package/dist/canvas2d-DoAXEiF9.js +309 -0
  7. package/dist/canvas2d-f5jl4A5D.js +310 -0
  8. package/dist/canvasSizeHelper-7h_8rOcx.js +56 -0
  9. package/dist/clipOptions-gqdb3fvW.js +43 -0
  10. package/dist/color-W5zffv-z.js +335 -0
  11. package/dist/{componentStyles-BzJWWojD.js → componentStyles-FsNmIb22.js} +5 -1
  12. package/dist/{debug-CI7POTMx.js → debug-BvCZWumf.js} +10 -10
  13. package/dist/{debug-DJKug_38.js → debug-CgDtmspT.js} +7 -5
  14. package/dist/dialog.es.js +1 -1
  15. package/dist/{esm-CGLz7idZ.js → esm-BA6yMcc-.js} +438 -434
  16. package/dist/{esm-D8vvQAP3.js → esm-CcDLRSvC.js} +33 -33
  17. package/dist/{esm-BeV56E_5.js → esm-CfYZhLHN.js} +33 -33
  18. package/dist/{esm-DQ3lJSQN.js → esm-JAiZmFIS.js} +1 -1
  19. package/dist/framebufferReadback-CCLOjStu.js +148 -0
  20. package/dist/framebufferReadback-THWwFqs8.js +1994 -0
  21. package/dist/index.es.js +3735 -3369
  22. package/dist/index.js +743 -616
  23. package/dist/metadataChannels-DV62inJh.js +19 -0
  24. package/dist/nativeText-DMO8gLt7.js +806 -0
  25. package/dist/nativeText-m5AUINMq.js +806 -0
  26. package/dist/paramUtils-BYI4rwyL.js +2195 -0
  27. package/dist/schema.json +2253 -4201
  28. package/dist/style.css +1 -1
  29. package/dist/svg-CCu8kYy2.js +1158 -0
  30. package/dist/svg-yFj875aX.js +1158 -0
  31. package/dist/svgNumber-DNxESJQB.js +11 -0
  32. package/dist/twgl-full.module-DB2UdP1k.js +1849 -0
  33. package/dist/viewIdentityRegistry-BUdkK9zT.js +92 -0
  34. package/dist/{viewIdentityRegistry-CcQdL0Z8.js → viewIdentityRegistry-D3oPbN4O.js} +1 -1
  35. package/dist/viewRenderingContext-HtpqwS_x.js +120 -0
  36. package/dist/viewSelectors-DGCspRN3.js +4198 -0
  37. package/dist/viewSelectors-U5oLCLHV.js +4195 -0
  38. package/dist/{viewUtils-Cybv1tu-.js → viewUtils-Dg4RA40Q.js} +2405 -3983
  39. package/dist/warning-CpIIpk8e.js +7 -0
  40. package/dist/warning-DRGdb6BF.js +59 -0
  41. package/dist/webgl-Ci6ZhCCf.js +54 -0
  42. package/dist/webgl-Dpz8a3TI.js +53 -0
  43. package/package.json +5 -5
  44. package/dist/metadataChannels-fGQOmJj0.js +0 -6732
  45. package/dist/viewIdentityRegistry-EH5-Noyz.js +0 -6827
@@ -0,0 +1,56 @@
1
+ //#region ../core/src/rendering/canvasSizeHelper.js
2
+ var e = class {
3
+ constructor(e, t, n, r) {
4
+ this._container = e, this._canvas = t, this._sizeSource = n, this._onPhysicalSizeChange = r ?? (() => {}), this._logicalCanvasSize = void 0, this._devicePixelContentBoxSize = void 0, this._devicePixelContentBoxObserver = void 0, this._observeDevicePixelContentBox();
5
+ }
6
+ invalidate() {
7
+ this._logicalCanvasSize = void 0, this._devicePixelContentBoxSize = void 0;
8
+ }
9
+ finalize() {
10
+ this._devicePixelContentBoxObserver && this._devicePixelContentBoxObserver.disconnect();
11
+ }
12
+ getPhysicalCanvasSize(e) {
13
+ if (this._devicePixelContentBoxSize) return this._devicePixelContentBoxSize;
14
+ let t = window.devicePixelRatio ?? 1;
15
+ return e ||= this.getLogicalCanvasSize(), {
16
+ width: Math.round(e.width * t),
17
+ height: Math.round(e.height * t)
18
+ };
19
+ }
20
+ getDevicePixelRatio(e) {
21
+ e ||= this.getLogicalCanvasSize();
22
+ let t = this.getPhysicalCanvasSize(e), n = e.width > 0 ? t.width / e.width : void 0, r = e.height > 0 ? t.height / e.height : void 0;
23
+ return n !== void 0 && r !== void 0 ? (n + r) / 2 : n === void 0 ? r === void 0 ? window.devicePixelRatio ?? 1 : r : n;
24
+ }
25
+ getLogicalCanvasSize() {
26
+ if (this._logicalCanvasSize) return this._logicalCanvasSize;
27
+ let e = this._sizeSource(), t = window.getComputedStyle(this._container, null), n = this._container.getBoundingClientRect(), r = parseFloat(t.paddingLeft), i = parseFloat(t.paddingRight), a = parseFloat(t.paddingTop), o = parseFloat(t.paddingBottom), s = parseFloat(t.borderLeftWidth), c = parseFloat(t.borderRightWidth), l = parseFloat(t.borderTopWidth), u = parseFloat(t.borderBottomWidth), d = e.width ?? n.width - r - i - s - c, f = e.height ?? n.height - a - o - l - u;
28
+ return this._logicalCanvasSize = {
29
+ width: d,
30
+ height: f
31
+ }, this._logicalCanvasSize;
32
+ }
33
+ _observeDevicePixelContentBox() {
34
+ if (typeof ResizeObserver != "function") return;
35
+ let e = new ResizeObserver((e) => {
36
+ let t = e.find((e) => e.target == this._canvas);
37
+ if (!t) return;
38
+ let n = t.devicePixelContentBoxSize;
39
+ if (!n) return;
40
+ let r = Array.isArray(n) ? n[0] : n;
41
+ if (!r) return;
42
+ let i = {
43
+ width: r.inlineSize,
44
+ height: r.blockSize
45
+ };
46
+ this._devicePixelContentBoxSize && this._devicePixelContentBoxSize.width == i.width && this._devicePixelContentBoxSize.height == i.height || (this._devicePixelContentBoxSize = i, this._onPhysicalSizeChange());
47
+ });
48
+ try {
49
+ e.observe(this._canvas, { box: "device-pixel-content-box" }), this._devicePixelContentBoxObserver = e;
50
+ } catch {
51
+ e.disconnect();
52
+ }
53
+ }
54
+ };
55
+ //#endregion
56
+ export { e as t };
@@ -0,0 +1,43 @@
1
+ //#region ../core/src/view/renderingContext/clipOptions.js
2
+ function e(e) {
3
+ if (e.clip) return e.clip;
4
+ if (e.clipRect) return {
5
+ rect: e.clipRect,
6
+ clipX: !0,
7
+ clipY: !0
8
+ };
9
+ }
10
+ function t(e, t) {
11
+ return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
12
+ }
13
+ function n(e, t, n) {
14
+ return t || n ? {
15
+ rect: e,
16
+ clipX: t,
17
+ clipY: n
18
+ } : void 0;
19
+ }
20
+ function r(e, t) {
21
+ return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
22
+ }
23
+ function i(e, t) {
24
+ if (!e) return t;
25
+ if (!t) return e;
26
+ let r = e.clipX || t.clipX, i = e.clipY || t.clipY, a = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, o = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
27
+ return n(e.rect.modify({
28
+ x: () => a.x,
29
+ y: () => o.y,
30
+ width: () => a.width,
31
+ height: () => o.height
32
+ }), r, i);
33
+ }
34
+ function a(e, t) {
35
+ if (e === !0) return n(t, !0, !0);
36
+ if (e === "x") return n(t, !0, !1);
37
+ if (e === "y") return n(t, !1, !0);
38
+ }
39
+ function o(e, t, n) {
40
+ if (t !== "never") return i(e, a(t, n));
41
+ }
42
+ //#endregion
43
+ export { e as a, n as i, t as n, o, i as r, r as t };
@@ -0,0 +1,335 @@
1
+ //#region ../../node_modules/internmap/src/index.js
2
+ var e = class extends Map {
3
+ constructor(e, t = i) {
4
+ if (super(), Object.defineProperties(this, {
5
+ _intern: { value: /* @__PURE__ */ new Map() },
6
+ _key: { value: t }
7
+ }), e != null) for (let [t, n] of e) this.set(t, n);
8
+ }
9
+ get(e) {
10
+ return super.get(t(this, e));
11
+ }
12
+ has(e) {
13
+ return super.has(t(this, e));
14
+ }
15
+ set(e, t) {
16
+ return super.set(n(this, e), t);
17
+ }
18
+ delete(e) {
19
+ return super.delete(r(this, e));
20
+ }
21
+ };
22
+ function t({ _intern: e, _key: t }, n) {
23
+ let r = t(n);
24
+ return e.has(r) ? e.get(r) : n;
25
+ }
26
+ function n({ _intern: e, _key: t }, n) {
27
+ let r = t(n);
28
+ return e.has(r) ? e.get(r) : (e.set(r, n), n);
29
+ }
30
+ function r({ _intern: e, _key: t }, n) {
31
+ let r = t(n);
32
+ return e.has(r) && (n = e.get(r), e.delete(r)), n;
33
+ }
34
+ function i(e) {
35
+ return typeof e == "object" && e ? e.valueOf() : e;
36
+ }
37
+ //#endregion
38
+ //#region ../../node_modules/d3-color/src/define.js
39
+ function a(e, t, n) {
40
+ e.prototype = t.prototype = n, n.constructor = e;
41
+ }
42
+ function o(e, t) {
43
+ var n = Object.create(e.prototype);
44
+ for (var r in t) n[r] = t[r];
45
+ return n;
46
+ }
47
+ //#endregion
48
+ //#region ../../node_modules/d3-color/src/color.js
49
+ function s() {}
50
+ var c = .7, l = 1 / c, u = "\\s*([+-]?\\d+)\\s*", d = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", f = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", p = /^#([0-9a-f]{3,8})$/, m = RegExp(`^rgb\\(${u},${u},${u}\\)$`), h = RegExp(`^rgb\\(${f},${f},${f}\\)$`), g = RegExp(`^rgba\\(${u},${u},${u},${d}\\)$`), _ = RegExp(`^rgba\\(${f},${f},${f},${d}\\)$`), v = RegExp(`^hsl\\(${d},${f},${f}\\)$`), y = RegExp(`^hsla\\(${d},${f},${f},${d}\\)$`), b = {
51
+ aliceblue: 15792383,
52
+ antiquewhite: 16444375,
53
+ aqua: 65535,
54
+ aquamarine: 8388564,
55
+ azure: 15794175,
56
+ beige: 16119260,
57
+ bisque: 16770244,
58
+ black: 0,
59
+ blanchedalmond: 16772045,
60
+ blue: 255,
61
+ blueviolet: 9055202,
62
+ brown: 10824234,
63
+ burlywood: 14596231,
64
+ cadetblue: 6266528,
65
+ chartreuse: 8388352,
66
+ chocolate: 13789470,
67
+ coral: 16744272,
68
+ cornflowerblue: 6591981,
69
+ cornsilk: 16775388,
70
+ crimson: 14423100,
71
+ cyan: 65535,
72
+ darkblue: 139,
73
+ darkcyan: 35723,
74
+ darkgoldenrod: 12092939,
75
+ darkgray: 11119017,
76
+ darkgreen: 25600,
77
+ darkgrey: 11119017,
78
+ darkkhaki: 12433259,
79
+ darkmagenta: 9109643,
80
+ darkolivegreen: 5597999,
81
+ darkorange: 16747520,
82
+ darkorchid: 10040012,
83
+ darkred: 9109504,
84
+ darksalmon: 15308410,
85
+ darkseagreen: 9419919,
86
+ darkslateblue: 4734347,
87
+ darkslategray: 3100495,
88
+ darkslategrey: 3100495,
89
+ darkturquoise: 52945,
90
+ darkviolet: 9699539,
91
+ deeppink: 16716947,
92
+ deepskyblue: 49151,
93
+ dimgray: 6908265,
94
+ dimgrey: 6908265,
95
+ dodgerblue: 2003199,
96
+ firebrick: 11674146,
97
+ floralwhite: 16775920,
98
+ forestgreen: 2263842,
99
+ fuchsia: 16711935,
100
+ gainsboro: 14474460,
101
+ ghostwhite: 16316671,
102
+ gold: 16766720,
103
+ goldenrod: 14329120,
104
+ gray: 8421504,
105
+ green: 32768,
106
+ greenyellow: 11403055,
107
+ grey: 8421504,
108
+ honeydew: 15794160,
109
+ hotpink: 16738740,
110
+ indianred: 13458524,
111
+ indigo: 4915330,
112
+ ivory: 16777200,
113
+ khaki: 15787660,
114
+ lavender: 15132410,
115
+ lavenderblush: 16773365,
116
+ lawngreen: 8190976,
117
+ lemonchiffon: 16775885,
118
+ lightblue: 11393254,
119
+ lightcoral: 15761536,
120
+ lightcyan: 14745599,
121
+ lightgoldenrodyellow: 16448210,
122
+ lightgray: 13882323,
123
+ lightgreen: 9498256,
124
+ lightgrey: 13882323,
125
+ lightpink: 16758465,
126
+ lightsalmon: 16752762,
127
+ lightseagreen: 2142890,
128
+ lightskyblue: 8900346,
129
+ lightslategray: 7833753,
130
+ lightslategrey: 7833753,
131
+ lightsteelblue: 11584734,
132
+ lightyellow: 16777184,
133
+ lime: 65280,
134
+ limegreen: 3329330,
135
+ linen: 16445670,
136
+ magenta: 16711935,
137
+ maroon: 8388608,
138
+ mediumaquamarine: 6737322,
139
+ mediumblue: 205,
140
+ mediumorchid: 12211667,
141
+ mediumpurple: 9662683,
142
+ mediumseagreen: 3978097,
143
+ mediumslateblue: 8087790,
144
+ mediumspringgreen: 64154,
145
+ mediumturquoise: 4772300,
146
+ mediumvioletred: 13047173,
147
+ midnightblue: 1644912,
148
+ mintcream: 16121850,
149
+ mistyrose: 16770273,
150
+ moccasin: 16770229,
151
+ navajowhite: 16768685,
152
+ navy: 128,
153
+ oldlace: 16643558,
154
+ olive: 8421376,
155
+ olivedrab: 7048739,
156
+ orange: 16753920,
157
+ orangered: 16729344,
158
+ orchid: 14315734,
159
+ palegoldenrod: 15657130,
160
+ palegreen: 10025880,
161
+ paleturquoise: 11529966,
162
+ palevioletred: 14381203,
163
+ papayawhip: 16773077,
164
+ peachpuff: 16767673,
165
+ peru: 13468991,
166
+ pink: 16761035,
167
+ plum: 14524637,
168
+ powderblue: 11591910,
169
+ purple: 8388736,
170
+ rebeccapurple: 6697881,
171
+ red: 16711680,
172
+ rosybrown: 12357519,
173
+ royalblue: 4286945,
174
+ saddlebrown: 9127187,
175
+ salmon: 16416882,
176
+ sandybrown: 16032864,
177
+ seagreen: 3050327,
178
+ seashell: 16774638,
179
+ sienna: 10506797,
180
+ silver: 12632256,
181
+ skyblue: 8900331,
182
+ slateblue: 6970061,
183
+ slategray: 7372944,
184
+ slategrey: 7372944,
185
+ snow: 16775930,
186
+ springgreen: 65407,
187
+ steelblue: 4620980,
188
+ tan: 13808780,
189
+ teal: 32896,
190
+ thistle: 14204888,
191
+ tomato: 16737095,
192
+ turquoise: 4251856,
193
+ violet: 15631086,
194
+ wheat: 16113331,
195
+ white: 16777215,
196
+ whitesmoke: 16119285,
197
+ yellow: 16776960,
198
+ yellowgreen: 10145074
199
+ };
200
+ a(s, T, {
201
+ copy(e) {
202
+ return Object.assign(new this.constructor(), this, e);
203
+ },
204
+ displayable() {
205
+ return this.rgb().displayable();
206
+ },
207
+ hex: x,
208
+ formatHex: x,
209
+ formatHex8: S,
210
+ formatHsl: C,
211
+ formatRgb: w,
212
+ toString: w
213
+ });
214
+ function x() {
215
+ return this.rgb().formatHex();
216
+ }
217
+ function S() {
218
+ return this.rgb().formatHex8();
219
+ }
220
+ function C() {
221
+ return R(this).formatHsl();
222
+ }
223
+ function w() {
224
+ return this.rgb().formatRgb();
225
+ }
226
+ function T(e) {
227
+ var t, n;
228
+ return e = (e + "").trim().toLowerCase(), (t = p.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? E(t) : n === 3 ? new A(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? D(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? D(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = m.exec(e)) ? new A(t[1], t[2], t[3], 1) : (t = h.exec(e)) ? new A(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = g.exec(e)) ? D(t[1], t[2], t[3], t[4]) : (t = _.exec(e)) ? D(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = v.exec(e)) ? L(t[1], t[2] / 100, t[3] / 100, 1) : (t = y.exec(e)) ? L(t[1], t[2] / 100, t[3] / 100, t[4]) : b.hasOwnProperty(e) ? E(b[e]) : e === "transparent" ? new A(NaN, NaN, NaN, 0) : null;
229
+ }
230
+ function E(e) {
231
+ return new A(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
232
+ }
233
+ function D(e, t, n, r) {
234
+ return r <= 0 && (e = t = n = NaN), new A(e, t, n, r);
235
+ }
236
+ function O(e) {
237
+ return e instanceof s || (e = T(e)), e ? (e = e.rgb(), new A(e.r, e.g, e.b, e.opacity)) : new A();
238
+ }
239
+ function k(e, t, n, r) {
240
+ return arguments.length === 1 ? O(e) : new A(e, t, n, r ?? 1);
241
+ }
242
+ function A(e, t, n, r) {
243
+ this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
244
+ }
245
+ a(A, k, o(s, {
246
+ brighter(e) {
247
+ return e = e == null ? l : l ** +e, new A(this.r * e, this.g * e, this.b * e, this.opacity);
248
+ },
249
+ darker(e) {
250
+ return e = e == null ? c : c ** +e, new A(this.r * e, this.g * e, this.b * e, this.opacity);
251
+ },
252
+ rgb() {
253
+ return this;
254
+ },
255
+ clamp() {
256
+ return new A(F(this.r), F(this.g), F(this.b), P(this.opacity));
257
+ },
258
+ displayable() {
259
+ return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
260
+ },
261
+ hex: j,
262
+ formatHex: j,
263
+ formatHex8: M,
264
+ formatRgb: N,
265
+ toString: N
266
+ }));
267
+ function j() {
268
+ return `#${I(this.r)}${I(this.g)}${I(this.b)}`;
269
+ }
270
+ function M() {
271
+ return `#${I(this.r)}${I(this.g)}${I(this.b)}${I((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
272
+ }
273
+ function N() {
274
+ let e = P(this.opacity);
275
+ return `${e === 1 ? "rgb(" : "rgba("}${F(this.r)}, ${F(this.g)}, ${F(this.b)}${e === 1 ? ")" : `, ${e})`}`;
276
+ }
277
+ function P(e) {
278
+ return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
279
+ }
280
+ function F(e) {
281
+ return Math.max(0, Math.min(255, Math.round(e) || 0));
282
+ }
283
+ function I(e) {
284
+ return e = F(e), (e < 16 ? "0" : "") + e.toString(16);
285
+ }
286
+ function L(e, t, n, r) {
287
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
288
+ }
289
+ function R(e) {
290
+ if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
291
+ if (e instanceof s || (e = T(e)), !e) return new B();
292
+ if (e instanceof B) return e;
293
+ e = e.rgb();
294
+ var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, c = a - i, l = (a + i) / 2;
295
+ return c ? (o = t === a ? (n - r) / c + (n < r) * 6 : n === a ? (r - t) / c + 2 : (t - n) / c + 4, c /= l < .5 ? a + i : 2 - a - i, o *= 60) : c = l > 0 && l < 1 ? 0 : o, new B(o, c, l, e.opacity);
296
+ }
297
+ function z(e, t, n, r) {
298
+ return arguments.length === 1 ? R(e) : new B(e, t, n, r ?? 1);
299
+ }
300
+ function B(e, t, n, r) {
301
+ this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
302
+ }
303
+ a(B, z, o(s, {
304
+ brighter(e) {
305
+ return e = e == null ? l : l ** +e, new B(this.h, this.s, this.l * e, this.opacity);
306
+ },
307
+ darker(e) {
308
+ return e = e == null ? c : c ** +e, new B(this.h, this.s, this.l * e, this.opacity);
309
+ },
310
+ rgb() {
311
+ var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
312
+ return new A(U(e >= 240 ? e - 240 : e + 120, i, r), U(e, i, r), U(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
313
+ },
314
+ clamp() {
315
+ return new B(V(this.h), H(this.s), H(this.l), P(this.opacity));
316
+ },
317
+ displayable() {
318
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
319
+ },
320
+ formatHsl() {
321
+ let e = P(this.opacity);
322
+ return `${e === 1 ? "hsl(" : "hsla("}${V(this.h)}, ${H(this.s) * 100}%, ${H(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
323
+ }
324
+ }));
325
+ function V(e) {
326
+ return e = (e || 0) % 360, e < 0 ? e + 360 : e;
327
+ }
328
+ function H(e) {
329
+ return Math.max(0, Math.min(1, e || 0));
330
+ }
331
+ function U(e, t, n) {
332
+ return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
333
+ }
334
+ //#endregion
335
+ export { c as a, O as c, e as d, T as i, a as l, A as n, z as o, l as r, k as s, s as t, o as u };
@@ -2012,12 +2012,16 @@ var yr = t(_r.css()), br = e`
2012
2012
  appearance: none;
2013
2013
  }
2014
2014
 
2015
- :is(input, select, textarea, div) + small {
2015
+ :is(input, select, textarea, div, label) + small {
2016
2016
  display: block;
2017
2017
  margin-top: 0.3em;
2018
2018
  color: #606060;
2019
2019
  }
2020
2020
 
2021
+ label + small {
2022
+ margin-top: -0.3em;
2023
+ }
2024
+
2021
2025
  :is(input, select, textarea).is-invalid,
2022
2026
  .fake-input.is-invalid {
2023
2027
  border-color: var(--danger-color, #dc3545);
@@ -1,5 +1,5 @@
1
- import { a as e, t, x as n } from "./metadataChannels-fGQOmJj0.js";
2
- import { n as r, t as i } from "./viewIdentityRegistry-CcQdL0Z8.js";
1
+ import { a as e, x as t } from "./viewSelectors-DGCspRN3.js";
2
+ import { i as n, n as r, t as i } from "./viewIdentityRegistry-BUdkK9zT.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) {
@@ -74,7 +74,7 @@ function p(e) {
74
74
  }
75
75
  //#endregion
76
76
  //#region ../core/src/debug/markDebugSnapshot.js
77
- function m(e, n) {
77
+ function m(e, t) {
78
78
  if (!e) return { marks: [] };
79
79
  let r = [];
80
80
  return h(e, (e) => {
@@ -82,7 +82,7 @@ function m(e, n) {
82
82
  if (!i) return;
83
83
  let a = i.getDebugState();
84
84
  r.push({
85
- viewId: n.getDebugId(e),
85
+ viewId: t.getDebugId(e),
86
86
  viewPath: e.getPathString(),
87
87
  type: i.getType(),
88
88
  ready: !!i.isReady(),
@@ -90,7 +90,7 @@ function m(e, n) {
90
90
  markUniformsAltered: a.markUniformsAltered,
91
91
  encodingChannels: Object.keys(i.encoding),
92
92
  encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
93
- searchFields: t(e.getEncoding()) ?? [],
93
+ searchFields: n(e.getEncoding()) ?? [],
94
94
  dataCount: g(e),
95
95
  vertexCount: a.vertexCount,
96
96
  allocatedVertices: a.allocatedVertices,
@@ -220,7 +220,7 @@ function w(e, t) {
220
220
  };
221
221
  }
222
222
  function T(e) {
223
- return n(e) || e.getLayoutAncestors().some(n);
223
+ return t(e) || e.getLayoutAncestors().some(t);
224
224
  }
225
225
  function E(e, t) {
226
226
  return {
@@ -230,15 +230,15 @@ function E(e, t) {
230
230
  }
231
231
  //#endregion
232
232
  //#region ../core/src/debug/viewDebugSnapshot.js
233
- function D(e, t) {
233
+ function D(e, n) {
234
234
  if (!e) return {
235
235
  rootId: void 0,
236
236
  nodes: []
237
237
  };
238
- let i = t.includeChrome ?? !1, a = [], o = (e, s) => {
239
- let c = n(e);
238
+ let i = n.includeChrome ?? !1, a = [], o = (e, s) => {
239
+ let c = t(e);
240
240
  if (c && !i) return;
241
- let l = t.getDebugId(e), u = O(e, l, s, c, t);
241
+ let l = n.getDebugId(e), u = O(e, l, s, c, n);
242
242
  if (a.push(u), e instanceof r) for (let t of e) {
243
243
  let e = o(t, l);
244
244
  e && u.childIds.push(e.id);
@@ -1,4 +1,6 @@
1
- import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-EH5-Noyz.js";
1
+ import { b as e, i as t } from "./viewSelectors-U5oLCLHV.js";
2
+ import { t as n } from "./metadataChannels-DV62inJh.js";
3
+ import { n as r, t as i } from "./viewIdentityRegistry-D3oPbN4O.js";
2
4
  //#region ../core/src/debug/valuePreview.js
3
5
  var a = 3, o = 12, s = 8, c = 160;
4
6
  function l(e, t = 0) {
@@ -73,7 +75,7 @@ function p(e) {
73
75
  }
74
76
  //#endregion
75
77
  //#region ../core/src/debug/markDebugSnapshot.js
76
- function m(e, n) {
78
+ function m(e, t) {
77
79
  if (!e) return { marks: [] };
78
80
  let r = [];
79
81
  return h(e, (e) => {
@@ -81,7 +83,7 @@ function m(e, n) {
81
83
  if (!i) return;
82
84
  let a = i.getDebugState();
83
85
  r.push({
84
- viewId: n.getDebugId(e),
86
+ viewId: t.getDebugId(e),
85
87
  viewPath: e.getPathString(),
86
88
  type: i.getType(),
87
89
  ready: !!i.isReady(),
@@ -89,7 +91,7 @@ function m(e, n) {
89
91
  markUniformsAltered: a.markUniformsAltered,
90
92
  encodingChannels: Object.keys(i.encoding),
91
93
  encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
92
- searchFields: t(e.getEncoding()) ?? [],
94
+ searchFields: n(e.getEncoding()) ?? [],
93
95
  dataCount: g(e),
94
96
  vertexCount: a.vertexCount,
95
97
  allocatedVertices: a.allocatedVertices,
@@ -300,7 +302,7 @@ function j(e) {
300
302
  if (typeof t.getMarkType == "function") return t.getMarkType();
301
303
  }
302
304
  function M(e) {
303
- if (e.explicitName) return n(e);
305
+ if (e.explicitName) return t(e);
304
306
  }
305
307
  function N(e) {
306
308
  let t = e.coords;
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-BzJWWojD.js";
2
+ import { n as i, r as a, t as o } from "./componentStyles-FsNmIb22.js";
3
3
  //#region src/components/generic/baseDialog.js
4
4
  var s = /* @__PURE__ */ new Set([
5
5
  "text",