@genome-spy/app 0.84.0 → 0.86.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 (62) hide show
  1. package/README.md +28 -0
  2. package/dist/{agentApi-DHXYZVvQ.js → agentApi-DgopQbMV.js} +5804 -7009
  3. package/dist/agentApi.es.js +2823 -2594
  4. package/dist/agentShared.es.js +15 -14
  5. package/dist/canvas2d-8uxuN_vx.js +619 -0
  6. package/dist/canvas2d-BtQC7Xr8.js +619 -0
  7. package/dist/canvasSizeHelper-7h_8rOcx.js +56 -0
  8. package/dist/clipOptions-BQfNhxgP.js +2239 -0
  9. package/dist/clipOptions-taFzEljc.js +2259 -0
  10. package/dist/{debug-aHQsa6hU.js → debug-Bzc3SoRg.js} +8 -8
  11. package/dist/{debug-D6FqxKEj.js → debug-D_VtWQ6l.js} +8 -8
  12. package/dist/{esm-CGLz7idZ.js → esm-BA6yMcc-.js} +438 -434
  13. package/dist/{esm-D8vvQAP3.js → esm-CcDLRSvC.js} +33 -33
  14. package/dist/{esm-BeV56E_5.js → esm-CfYZhLHN.js} +33 -33
  15. package/dist/{esm-DQ3lJSQN.js → esm-JAiZmFIS.js} +1 -1
  16. package/dist/index.es.js +3067 -2987
  17. package/dist/index.js +2030 -2022
  18. package/dist/indexer-qiFctgR3.js +72 -0
  19. package/dist/indexer-qy_dq5l5.js +72 -0
  20. package/dist/layoutResult-D50MSHXR.js +97 -0
  21. package/dist/nativeText-DFV5XIx8.js +860 -0
  22. package/dist/nativeText-vT3AWE14.js +860 -0
  23. package/dist/performanceProfiler-CPLEjApa.js +20 -0
  24. package/dist/rasterExport-B8pVoOsj.js +44 -0
  25. package/dist/rasterExport-C4r4xjQT.js +44 -0
  26. package/dist/rasterImage-B4rPLaW9.js +18 -0
  27. package/dist/rasterization-CFogVB3B.js +50 -0
  28. package/dist/rectangle-DKnrAmKs.js +142 -0
  29. package/dist/renderCanvas2D-BQrRWp2Z.js +271 -0
  30. package/dist/renderCanvas2D-CHVNfIUz.js +271 -0
  31. package/dist/schema.json +1559 -219
  32. package/dist/style.css +1 -1
  33. package/dist/svg-C-Sw6E6G.js +1167 -0
  34. package/dist/svg-CKHwwKRt.js +1167 -0
  35. package/dist/{svgNumber-C6aRPc8Z.js → svgNumber-DNxESJQB.js} +1 -1
  36. package/dist/svgRasterizer-BgD72AmG.js +40 -0
  37. package/dist/svgRasterizer-BgSNqI3L.js +40 -0
  38. package/dist/vega-scale-CK0_al6O.js +2700 -0
  39. package/dist/vega-scale-D46-iCaL.js +2700 -0
  40. package/dist/viewError-BiR9VCgL.js +29 -0
  41. package/dist/{viewIdentityRegistry-Dl7rR4Ay.js → viewIdentityRegistry-B-VGlez1.js} +1 -1
  42. package/dist/{viewIdentityRegistry-AEQpJTDm.js → viewIdentityRegistry-CDtVktJD.js} +1 -1
  43. package/dist/viewSelectors-CKfxF_LM.js +1817 -0
  44. package/dist/viewSelectors-D_imtq5Z.js +1817 -0
  45. package/dist/viewUtils-nCJ7AoaI.js +5782 -0
  46. package/dist/warning-CpIIpk8e.js +7 -0
  47. package/dist/webgl-BaA3jSa2.js +4128 -0
  48. package/dist/webgl-FP-4EsBL.js +4128 -0
  49. package/package.json +7 -6
  50. package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
  51. package/dist/clipOptions-Dqco1p8b.js +0 -377
  52. package/dist/framebufferReadback-Bje9lHb7.js +0 -1993
  53. package/dist/framebufferReadback-CC0D6Haw.js +0 -147
  54. package/dist/raster-9uKYMjHZ.js +0 -53
  55. package/dist/raster-BofBWXbe.js +0 -54
  56. package/dist/svg-CvsT1Y2V.js +0 -1793
  57. package/dist/svg-DRgWfcsL.js +0 -1793
  58. package/dist/twgl-full.module-BNEMlXRV.js +0 -1849
  59. package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
  60. package/dist/viewSelectors-BhW4mTR1.js +0 -6386
  61. package/dist/viewSelectors-Bwzj10Qz.js +0 -6363
  62. package/dist/viewUtils-DMNiWslc.js +0 -7228
