@vitessce/spatial-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.
@@ -3,6 +3,7 @@ import { Matrix4 } from 'math.gl';
3
3
  import { divide, compare, unit } from 'mathjs';
4
4
  import { VIEWER_PALETTE } from '@vitessce/utils';
5
5
  import { GLOBAL_LABELS, DEFAULT_RASTER_LAYER_PROPS } from '@vitessce/constants-internal';
6
+ import { log } from '@vitessce/globals';
6
7
  import { getMultiSelectionStats } from './layer-controller.js';
7
8
  /**
8
9
  * Get a representative PixelSource from a loader object returned from
@@ -448,7 +449,7 @@ export function normalizeCoordinateTransformations(coordinateTransformations, da
448
449
  if (type === 'sequence') {
449
450
  return normalizeCoordinateTransformations(transform.transformations, datasets);
450
451
  }
451
- console.warn(`Coordinate transformation type "${type}" is not supported.`);
452
+ log.warn(`Coordinate transformation type "${type}" is not supported.`);
452
453
  }
453
454
  // Assume it was already an old-style (NGFF v0.4) coordinate transformation.
454
455
  return transform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/spatial-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,13 +17,14 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "lodash-es": "^4.17.21",
20
- "zarrita": "0.4.0-next.16",
20
+ "zarrita": "0.4.0",
21
21
  "math.gl": "^3.5.6",
22
22
  "mathjs": "^9.2.0",
23
- "@vitessce/gl": "3.5.6",
24
- "@vitessce/utils": "3.5.6",
25
- "@vitessce/zarr-utils": "3.5.6",
26
- "@vitessce/constants-internal": "3.5.6"
23
+ "@vitessce/gl": "3.5.8",
24
+ "@vitessce/utils": "3.5.8",
25
+ "@vitessce/zarr-utils": "3.5.8",
26
+ "@vitessce/constants-internal": "3.5.8",
27
+ "@vitessce/globals": "3.5.8"
27
28
  },
28
29
  "scripts": {
29
30
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
package/src/spatial.js CHANGED
@@ -3,8 +3,8 @@ import { Matrix4 } from 'math.gl';
3
3
  import { divide, compare, unit } from 'mathjs';
4
4
  import { VIEWER_PALETTE } from '@vitessce/utils';
5
5
  import { GLOBAL_LABELS, DEFAULT_RASTER_LAYER_PROPS } from '@vitessce/constants-internal';
6
+ import { log } from '@vitessce/globals';
6
7
  import { getMultiSelectionStats } from './layer-controller.js';
7
-
8
8
  /**
9
9
  * Get a representative PixelSource from a loader object returned from
10
10
  * the Vitessce imaging loaders
@@ -500,7 +500,7 @@ export function normalizeCoordinateTransformations(coordinateTransformations, da
500
500
  if (type === 'sequence') {
501
501
  return normalizeCoordinateTransformations(transform.transformations, datasets);
502
502
  }
503
- console.warn(`Coordinate transformation type "${type}" is not supported.`);
503
+ log.warn(`Coordinate transformation type "${type}" is not supported.`);
504
504
  }
505
505
  // Assume it was already an old-style (NGFF v0.4) coordinate transformation.
506
506
  return transform;