@vitessce/vit-s 3.9.4 → 3.9.6

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.
Files changed (2) hide show
  1. package/dist/index.js +41 -9
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -33975,6 +33975,7 @@ const FileType$1 = {
33975
33975
  // Neuroglancer
33976
33976
  // Precomputed (mesh) format
33977
33977
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
33978
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
33978
33979
  // New file types to support old file types:
33979
33980
  // - cells.json
33980
33981
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -34208,6 +34209,7 @@ const STATUS = {
34208
34209
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
34209
34210
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
34210
34211
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
34212
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
34211
34213
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
34212
34214
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
34213
34215
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
@@ -34427,6 +34429,8 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34427
34429
  ];
34428
34430
  ({
34429
34431
  [ViewType$1.NEUROGLANCER]: [
34432
+ CoordinationType$1.META_COORDINATION_SCOPES,
34433
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
34430
34434
  CoordinationType$1.DATASET,
34431
34435
  CoordinationType$1.SPATIAL_TARGET_X,
34432
34436
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -34448,7 +34452,26 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
34448
34452
  CoordinationType$1.OBS_COLOR_ENCODING,
34449
34453
  CoordinationType$1.EMBEDDING_TYPE,
34450
34454
  CoordinationType$1.ADDITIONAL_OBS_SETS,
34451
- CoordinationType$1.TOOLTIPS_VISIBLE
34455
+ CoordinationType$1.TOOLTIPS_VISIBLE,
34456
+ CoordinationType$1.FILE_UID,
34457
+ CoordinationType$1.IMAGE_LAYER,
34458
+ CoordinationType$1.SEGMENTATION_LAYER,
34459
+ CoordinationType$1.IMAGE_CHANNEL,
34460
+ CoordinationType$1.SEGMENTATION_CHANNEL,
34461
+ CoordinationType$1.POINT_LAYER,
34462
+ CoordinationType$1.FEATURE_COLOR,
34463
+ CoordinationType$1.FEATURE_FILTER_MODE,
34464
+ CoordinationType$1.FEATURE_HIGHLIGHT,
34465
+ CoordinationType$1.FEATURE_SELECTION,
34466
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
34467
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
34468
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
34469
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
34470
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
34471
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
34472
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
34473
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
34474
+ CoordinationType$1.LEGEND_VISIBLE
34452
34475
  ],
34453
34476
  [ViewType$1.SCATTERPLOT]: [
34454
34477
  CoordinationType$1.DATASET,
@@ -35086,7 +35109,7 @@ const AUTO_INDEPENDENT_COORDINATION_TYPES = [
35086
35109
  CoordinationType$1.HIERARCHY_LEVELS
35087
35110
  ]
35088
35111
  });
35089
- const version = "3.9.4";
35112
+ const version = "3.9.6";
35090
35113
  const META_VERSION = {
35091
35114
  version
35092
35115
  };
@@ -35567,14 +35590,23 @@ z.object({
35567
35590
  z.object({
35568
35591
  // TODO: Should this explicitly specify sharded vs. unsharded?
35569
35592
  // Or can/should that be inferred from the data?
35570
- dimensionX: z.number(),
35571
- dimensionY: z.number(),
35572
- dimensionZ: z.number(),
35573
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
35593
+ // Note: None of these make sense to specify at the file level, since they
35594
+ // are global camera settings that would apply to all layers.
35595
+ // Intead, initial values should be set via the usual coordination space mechanism,
35596
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
35597
+ // dimensionX: z.number(),
35598
+ // dimensionY: z.number(),
35599
+ // dimensionZ: z.number(),
35600
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
35574
35601
  // TODO: should the following be passed via coordination types instead?
35575
- projectionScale: z.number(),
35576
- position: z.array(z.number()).length(3),
35577
- projectionOrientation: z.array(z.number()).length(4)
35602
+ // projectionScale: z.number(),
35603
+ // position: z.array(z.number()).length(3),
35604
+ // projectionOrientation: z.array(z.number()).length(4),
35605
+ }).partial().nullable();
35606
+ z.object({
35607
+ projectionAnnotationSpacing: z.number(),
35608
+ featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
35609
+ pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code.")
35578
35610
  }).partial().nullable();
35579
35611
  z.object({
35580
35612
  obsIndex: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vit-s",
3
- "version": "3.9.4",
3
+ "version": "3.9.6",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -31,17 +31,17 @@
31
31
  "react-error-boundary": "^5.0.0",
32
32
  "@placemarkio/flat-drop-files": "^1.0.2",
33
33
  "zarrita": "0.6.1",
34
- "@vitessce/styles": "3.9.4",
35
- "@vitessce/constants-internal": "3.9.4",
36
- "@vitessce/error": "3.9.4",
37
- "@vitessce/plugins": "3.9.4",
38
- "@vitessce/schemas": "3.9.4",
39
- "@vitessce/utils": "3.9.4",
40
- "@vitessce/sets-utils": "3.9.4",
41
- "@vitessce/abstract": "3.9.4",
42
- "@vitessce/zarr-utils": "3.9.4",
43
- "@vitessce/globals": "3.9.4",
44
- "@vitessce/config": "3.9.4"
34
+ "@vitessce/styles": "3.9.6",
35
+ "@vitessce/error": "3.9.6",
36
+ "@vitessce/abstract": "3.9.6",
37
+ "@vitessce/plugins": "3.9.6",
38
+ "@vitessce/constants-internal": "3.9.6",
39
+ "@vitessce/schemas": "3.9.6",
40
+ "@vitessce/utils": "3.9.6",
41
+ "@vitessce/sets-utils": "3.9.6",
42
+ "@vitessce/zarr-utils": "3.9.6",
43
+ "@vitessce/config": "3.9.6",
44
+ "@vitessce/globals": "3.9.6"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/jest-dom": "^6.6.3",
@@ -50,7 +50,7 @@
50
50
  "react-dom": "18.3.1",
51
51
  "vite": "^7.0.0",
52
52
  "vitest": "^3.1.4",
53
- "@vitessce/types": "3.9.4"
53
+ "@vitessce/types": "3.9.6"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"