@vitessce/spatial-utils 3.5.10 → 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-3a3dd9af.js → deflate-016629a0.js} +1 -1
- package/dist/{index-8c2c6fcf.js → index-d69469a9.js} +16 -12
- package/dist/index.js +1 -1
- package/dist/{jpeg-e796db3c.js → jpeg-e53ed070.js} +1 -1
- package/dist/{lerc-2a9be36c.js → lerc-8bb755c4.js} +1 -1
- package/dist/{lzw-b5e40415.js → lzw-3f280cbb.js} +1 -1
- package/dist/{packbits-277eb59e.js → packbits-4f66ac8d.js} +1 -1
- package/dist/{raw-3781811e.js → raw-a653b43b.js} +1 -1
- package/dist/{webimage-92bb7c8d.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
|
@@ -124530,8 +124530,15 @@ class SelectionLayer extends CompositeLayer {
|
|
|
124530
124530
|
if (!nodePolygonContainsSelectedPolygon && !nodePolygonWithinSelectedPolygon && !nodePolygonOverlapsSelectedPolgyon) {
|
|
124531
124531
|
return true;
|
|
124532
124532
|
}
|
|
124533
|
-
if (node2.data
|
|
124534
|
-
|
|
124533
|
+
if (node2.data) {
|
|
124534
|
+
let current = node2;
|
|
124535
|
+
while (current) {
|
|
124536
|
+
const pointCoords = [].slice.call(getObsCoords(current.data));
|
|
124537
|
+
if (booleanPointInPolygon$1(point$1(pointCoords), selectedPolygon)) {
|
|
124538
|
+
pickingInfos.push(current.data);
|
|
124539
|
+
}
|
|
124540
|
+
current = current.next;
|
|
124541
|
+
}
|
|
124535
124542
|
}
|
|
124536
124543
|
return false;
|
|
124537
124544
|
});
|
|
@@ -125709,16 +125716,16 @@ function addDecoder(cases, importFn) {
|
|
|
125709
125716
|
}
|
|
125710
125717
|
cases.forEach((c) => registry$2.set(c, importFn));
|
|
125711
125718
|
}
|
|
125712
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
125713
|
-
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));
|
|
125714
125721
|
addDecoder(6, () => {
|
|
125715
125722
|
throw new Error("old style JPEG compression is not supported.");
|
|
125716
125723
|
});
|
|
125717
|
-
addDecoder(7, () => import("./jpeg-
|
|
125718
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
125719
|
-
addDecoder(32773, () => import("./packbits-
|
|
125720
|
-
addDecoder(34887, () => import("./lerc-
|
|
125721
|
-
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));
|
|
125722
125729
|
function decodeRowAcc(row, stride) {
|
|
125723
125730
|
let length2 = row.length - stride;
|
|
125724
125731
|
let offset = 0;
|
|
@@ -140363,9 +140370,6 @@ function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
|
|
|
140363
140370
|
sizes.push(unit(`${zSize} ${zUnit}`.replace("µ", "u")));
|
|
140364
140371
|
}
|
|
140365
140372
|
const scale2 = sizes.map((i2) => divide(i2, unit("1 um")));
|
|
140366
|
-
if (!sizes[0].equals(sizes[1])) {
|
|
140367
|
-
scale2[1] = divide(sizes[1], sizes[0]);
|
|
140368
|
-
}
|
|
140369
140373
|
if (!scale2[2]) {
|
|
140370
140374
|
scale2[2] = 1;
|
|
140371
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.
|