@vitessce/spatial-utils 3.7.0 → 3.7.1
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-BfpHzB-E.js → deflate-ldFkItxC.js} +1 -1
- package/dist/{index-CBSvaLO6.js → index-BG1V_H-C.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-4MwzTqe4.js → jpeg-BbjFORMl.js} +1 -1
- package/dist/{lerc-CewuM7hX.js → lerc-BuRW-ikH.js} +1 -1
- package/dist/{lzw-DKnbTiWI.js → lzw-CR842oo8.js} +1 -1
- package/dist/{packbits-sLzL54X2.js → packbits-d5Chjmu1.js} +1 -1
- package/dist/{raw-DhyvnYlB.js → raw-DYD4ffWY.js} +1 -1
- package/dist/{webimage-BV-EwN7e.js → webimage-BzeeSDvF.js} +1 -1
- package/dist-tsc/spatial.d.ts.map +1 -1
- package/dist-tsc/spatial.js +1 -2
- package/package.json +7 -7
- package/src/spatial.js +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-BG1V_H-C.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -120352,22 +120352,22 @@ function addDecoder(cases, importFn) {
|
|
|
120352
120352
|
}
|
|
120353
120353
|
cases.forEach((c) => registry$2.set(c, importFn));
|
|
120354
120354
|
}
|
|
120355
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
120356
|
-
addDecoder(5, () => import("./lzw-
|
|
120355
|
+
addDecoder([void 0, 1], () => import("./raw-DYD4ffWY.js").then((m) => m.default));
|
|
120356
|
+
addDecoder(5, () => import("./lzw-CR842oo8.js").then((m) => m.default));
|
|
120357
120357
|
addDecoder(6, () => {
|
|
120358
120358
|
throw new Error("old style JPEG compression is not supported.");
|
|
120359
120359
|
});
|
|
120360
|
-
addDecoder(7, () => import("./jpeg-
|
|
120361
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
120362
|
-
addDecoder(32773, () => import("./packbits-
|
|
120360
|
+
addDecoder(7, () => import("./jpeg-BbjFORMl.js").then((m) => m.default));
|
|
120361
|
+
addDecoder([8, 32946], () => import("./deflate-ldFkItxC.js").then((m) => m.default));
|
|
120362
|
+
addDecoder(32773, () => import("./packbits-d5Chjmu1.js").then((m) => m.default));
|
|
120363
120363
|
addDecoder(
|
|
120364
120364
|
34887,
|
|
120365
|
-
() => import("./lerc-
|
|
120365
|
+
() => import("./lerc-BuRW-ikH.js").then(async (m) => {
|
|
120366
120366
|
await m.zstd.init();
|
|
120367
120367
|
return m;
|
|
120368
120368
|
}).then((m) => m.default)
|
|
120369
120369
|
);
|
|
120370
|
-
addDecoder(50001, () => import("./webimage-
|
|
120370
|
+
addDecoder(50001, () => import("./webimage-BzeeSDvF.js").then((m) => m.default));
|
|
120371
120371
|
function decodeRowAcc(row, stride) {
|
|
120372
120372
|
let length2 = row.length - stride;
|
|
120373
120373
|
let offset = 0;
|
|
@@ -137834,7 +137834,7 @@ const canLoadResolution = (loader, resolution) => {
|
|
|
137834
137834
|
);
|
|
137835
137835
|
const maxHeapSize = window.performance?.memory && window.performance?.memory?.jsHeapSizeLimit / 2;
|
|
137836
137836
|
const maxSize = maxHeapSize || 2 ** 31 - 1;
|
|
137837
|
-
return totalBytes < maxSize && height <= 2048 &&
|
|
137837
|
+
return totalBytes < maxSize && height <= 2048 && width <= 2048 && depthDownsampled <= 2048;
|
|
137838
137838
|
};
|
|
137839
137839
|
function isRgb(loader, channels2) {
|
|
137840
137840
|
const source = getSourceFromLoader(loader);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-
|
|
1
|
+
import { D, e, a, b, c, d, H, G, Z, E, s, n, o, F, C, z, l, m, A, y, h, r, w, q, i, f, j, k, v, u, t, p, x } from "./index-BG1V_H-C.js";
|
|
2
2
|
export {
|
|
3
3
|
D as DEFAULT_CELLS_LAYER,
|
|
4
4
|
e as DEFAULT_LAYER_TYPE_ORDERING,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BG1V_H-C.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;
|
|
1
|
+
{"version":3,"file":"spatial.d.ts","sourceRoot":"","sources":["../src/spatial.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,4CAJW,MAAM,SACN,MAAM,GAAG,SAAS,GAChB,MAAM,CAMlB;AAmCD;;;;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;;;;;;GAMG;AACH,6CAJW,CAAC,GAAG,GAAC,GAAG,GAAC,GAAG,CAAC,EAAE,cACf,CAAC,GAAG,GAAC,GAAG,GAAC,GAAG,CAAC,EAAE,GACd,MAAM,EAAE,EAAE,CA6BrB;AAED;;;;;;;;GAQG;AACH,6EANW,MAAM,EAAE,GAAC,SAAS,QAElB,MAAM,EAAE,GAAC,SAAS,GAEhB,OAAO,CAiHnB;AAED,6CAOC;AAMD,8CASC;AAED,iEAKC;AAGD;;;;;;;;;GASG;AACH,8EANW,MAAM,EAAE,GAAC,SAAS,YAGlB,MAAM,EAAE,GACN,MAAM,EAAE,CA4CpB;AAED;;;;;;;;;;;;;;GAcG;AACH,8EAVW;IACV,GAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAC;IACrE,yBAA4B,CAAC,EAAE,MAAM,EAAE,CAAC;IACxC,QAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,0BAEO,MAAM,GACJ,OAAO,CA2CnB;AAxqBM;;;;;EAYN;AAEM,yEAiBN;wBApDuB,SAAS"}
|
package/dist-tsc/spatial.js
CHANGED
|
@@ -39,9 +39,8 @@ export const canLoadResolution = (loader, resolution) => {
|
|
|
39
39
|
// 2048 is a normal texture size limit although some browsers go larger.
|
|
40
40
|
return (totalBytes < maxSize
|
|
41
41
|
&& height <= 2048
|
|
42
|
-
&& depthDownsampled <= 2048
|
|
43
42
|
&& width <= 2048
|
|
44
|
-
&& depthDownsampled
|
|
43
|
+
&& depthDownsampled <= 2048);
|
|
45
44
|
};
|
|
46
45
|
/**
|
|
47
46
|
* Helper method to determine whether pixel data is interleaved and rgb or not.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/spatial-utils",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"math.gl": "^3.5.6",
|
|
22
22
|
"mathjs": "^9.2.0",
|
|
23
23
|
"internmap": "^2.0.3",
|
|
24
|
-
"@vitessce/gl": "3.7.
|
|
25
|
-
"@vitessce/utils": "3.7.
|
|
26
|
-
"@vitessce/zarr-utils": "3.7.
|
|
27
|
-
"@vitessce/constants-internal": "3.7.
|
|
28
|
-
"@vitessce/globals": "3.7.
|
|
29
|
-
"@vitessce/error": "3.7.
|
|
24
|
+
"@vitessce/gl": "3.7.1",
|
|
25
|
+
"@vitessce/utils": "3.7.1",
|
|
26
|
+
"@vitessce/zarr-utils": "3.7.1",
|
|
27
|
+
"@vitessce/constants-internal": "3.7.1",
|
|
28
|
+
"@vitessce/globals": "3.7.1",
|
|
29
|
+
"@vitessce/error": "3.7.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|
package/src/spatial.js
CHANGED