@vitessce/sets-utils 3.9.5 → 4.0.0-test.0
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 +40 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9202,6 +9202,7 @@ const FileType$1 = {
|
|
|
9202
9202
|
// Neuroglancer
|
|
9203
9203
|
// Precomputed (mesh) format
|
|
9204
9204
|
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
9205
|
+
OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
|
|
9205
9206
|
// New file types to support old file types:
|
|
9206
9207
|
// - cells.json
|
|
9207
9208
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -9430,6 +9431,7 @@ const CoordinationType$1 = {
|
|
|
9430
9431
|
[FileType$1.FEATURE_LABELS_MUDATA_ZARR]: DataType$1.FEATURE_LABELS,
|
|
9431
9432
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$1.OBS_SEGMENTATIONS,
|
|
9432
9433
|
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$1.OBS_SEGMENTATIONS,
|
|
9434
|
+
[FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$1.OBS_POINTS,
|
|
9433
9435
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$1.IMAGE,
|
|
9434
9436
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
9435
9437
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$1.OBS_SEGMENTATIONS,
|
|
@@ -9649,6 +9651,8 @@ const CoordinationType$1 = {
|
|
|
9649
9651
|
];
|
|
9650
9652
|
({
|
|
9651
9653
|
[ViewType$1.NEUROGLANCER]: [
|
|
9654
|
+
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
9655
|
+
CoordinationType$1.META_COORDINATION_SCOPES_BY,
|
|
9652
9656
|
CoordinationType$1.DATASET,
|
|
9653
9657
|
CoordinationType$1.SPATIAL_TARGET_X,
|
|
9654
9658
|
CoordinationType$1.SPATIAL_TARGET_Y,
|
|
@@ -9670,7 +9674,26 @@ const CoordinationType$1 = {
|
|
|
9670
9674
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
9671
9675
|
CoordinationType$1.EMBEDDING_TYPE,
|
|
9672
9676
|
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
9673
|
-
CoordinationType$1.TOOLTIPS_VISIBLE
|
|
9677
|
+
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
9678
|
+
CoordinationType$1.FILE_UID,
|
|
9679
|
+
CoordinationType$1.IMAGE_LAYER,
|
|
9680
|
+
CoordinationType$1.SEGMENTATION_LAYER,
|
|
9681
|
+
CoordinationType$1.IMAGE_CHANNEL,
|
|
9682
|
+
CoordinationType$1.SEGMENTATION_CHANNEL,
|
|
9683
|
+
CoordinationType$1.POINT_LAYER,
|
|
9684
|
+
CoordinationType$1.FEATURE_COLOR,
|
|
9685
|
+
CoordinationType$1.FEATURE_FILTER_MODE,
|
|
9686
|
+
CoordinationType$1.FEATURE_HIGHLIGHT,
|
|
9687
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
9688
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
9689
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
9690
|
+
CoordinationType$1.SPATIAL_LAYER_COLOR,
|
|
9691
|
+
CoordinationType$1.SPATIAL_LAYER_OPACITY,
|
|
9692
|
+
CoordinationType$1.SPATIAL_LAYER_VISIBLE,
|
|
9693
|
+
CoordinationType$1.SPATIAL_CHANNEL_COLOR,
|
|
9694
|
+
CoordinationType$1.SPATIAL_CHANNEL_OPACITY,
|
|
9695
|
+
CoordinationType$1.SPATIAL_CHANNEL_VISIBLE,
|
|
9696
|
+
CoordinationType$1.LEGEND_VISIBLE
|
|
9674
9697
|
],
|
|
9675
9698
|
[ViewType$1.SCATTERPLOT]: [
|
|
9676
9699
|
CoordinationType$1.DATASET,
|
|
@@ -10714,14 +10737,23 @@ z.object({
|
|
|
10714
10737
|
z.object({
|
|
10715
10738
|
// TODO: Should this explicitly specify sharded vs. unsharded?
|
|
10716
10739
|
// Or can/should that be inferred from the data?
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10740
|
+
// Note: None of these make sense to specify at the file level, since they
|
|
10741
|
+
// are global camera settings that would apply to all layers.
|
|
10742
|
+
// Intead, initial values should be set via the usual coordination space mechanism,
|
|
10743
|
+
// and the NeuroglancerSubscriber should handle conversion into values to pass to Neuroglancer.
|
|
10744
|
+
// dimensionX: z.number(),
|
|
10745
|
+
// dimensionY: z.number(),
|
|
10746
|
+
// dimensionZ: z.number(),
|
|
10747
|
+
// dimensionUnit: z.enum(['nm', 'um', 'µm', 'mm', 'cm', 'm']),
|
|
10721
10748
|
// TODO: should the following be passed via coordination types instead?
|
|
10722
|
-
projectionScale: z.number(),
|
|
10723
|
-
position: z.array(z.number()).length(3),
|
|
10724
|
-
projectionOrientation: z.array(z.number()).length(4)
|
|
10749
|
+
// projectionScale: z.number(),
|
|
10750
|
+
// position: z.array(z.number()).length(3),
|
|
10751
|
+
// projectionOrientation: z.array(z.number()).length(4),
|
|
10752
|
+
}).partial().nullable();
|
|
10753
|
+
z.object({
|
|
10754
|
+
projectionAnnotationSpacing: z.number(),
|
|
10755
|
+
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."),
|
|
10756
|
+
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.")
|
|
10725
10757
|
}).partial().nullable();
|
|
10726
10758
|
z.object({
|
|
10727
10759
|
obsIndex: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/sets-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-test.0",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"lodash-es": "^4.17.21",
|
|
26
26
|
"tinycolor2": "^1.4.1",
|
|
27
27
|
"uuid": "^9.0.0",
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/globals": "
|
|
30
|
-
"@vitessce/
|
|
28
|
+
"@vitessce/schemas": "4.0.0-test.0",
|
|
29
|
+
"@vitessce/globals": "4.0.0-test.0",
|
|
30
|
+
"@vitessce/utils": "4.0.0-test.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|