@vitessce/image-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-Dd1C9gct.js → deflate-CesW4_7U.js} +1 -1
- package/dist/{index-vVcGlwOW.js → index-CUn7lHtr.js} +8 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-Cr-xD78T.js → jpeg-BLEmAryV.js} +1 -1
- package/dist/{lerc-CvrT17Yp.js → lerc-CzRlZhg0.js} +1 -1
- package/dist/{lzw-CKdFEosV.js → lzw-DzdLw_wS.js} +1 -1
- package/dist/{packbits-dEr5HOPP.js → packbits-Z3s-3Em7.js} +1 -1
- package/dist/{raw-0Zj-wT7y.js → raw-DjalUaHd.js} +1 -1
- package/dist/{webimage-Bmag3270.js → webimage-CxV5SI--.js} +1 -1
- package/package.json +5 -5
|
@@ -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-CUn7lHtr.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -120227,22 +120227,22 @@ function addDecoder(cases, importFn) {
|
|
|
120227
120227
|
}
|
|
120228
120228
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
120229
120229
|
}
|
|
120230
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
120231
|
-
addDecoder(5, () => import("./lzw-
|
|
120230
|
+
addDecoder([void 0, 1], () => import("./raw-DjalUaHd.js").then((m) => m.default));
|
|
120231
|
+
addDecoder(5, () => import("./lzw-DzdLw_wS.js").then((m) => m.default));
|
|
120232
120232
|
addDecoder(6, () => {
|
|
120233
120233
|
throw new Error("old style JPEG compression is not supported.");
|
|
120234
120234
|
});
|
|
120235
|
-
addDecoder(7, () => import("./jpeg-
|
|
120236
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
120237
|
-
addDecoder(32773, () => import("./packbits-
|
|
120235
|
+
addDecoder(7, () => import("./jpeg-BLEmAryV.js").then((m) => m.default));
|
|
120236
|
+
addDecoder([8, 32946], () => import("./deflate-CesW4_7U.js").then((m) => m.default));
|
|
120237
|
+
addDecoder(32773, () => import("./packbits-Z3s-3Em7.js").then((m) => m.default));
|
|
120238
120238
|
addDecoder(
|
|
120239
120239
|
34887,
|
|
120240
|
-
() => import("./lerc-
|
|
120240
|
+
() => import("./lerc-CzRlZhg0.js").then(async (m) => {
|
|
120241
120241
|
await m.zstd.init();
|
|
120242
120242
|
return m;
|
|
120243
120243
|
}).then((m) => m.default)
|
|
120244
120244
|
);
|
|
120245
|
-
addDecoder(50001, () => import("./webimage-
|
|
120245
|
+
addDecoder(50001, () => import("./webimage-CxV5SI--.js").then((m) => m.default));
|
|
120246
120246
|
function decodeRowAcc(row, stride) {
|
|
120247
120247
|
let length2 = row.length - stride;
|
|
120248
120248
|
let offset = 0;
|
|
@@ -137440,7 +137440,7 @@ const canLoadResolution = (loader, resolution) => {
|
|
|
137440
137440
|
const { totalBytes, height, width, depthDownsampled } = getStatsForResolution(loader, resolution);
|
|
137441
137441
|
const maxHeapSize = ((_a3 = window.performance) == null ? void 0 : _a3.memory) && ((_c = (_b2 = window.performance) == null ? void 0 : _b2.memory) == null ? void 0 : _c.jsHeapSizeLimit) / 2;
|
|
137442
137442
|
const maxSize = maxHeapSize || 2 ** 31 - 1;
|
|
137443
|
-
return totalBytes < maxSize && height <= 2048 &&
|
|
137443
|
+
return totalBytes < maxSize && height <= 2048 && width <= 2048 && depthDownsampled <= 2048;
|
|
137444
137444
|
};
|
|
137445
137445
|
function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
|
|
137446
137446
|
const hasZPhyscialSize = Boolean(zSize) && Boolean(zUnit);
|
package/dist/index.js
CHANGED
|
@@ -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-CUn7lHtr.js";
|
|
3
3
|
const LercParameters = {
|
|
4
4
|
AddCompression: 1
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/image-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": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hms-dbmi/viv": "~0.16.0",
|
|
20
|
-
"@vitessce/types": "3.7.
|
|
21
|
-
"@vitessce/spatial-utils": "3.7.
|
|
22
|
-
"@vitessce/utils": "3.7.
|
|
23
|
-
"@vitessce/globals": "3.7.
|
|
20
|
+
"@vitessce/types": "3.7.1",
|
|
21
|
+
"@vitessce/spatial-utils": "3.7.1",
|
|
22
|
+
"@vitessce/utils": "3.7.1",
|
|
23
|
+
"@vitessce/globals": "3.7.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"vite": "^7.0.0",
|