@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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I } from "./index-93bb5c05.js";
1
+ import { I } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  export {
4
4
  I as ImageWrapper
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-93bb5c05.js";
1
+ import { B as BaseDecoder } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  const dctZigZag = new Int32Array([
4
4
  0,
@@ -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-93bb5c05.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-15b29b74.js";
3
3
  import "react";
4
4
  const LercParameters = {
5
5
  Version: 0,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-93bb5c05.js";
1
+ import { B as BaseDecoder } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  const MIN_BITS = 9;
4
4
  const CLEAR_CODE = 256;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-93bb5c05.js";
1
+ import { B as BaseDecoder } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  class PackbitsDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-93bb5c05.js";
1
+ import { B as BaseDecoder } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  class RawDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-93bb5c05.js";
1
+ import { B as BaseDecoder } from "./index-15b29b74.js";
2
2
  import "react";
3
3
  class WebImageDecoder extends BaseDecoder {
4
4
  constructor() {
@@ -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
- console.error(`Channel ${channelSpecifier} not found in image.`);
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.6",
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.6",
21
- "@vitessce/spatial-utils": "3.5.6",
22
- "@vitessce/utils": "3.5.6"
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",
@@ -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
- console.error(`Channel ${channelSpecifier} not found in image.`);
263
+ log.error(`Channel ${channelSpecifier} not found in image.`);
264
264
  }
265
265
  return channelIndex;
266
266
  }