@vitessce/json 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.
@@ -1 +1 @@
1
- {"version":3,"file":"RasterJsonAsImageLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonAsImageLoader.js"],"names":[],"mappings":"AAGA;IACE;;;;;QAuCC;CACF;yBA3CwB,uBAAuB;6BADE,oBAAoB"}
1
+ {"version":3,"file":"RasterJsonAsImageLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonAsImageLoader.js"],"names":[],"mappings":"AAKA;IACE;;;;;QAuCC;CACF;yBA3CwB,uBAAuB;6BAHE,oBAAoB"}
@@ -1,4 +1,5 @@
1
1
  import { AbstractLoaderError, LoaderResult } from '@vitessce/abstract';
2
+ import { log } from '@vitessce/globals';
2
3
  import RasterLoader from './RasterJsonLoader.js';
3
4
  export default class RasterJsonAsImageLoader extends RasterLoader {
4
5
  async load() {
@@ -18,7 +19,7 @@ export default class RasterJsonAsImageLoader extends RasterLoader {
18
19
  }
19
20
  });
20
21
  if (!coordinationValues?.spatialImageLayer) {
21
- console.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsImageLoader. This may be an indicator that the image could not be loaded.');
22
+ log.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsImageLoader. This may be an indicator that the image could not be loaded.');
22
23
  }
23
24
  return new LoaderResult({
24
25
  image: (loaders.length > 0 && meta.length > 0 ? { loaders, meta } : null),
@@ -1 +1 @@
1
- {"version":3,"file":"RasterJsonAsObsSegmentationsLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonAsObsSegmentationsLoader.js"],"names":[],"mappings":"AAGA;IACE;;;;;;eAwCC;CACF;yBA5CwB,uBAAuB;6BADE,oBAAoB"}
1
+ {"version":3,"file":"RasterJsonAsObsSegmentationsLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonAsObsSegmentationsLoader.js"],"names":[],"mappings":"AAIA;IACE;;;;;;eAwCC;CACF;yBA5CwB,uBAAuB;6BAFE,oBAAoB"}
@@ -1,4 +1,5 @@
1
1
  import { AbstractLoaderError, LoaderResult } from '@vitessce/abstract';
2
+ import { log } from '@vitessce/globals';
2
3
  import RasterLoader from './RasterJsonLoader.js';
3
4
  export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
4
5
  async load() {
@@ -18,7 +19,7 @@ export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
18
19
  }
19
20
  });
20
21
  if (!coordinationValues?.spatialImageLayer) {
21
- console.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.');
22
+ log.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.');
22
23
  }
