@vitessce/image-utils 3.5.6 → 3.5.8
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-8571803b.js → deflate-fa8eca5f.js} +1 -1
- package/dist/{index-93bb5c05.js → index-15b29b74.js} +558 -462
- package/dist/index.js +1 -1
- package/dist/{jpeg-0ecb3084.js → jpeg-027ef15c.js} +1 -1
- package/dist/{lerc-ba23f988.js → lerc-20f1f9f7.js} +1 -1
- package/dist/{lzw-10a67c5f.js → lzw-c733cdd2.js} +1 -1
- package/dist/{packbits-e306803f.js → packbits-1632422c.js} +1 -1
- package/dist/{raw-4787e9a9.js → raw-19fc03ba.js} +1 -1
- package/dist/{webimage-2e9db874.js → webimage-5d4ef463.js} +1 -1
- package/dist-tsc/ImageWrapper.js +2 -1
- package/package.json +5 -4
- package/src/ImageWrapper.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -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-15b29b74.js";
|
|
3
3
|
import "react";
|
|
4
4
|
const LercParameters = {
|
|
5
5
|
Version: 0,
|
package/dist-tsc/ImageWrapper.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { coordinateTransformationsToMatrix, getNgffAxes, getNgffAxesForTiff, physicalSizeToMatrix, hexToRgb, getSourceFromLoader, canLoadResolution, getStatsForResolution, isInterleaved as isInterleavedUtil, } from '@vitessce/spatial-utils';
|
|
2
2
|
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
3
|
+
import { log } from '@vitessce/globals';
|
|
3
4
|
/**
|
|
4
5
|
* A wrapper around the Viv loader, to provide a common interface for
|
|
5
6
|
* all image file types.
|
|
@@ -154,7 +155,7 @@ export default class ImageWrapper {
|
|
|
154
155
|
const channelNames = this.getChannelNames();
|
|
155
156
|
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
156
157
|
if (channelIndex === -1) {
|
|
157
|
-
|
|
158
|
+
log.error(`Channel ${channelSpecifier} not found in image.`);
|
|
158
159
|
}
|
|
159
160
|
return channelIndex;
|
|
160
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/image-utils",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.8",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hms-dbmi/viv": "~0.16.0",
|
|
20
|
-
"@vitessce/types": "3.5.
|
|
21
|
-
"@vitessce/spatial-utils": "3.5.
|
|
22
|
-
"@vitessce/utils": "3.5.
|
|
20
|
+
"@vitessce/types": "3.5.8",
|
|
21
|
+
"@vitessce/spatial-utils": "3.5.8",
|
|
22
|
+
"@vitessce/utils": "3.5.8",
|
|
23
|
+
"@vitessce/globals": "3.5.8"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"vite": "^4.3.0",
|
package/src/ImageWrapper.ts
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isInterleaved as isInterleavedUtil,
|
|
20
20
|
} from '@vitessce/spatial-utils';
|
|
21
21
|
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
22
|
-
|
|
22
|
+
import { log } from '@vitessce/globals';
|
|
23
23
|
/**
|
|
24
24
|
* A wrapper around the Viv loader, to provide a common interface for
|
|
25
25
|
* all image file types.
|
|
@@ -260,7 +260,7 @@ export default class ImageWrapper implements AbstractImageWrapper {
|
|
|
260
260
|
const channelNames = this.getChannelNames();
|
|
261
261
|
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
262
262
|
if (channelIndex === -1) {
|
|
263
|
-
|
|
263
|
+
log.error(`Channel ${channelSpecifier} not found in image.`);
|
|
264
264
|
}
|
|
265
265
|
return channelIndex;
|
|
266
266
|
}
|