@vitessce/sets-utils 4.1.1 → 4.1.3
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 +44 -9
- 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",
|
|
@@ -9340,6 +9341,8 @@ const CoordinationType$1 = {
|
|
|
9340
9341
|
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
9341
9342
|
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
9342
9343
|
SPATIAL_POINT_STROKE_WIDTH: "spatialPointStrokeWidth",
|
|
9344
|
+
SPATIAL_POINT_RADIUS: "spatialPointRadius",
|
|
9345
|
+
SPATIAL_POINT_PROJECTION_SPACING: "spatialPointProjectionSpacing",
|
|
9343
9346
|
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
9344
9347
|
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
9345
9348
|
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
@@ -9356,6 +9359,12 @@ const CoordinationType$1 = {
|
|
|
9356
9359
|
// Per-image-channel (for spatial-accelerated)
|
|
9357
9360
|
SPATIAL_LOD_FACTOR: "spatialLodFactor",
|
|
9358
9361
|
// LOD factor for 3D volume rendering
|
|
9362
|
+
SPATIAL_AXIS_LINES_VISIBLE: "spatialAxisLinesVisible",
|
|
9363
|
+
// axisLines' visibility in Neuroglancer View
|
|
9364
|
+
SPATIAL_BOUNDS_VISIBLE: "spatialBoundsVisible",
|
|
9365
|
+
// annotationBounds' visibility in Neuroglancer View
|
|
9366
|
+
SPATIAL_SCALE_BAR_VISIBLE: "spatialScaleBarVisible",
|
|
9367
|
+
SPATIAL_BACKGROUND_THEME: "spatialBackgroundTheme",
|
|
9359
9368
|
// For clipping plane sliders
|
|
9360
9369
|
SPATIAL_SLICE_X: "spatialSliceX",
|
|
9361
9370
|
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
@@ -9365,6 +9374,7 @@ const CoordinationType$1 = {
|
|
|
9365
9374
|
POINT_LAYER: "pointLayer",
|
|
9366
9375
|
SPATIAL_SPOT_RADIUS: "spatialSpotRadius",
|
|
9367
9376
|
// In micrometers?
|
|
9377
|
+
SPATIAL_SPOT_SHAPE: "spatialSpotShape",
|
|
9368
9378
|
SPATIAL_SPOT_FILLED: "spatialSpotFilled",
|
|
9369
9379
|
SPATIAL_SPOT_STROKE_WIDTH: "spatialSpotStrokeWidth",
|
|
9370
9380
|
SPATIAL_LAYER_COLOR: "spatialLayerColor",
|
|
@@ -9456,6 +9466,7 @@ const CoordinationType$1 = {
|
|
|
9456
9466
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
|
|
9457
9467
|
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
|
|
9458
9468
|
[FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
|
|
9469
|
+
[FileType$1.OBS_LOCATIONS_NG_ANNOTATIONS]: DataType$1.OBS_LOCATIONS,
|
|
9459
9470
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
|
|
9460
9471
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
9461
9472
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
@@ -9682,7 +9693,8 @@ const CoordinationType$1 = {
|
|
|
9682
9693
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
9683
9694
|
CoordinationType$1.FEATURE_AGGREGATION_STRATEGY,
|
|
9684
9695
|
// Annotation shapes are specific to a view's coordinate system.
|
|
9685
|
-
CoordinationType$1.ANNOTATION_SHAPES
|
|
9696
|
+
CoordinationType$1.ANNOTATION_SHAPES,
|
|
9697
|
+
CoordinationType$1.SPATIAL_BACKGROUND_THEME
|
|
9686
9698
|
];
|
|
9687
9699
|
({
|
|
9688
9700
|
[ViewType$1.NEUROGLANCER]: [
|
|
@@ -9733,7 +9745,13 @@ const CoordinationType$1 = {
|
|
|
9733
9745
|
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
|
9734
9746
|
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
|
9735
9747
|
CoordinationType$1.LEGEND_VISIBLE,
|
|
9736
|
-
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH
|
|
9748
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
|
|
9749
|
+
CoordinationType$1.SPATIAL_POINT_RADIUS,
|
|
9750
|
+
CoordinationType$1.SPATIAL_AXIS_LINES_VISIBLE,
|
|
9751
|
+
CoordinationType$1.SPATIAL_BOUNDS_VISIBLE,
|
|
9752
|
+
CoordinationType$1.SPATIAL_POINT_PROJECTION_SPACING,
|
|
9753
|
+
CoordinationType$1.SPATIAL_SCALE_BAR_VISIBLE,
|
|
9754
|
+
CoordinationType$1.SPATIAL_BACKGROUND_THEME
|
|
9737
9755
|
],
|
|
9738
9756
|
[ViewType$1.SCATTERPLOT]: [
|
|
9739
9757
|
CoordinationType$1.DATASET,
|
|
@@ -9910,7 +9928,8 @@ const CoordinationType$1 = {
|
|
|
9910
9928
|
CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
|
|
9911
9929
|
CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
|
|
9912
9930
|
CoordinationType$1.ANNOTATION_EDITABLE,
|
|
9913
|
-
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
|
|
9931
|
+
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
|
|
9932
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
9914
9933
|
],
|
|
9915
9934
|
[ViewType$1.SPATIAL_BETA]: [
|
|
9916
9935
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -9981,6 +10000,7 @@ const CoordinationType$1 = {
|
|
|
9981
10000
|
CoordinationType$1.SPOT_LAYER,
|
|
9982
10001
|
CoordinationType$1.POINT_LAYER,
|
|
9983
10002
|
CoordinationType$1.SPATIAL_SPOT_RADIUS,
|
|
10003
|
+
CoordinationType$1.SPATIAL_SPOT_SHAPE,
|
|
9984
10004
|
CoordinationType$1.SPATIAL_SPOT_FILLED,
|
|
9985
10005
|
CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
|
|
9986
10006
|
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
@@ -9998,7 +10018,10 @@ const CoordinationType$1 = {
|
|
|
9998
10018
|
CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
|
|
9999
10019
|
CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
|
|
10000
10020
|
CoordinationType$1.ANNOTATION_EDITABLE,
|
|
10001
|
-
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
|
|
10021
|
+
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
|
|
10022
|
+
CoordinationType$1.SPATIAL_POINT_RADIUS,
|
|
10023
|
+
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
|
|
10024
|
+
CoordinationType$1.SPATIAL_BACKGROUND_THEME
|
|
10002
10025
|
],
|
|
10003
10026
|
[ViewType$1.ANNOTATION_CONTROLLER]: [
|
|
10004
10027
|
CoordinationType$1.DATASET,
|
|
@@ -10128,7 +10151,8 @@ const CoordinationType$1 = {
|
|
|
10128
10151
|
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
10129
10152
|
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
10130
10153
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
10131
|
-
CoordinationType$1.PHOTOMETRIC_INTERPRETATION
|
|
10154
|
+
CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
|
|
10155
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
10132
10156
|
],
|
|
10133
10157
|
[ViewType$1.LAYER_CONTROLLER_BETA]: [
|
|
10134
10158
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -10162,6 +10186,7 @@ const CoordinationType$1 = {
|
|
|
10162
10186
|
CoordinationType$1.SPATIAL_SEGMENTATION_FILLED,
|
|
10163
10187
|
CoordinationType$1.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
10164
10188
|
CoordinationType$1.SPATIAL_POINT_STROKE_WIDTH,
|
|
10189
|
+
CoordinationType$1.SPATIAL_POINT_RADIUS,
|
|
10165
10190
|
CoordinationType$1.IMAGE_CHANNEL,
|
|
10166
10191
|
CoordinationType$1.IMAGE_LAYER,
|
|
10167
10192
|
CoordinationType$1.SEGMENTATION_CHANNEL,
|
|
@@ -10180,6 +10205,7 @@ const CoordinationType$1 = {
|
|
|
10180
10205
|
CoordinationType$1.SPOT_LAYER,
|
|
10181
10206
|
CoordinationType$1.POINT_LAYER,
|
|
10182
10207
|
CoordinationType$1.SPATIAL_SPOT_RADIUS,
|
|
10208
|
+
CoordinationType$1.SPATIAL_SPOT_SHAPE,
|
|
10183
10209
|
CoordinationType$1.SPATIAL_SPOT_FILLED,
|
|
10184
10210
|
CoordinationType$1.SPATIAL_SPOT_STROKE_WIDTH,
|
|
10185
10211
|
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
@@ -10843,14 +10869,15 @@ z.object({
|
|
|
10843
10869
|
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
10870
|
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
10871
|
}).partial().nullable();
|
|
10872
|
+
const ngAnnotationTransformSchema = z.object({
|
|
10873
|
+
matrix: z.array(z.array(z.number())),
|
|
10874
|
+
outputDimensions: z.record(z.tuple([z.number(), z.string()]))
|
|
10875
|
+
}).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space.");
|
|
10846
10876
|
z.object({
|
|
10847
10877
|
projectionAnnotationSpacing: z.number(),
|
|
10848
10878
|
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
10879
|
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."),
|
|
10880
|
+
transform: ngAnnotationTransformSchema,
|
|
10854
10881
|
// Note: See comments in neuroglancer-sorger.js
|
|
10855
10882
|
// We may remove these in the future, pending clarification
|
|
10856
10883
|
// to questions in the tissue-map-tools repo
|
|
@@ -10859,6 +10886,14 @@ z.object({
|
|
|
10859
10886
|
quantitativeColorProp: z.string().optional(),
|
|
10860
10887
|
quantitativeColorMax: z.number().optional()
|
|
10861
10888
|
}).partial().nullable();
|
|
10889
|
+
z.object({
|
|
10890
|
+
projectionAnnotationSpacing: z.number(),
|
|
10891
|
+
transform: ngAnnotationTransformSchema,
|
|
10892
|
+
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."),
|
|
10893
|
+
// Used when the corresponding segmentation channel uses obsColorEncoding 'geneSelection'.
|
|
10894
|
+
quantitativeColorProp: z.string().optional(),
|
|
10895
|
+
quantitativeColorMax: z.number().optional()
|
|
10896
|
+
}).partial().nullable();
|
|
10862
10897
|
z.object({
|
|
10863
10898
|
obsIndex: z.string(),
|
|
10864
10899
|
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.3",
|
|
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/
|
|
28
|
+
"@vitessce/schemas": "4.1.3",
|
|
29
|
+
"@vitessce/globals": "4.1.3",
|
|
30
|
+
"@vitessce/workers": "4.1.3",
|
|
31
|
+
"@vitessce/utils": "4.1.3"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|