@genome-spy/app 0.85.0 → 0.87.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/README.md +28 -0
- package/dist/{agentApi-Cz0hCnVp.js → agentApi-BZ1JCo1N.js} +7174 -8484
- package/dist/agentApi.es.js +3312 -3575
- package/dist/agentShared.es.js +14 -13
- package/dist/canvas2d-B_PnIof-.js +620 -0
- package/dist/canvas2d-Cafq5v-N.js +620 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-D6eh9T-_.js} +1060 -634
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-H68pJyEZ.js} +940 -514
- package/dist/{debug-CgDtmspT.js → debug-BGzgZmyk.js} +8 -8
- package/dist/{debug-BvCZWumf.js → debug-UYKZLNh4.js} +8 -8
- package/dist/index.es.js +2983 -2916
- package/dist/index.js +2006 -1997
- package/dist/indexer-Di57GyxX.js +72 -0
- package/dist/indexer-o6Hpg4nN.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/nativeText-D9SoxpaD.js +934 -0
- package/dist/nativeText-DAjvkrzc.js +934 -0
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-DzldLv6E.js +44 -0
- package/dist/rasterExport-IAbJwi8F.js +44 -0
- package/dist/rasterImage-B4rPLaW9.js +18 -0
- package/dist/rasterization-CFogVB3B.js +50 -0
- package/dist/rectangle-DKnrAmKs.js +142 -0
- package/dist/renderCanvas2D-BJ93Ptqj.js +277 -0
- package/dist/renderCanvas2D-yJ1IrDcX.js +277 -0
- package/dist/schema.json +11685 -4428
- package/dist/{svg-yFj875aX.js → svg-BRpl2Xub.js} +412 -449
- package/dist/{svg-CCu8kYy2.js → svg-DJuqHIyc.js} +399 -436
- package/dist/svgRasterizer-CGZQ5njV.js +40 -0
- package/dist/svgRasterizer-PAoqLn1j.js +40 -0
- package/dist/vega-scale-BGC53c22.js +2403 -0
- package/dist/vega-scale-DdW2NzQ3.js +2403 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-BUdkK9zT.js → viewIdentityRegistry-D4p067HU.js} +1 -1
- package/dist/{viewIdentityRegistry-D3oPbN4O.js → viewIdentityRegistry-Dc2hXYsO.js} +1 -1
- package/dist/viewSelectors-DNXnGwEW.js +2015 -0
- package/dist/viewSelectors-DYYlOt91.js +2015 -0
- package/dist/viewUtils-EdhZTPrJ.js +6448 -0
- package/dist/webgl-C53DwzVT.js +4127 -0
- package/dist/webgl-CdgNFlJk.js +4127 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/canvas2d-DoAXEiF9.js +0 -309
- package/dist/canvas2d-f5jl4A5D.js +0 -310
- package/dist/clipOptions-gqdb3fvW.js +0 -43
- package/dist/color-W5zffv-z.js +0 -335
- package/dist/framebufferReadback-CCLOjStu.js +0 -148
- package/dist/framebufferReadback-THWwFqs8.js +0 -1994
- package/dist/nativeText-DMO8gLt7.js +0 -806
- package/dist/nativeText-m5AUINMq.js +0 -806
- package/dist/twgl-full.module-DB2UdP1k.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-DGCspRN3.js +0 -4198
- package/dist/viewSelectors-U5oLCLHV.js +0 -4195
- package/dist/viewUtils-Dg4RA40Q.js +0 -7503
- package/dist/warning-DRGdb6BF.js +0 -59
- package/dist/webgl-Ci6ZhCCf.js +0 -54
- package/dist/webgl-Dpz8a3TI.js +0 -53
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as e } from "./rasterization-CFogVB3B.js";
|
|
2
|
+
import { t } from "./rectangle-DKnrAmKs.js";
|
|
3
|
+
import { t as n } from "./layoutResult-D50MSHXR.js";
|
|
4
|
+
import { t as r } from "./renderCanvas2D-yJ1IrDcX.js";
|
|
5
|
+
import { n as i, t as a } from "./rasterImage-B4rPLaW9.js";
|
|
6
|
+
//#region ../core/src/rendering/canvas2d/svgRasterizer.js
|
|
7
|
+
function o() {
|
|
8
|
+
let o, s, c, l;
|
|
9
|
+
try {
|
|
10
|
+
o = document.createElement("canvas"), s = o.getContext("2d"), c = document.createElement("canvas"), l = c.getContext("2d");
|
|
11
|
+
} catch (t) {
|
|
12
|
+
throw new e("Unable to initialize Canvas2D SVG rasterization contexts.", { cause: t });
|
|
13
|
+
}
|
|
14
|
+
if (!s || !l) throw new e("Unable to initialize Canvas2D SVG rasterization contexts.");
|
|
15
|
+
return (e) => {
|
|
16
|
+
let u = Math.ceil(e.logicalWidth * e.pixelRatio), d = Math.ceil(e.logicalHeight * e.pixelRatio), f = [];
|
|
17
|
+
o.width = u, o.height = d;
|
|
18
|
+
let p = e.pixelRatio == 1 && e.layoutResult ? e.layoutResult : n(e.viewRoot, t.create(0, 0, e.logicalWidth, e.logicalHeight), {
|
|
19
|
+
devicePixelRatio: e.pixelRatio,
|
|
20
|
+
renderingOptions: { firstFacet: !0 }
|
|
21
|
+
});
|
|
22
|
+
for (let t of e.runs) {
|
|
23
|
+
r({
|
|
24
|
+
layoutResult: p,
|
|
25
|
+
context: s,
|
|
26
|
+
width: e.logicalWidth,
|
|
27
|
+
height: e.logicalHeight,
|
|
28
|
+
devicePixelRatio: e.pixelRatio,
|
|
29
|
+
background: null,
|
|
30
|
+
paint: !0,
|
|
31
|
+
markPredicate: (e) => t.marks.has(e),
|
|
32
|
+
opacityLayers: f
|
|
33
|
+
});
|
|
34
|
+
let n = a(t.bounds, e.pixelRatio, u, d);
|
|
35
|
+
c.width = n.width, c.height = n.height, l.resetTransform(), l.clearRect(0, 0, n.width, n.height), l.drawImage(o, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height), i(t, n, e.pixelRatio, c.toDataURL("image/png"));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { o as createCanvas2DSvgRasterizer };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { t as e } from "./rasterization-CFogVB3B.js";
|
|
2
|
+
import { t } from "./rectangle-DKnrAmKs.js";
|
|
3
|
+
import { t as n } from "./layoutResult-D50MSHXR.js";
|
|
4
|
+
import { t as r } from "./renderCanvas2D-BJ93Ptqj.js";
|
|
5
|
+
import { n as i, t as a } from "./rasterImage-B4rPLaW9.js";
|
|
6
|
+
//#region ../core/src/rendering/canvas2d/svgRasterizer.js
|
|
7
|
+
function o() {
|
|
8
|
+
let o, s, c, l;
|
|
9
|
+
try {
|
|
10
|
+
o = document.createElement("canvas"), s = o.getContext("2d"), c = document.createElement("canvas"), l = c.getContext("2d");
|
|
11
|
+
} catch (t) {
|
|
12
|
+
throw new e("Unable to initialize Canvas2D SVG rasterization contexts.", { cause: t });
|
|
13
|
+
}
|
|
14
|
+
if (!s || !l) throw new e("Unable to initialize Canvas2D SVG rasterization contexts.");
|
|
15
|
+
return (e) => {
|
|
16
|
+
let u = Math.ceil(e.logicalWidth * e.pixelRatio), d = Math.ceil(e.logicalHeight * e.pixelRatio), f = [];
|
|
17
|
+
o.width = u, o.height = d;
|
|
18
|
+
let p = e.pixelRatio == 1 && e.layoutResult ? e.layoutResult : n(e.viewRoot, t.create(0, 0, e.logicalWidth, e.logicalHeight), {
|
|
19
|
+
devicePixelRatio: e.pixelRatio,
|
|
20
|
+
renderingOptions: { firstFacet: !0 }
|
|
21
|
+
});
|
|
22
|
+
for (let t of e.runs) {
|
|
23
|
+
r({
|
|
24
|
+
layoutResult: p,
|
|
25
|
+
context: s,
|
|
26
|
+
width: e.logicalWidth,
|
|
27
|
+
height: e.logicalHeight,
|
|
28
|
+
devicePixelRatio: e.pixelRatio,
|
|
29
|
+
background: null,
|
|
30
|
+
paint: !0,
|
|
31
|
+
markPredicate: (e) => t.marks.has(e),
|
|
32
|
+
opacityLayers: f
|
|
33
|
+
});
|
|
34
|
+
let n = a(t.bounds, e.pixelRatio, u, d);
|
|
35
|
+
c.width = n.width, c.height = n.height, l.resetTransform(), l.clearRect(0, 0, n.width, n.height), l.drawImage(o, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height), i(t, n, e.pixelRatio, c.toDataURL("image/png"));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { o as createCanvas2DSvgRasterizer };
|