@vitessce/ome-tiff 4.0.3 → 4.0.4
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-DTEVP_rG.js → deflate-BvKxW_xr.js} +1 -1
- package/dist/{index-DoIS_HTD.js → index-CQ7r181e.js} +27 -8
- package/dist/index.js +1 -1
- package/dist/{jpeg-BT_LZHvf.js → jpeg-BbWvMxS7.js} +1 -1
- package/dist/{lerc-DjBGL13Z.js → lerc-D1s3952-.js} +1 -1
- package/dist/{lzw-s7jEehlR.js → lzw-CMAVLsj6.js} +1 -1
- package/dist/{packbits-CiI17GIG.js → packbits-Dykq6ZJu.js} +1 -1
- package/dist/{raw-CKcSMPsO.js → raw-A54qchNv.js} +1 -1
- package/dist/{webimage-hIYaSYhx.js → webimage-2os33Txg.js} +1 -1
- package/package.json +11 -11
|
@@ -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-CQ7r181e.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -104765,22 +104765,22 @@ async function getDecoder(fileDirectory) {
|
|
|
104765
104765
|
const Decoder = await importFn();
|
|
104766
104766
|
return new Decoder(fileDirectory);
|
|
104767
104767
|
}
|
|
104768
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
104769
|
-
addDecoder(5, () => import("./lzw-
|
|
104768
|
+
addDecoder([void 0, 1], () => import("./raw-A54qchNv.js").then((m) => m.default));
|
|
104769
|
+
addDecoder(5, () => import("./lzw-CMAVLsj6.js").then((m) => m.default));
|
|
104770
104770
|
addDecoder(6, () => {
|
|
104771
104771
|
throw new Error("old style JPEG compression is not supported.");
|
|
104772
104772
|
});
|
|
104773
|
-
addDecoder(7, () => import("./jpeg-
|
|
104774
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
104775
|
-
addDecoder(32773, () => import("./packbits-
|
|
104773
|
+
addDecoder(7, () => import("./jpeg-BbWvMxS7.js").then((m) => m.default));
|
|
104774
|
+
addDecoder([8, 32946], () => import("./deflate-BvKxW_xr.js").then((m) => m.default));
|
|
104775
|
+
addDecoder(32773, () => import("./packbits-Dykq6ZJu.js").then((m) => m.default));
|
|
104776
104776
|
addDecoder(
|
|
104777
104777
|
34887,
|
|
104778
|
-
() => import("./lerc-
|
|
104778
|
+
() => import("./lerc-D1s3952-.js").then(async (m) => {
|
|
104779
104779
|
await m.zstd.init();
|
|
104780
104780
|
return m;
|
|
104781
104781
|
}).then((m) => m.default)
|
|
104782
104782
|
);
|
|
104783
|
-
addDecoder(50001, () => import("./webimage-
|
|
104783
|
+
addDecoder(50001, () => import("./webimage-2os33Txg.js").then((m) => m.default));
|
|
104784
104784
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
104785
104785
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
104786
104786
|
}
|
|
@@ -141814,7 +141814,26 @@ class ImageWrapper {
|
|
|
141814
141814
|
}
|
|
141815
141815
|
return true;
|
|
141816
141816
|
}
|
|
141817
|
-
|
|
141817
|
+
// TODO: make stripPhysicalSizes the default behavior,
|
|
141818
|
+
// and remove it as a parameter, once it is no longer
|
|
141819
|
+
// used by spatial-accelerated and spatial-three.
|
|
141820
|
+
getData(stripPhysicalSizes = true) {
|
|
141821
|
+
if (stripPhysicalSizes) {
|
|
141822
|
+
const { data } = this.vivLoader;
|
|
141823
|
+
const newData = data.map((d) => {
|
|
141824
|
+
if ("meta" in d) {
|
|
141825
|
+
const { meta } = d;
|
|
141826
|
+
if (meta && "physicalSizes" in meta) {
|
|
141827
|
+
const newMeta = { ...meta, physicalSizes: void 0 };
|
|
141828
|
+
const clone2 = Object.create(Object.getPrototypeOf(d));
|
|
141829
|
+
Object.assign(clone2, d, { meta: newMeta });
|
|
141830
|
+
return clone2;
|
|
141831
|
+
}
|
|
141832
|
+
}
|
|
141833
|
+
return d;
|
|
141834
|
+
});
|
|
141835
|
+
return newData;
|
|
141836
|
+
}
|
|
141818
141837
|
return this.vivLoader.data;
|
|
141819
141838
|
}
|
|
141820
141839
|
getModelMatrix() {
|
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, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-CQ7r181e.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/ome-tiff",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"d3-array": "^2.4.0",
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
|
-
"@vitessce/globals": "4.0.
|
|
22
|
-
"@vitessce/error": "4.0.
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/utils": "4.0.
|
|
21
|
+
"@vitessce/globals": "4.0.4",
|
|
22
|
+
"@vitessce/error": "4.0.4",
|
|
23
|
+
"@vitessce/gl": "4.0.4",
|
|
24
|
+
"@vitessce/abstract": "4.0.4",
|
|
25
|
+
"@vitessce/constants-internal": "4.0.4",
|
|
26
|
+
"@vitessce/config": "4.0.4",
|
|
27
|
+
"@vitessce/sets-utils": "4.0.4",
|
|
28
|
+
"@vitessce/spatial-utils": "4.0.4",
|
|
29
|
+
"@vitessce/image-utils": "4.0.4",
|
|
30
|
+
"@vitessce/utils": "4.0.4"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|