@vitessce/spatial-utils 3.5.11 → 3.5.12
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/dist/{deflate-d5372581.js → deflate-016629a0.js} +1 -1
- package/dist/{index-5cecf73a.js → index-d69469a9.js} +7 -10
- package/dist/index.js +1 -1
- package/dist/{jpeg-1271c3d4.js → jpeg-e53ed070.js} +1 -1
- package/dist/{lerc-7457d5a3.js → lerc-8bb755c4.js} +1 -1
- package/dist/{lzw-662fbb52.js → lzw-3f280cbb.js} +1 -1
- package/dist/{packbits-25cbe04e.js → packbits-4f66ac8d.js} +1 -1
- package/dist/{raw-7d52f1b0.js → raw-a653b43b.js} +1 -1
- package/dist/{webimage-244abcbd.js → webimage-914786f2.js} +1 -1
- package/dist-tsc/spatial.d.ts.map +1 -1
- package/dist-tsc/spatial.js +5 -4
- package/package.json +6 -6
- package/src/spatial.js +5 -4
|
@@ -125716,16 +125716,16 @@ function addDecoder(cases, importFn) {
|
|
|
125716
125716
|
}
|
|
125717
125717
|
cases.forEach((c) => registry$2.set(c, importFn));
|
|
125718
125718
|
}
|
|
125719
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
125720
|
-
addDecoder(5, () => import("./lzw-
|
|
125719
|
+
addDecoder([void 0, 1], () => import("./raw-a653b43b.js").then((m) => m.default));
|
|
125720
|
+
addDecoder(5, () => import("./lzw-3f280cbb.js").then((m) => m.default));
|
|
125721
125721
|
addDecoder(6, () => {
|
|
125722
125722
|
throw new Error("old style JPEG compression is not supported.");
|
|
125723
125723
|
});
|
|
125724
|
-
addDecoder(7, () => import("./jpeg-
|
|
125725
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
125726
|
-
addDecoder(32773, () => import("./packbits-
|
|
125727
|
-
addDecoder(34887, () => import("./lerc-
|
|
125728
|
-
addDecoder(50001, () => import("./webimage-
|
|
125724
|
+
addDecoder(7, () => import("./jpeg-e53ed070.js").then((m) => m.default));
|
|
125725
|
+
addDecoder([8, 32946], () => import("./deflate-016629a0.js").then((m) => m.default));
|
|
125726
|
+
addDecoder(32773, () => import("./packbits-4f66ac8d.js").then((m) => m.default));
|
|
125727
|
+
addDecoder(34887, () => import("./lerc-8bb755c4.js").then((m) => m.default));
|
|
125728
|
+
addDecoder(50001, () => import("./webimage-914786f2.js").then((m) => m.default));
|
|
125729
125729
|
function decodeRowAcc(row, stride) {
|
|
125730
125730
|
let length2 = row.length - stride;
|
|
125731
125731
|
let offset = 0;
|
|
@@ -140370,9 +140370,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
|
|
|
140370
140370
|
sizes.push(unit(`${zSize} ${zUnit}`.replace("µ", "u")));
|
|
140371
140371
|
}
|
|
140372
140372
|
const scale2 = sizes.map((i2) => divide(i2, unit("1 um")));
|
|
140373
|
-
if (!sizes[0].equals(sizes[1])) {
|
|
140374
|
-
scale2[1] = divide(sizes[1], sizes[0]);
|
|
140375
|
-
}
|
|
140376
140373
|
if (!scale2[2]) {
|
|
140377
140374
|
scale2[2] = 1;
|
|
140378
140375
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, e, a, b, c, d, E, G, Z, A, r, n, C, z, x, l, m, y, w, h, q, u, o, i, f, j, k, t, s, p, v } from "./index-
|
|
1
|
+
import { D, e, a, b, c, d, E, G, Z, A, r, n, C, z, x, l, m, y, w, h, q, u, o, i, f, j, k, t, s, p, v } from "./index-d69469a9.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
D as DEFAULT_CELLS_LAYER,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-d69469a9.js";
|
|
3
3
|
import "react";
|
|
4
4
|
const LercParameters = {
|
|
5
5
|
Version: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;AAoCD;;;;GAIG;AACH,8BAHW,MAAM,YACN,KAAK,GAAC,IAAI,WAiBpB;AAID,
|
|
1
|
+
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;AAoCD;;;;GAIG;AACH,8BAHW,MAAM,YACN,KAAK,GAAC,IAAI,WAiBpB;AAID,sHAmCC;AAiHD;;GAEG;AACH,qCAFW,KAAK,CAAE,MAAM,CAAC,WAKxB;AAED;;;;;;GAMG;AACH,gDALW,MAAM,eAEJ,MAAM,EAAE,CAuCpB;AAED;;;;;;;;;GASG;AACH,gEAJW,MAAM,EAAE,sBAER,CAAC,MAAM,EAAE,GAAC,IAAI,CAAC,+CAuEzB;AASD;;;IAuBC;AAED,uDAQC;AAED;;;;;;;;GAQG;AACH,6EANW,MAAM,EAAE,GAAC,SAAS,QAElB,MAAM,EAAE,GAAC,SAAS,GAEhB,OAAO,CA4CnB;AAED,6CAOC;AAED;;;;;;;;;GASG;AACH,8EANW,MAAM,EAAE,GAAC,SAAS,YAGlB,MAAM,EAAE,GACN,MAAM,EAAE,CAoDpB;AAxfM;;;;;EAYN;AAEM,yEAkBN;wBAnDuB,SAAS"}
|
package/dist-tsc/spatial.js
CHANGED
|
@@ -81,10 +81,11 @@ export function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
|
|
|
81
81
|
const scale = sizes.map(i => divide(i, unit('1 um')));
|
|
82
82
|
// TODO: is this still needed
|
|
83
83
|
// sizes are special objects with own equals method - see `unit` in declaration
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
// This messess the dimensions when the x & y are little different (e.g., for the geomx data)
|
|
85
|
+
// if (!sizes[0].equals(sizes[1])) {
|
|
86
|
+
// // Handle scaling in the Y direction for non-square pixels
|
|
87
|
+
// scale[1] = divide(sizes[1], sizes[0]);
|
|
88
|
+
// }
|
|
88
89
|
// END TODO: is this still needed
|
|
89
90
|
// Add in z dimension needed for Matrix4 scale API.
|
|
90
91
|
if (!scale[2]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/spatial-utils",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.12",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"zarrita": "0.4.0",
|
|
21
21
|
"math.gl": "^3.5.6",
|
|
22
22
|
"mathjs": "^9.2.0",
|
|
23
|
-
"@vitessce/gl": "3.5.
|
|
24
|
-
"@vitessce/utils": "3.5.
|
|
25
|
-
"@vitessce/zarr-utils": "3.5.
|
|
26
|
-
"@vitessce/constants-internal": "3.5.
|
|
27
|
-
"@vitessce/globals": "3.5.
|
|
23
|
+
"@vitessce/gl": "3.5.12",
|
|
24
|
+
"@vitessce/utils": "3.5.12",
|
|
25
|
+
"@vitessce/zarr-utils": "3.5.12",
|
|
26
|
+
"@vitessce/constants-internal": "3.5.12",
|
|
27
|
+
"@vitessce/globals": "3.5.12"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
package/src/spatial.js
CHANGED
|
@@ -95,10 +95,11 @@ export function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
|
|
|
95
95
|
|
|
96
96
|
// TODO: is this still needed
|
|
97
97
|
// sizes are special objects with own equals method - see `unit` in declaration
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
// This messess the dimensions when the x & y are little different (e.g., for the geomx data)
|
|
99
|
+
// if (!sizes[0].equals(sizes[1])) {
|
|
100
|
+
// // Handle scaling in the Y direction for non-square pixels
|
|
101
|
+
// scale[1] = divide(sizes[1], sizes[0]);
|
|
102
|
+
// }
|
|
102
103
|
// END TODO: is this still needed
|
|
103
104
|
|
|
104
105
|
// Add in z dimension needed for Matrix4 scale API.
|