@vitessce/csv 4.1.0 → 4.1.2

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 +27 -7
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1231,6 +1231,7 @@ const FileType$1 = {
1231
1231
  // Precomputed (mesh) format
1232
1232
  OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
1233
1233
  OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
1234
+ OBS_LOCATIONS_NG_ANNOTATIONS: "obsLocations.ng-annotations",
1234
1235
  // New file types to support old file types:
1235
1236
  // - cells.json
1236
1237
  OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
@@ -1391,6 +1392,7 @@ const CoordinationType$1 = {
1391
1392
  PIXEL_HIGHLIGHT: "pixelHighlight",
1392
1393
  // Per-image-layer
1393
1394
  TOOLTIP_CROSSHAIRS_VISIBLE: "tooltipCrosshairsVisible",
1395
+ TOOLTIP_OBS_SETS_MODE: "tooltipObsSetsMode",
1394
1396
  LEGEND_VISIBLE: "legendVisible",
1395
1397
  SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
1396
1398
  SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
@@ -1475,6 +1477,7 @@ const CoordinationType$1 = {
1475
1477
  [FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
1476
1478
  [FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
1477
1479
  [FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
1480
+ [FileType$1.OBS_LOCATIONS_NG_ANNOTATIONS]: DataType$1.OBS_LOCATIONS,
1478
1481
  [FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
1479
1482
  [FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
1480
1483
  [FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
@@ -1719,6 +1722,7 @@ const CoordinationType$1 = {
1719
1722
  CoordinationType$1.SPATIAL_ORBIT_AXIS,
1720
1723
  CoordinationType$1.SPATIAL_ZOOM,
1721
1724
  CoordinationType$1.SPATIAL_CAMERA_SNAPSHOT,
1725
+ CoordinationType$1.SPATIAL_RENDERING_MODE,
1722
1726
  CoordinationType$1.OBS_FILTER,
1723
1727
  CoordinationType$1.OBS_HIGHLIGHT,
1724
1728
  CoordinationType$1.OBS_SET_SELECTION,
@@ -1786,6 +1790,7 @@ const CoordinationType$1 = {
1786
1790
  CoordinationType$1.OBS_COLOR_ENCODING,
1787
1791
  CoordinationType$1.ADDITIONAL_OBS_SETS,
1788
1792
  CoordinationType$1.TOOLTIPS_VISIBLE,
1793
+ CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
1789
1794
  CoordinationType$1.SAMPLE_TYPE,
1790
1795
  CoordinationType$1.SAMPLE_SET_SELECTION,
1791
1796
  CoordinationType$1.SAMPLE_SET_FILTER,
@@ -1837,6 +1842,7 @@ const CoordinationType$1 = {
1837
1842
  CoordinationType$1.OBS_COLOR_ENCODING,
1838
1843
  CoordinationType$1.ADDITIONAL_OBS_SETS,
1839
1844
  CoordinationType$1.TOOLTIPS_VISIBLE,
1845
+ CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
1840
1846
  CoordinationType$1.SAMPLE_TYPE,
1841
1847
  CoordinationType$1.SAMPLE_SET_SELECTION,
1842
1848
  CoordinationType$1.SAMPLE_SET_FILTER,
@@ -1918,6 +1924,7 @@ const CoordinationType$1 = {
1918
1924
  CoordinationType$1.ADDITIONAL_OBS_SETS,
1919
1925
  CoordinationType$1.MOLECULE_HIGHLIGHT,
1920
1926
  CoordinationType$1.TOOLTIPS_VISIBLE,
1927
+ CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
1921
1928
  CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
1922
1929
  CoordinationType$1.ANNOTATION_STORY,
1923
1930
  CoordinationType$1.ANNOTATION_SHAPES,
@@ -1925,7 +1932,8 @@ const CoordinationType$1 = {
1925
1932
  CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
1926
1933
  CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
1927
1934
  CoordinationType$1.ANNOTATION_EDITABLE,
1928
- CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
1935
+ CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
1936
+ CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
1929
1937
  ],
1930
1938
  [ViewType$1.SPATIAL_BETA]: [
1931
1939
  CoordinationType$1.META_COORDINATION_SCOPES,
@@ -1967,6 +1975,7 @@ const CoordinationType$1 = {
1967
1975
  CoordinationType$1.ADDITIONAL_OBS_SETS,
1968
1976
  CoordinationType$1.MOLECULE_HIGHLIGHT,
1969
1977
  CoordinationType$1.TOOLTIPS_VISIBLE,
1978
+ CoordinationType$1.TOOLTIP_OBS_SETS_MODE,
1970
1979
  CoordinationType$1.FILE_UID,
1971
1980
  CoordinationType$1.SPATIAL_TARGET_C,
1972
1981
  CoordinationType$1.SPATIAL_LAYER_VISIBLE,
@@ -2050,7 +2059,8 @@ const CoordinationType$1 = {
2050
2059
  CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
2051
2060
  CoordinationType$1.OBS_COLOR_ENCODING,
2052
2061
  CoordinationType$1.ADDITIONAL_OBS_SETS,
2053
- CoordinationType$1.TOOLTIPS_VISIBLE
2062
+ CoordinationType$1.TOOLTIPS_VISIBLE,
2063
+ CoordinationType$1.TOOLTIP_OBS_SETS_MODE
2054
2064
  ],
2055
2065
  [ViewType$1.OBS_SETS]: [
2056
2066
  CoordinationType$1.DATASET,
@@ -2141,7 +2151,8 @@ const CoordinationType$1 = {
2141
2151
  CoordinationType$1.SPATIAL_ROTATION_Z,
2142
2152
  CoordinationType$1.SPATIAL_ROTATION_ORBIT,
2143
2153
  CoordinationType$1.SPATIAL_ORBIT_AXIS,
2144
- CoordinationType$1.PHOTOMETRIC_INTERPRETATION
2154
+ CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
2155
+ CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
2145
2156
  ],
2146
2157
  [ViewType$1.LAYER_CONTROLLER_BETA]: [
2147
2158
  CoordinationType$1.META_COORDINATION_SCOPES,
@@ -11394,14 +11405,15 @@ z.object({
11394
11405
  subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
11395
11406
  enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
11396
11407
  }).partial().nullable();
11408
+ const ngAnnotationTransformSchema = z.object({
11409
+ matrix: z.array(z.array(z.number())),
11410
+ outputDimensions: z.record(z.tuple([z.number(), z.string()]))
11411
+ }).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space.");
11397
11412
  z.object({
11398
11413
  projectionAnnotationSpacing: z.number(),
11399
11414
  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."),
11400
11415
  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."),
11401
- transform: z.object({
11402
- matrix: z.array(z.array(z.number())),
11403
- outputDimensions: z.record(z.tuple([z.number(), z.string()]))
11404
- }).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space."),
11416
+ transform: ngAnnotationTransformSchema,
11405
11417
  // Note: See comments in neuroglancer-sorger.js
11406
11418
  // We may remove these in the future, pending clarification
11407
11419
  // to questions in the tissue-map-tools repo
@@ -11410,6 +11422,14 @@ z.object({
11410
11422
  quantitativeColorProp: z.string().optional(),
11411
11423
  quantitativeColorMax: z.number().optional()
11412
11424
  }).partial().nullable();
11425
+ z.object({
11426
+ projectionAnnotationSpacing: z.number(),
11427
+ transform: ngAnnotationTransformSchema,
11428
+ segmentIdProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty holding the mesh segment ID (e.g. 'cell_id'). Defaults to 'id' when the annotation info declares it."),
11429
+ // Used when the corresponding segmentation channel uses obsColorEncoding 'geneSelection'.
11430
+ quantitativeColorProp: z.string().optional(),
11431
+ quantitativeColorMax: z.number().optional()
11432
+ }).partial().nullable();
11413
11433
  z.object({
11414
11434
  obsIndex: z.string(),
11415
11435
  obsEmbedding: z.array(z.string()).length(2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/csv",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,11 +18,11 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "d3-dsv": "^1.1.1",
21
- "@vitessce/constants-internal": "4.1.0",
22
- "@vitessce/error": "4.1.0",
23
- "@vitessce/sets-utils": "4.1.0",
24
- "@vitessce/config": "4.1.0",
25
- "@vitessce/abstract": "4.1.0"
21
+ "@vitessce/constants-internal": "4.1.2",
22
+ "@vitessce/sets-utils": "4.1.2",
23
+ "@vitessce/error": "4.1.2",
24
+ "@vitessce/config": "4.1.2",
25
+ "@vitessce/abstract": "4.1.2"
26
26
  },
27
27
  "scripts": {
28
28
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",