@vitessce/sets-utils 4.1.1 → 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.
- package/dist/index.js +19 -6
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -9211,6 +9211,7 @@ const FileType$1 = {
|
|
|
9211
9211
|
// Precomputed (mesh) format
|
|
9212
9212
|
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
9213
9213
|
OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
|
|
9214
|
+
OBS_LOCATIONS_NG_ANNOTATIONS: "obsLocations.ng-annotations",
|
|
9214
9215
|
// New file types to support old file types:
|
|
9215
9216
|
// - cells.json
|
|
9216
9217
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -9456,6 +9457,7 @@ const CoordinationType$1 = {
|
|
|
9456
9457
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
|
|
9457
9458
|
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
|
|
9458
9459
|
[FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
|
|
9460
|
+
[FileType$1.OBS_LOCATIONS_NG_ANNOTATIONS]: DataType$1.OBS_LOCATIONS,
|
|
9459
9461
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
|
|
9460
9462
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
9461
9463
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
@@ -9910,7 +9912,8 @@ const CoordinationType$1 = {
|
|
|
9910
9912
|
CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
|
|
9911
9913
|
CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
|
|
9912
9914
|
CoordinationType$1.ANNOTATION_EDITABLE,
|
|
9913
|
-
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
|
|
9915
|
+
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
|
|
9916
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
9914
9917
|
],
|
|
9915
9918
|
[ViewType$1.SPATIAL_BETA]: [
|
|
9916
9919
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -10128,7 +10131,8 @@ const CoordinationType$1 = {
|
|
|
10128
10131
|
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
10129
10132
|
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
10130
10133
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
10131
|
-
CoordinationType$1.PHOTOMETRIC_INTERPRETATION
|
|
10134
|
+
CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
|
|
10135
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
10132
10136
|
],
|
|
10133
10137
|
[ViewType$1.LAYER_CONTROLLER_BETA]: [
|
|
10134
10138
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -10843,14 +10847,15 @@ z.object({
|
|
|
10843
10847
|
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(),
|
|
10844
10848
|
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()
|
|
10845
10849
|
}).partial().nullable();
|
|
10850
|
+
const ngAnnotationTransformSchema = z.object({
|
|
10851
|
+
matrix: z.array(z.array(z.number())),
|
|
10852
|
+
outputDimensions: z.record(z.tuple([z.number(), z.string()]))
|
|
10853
|
+
}).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space.");
|
|
10846
10854
|
z.object({
|
|
10847
10855
|
projectionAnnotationSpacing: z.number(),
|
|
10848
10856
|
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."),
|
|
10849
10857
|
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."),
|
|
10850
|
-
transform:
|
|
10851
|
-
matrix: z.array(z.array(z.number())),
|
|
10852
|
-
outputDimensions: z.record(z.tuple([z.number(), z.string()]))
|
|
10853
|
-
}).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space."),
|
|
10858
|
+
transform: ngAnnotationTransformSchema,
|
|
10854
10859
|
// Note: See comments in neuroglancer-sorger.js
|
|
10855
10860
|
// We may remove these in the future, pending clarification
|
|
10856
10861
|
// to questions in the tissue-map-tools repo
|
|
@@ -10859,6 +10864,14 @@ z.object({
|
|
|
10859
10864
|
quantitativeColorProp: z.string().optional(),
|
|
10860
10865
|
quantitativeColorMax: z.number().optional()
|
|
10861
10866
|
}).partial().nullable();
|
|
10867
|
+
z.object({
|
|
10868
|
+
projectionAnnotationSpacing: z.number(),
|
|
10869
|
+
transform: ngAnnotationTransformSchema,
|
|
10870
|
+
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."),
|
|
10871
|
+
// Used when the corresponding segmentation channel uses obsColorEncoding 'geneSelection'.
|
|
10872
|
+
quantitativeColorProp: z.string().optional(),
|
|
10873
|
+
quantitativeColorMax: z.number().optional()
|
|
10874
|
+
}).partial().nullable();
|
|
10862
10875
|
z.object({
|
|
10863
10876
|
obsIndex: z.string(),
|
|
10864
10877
|
obsEmbedding: z.array(z.string()).length(2)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/sets-utils",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"lodash-es": "^4.17.21",
|
|
26
26
|
"tinycolor2": "^1.4.1",
|
|
27
27
|
"uuid": "^9.0.0",
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/globals": "4.1.
|
|
28
|
+
"@vitessce/schemas": "4.1.2",
|
|
29
|
+
"@vitessce/utils": "4.1.2",
|
|
30
|
+
"@vitessce/workers": "4.1.2",
|
|
31
|
+
"@vitessce/globals": "4.1.2"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|