@@ -1,120 +0,0 @@
1
- //#region ../core/src/view/layout/rectangle.js
2
- function e(e) {
3
- return () => e;
4
- }
5
- var t = class t {
6
- static create(n, r, i, a) {
7
- return new t(e(n), e(r), e(i), e(a));
8
- }
9
- static ZERO = t.create(0, 0, 0, 0);
10
- _offset(e, t) {
11
- let n = this["_" + e];
12
- if (t === 0) return n;
13
- switch (typeof t) {
14
- case "number": return () => n() + t;
15
- case "function": return () => n() + t();
16
- default: throw Error("Not a number of function");
17
- }
18
- }
19
- _passThrough(e) {
20
- return this._offset(e, 0);
21
- }
22
- constructor(e, t, n, r) {
23
- this._x = e, this._y = t, this._width = n, this._height = r;
24
- }
25
- get x() {
26
- return this._x();
27
- }
28
- get y() {
29
- return this._y();
30
- }
31
- get width() {
32
- return this._width();
33
- }
34
- get height() {
35
- return this._height();
36
- }
37
- get x2() {
38
- return this._x() + this._width();
39
- }
40
- get y2() {
41
- return this._y() + this._height();
42
- }
43
- equals(e) {
44
- return e ? this === e || this.x === e.x && this.y === e.y && this.width === e.width && this.height === e.height : !1;
45
- }
46
- modify(n) {
47
- if (!Object.keys(n).length) return this;
48
- let r = (t) => {
49
- let r = n[t];
50
- return typeof r == "number" ? e(r) : typeof r == "function" ? r : this._passThrough(t);
51
- };
52
- return new t(r("x"), r("y"), r("width"), r("height"));
53
- }
54
- translate(e, n) {
55
- return e === 0 && n === 0 ? this : new t(this._offset("x", e), this._offset("y", n), this._passThrough("width"), this._passThrough("height"));
56
- }
57
- translateBy(e) {
58
- return this.translate(e.x, e.y);
59
- }
60
- expand(e, n = 1) {
61
- return e.left == 0 && e.top == 0 && e.right == 0 && e.bottom == 0 ? this : new t(e.left ? this._offset("x", -e.left * n) : this._passThrough("x"), e.top ? this._offset("y", -e.top * n) : this._passThrough("y"), e.width ? this._offset("width", e.width * n) : this._passThrough("width"), e.height ? this._offset("height", e.height * n) : this._passThrough("height"));
62
- }
63
- shrink(e) {
64
- return this.expand(e, -1);
65
- }
66
- intersect(e) {
67
- return this === e || e == null ? this : new t(() => Math.max(this.x, e.x), () => Math.max(this.y, e.y), () => Math.min(this.x2, e.x2) - Math.max(this.x, e.x), () => Math.min(this.y2, e.y2) - Math.max(this.y, e.y));
68
- }
69
- intersectX(e) {
70
- return this === e || e == null ? this : new t(() => Math.max(this.x, e.x), this._passThrough("y"), () => Math.min(this.x2, e.x2) - Math.max(this.x, e.x), this._passThrough("height"));
71
- }
72
- intersectY(e) {
73
- return this === e || e == null ? this : new t(this._passThrough("x"), () => Math.max(this.y, e.y), this._passThrough("width"), () => Math.min(this.y2, e.y2) - Math.max(this.y, e.y));
74
- }
75
- union(e) {
76
- return this === e || e == null ? this : new t(() => Math.min(this.x, e.x), () => Math.min(this.y, e.y), () => Math.max(this.x2, e.x2) - Math.min(this.x, e.x), () => Math.max(this.y2, e.y2) - Math.min(this.y, e.y));
77
- }
78
- isDefined() {
79
- return this.width >= 0 && this.height >= 0;
80
- }
81
- flatten() {
82
- return new t(e(this.x), e(this.y), e(this.width), e(this.height));
83
- }
84
- containsPoint(e, t) {
85
- return e >= this.x && e < this.x2 && t >= this.y && t < this.y2;
86
- }
87
- normalizePoint(e, t, n = !1) {
88
- let r = {
89
- x: (e - this.x) / this.width,
90
- y: (t - this.y) / this.height
91
- };
92
- return n && (r.y = 1 - r.y), r;
93
- }
94
- denormalizePoint(e, t, n = !1) {
95
- return n && (t = 1 - t), {
96
- x: this.x + e * this.width,
97
- y: this.y + t * this.height
98
- };
99
- }
100
- toString() {
101
- return `Rectangle: x: ${this.x}, y: ${this.y}, width: ${this.width}, height: ${this.height}`;
102
- }
103
- toRoundedString() {
104
- return `Rectangle: x: ${Math.round(this.x)}, y: ${Math.round(this.y)}, width: ${Math.round(this.width)}, height: ${Math.round(this.height)}`;
105
- }
106
- }, n = class {
107
- constructor(e) {
108
- this.globalOptions = e;
109
- }
110
- beginSampleFacetBatch() {}
111
- endSampleFacetBatch() {}
112
- pushView(e, t) {}
113
- popView(e) {}
114
- renderMark(e, t) {}
115
- getDevicePixelRatio() {
116
- return 1;
117
- }
118
- };
119
- //#endregion
120
- export { t as n, n as t };