23
24
  return new LoaderResult((loaders.length > 0 && meta.length > 0 ? ({
24
25
  obsSegmentationsType: 'bitmask',
@@ -1 +1 @@
1
- {"version":3,"file":"RasterJsonLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonLoader.js"],"names":[],"mappings":"AA8HA;IAWE,qBAyCC;IAnBG,oBAIC;CAgBN;uBAtKsB,+BAA+B"}
1
+ {"version":3,"file":"RasterJsonLoader.d.ts","sourceRoot":"","sources":["../../src/raster-json-loaders/RasterJsonLoader.js"],"names":[],"mappings":"AA+HA;IAWE,qBAyCC;IAnBG,oBAIC;CAgBN;uBAtKsB,+BAA+B"}
@@ -1,4 +1,5 @@
1
1
  import { viv } from '@vitessce/gl';
2
+ import { log } from '@vitessce/globals';
2
3
  import { initializeRasterLayersAndChannels, coordinateTransformationsToMatrix, getNgffAxes, loadOmeZarr, guessTileSize, ZarritaPixelSource, } from '@vitessce/spatial-utils';
3
4
  import { open as zarrOpen } from 'zarrita';
4
5
  import { zarrOpenRoot, createZarrArrayAdapter } from '@vitessce/zarr-utils';
@@ -68,7 +69,7 @@ async function initLoader(imageData) {
68
69
  const { metadata: loaderMetadata } = loader;
69
70
  const { omero, multiscales } = loaderMetadata;
70
71
  if (!Array.isArray(multiscales) || multiscales.length === 0) {
71
- console.error('Multiscales array must exist and have at least one element');
72
+ log.error('Multiscales array must exist and have at least one element');
72
73
  }
73
74
  const { coordinateTransformations } = multiscales[0];
74
75
  // Axes in v0.4 format.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/json",
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": {
@@ -18,17 +18,18 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
- "zarrita": "0.4.0-next.16",
21
+ "zarrita": "0.4.0",
22
22
  "zod": "^3.21.4",
23
- "@vitessce/constants-internal": "3.5.6",
24
- "@vitessce/gl": "3.5.6",
25
- "@vitessce/schemas": "3.5.6",
26
- "@vitessce/sets-utils": "3.5.6",
27
- "@vitessce/spatial-utils": "3.5.6",
28
- "@vitessce/utils": "3.5.6",
29
- "@vitessce/abstract": "3.5.6",
30
- "@vitessce/zarr-utils": "3.5.6",
31
- "@vitessce/config": "3.5.6"
23
+ "@vitessce/constants-internal": "3.5.8",
24
+ "@vitessce/gl": "3.5.8",
25
+ "@vitessce/globals": "3.5.8",
26
+ "@vitessce/schemas": "3.5.8",
27
+ "@vitessce/sets-utils": "3.5.8",
28
+ "@vitessce/spatial-utils": "3.5.8",
29
+ "@vitessce/utils": "3.5.8",
30
+ "@vitessce/abstract": "3.5.8",
31
+ "@vitessce/zarr-utils": "3.5.8",
32
+ "@vitessce/config": "3.5.8"
32
33
  },
33
34
  "scripts": {
34
35
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
@@ -1,4 +1,6 @@
1
1
  import { AbstractLoaderError, LoaderResult } from '@vitessce/abstract';
2
+ import { log } from '@vitessce/globals';
3
+
2
4
  import RasterLoader from './RasterJsonLoader.js';
3
5
 
4
6
  export default class RasterJsonAsImageLoader extends RasterLoader {
@@ -22,7 +24,7 @@ export default class RasterJsonAsImageLoader extends RasterLoader {
22
24
  });
23
25
 
24
26
  if (!coordinationValues?.spatialImageLayer) {
25
- console.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsImageLoader. This may be an indicator that the image could not be loaded.');
27
+ log.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsImageLoader. This may be an indicator that the image could not be loaded.');
26
28
  }
27
29
 
28
30
  return new LoaderResult(
@@ -1,4 +1,5 @@
1
1
  import { AbstractLoaderError, LoaderResult } from '@vitessce/abstract';
2
+ import { log } from '@vitessce/globals';
2
3
  import RasterLoader from './RasterJsonLoader.js';
3
4
 
4
5
  export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
@@ -22,7 +23,7 @@ export default class RasterJsonAsObsSegmentationsLoader extends RasterLoader {
22
23
  });
23
24
 
24
25
  if (!coordinationValues?.spatialImageLayer) {
25
- console.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.');
26
+ log.warn('Could not initialize coordinationValues.spatialImageLayer in RasterJsonAsObsSegmentationsLoader. This may be an indicator that the image could not be loaded.');
26
27
  }
27
28
 
28
29
  return new LoaderResult(
@@ -1,4 +1,5 @@
1
1
  import { viv } from '@vitessce/gl';
2
+ import { log } from '@vitessce/globals';
2
3
  import {
3
4
  initializeRasterLayersAndChannels,
4
5
  coordinateTransformationsToMatrix,
@@ -87,7 +88,7 @@ async function initLoader(imageData) {
87
88
  const { omero, multiscales } = loaderMetadata;
88
89
 
89
90
  if (!Array.isArray(multiscales) || multiscales.length === 0) {
90
- console.error('Multiscales array must exist and have at least one element');
91
+ log.error('Multiscales array must exist and have at least one element');
91
92
  }
92
93
  const { coordinateTransformations } = multiscales[0];
93
94