@vitessce/vega 3.9.5 → 3.9.7

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 +40 -8
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -52603,6 +52603,7 @@ const FileType$1 = {
52603
52603
  // Neuroglancer
52604
52604
  // Precomputed (mesh) format
52605
52605
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
52606
+ OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
52606
52607
  // New file types to support old file types:
52607
52608
  // - cells.json
52608
52609
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -52831,6 +52832,7 @@ const CoordinationType$1 = {
52831
52832
  [FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
52832
52833
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
52833
52834
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
52835
+ [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
52834
52836
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
52835
52837
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
52836
52838
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
@@ -53050,6 +53052,8 @@ const CoordinationType$1 = {
53050
53052
  ];
53051
53053
  ({
53052
53054
  [ViewType$1.NEUROGLANCER]: [
53055
+ CoordinationType$1.META_COORDINATION_SCOPES,
53056
+ CoordinationType$1.META_COORDINATION_SCOPES_BY,
53053
53057
  CoordinationType$1.DATASET,
53054
53058
  CoordinationType$1.SPATIAL_TARGET_X,
53055
53059
  CoordinationType$1.SPATIAL_TARGET_Y,
@@ -53071,7 +53075,26 @@ const CoordinationType$1 = {
53071
53075
  CoordinationType$1.OBS_COLOR_ENCODING,
53072
53076
  CoordinationType$1.EMBEDDING_TYPE,
53073
53077
  CoordinationType$1.ADDITIONAL_OBS_SETS,
53074
- CoordinationType$1.TOOLTIPS_VISIBLE
53078
+ CoordinationType$1.TOOLTIPS_VISIBLE,
53079
+ CoordinationType$1.FILE_UID,
53080
+ CoordinationType$1.IMAGE_LAYER,
53081
+ CoordinationType$1.SEGMENTATION_LAYER,
53082
+ CoordinationType$1.IMAGE_CHANNEL,
53083
+ CoordinationType$1.SEGMENTATION_CHANNEL,
53084
+ CoordinationType$1.POINT_LAYER,
53085
+ CoordinationType$1.FEATURE_COLOR,
53086
+ CoordinationType$1.FEATURE_FILTER_MODE,
53087
+ CoordinationType$1.FEATURE_HIGHLIGHT,
53088
+ CoordinationType$1.FEATURE_SELECTION,
53089
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
53090
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
53091
+ CoordinationType$1.SPATIAL_LAYER_COLOR,
53092
+ CoordinationType$1.SPATIAL_LAYER_OPACITY,
53093
+ CoordinationType$1.SPATIAL_LAYER_VISIBLE,
53094
+ CoordinationType$1.SPATIAL_CHANNEL_COLOR,
53095
+ CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
53096
+ CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
53097
+ CoordinationType$1.LEGEND_VISIBLE
53075
53098
  ],
53076
53099
  [ViewType$1.SCATTERPLOT]: [
53077
53100
  CoordinationType$1.DATASET,
@@ -54115,14 +54138,23 @@ z.object({
54115
54138
  z.object({
54116
54139
  // TODO: Should this explicitly specify sharded vs. unsharded?
54117
54140
  // Or can/should that be inferred from the data?
54118
- dimensionX: z.number(),
54119
- dimensionY: z.number(),
54120
- dimensionZ: z.number(),
54121
- dimensionUnit: z.enum(["nm", "um", "µm", "mm", "cm", "m"]),
54141
+ // Note: None of these make sense to specify at the file level, since they
54142
+ // are global camera settings that would apply to all layers.
54143
+ // Intead, initial values should be set via the usual coordination space mechanism,
54144
+ // and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
54145
+ // dimensionX: z.number(),
54146
+ // dimensionY: z.number(),
54147
+ // dimensionZ: z.number(),
54148
+ // dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
54122
54149
  // TODO: should the following be passed via coordination types instead?
54123
- projectionScale: z.number(),
54124
- position: z.array(z.number()).length(3),
54125
- projectionOrientation: z.array(z.number()).length(4)
54150
+ // projectionScale: z.number(),
54151
+ // position: z.array(z.number()).length(3),
54152
+ // projectionOrientation: z.array(z.number()).length(4),
54153
+ }).partial().nullable();
54154
+ z.object({
54155
+ projectionAnnotationSpacing: z.number(),
54156
+ 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."),
54157
+ 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.")
54126
54158
  }).partial().nullable();
54127
54159
  z.object({
54128
54160
  obsIndex: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.9.5",
3
+ "version": "3.9.7",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,9 +21,9 @@
21
21
  "vega": "^5.21.0",
22
22
  "vega-lite": "^5.1.1",
23
23
  "vega-tooltip": "^0.27.0",
24
- "@vitessce/tooltip": "3.9.5",
25
- "@vitessce/legend": "3.9.5",
26
- "@vitessce/styles": "3.9.5"
24
+ "@vitessce/styles": "3.9.7",
25
+ "@vitessce/tooltip": "3.9.7",
26
+ "@vitessce/legend": "3.9.7"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "18.3.1",