@vitessce/constants-internal 3.1.2 → 3.2.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 +199 -8
- package/dist-tsc/constant-relationships.d.ts.map +1 -1
- package/dist-tsc/constant-relationships.js +12 -0
- package/dist-tsc/constants.d.ts +48 -1
- package/dist-tsc/constants.js +51 -3
- package/dist-tsc/coordination.d.ts.map +1 -1
- package/dist-tsc/coordination.js +126 -0
- package/dist-tsc/version.json +3 -3
- package/package.json +1 -1
- package/src/constant-relationships.js +12 -0
- package/src/constants.js +51 -3
- package/src/coordination.js +126 -0
- package/src/version.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,8 +3,10 @@ const ViewType = {
|
|
|
3
3
|
STATUS: "status",
|
|
4
4
|
SCATTERPLOT: "scatterplot",
|
|
5
5
|
SPATIAL: "spatial",
|
|
6
|
+
SPATIAL_BETA: "spatialBeta",
|
|
6
7
|
HEATMAP: "heatmap",
|
|
7
8
|
LAYER_CONTROLLER: "layerController",
|
|
9
|
+
LAYER_CONTROLLER_BETA: "layerControllerBeta",
|
|
8
10
|
GENOMIC_PROFILES: "genomicProfiles",
|
|
9
11
|
GATING: "gating",
|
|
10
12
|
FEATURE_LIST: "featureList",
|
|
@@ -16,20 +18,24 @@ const ViewType = {
|
|
|
16
18
|
const DataType = {
|
|
17
19
|
OBS_LABELS: "obsLabels",
|
|
18
20
|
OBS_EMBEDDING: "obsEmbedding",
|
|
19
|
-
OBS_LOCATIONS: "obsLocations",
|
|
20
21
|
OBS_FEATURE_MATRIX: "obsFeatureMatrix",
|
|
21
22
|
OBS_SETS: "obsSets",
|
|
22
23
|
FEATURE_LABELS: "featureLabels",
|
|
23
24
|
IMAGE: "image",
|
|
24
25
|
OBS_SEGMENTATIONS: "obsSegmentations",
|
|
25
26
|
NEIGHBORHOODS: "neighborhoods",
|
|
26
|
-
GENOMIC_PROFILES: "genomic-profiles"
|
|
27
|
+
GENOMIC_PROFILES: "genomic-profiles",
|
|
28
|
+
OBS_SPOTS: "obsSpots",
|
|
29
|
+
OBS_POINTS: "obsPoints",
|
|
30
|
+
OBS_LOCATIONS: "obsLocations"
|
|
27
31
|
};
|
|
28
32
|
const FileType = {
|
|
29
33
|
// Joint file types
|
|
30
34
|
ANNDATA_ZARR: "anndata.zarr",
|
|
31
35
|
// Atomic file types
|
|
32
36
|
OBS_EMBEDDING_CSV: "obsEmbedding.csv",
|
|
37
|
+
OBS_SPOTS_CSV: "obsSpots.csv",
|
|
38
|
+
OBS_POINTS_CSV: "obsPoints.csv",
|
|
33
39
|
OBS_LOCATIONS_CSV: "obsLocations.csv",
|
|
34
40
|
OBS_LABELS_CSV: "obsLabels.csv",
|
|
35
41
|
FEATURE_LABELS_CSV: "featureLabels.csv",
|
|
@@ -42,6 +48,8 @@ const FileType = {
|
|
|
42
48
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: "obsFeatureMatrix.anndata.zarr",
|
|
43
49
|
OBS_SETS_ANNDATA_ZARR: "obsSets.anndata.zarr",
|
|
44
50
|
OBS_EMBEDDING_ANNDATA_ZARR: "obsEmbedding.anndata.zarr",
|
|
51
|
+
OBS_SPOTS_ANNDATA_ZARR: "obsSpots.anndata.zarr",
|
|
52
|
+
OBS_POINTS_ANNDATA_ZARR: "obsPoints.anndata.zarr",
|
|
45
53
|
OBS_LOCATIONS_ANNDATA_ZARR: "obsLocations.anndata.zarr",
|
|
46
54
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: "obsSegmentations.anndata.zarr",
|
|
47
55
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
@@ -50,6 +58,8 @@ const FileType = {
|
|
|
50
58
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
|
|
51
59
|
OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
|
|
52
60
|
OBS_EMBEDDING_MUDATA_ZARR: "obsEmbedding.mudata.zarr",
|
|
61
|
+
OBS_SPOTS_MUDATA_ZARR: "obsSpots.mudata.zarr",
|
|
62
|
+
OBS_POINTS_MUDATA_ZARR: "obsPoints.mudata.zarr",
|
|
53
63
|
OBS_LOCATIONS_MUDATA_ZARR: "obsLocations.mudata.zarr",
|
|
54
64
|
OBS_SEGMENTATIONS_MUDATA_ZARR: "obsSegmentations.mudata.zarr",
|
|
55
65
|
OBS_LABELS_MUDATA_ZARR: "obsLabels.mudata.zarr",
|
|
@@ -93,10 +103,8 @@ const FileType = {
|
|
|
93
103
|
ANNDATA_EXPRESSION_MATRIX_ZARR: "anndata-expression-matrix.zarr"
|
|
94
104
|
};
|
|
95
105
|
const CoordinationType = {
|
|
96
|
-
// Meta coordination scopes
|
|
97
106
|
META_COORDINATION_SCOPES: "metaCoordinationScopes",
|
|
98
107
|
META_COORDINATION_SCOPES_BY: "metaCoordinationScopesBy",
|
|
99
|
-
// Other coordination scopes
|
|
100
108
|
DATASET: "dataset",
|
|
101
109
|
// Entity types
|
|
102
110
|
OBS_TYPE: "obsType",
|
|
@@ -122,6 +130,7 @@ const CoordinationType = {
|
|
|
122
130
|
SPATIAL_TARGET_X: "spatialTargetX",
|
|
123
131
|
SPATIAL_TARGET_Y: "spatialTargetY",
|
|
124
132
|
SPATIAL_TARGET_Z: "spatialTargetZ",
|
|
133
|
+
SPATIAL_TARGET_T: "spatialTargetT",
|
|
125
134
|
SPATIAL_ROTATION_X: "spatialRotationX",
|
|
126
135
|
SPATIAL_ROTATION_Y: "spatialRotationY",
|
|
127
136
|
SPATIAL_ROTATION_Z: "spatialRotationZ",
|
|
@@ -159,7 +168,51 @@ const CoordinationType = {
|
|
|
159
168
|
GATING_FEATURE_SELECTION_X: "gatingFeatureSelectionX",
|
|
160
169
|
GATING_FEATURE_SELECTION_Y: "gatingFeatureSelectionY",
|
|
161
170
|
FEATURE_VALUE_TRANSFORM_COEFFICIENT: "featureValueTransformCoefficient",
|
|
162
|
-
TOOLTIPS_VISIBLE: "tooltipsVisible"
|
|
171
|
+
TOOLTIPS_VISIBLE: "tooltipsVisible",
|
|
172
|
+
FILE_UID: "fileUid",
|
|
173
|
+
IMAGE_LAYER: "imageLayer",
|
|
174
|
+
IMAGE_CHANNEL: "imageChannel",
|
|
175
|
+
SEGMENTATION_LAYER: "segmentationLayer",
|
|
176
|
+
SEGMENTATION_CHANNEL: "segmentationChannel",
|
|
177
|
+
SPATIAL_TARGET_C: "spatialTargetC",
|
|
178
|
+
SPATIAL_LAYER_VISIBLE: "spatialLayerVisible",
|
|
179
|
+
SPATIAL_LAYER_OPACITY: "spatialLayerOpacity",
|
|
180
|
+
SPATIAL_LAYER_COLORMAP: "spatialLayerColormap",
|
|
181
|
+
SPATIAL_LAYER_TRANSPARENT_COLOR: "spatialLayerTransparentColor",
|
|
182
|
+
SPATIAL_LAYER_MODEL_MATRIX: "spatialLayerModelMatrix",
|
|
183
|
+
SPATIAL_SEGMENTATION_FILLED: "spatialSegmentationFilled",
|
|
184
|
+
SPATIAL_SEGMENTATION_STROKE_WIDTH: "spatialSegmentationStrokeWidth",
|
|
185
|
+
SPATIAL_CHANNEL_COLOR: "spatialChannelColor",
|
|
186
|
+
SPATIAL_CHANNEL_VISIBLE: "spatialChannelVisible",
|
|
187
|
+
SPATIAL_CHANNEL_OPACITY: "spatialChannelOpacity",
|
|
188
|
+
SPATIAL_CHANNEL_WINDOW: "spatialChannelWindow",
|
|
189
|
+
PHOTOMETRIC_INTERPRETATION: "photometricInterpretation",
|
|
190
|
+
// For 3D volume rendering
|
|
191
|
+
SPATIAL_RENDERING_MODE: "spatialRenderingMode",
|
|
192
|
+
// For whole spatial view
|
|
193
|
+
VOLUMETRIC_RENDERING_ALGORITHM: "volumetricRenderingAlgorithm",
|
|
194
|
+
// Could be per-image-layer
|
|
195
|
+
SPATIAL_TARGET_RESOLUTION: "spatialTargetResolution",
|
|
196
|
+
// Per-spatial-layer
|
|
197
|
+
// For clipping plane sliders
|
|
198
|
+
SPATIAL_SLICE_X: "spatialSliceX",
|
|
199
|
+
SPATIAL_SLICE_Y: "spatialSliceY",
|
|
200
|
+
SPATIAL_SLICE_Z: "spatialSliceZ",
|
|
201
|
+
// For spatial spot and point layers
|
|
202
|
+
SPOT_LAYER: "spotLayer",
|
|
203
|
+
POINT_LAYER: "pointLayer",
|
|
204
|
+
SPATIAL_SPOT_RADIUS: "spatialSpotRadius",
|
|
205
|
+
// In micrometers?
|
|
206
|
+
SPATIAL_SPOT_FILLED: "spatialSpotFilled",
|
|
207
|
+
SPATIAL_SPOT_STROKE_WIDTH: "spatialSpotStrokeWidth",
|
|
208
|
+
SPATIAL_LAYER_COLOR: "spatialLayerColor",
|
|
209
|
+
PIXEL_HIGHLIGHT: "pixelHighlight",
|
|
210
|
+
// Per-image-layer
|
|
211
|
+
TOOLTIP_CROSSHAIRS_VISIBLE: "tooltipCrosshairsVisible",
|
|
212
|
+
LEGEND_VISIBLE: "legendVisible",
|
|
213
|
+
SPATIAL_CHANNEL_LABELS_VISIBLE: "spatialChannelLabelsVisible",
|
|
214
|
+
SPATIAL_CHANNEL_LABELS_ORIENTATION: "spatialChannelLabelsOrientation",
|
|
215
|
+
SPATIAL_CHANNEL_LABEL_SIZE: "spatialChannelLabelSize"
|
|
163
216
|
};
|
|
164
217
|
const STATUS = {
|
|
165
218
|
LOADING: "loading",
|
|
@@ -169,6 +222,8 @@ const STATUS = {
|
|
|
169
222
|
const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
170
223
|
// For new file types
|
|
171
224
|
[FileType.OBS_EMBEDDING_CSV]: DataType.OBS_EMBEDDING,
|
|
225
|
+
[FileType.OBS_SPOTS_CSV]: DataType.OBS_SPOTS,
|
|
226
|
+
[FileType.OBS_POINTS_CSV]: DataType.OBS_POINTS,
|
|
172
227
|
[FileType.OBS_LOCATIONS_CSV]: DataType.OBS_LOCATIONS,
|
|
173
228
|
[FileType.OBS_LABELS_CSV]: DataType.OBS_LABELS,
|
|
174
229
|
[FileType.FEATURE_LABELS_CSV]: DataType.FEATURE_LABELS,
|
|
@@ -180,6 +235,8 @@ const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
180
235
|
[FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
181
236
|
[FileType.OBS_SETS_ANNDATA_ZARR]: DataType.OBS_SETS,
|
|
182
237
|
[FileType.OBS_EMBEDDING_ANNDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
238
|
+
[FileType.OBS_SPOTS_ANNDATA_ZARR]: DataType.OBS_SPOTS,
|
|
239
|
+
[FileType.OBS_POINTS_ANNDATA_ZARR]: DataType.OBS_POINTS,
|
|
183
240
|
[FileType.OBS_LOCATIONS_ANNDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
184
241
|
[FileType.OBS_SEGMENTATIONS_ANNDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
185
242
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -189,6 +246,8 @@ const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
189
246
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
190
247
|
[FileType.OBS_SETS_MUDATA_ZARR]: DataType.OBS_SETS,
|
|
191
248
|
[FileType.OBS_EMBEDDING_MUDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
249
|
+
[FileType.OBS_SPOTS_MUDATA_ZARR]: DataType.OBS_SPOTS,
|
|
250
|
+
[FileType.OBS_POINTS_MUDATA_ZARR]: DataType.OBS_POINTS,
|
|
192
251
|
[FileType.OBS_LOCATIONS_MUDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
193
252
|
[FileType.OBS_SEGMENTATIONS_MUDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
194
253
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -218,6 +277,12 @@ const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
218
277
|
CoordinationType.OBS_TYPE,
|
|
219
278
|
CoordinationType.EMBEDDING_TYPE
|
|
220
279
|
],
|
|
280
|
+
[DataType.OBS_SPOTS]: [
|
|
281
|
+
CoordinationType.OBS_TYPE
|
|
282
|
+
],
|
|
283
|
+
[DataType.OBS_POINTS]: [
|
|
284
|
+
CoordinationType.OBS_TYPE
|
|
285
|
+
],
|
|
221
286
|
[DataType.OBS_LOCATIONS]: [
|
|
222
287
|
CoordinationType.OBS_TYPE
|
|
223
288
|
],
|
|
@@ -357,6 +422,77 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
357
422
|
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
358
423
|
CoordinationType.TOOLTIPS_VISIBLE
|
|
359
424
|
],
|
|
425
|
+
[ViewType.SPATIAL_BETA]: [
|
|
426
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
427
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
428
|
+
CoordinationType.DATASET,
|
|
429
|
+
CoordinationType.OBS_TYPE,
|
|
430
|
+
CoordinationType.OBS_LABELS_TYPE,
|
|
431
|
+
CoordinationType.FEATURE_TYPE,
|
|
432
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
433
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
434
|
+
CoordinationType.SPATIAL_ROTATION,
|
|
435
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
436
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
437
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
438
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
439
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
440
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
441
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
442
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
443
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
444
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
445
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
446
|
+
CoordinationType.SPATIAL_AXIS_FIXED,
|
|
447
|
+
CoordinationType.OBS_FILTER,
|
|
448
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
449
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
450
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
451
|
+
CoordinationType.OBS_SET_COLOR,
|
|
452
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
453
|
+
CoordinationType.FEATURE_SELECTION,
|
|
454
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
455
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
456
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
457
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
458
|
+
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
459
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
460
|
+
CoordinationType.FILE_UID,
|
|
461
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
462
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
463
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
464
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
465
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
466
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
467
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
468
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
469
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
470
|
+
CoordinationType.IMAGE_LAYER,
|
|
471
|
+
CoordinationType.SEGMENTATION_LAYER,
|
|
472
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
473
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
474
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
475
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
476
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
477
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
478
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
479
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
480
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
481
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
482
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
483
|
+
CoordinationType.SPOT_LAYER,
|
|
484
|
+
CoordinationType.POINT_LAYER,
|
|
485
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
486
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
487
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
488
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
489
|
+
CoordinationType.PIXEL_HIGHLIGHT,
|
|
490
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
491
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
492
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
493
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
494
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE
|
|
495
|
+
],
|
|
360
496
|
[ViewType.HEATMAP]: [
|
|
361
497
|
CoordinationType.DATASET,
|
|
362
498
|
CoordinationType.OBS_TYPE,
|
|
@@ -462,6 +598,61 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
462
598
|
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
463
599
|
CoordinationType.SPATIAL_ORBIT_AXIS
|
|
464
600
|
],
|
|
601
|
+
[ViewType.LAYER_CONTROLLER_BETA]: [
|
|
602
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
603
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
604
|
+
CoordinationType.DATASET,
|
|
605
|
+
CoordinationType.OBS_TYPE,
|
|
606
|
+
CoordinationType.FEATURE_TYPE,
|
|
607
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
608
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
609
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
610
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
611
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
612
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
613
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
614
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
615
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
616
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
617
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
618
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
619
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
620
|
+
CoordinationType.FILE_UID,
|
|
621
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
622
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
623
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
624
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
625
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
626
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
627
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
628
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
629
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
630
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
631
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
632
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
633
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
634
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
635
|
+
CoordinationType.PHOTOMETRIC_INTERPRETATION,
|
|
636
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
637
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
638
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
639
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
640
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
641
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
642
|
+
CoordinationType.SPOT_LAYER,
|
|
643
|
+
CoordinationType.POINT_LAYER,
|
|
644
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
645
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
646
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
647
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
648
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
649
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
650
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
651
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
652
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
653
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
654
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE
|
|
655
|
+
],
|
|
465
656
|
[ViewType.GENOMIC_PROFILES]: [
|
|
466
657
|
CoordinationType.DATASET,
|
|
467
658
|
CoordinationType.OBS_TYPE,
|
|
@@ -495,10 +686,10 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
495
686
|
]
|
|
496
687
|
};
|
|
497
688
|
const note = "This file is autogenerated by .changeset/post-changelog.mjs.";
|
|
498
|
-
const version = "3.
|
|
499
|
-
const date = "2023-
|
|
689
|
+
const version = "3.2.0";
|
|
690
|
+
const date = "2023-09-12";
|
|
500
691
|
const branch = "changeset-release/main";
|
|
501
|
-
const hash = "
|
|
692
|
+
const hash = "13836ae8";
|
|
502
693
|
const version$1 = {
|
|
503
694
|
note,
|
|
504
695
|
version,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH;;
|
|
1
|
+
{"version":3,"file":"constant-relationships.d.ts","sourceRoot":"","sources":["../src/constant-relationships.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH;;EAiDE;AAEF;;;;GAIG;AACH;;EAmCE"}
|
|
@@ -7,6 +7,8 @@ import { FileType, DataType, CoordinationType } from './constants.js';
|
|
|
7
7
|
export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
8
8
|
// For new file types
|
|
9
9
|
[FileType.OBS_EMBEDDING_CSV]: DataType.OBS_EMBEDDING,
|
|
10
|
+
[FileType.OBS_SPOTS_CSV]: DataType.OBS_SPOTS,
|
|
11
|
+
[FileType.OBS_POINTS_CSV]: DataType.OBS_POINTS,
|
|
10
12
|
[FileType.OBS_LOCATIONS_CSV]: DataType.OBS_LOCATIONS,
|
|
11
13
|
[FileType.OBS_LABELS_CSV]: DataType.OBS_LABELS,
|
|
12
14
|
[FileType.FEATURE_LABELS_CSV]: DataType.FEATURE_LABELS,
|
|
@@ -18,6 +20,8 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
18
20
|
[FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
19
21
|
[FileType.OBS_SETS_ANNDATA_ZARR]: DataType.OBS_SETS,
|
|
20
22
|
[FileType.OBS_EMBEDDING_ANNDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
23
|
+
[FileType.OBS_SPOTS_ANNDATA_ZARR]: DataType.OBS_SPOTS,
|
|
24
|
+
[FileType.OBS_POINTS_ANNDATA_ZARR]: DataType.OBS_POINTS,
|
|
21
25
|
[FileType.OBS_LOCATIONS_ANNDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
22
26
|
[FileType.OBS_SEGMENTATIONS_ANNDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
23
27
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -27,6 +31,8 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
27
31
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
28
32
|
[FileType.OBS_SETS_MUDATA_ZARR]: DataType.OBS_SETS,
|
|
29
33
|
[FileType.OBS_EMBEDDING_MUDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
34
|
+
[FileType.OBS_SPOTS_MUDATA_ZARR]: DataType.OBS_SPOTS,
|
|
35
|
+
[FileType.OBS_POINTS_MUDATA_ZARR]: DataType.OBS_POINTS,
|
|
30
36
|
[FileType.OBS_LOCATIONS_MUDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
31
37
|
[FileType.OBS_SEGMENTATIONS_MUDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
32
38
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -61,6 +67,12 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
61
67
|
CoordinationType.OBS_TYPE,
|
|
62
68
|
CoordinationType.EMBEDDING_TYPE,
|
|
63
69
|
],
|
|
70
|
+
[DataType.OBS_SPOTS]: [
|
|
71
|
+
CoordinationType.OBS_TYPE,
|
|
72
|
+
],
|
|
73
|
+
[DataType.OBS_POINTS]: [
|
|
74
|
+
CoordinationType.OBS_TYPE,
|
|
75
|
+
],
|
|
64
76
|
[DataType.OBS_LOCATIONS]: [
|
|
65
77
|
CoordinationType.OBS_TYPE,
|
|
66
78
|
],
|
package/dist-tsc/constants.d.ts
CHANGED
|
@@ -3,8 +3,10 @@ export namespace ViewType {
|
|
|
3
3
|
const STATUS: string;
|
|
4
4
|
const SCATTERPLOT: string;
|
|
5
5
|
const SPATIAL: string;
|
|
6
|
+
const SPATIAL_BETA: string;
|
|
6
7
|
const HEATMAP: string;
|
|
7
8
|
const LAYER_CONTROLLER: string;
|
|
9
|
+
const LAYER_CONTROLLER_BETA: string;
|
|
8
10
|
const GENOMIC_PROFILES: string;
|
|
9
11
|
const GATING: string;
|
|
10
12
|
const FEATURE_LIST: string;
|
|
@@ -16,7 +18,6 @@ export namespace ViewType {
|
|
|
16
18
|
export namespace DataType {
|
|
17
19
|
export const OBS_LABELS: string;
|
|
18
20
|
export const OBS_EMBEDDING: string;
|
|
19
|
-
export const OBS_LOCATIONS: string;
|
|
20
21
|
export const OBS_FEATURE_MATRIX: string;
|
|
21
22
|
const OBS_SETS_1: string;
|
|
22
23
|
export { OBS_SETS_1 as OBS_SETS };
|
|
@@ -26,10 +27,15 @@ export namespace DataType {
|
|
|
26
27
|
export const NEIGHBORHOODS: string;
|
|
27
28
|
const GENOMIC_PROFILES_1: string;
|
|
28
29
|
export { GENOMIC_PROFILES_1 as GENOMIC_PROFILES };
|
|
30
|
+
export const OBS_SPOTS: string;
|
|
31
|
+
export const OBS_POINTS: string;
|
|
32
|
+
export const OBS_LOCATIONS: string;
|
|
29
33
|
}
|
|
30
34
|
export namespace FileType {
|
|
31
35
|
const ANNDATA_ZARR: string;
|
|
32
36
|
const OBS_EMBEDDING_CSV: string;
|
|
37
|
+
const OBS_SPOTS_CSV: string;
|
|
38
|
+
const OBS_POINTS_CSV: string;
|
|
33
39
|
const OBS_LOCATIONS_CSV: string;
|
|
34
40
|
const OBS_LABELS_CSV: string;
|
|
35
41
|
const FEATURE_LABELS_CSV: string;
|
|
@@ -41,6 +47,8 @@ export namespace FileType {
|
|
|
41
47
|
const OBS_FEATURE_MATRIX_ANNDATA_ZARR: string;
|
|
42
48
|
const OBS_SETS_ANNDATA_ZARR: string;
|
|
43
49
|
const OBS_EMBEDDING_ANNDATA_ZARR: string;
|
|
50
|
+
const OBS_SPOTS_ANNDATA_ZARR: string;
|
|
51
|
+
const OBS_POINTS_ANNDATA_ZARR: string;
|
|
44
52
|
const OBS_LOCATIONS_ANNDATA_ZARR: string;
|
|
45
53
|
const OBS_SEGMENTATIONS_ANNDATA_ZARR: string;
|
|
46
54
|
const OBS_LABELS_ANNDATA_ZARR: string;
|
|
@@ -48,6 +56,8 @@ export namespace FileType {
|
|
|
48
56
|
const OBS_FEATURE_MATRIX_MUDATA_ZARR: string;
|
|
49
57
|
const OBS_SETS_MUDATA_ZARR: string;
|
|
50
58
|
const OBS_EMBEDDING_MUDATA_ZARR: string;
|
|
59
|
+
const OBS_SPOTS_MUDATA_ZARR: string;
|
|
60
|
+
const OBS_POINTS_MUDATA_ZARR: string;
|
|
51
61
|
const OBS_LOCATIONS_MUDATA_ZARR: string;
|
|
52
62
|
const OBS_SEGMENTATIONS_MUDATA_ZARR: string;
|
|
53
63
|
const OBS_LABELS_MUDATA_ZARR: string;
|
|
@@ -106,6 +116,7 @@ export namespace CoordinationType {
|
|
|
106
116
|
const SPATIAL_TARGET_X: string;
|
|
107
117
|
const SPATIAL_TARGET_Y: string;
|
|
108
118
|
const SPATIAL_TARGET_Z: string;
|
|
119
|
+
const SPATIAL_TARGET_T: string;
|
|
109
120
|
const SPATIAL_ROTATION_X: string;
|
|
110
121
|
const SPATIAL_ROTATION_Y: string;
|
|
111
122
|
const SPATIAL_ROTATION_Z: string;
|
|
@@ -143,6 +154,42 @@ export namespace CoordinationType {
|
|
|
143
154
|
const GATING_FEATURE_SELECTION_Y: string;
|
|
144
155
|
const FEATURE_VALUE_TRANSFORM_COEFFICIENT: string;
|
|
145
156
|
const TOOLTIPS_VISIBLE: string;
|
|
157
|
+
const FILE_UID: string;
|
|
158
|
+
const IMAGE_LAYER: string;
|
|
159
|
+
const IMAGE_CHANNEL: string;
|
|
160
|
+
const SEGMENTATION_LAYER: string;
|
|
161
|
+
const SEGMENTATION_CHANNEL: string;
|
|
162
|
+
const SPATIAL_TARGET_C: string;
|
|
163
|
+
const SPATIAL_LAYER_VISIBLE: string;
|
|
164
|
+
const SPATIAL_LAYER_OPACITY: string;
|
|
165
|
+
const SPATIAL_LAYER_COLORMAP: string;
|
|
166
|
+
const SPATIAL_LAYER_TRANSPARENT_COLOR: string;
|
|
167
|
+
const SPATIAL_LAYER_MODEL_MATRIX: string;
|
|
168
|
+
const SPATIAL_SEGMENTATION_FILLED: string;
|
|
169
|
+
const SPATIAL_SEGMENTATION_STROKE_WIDTH: string;
|
|
170
|
+
const SPATIAL_CHANNEL_COLOR: string;
|
|
171
|
+
const SPATIAL_CHANNEL_VISIBLE: string;
|
|
172
|
+
const SPATIAL_CHANNEL_OPACITY: string;
|
|
173
|
+
const SPATIAL_CHANNEL_WINDOW: string;
|
|
174
|
+
const PHOTOMETRIC_INTERPRETATION: string;
|
|
175
|
+
const SPATIAL_RENDERING_MODE: string;
|
|
176
|
+
const VOLUMETRIC_RENDERING_ALGORITHM: string;
|
|
177
|
+
const SPATIAL_TARGET_RESOLUTION: string;
|
|
178
|
+
const SPATIAL_SLICE_X: string;
|
|
179
|
+
const SPATIAL_SLICE_Y: string;
|
|
180
|
+
const SPATIAL_SLICE_Z: string;
|
|
181
|
+
const SPOT_LAYER: string;
|
|
182
|
+
const POINT_LAYER: string;
|
|
183
|
+
const SPATIAL_SPOT_RADIUS: string;
|
|
184
|
+
const SPATIAL_SPOT_FILLED: string;
|
|
185
|
+
const SPATIAL_SPOT_STROKE_WIDTH: string;
|
|
186
|
+
const SPATIAL_LAYER_COLOR: string;
|
|
187
|
+
const PIXEL_HIGHLIGHT: string;
|
|
188
|
+
const TOOLTIP_CROSSHAIRS_VISIBLE: string;
|
|
189
|
+
const LEGEND_VISIBLE: string;
|
|
190
|
+
const SPATIAL_CHANNEL_LABELS_VISIBLE: string;
|
|
191
|
+
const SPATIAL_CHANNEL_LABELS_ORIENTATION: string;
|
|
192
|
+
const SPATIAL_CHANNEL_LABEL_SIZE: string;
|
|
146
193
|
}
|
|
147
194
|
export namespace STATUS {
|
|
148
195
|
const LOADING: string;
|
package/dist-tsc/constants.js
CHANGED
|
@@ -8,8 +8,10 @@ export const ViewType = {
|
|
|
8
8
|
STATUS: 'status',
|
|
9
9
|
SCATTERPLOT: 'scatterplot',
|
|
10
10
|
SPATIAL: 'spatial',
|
|
11
|
+
SPATIAL_BETA: 'spatialBeta',
|
|
11
12
|
HEATMAP: 'heatmap',
|
|
12
13
|
LAYER_CONTROLLER: 'layerController',
|
|
14
|
+
LAYER_CONTROLLER_BETA: 'layerControllerBeta',
|
|
13
15
|
GENOMIC_PROFILES: 'genomicProfiles',
|
|
14
16
|
GATING: 'gating',
|
|
15
17
|
FEATURE_LIST: 'featureList',
|
|
@@ -21,7 +23,6 @@ export const ViewType = {
|
|
|
21
23
|
export const DataType = {
|
|
22
24
|
OBS_LABELS: 'obsLabels',
|
|
23
25
|
OBS_EMBEDDING: 'obsEmbedding',
|
|
24
|
-
OBS_LOCATIONS: 'obsLocations',
|
|
25
26
|
OBS_FEATURE_MATRIX: 'obsFeatureMatrix',
|
|
26
27
|
OBS_SETS: 'obsSets',
|
|
27
28
|
FEATURE_LABELS: 'featureLabels',
|
|
@@ -29,12 +30,17 @@ export const DataType = {
|
|
|
29
30
|
OBS_SEGMENTATIONS: 'obsSegmentations',
|
|
30
31
|
NEIGHBORHOODS: 'neighborhoods',
|
|
31
32
|
GENOMIC_PROFILES: 'genomic-profiles',
|
|
33
|
+
OBS_SPOTS: 'obsSpots',
|
|
34
|
+
OBS_POINTS: 'obsPoints',
|
|
35
|
+
OBS_LOCATIONS: 'obsLocations',
|
|
32
36
|
};
|
|
33
37
|
export const FileType = {
|
|
34
38
|
// Joint file types
|
|
35
39
|
ANNDATA_ZARR: 'anndata.zarr',
|
|
36
40
|
// Atomic file types
|
|
37
41
|
OBS_EMBEDDING_CSV: 'obsEmbedding.csv',
|
|
42
|
+
OBS_SPOTS_CSV: 'obsSpots.csv',
|
|
43
|
+
OBS_POINTS_CSV: 'obsPoints.csv',
|
|
38
44
|
OBS_LOCATIONS_CSV: 'obsLocations.csv',
|
|
39
45
|
OBS_LABELS_CSV: 'obsLabels.csv',
|
|
40
46
|
FEATURE_LABELS_CSV: 'featureLabels.csv',
|
|
@@ -47,6 +53,8 @@ export const FileType = {
|
|
|
47
53
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: 'obsFeatureMatrix.anndata.zarr',
|
|
48
54
|
OBS_SETS_ANNDATA_ZARR: 'obsSets.anndata.zarr',
|
|
49
55
|
OBS_EMBEDDING_ANNDATA_ZARR: 'obsEmbedding.anndata.zarr',
|
|
56
|
+
OBS_SPOTS_ANNDATA_ZARR: 'obsSpots.anndata.zarr',
|
|
57
|
+
OBS_POINTS_ANNDATA_ZARR: 'obsPoints.anndata.zarr',
|
|
50
58
|
OBS_LOCATIONS_ANNDATA_ZARR: 'obsLocations.anndata.zarr',
|
|
51
59
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: 'obsSegmentations.anndata.zarr',
|
|
52
60
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
@@ -55,6 +63,8 @@ export const FileType = {
|
|
|
55
63
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: 'obsFeatureMatrix.mudata.zarr',
|
|
56
64
|
OBS_SETS_MUDATA_ZARR: 'obsSets.mudata.zarr',
|
|
57
65
|
OBS_EMBEDDING_MUDATA_ZARR: 'obsEmbedding.mudata.zarr',
|
|
66
|
+
OBS_SPOTS_MUDATA_ZARR: 'obsSpots.mudata.zarr',
|
|
67
|
+
OBS_POINTS_MUDATA_ZARR: 'obsPoints.mudata.zarr',
|
|
58
68
|
OBS_LOCATIONS_MUDATA_ZARR: 'obsLocations.mudata.zarr',
|
|
59
69
|
OBS_SEGMENTATIONS_MUDATA_ZARR: 'obsSegmentations.mudata.zarr',
|
|
60
70
|
OBS_LABELS_MUDATA_ZARR: 'obsLabels.mudata.zarr',
|
|
@@ -102,10 +112,8 @@ export const FileType = {
|
|
|
102
112
|
* to help prevent typos.
|
|
103
113
|
*/
|
|
104
114
|
export const CoordinationType = {
|
|
105
|
-
// Meta coordination scopes
|
|
106
115
|
META_COORDINATION_SCOPES: 'metaCoordinationScopes',
|
|
107
116
|
META_COORDINATION_SCOPES_BY: 'metaCoordinationScopesBy',
|
|
108
|
-
// Other coordination scopes
|
|
109
117
|
DATASET: 'dataset',
|
|
110
118
|
// Entity types
|
|
111
119
|
OBS_TYPE: 'obsType',
|
|
@@ -131,6 +139,7 @@ export const CoordinationType = {
|
|
|
131
139
|
SPATIAL_TARGET_X: 'spatialTargetX',
|
|
132
140
|
SPATIAL_TARGET_Y: 'spatialTargetY',
|
|
133
141
|
SPATIAL_TARGET_Z: 'spatialTargetZ',
|
|
142
|
+
SPATIAL_TARGET_T: 'spatialTargetT',
|
|
134
143
|
SPATIAL_ROTATION_X: 'spatialRotationX',
|
|
135
144
|
SPATIAL_ROTATION_Y: 'spatialRotationY',
|
|
136
145
|
SPATIAL_ROTATION_Z: 'spatialRotationZ',
|
|
@@ -169,6 +178,45 @@ export const CoordinationType = {
|
|
|
169
178
|
GATING_FEATURE_SELECTION_Y: 'gatingFeatureSelectionY',
|
|
170
179
|
FEATURE_VALUE_TRANSFORM_COEFFICIENT: 'featureValueTransformCoefficient',
|
|
171
180
|
TOOLTIPS_VISIBLE: 'tooltipsVisible',
|
|
181
|
+
FILE_UID: 'fileUid',
|
|
182
|
+
IMAGE_LAYER: 'imageLayer',
|
|
183
|
+
IMAGE_CHANNEL: 'imageChannel',
|
|
184
|
+
SEGMENTATION_LAYER: 'segmentationLayer',
|
|
185
|
+
SEGMENTATION_CHANNEL: 'segmentationChannel',
|
|
186
|
+
SPATIAL_TARGET_C: 'spatialTargetC',
|
|
187
|
+
SPATIAL_LAYER_VISIBLE: 'spatialLayerVisible',
|
|
188
|
+
SPATIAL_LAYER_OPACITY: 'spatialLayerOpacity',
|
|
189
|
+
SPATIAL_LAYER_COLORMAP: 'spatialLayerColormap',
|
|
190
|
+
SPATIAL_LAYER_TRANSPARENT_COLOR: 'spatialLayerTransparentColor',
|
|
191
|
+
SPATIAL_LAYER_MODEL_MATRIX: 'spatialLayerModelMatrix',
|
|
192
|
+
SPATIAL_SEGMENTATION_FILLED: 'spatialSegmentationFilled',
|
|
193
|
+
SPATIAL_SEGMENTATION_STROKE_WIDTH: 'spatialSegmentationStrokeWidth',
|
|
194
|
+
SPATIAL_CHANNEL_COLOR: 'spatialChannelColor',
|
|
195
|
+
SPATIAL_CHANNEL_VISIBLE: 'spatialChannelVisible',
|
|
196
|
+
SPATIAL_CHANNEL_OPACITY: 'spatialChannelOpacity',
|
|
197
|
+
SPATIAL_CHANNEL_WINDOW: 'spatialChannelWindow',
|
|
198
|
+
PHOTOMETRIC_INTERPRETATION: 'photometricInterpretation',
|
|
199
|
+
// For 3D volume rendering
|
|
200
|
+
SPATIAL_RENDERING_MODE: 'spatialRenderingMode',
|
|
201
|
+
VOLUMETRIC_RENDERING_ALGORITHM: 'volumetricRenderingAlgorithm',
|
|
202
|
+
SPATIAL_TARGET_RESOLUTION: 'spatialTargetResolution',
|
|
203
|
+
// For clipping plane sliders
|
|
204
|
+
SPATIAL_SLICE_X: 'spatialSliceX',
|
|
205
|
+
SPATIAL_SLICE_Y: 'spatialSliceY',
|
|
206
|
+
SPATIAL_SLICE_Z: 'spatialSliceZ',
|
|
207
|
+
// For spatial spot and point layers
|
|
208
|
+
SPOT_LAYER: 'spotLayer',
|
|
209
|
+
POINT_LAYER: 'pointLayer',
|
|
210
|
+
SPATIAL_SPOT_RADIUS: 'spatialSpotRadius',
|
|
211
|
+
SPATIAL_SPOT_FILLED: 'spatialSpotFilled',
|
|
212
|
+
SPATIAL_SPOT_STROKE_WIDTH: 'spatialSpotStrokeWidth',
|
|
213
|
+
SPATIAL_LAYER_COLOR: 'spatialLayerColor',
|
|
214
|
+
PIXEL_HIGHLIGHT: 'pixelHighlight',
|
|
215
|
+
TOOLTIP_CROSSHAIRS_VISIBLE: 'tooltipCrosshairsVisible',
|
|
216
|
+
LEGEND_VISIBLE: 'legendVisible',
|
|
217
|
+
SPATIAL_CHANNEL_LABELS_VISIBLE: 'spatialChannelLabelsVisible',
|
|
218
|
+
SPATIAL_CHANNEL_LABELS_ORIENTATION: 'spatialChannelLabelsOrientation',
|
|
219
|
+
SPATIAL_CHANNEL_LABEL_SIZE: 'spatialChannelLabelSize',
|
|
172
220
|
};
|
|
173
221
|
export const STATUS = {
|
|
174
222
|
LOADING: 'loading',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.js"],"names":[],"mappings":"AASA,2DAcE;AAEF;;;;;;;KAOK;AACL;;;
|
|
1
|
+
{"version":3,"file":"coordination.d.ts","sourceRoot":"","sources":["../src/coordination.js"],"names":[],"mappings":"AASA,2DAcE;AAEF;;;;;;;KAOK;AACL;;;EA4WE"}
|
package/dist-tsc/coordination.js
CHANGED
|
@@ -131,6 +131,77 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
131
131
|
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
132
132
|
CoordinationType.TOOLTIPS_VISIBLE,
|
|
133
133
|
],
|
|
134
|
+
[ViewType.SPATIAL_BETA]: [
|
|
135
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
136
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
137
|
+
CoordinationType.DATASET,
|
|
138
|
+
CoordinationType.OBS_TYPE,
|
|
139
|
+
CoordinationType.OBS_LABELS_TYPE,
|
|
140
|
+
CoordinationType.FEATURE_TYPE,
|
|
141
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
142
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
143
|
+
CoordinationType.SPATIAL_ROTATION,
|
|
144
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
145
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
146
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
147
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
148
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
149
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
150
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
151
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
152
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
153
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
154
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
155
|
+
CoordinationType.SPATIAL_AXIS_FIXED,
|
|
156
|
+
CoordinationType.OBS_FILTER,
|
|
157
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
158
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
159
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
160
|
+
CoordinationType.OBS_SET_COLOR,
|
|
161
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
162
|
+
CoordinationType.FEATURE_SELECTION,
|
|
163
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
164
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
165
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
166
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
167
|
+
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
168
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
169
|
+
CoordinationType.FILE_UID,
|
|
170
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
171
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
172
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
173
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
174
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
175
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
176
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
177
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
178
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
179
|
+
CoordinationType.IMAGE_LAYER,
|
|
180
|
+
CoordinationType.SEGMENTATION_LAYER,
|
|
181
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
182
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
183
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
184
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
185
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
186
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
187
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
188
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
189
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
190
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
191
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
192
|
+
CoordinationType.SPOT_LAYER,
|
|
193
|
+
CoordinationType.POINT_LAYER,
|
|
194
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
195
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
196
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
197
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
198
|
+
CoordinationType.PIXEL_HIGHLIGHT,
|
|
199
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
200
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
201
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
202
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
203
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE,
|
|
204
|
+
],
|
|
134
205
|
[ViewType.HEATMAP]: [
|
|
135
206
|
CoordinationType.DATASET,
|
|
136
207
|
CoordinationType.OBS_TYPE,
|
|
@@ -236,6 +307,61 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
236
307
|
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
237
308
|
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
238
309
|
],
|
|
310
|
+
[ViewType.LAYER_CONTROLLER_BETA]: [
|
|
311
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
312
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
313
|
+
CoordinationType.DATASET,
|
|
314
|
+
CoordinationType.OBS_TYPE,
|
|
315
|
+
CoordinationType.FEATURE_TYPE,
|
|
316
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
317
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
318
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
319
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
320
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
321
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
322
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
323
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
324
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
325
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
326
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
327
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
328
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
329
|
+
CoordinationType.FILE_UID,
|
|
330
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
331
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
332
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
333
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
334
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
335
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
336
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
337
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
338
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
339
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
340
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
341
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
342
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
343
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
344
|
+
CoordinationType.PHOTOMETRIC_INTERPRETATION,
|
|
345
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
346
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
347
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
348
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
349
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
350
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
351
|
+
CoordinationType.SPOT_LAYER,
|
|
352
|
+
CoordinationType.POINT_LAYER,
|
|
353
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
354
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
355
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
356
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
357
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
358
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
359
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
360
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
361
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
362
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
363
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE,
|
|
364
|
+
],
|
|
239
365
|
[ViewType.GENOMIC_PROFILES]: [
|
|
240
366
|
CoordinationType.DATASET,
|
|
241
367
|
CoordinationType.OBS_TYPE,
|
package/dist-tsc/version.json
CHANGED
package/package.json
CHANGED
|
@@ -8,6 +8,8 @@ import { FileType, DataType, CoordinationType } from './constants.js';
|
|
|
8
8
|
export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
9
9
|
// For new file types
|
|
10
10
|
[FileType.OBS_EMBEDDING_CSV]: DataType.OBS_EMBEDDING,
|
|
11
|
+
[FileType.OBS_SPOTS_CSV]: DataType.OBS_SPOTS,
|
|
12
|
+
[FileType.OBS_POINTS_CSV]: DataType.OBS_POINTS,
|
|
11
13
|
[FileType.OBS_LOCATIONS_CSV]: DataType.OBS_LOCATIONS,
|
|
12
14
|
[FileType.OBS_LABELS_CSV]: DataType.OBS_LABELS,
|
|
13
15
|
[FileType.FEATURE_LABELS_CSV]: DataType.FEATURE_LABELS,
|
|
@@ -19,6 +21,8 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
19
21
|
[FileType.OBS_FEATURE_MATRIX_ANNDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
20
22
|
[FileType.OBS_SETS_ANNDATA_ZARR]: DataType.OBS_SETS,
|
|
21
23
|
[FileType.OBS_EMBEDDING_ANNDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
24
|
+
[FileType.OBS_SPOTS_ANNDATA_ZARR]: DataType.OBS_SPOTS,
|
|
25
|
+
[FileType.OBS_POINTS_ANNDATA_ZARR]: DataType.OBS_POINTS,
|
|
22
26
|
[FileType.OBS_LOCATIONS_ANNDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
23
27
|
[FileType.OBS_SEGMENTATIONS_ANNDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
24
28
|
[FileType.OBS_LABELS_ANNDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -28,6 +32,8 @@ export const FILE_TYPE_DATA_TYPE_MAPPING = {
|
|
|
28
32
|
[FileType.OBS_FEATURE_MATRIX_MUDATA_ZARR]: DataType.OBS_FEATURE_MATRIX,
|
|
29
33
|
[FileType.OBS_SETS_MUDATA_ZARR]: DataType.OBS_SETS,
|
|
30
34
|
[FileType.OBS_EMBEDDING_MUDATA_ZARR]: DataType.OBS_EMBEDDING,
|
|
35
|
+
[FileType.OBS_SPOTS_MUDATA_ZARR]: DataType.OBS_SPOTS,
|
|
36
|
+
[FileType.OBS_POINTS_MUDATA_ZARR]: DataType.OBS_POINTS,
|
|
31
37
|
[FileType.OBS_LOCATIONS_MUDATA_ZARR]: DataType.OBS_LOCATIONS,
|
|
32
38
|
[FileType.OBS_SEGMENTATIONS_MUDATA_ZARR]: DataType.OBS_SEGMENTATIONS,
|
|
33
39
|
[FileType.OBS_LABELS_MUDATA_ZARR]: DataType.OBS_LABELS,
|
|
@@ -63,6 +69,12 @@ export const DATA_TYPE_COORDINATION_VALUE_USAGE = {
|
|
|
63
69
|
CoordinationType.OBS_TYPE,
|
|
64
70
|
CoordinationType.EMBEDDING_TYPE,
|
|
65
71
|
],
|
|
72
|
+
[DataType.OBS_SPOTS]: [
|
|
73
|
+
CoordinationType.OBS_TYPE,
|
|
74
|
+
],
|
|
75
|
+
[DataType.OBS_POINTS]: [
|
|
76
|
+
CoordinationType.OBS_TYPE,
|
|
77
|
+
],
|
|
66
78
|
[DataType.OBS_LOCATIONS]: [
|
|
67
79
|
CoordinationType.OBS_TYPE,
|
|
68
80
|
],
|
package/src/constants.js
CHANGED
|
@@ -8,8 +8,10 @@ export const ViewType = {
|
|
|
8
8
|
STATUS: 'status',
|
|
9
9
|
SCATTERPLOT: 'scatterplot',
|
|
10
10
|
SPATIAL: 'spatial',
|
|
11
|
+
SPATIAL_BETA: 'spatialBeta',
|
|
11
12
|
HEATMAP: 'heatmap',
|
|
12
13
|
LAYER_CONTROLLER: 'layerController',
|
|
14
|
+
LAYER_CONTROLLER_BETA: 'layerControllerBeta',
|
|
13
15
|
GENOMIC_PROFILES: 'genomicProfiles',
|
|
14
16
|
GATING: 'gating',
|
|
15
17
|
FEATURE_LIST: 'featureList',
|
|
@@ -22,7 +24,6 @@ export const ViewType = {
|
|
|
22
24
|
export const DataType = {
|
|
23
25
|
OBS_LABELS: 'obsLabels',
|
|
24
26
|
OBS_EMBEDDING: 'obsEmbedding',
|
|
25
|
-
OBS_LOCATIONS: 'obsLocations',
|
|
26
27
|
OBS_FEATURE_MATRIX: 'obsFeatureMatrix',
|
|
27
28
|
OBS_SETS: 'obsSets',
|
|
28
29
|
FEATURE_LABELS: 'featureLabels',
|
|
@@ -30,6 +31,9 @@ export const DataType = {
|
|
|
30
31
|
OBS_SEGMENTATIONS: 'obsSegmentations',
|
|
31
32
|
NEIGHBORHOODS: 'neighborhoods',
|
|
32
33
|
GENOMIC_PROFILES: 'genomic-profiles',
|
|
34
|
+
OBS_SPOTS: 'obsSpots',
|
|
35
|
+
OBS_POINTS: 'obsPoints',
|
|
36
|
+
OBS_LOCATIONS: 'obsLocations',
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
|
|
@@ -38,6 +42,8 @@ export const FileType = {
|
|
|
38
42
|
ANNDATA_ZARR: 'anndata.zarr',
|
|
39
43
|
// Atomic file types
|
|
40
44
|
OBS_EMBEDDING_CSV: 'obsEmbedding.csv',
|
|
45
|
+
OBS_SPOTS_CSV: 'obsSpots.csv',
|
|
46
|
+
OBS_POINTS_CSV: 'obsPoints.csv',
|
|
41
47
|
OBS_LOCATIONS_CSV: 'obsLocations.csv',
|
|
42
48
|
OBS_LABELS_CSV: 'obsLabels.csv',
|
|
43
49
|
FEATURE_LABELS_CSV: 'featureLabels.csv',
|
|
@@ -50,6 +56,8 @@ export const FileType = {
|
|
|
50
56
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR: 'obsFeatureMatrix.anndata.zarr',
|
|
51
57
|
OBS_SETS_ANNDATA_ZARR: 'obsSets.anndata.zarr',
|
|
52
58
|
OBS_EMBEDDING_ANNDATA_ZARR: 'obsEmbedding.anndata.zarr',
|
|
59
|
+
OBS_SPOTS_ANNDATA_ZARR: 'obsSpots.anndata.zarr',
|
|
60
|
+
OBS_POINTS_ANNDATA_ZARR: 'obsPoints.anndata.zarr',
|
|
53
61
|
OBS_LOCATIONS_ANNDATA_ZARR: 'obsLocations.anndata.zarr',
|
|
54
62
|
OBS_SEGMENTATIONS_ANNDATA_ZARR: 'obsSegmentations.anndata.zarr',
|
|
55
63
|
OBS_LABELS_ANNDATA_ZARR: 'obsLabels.anndata.zarr',
|
|
@@ -58,6 +66,8 @@ export const FileType = {
|
|
|
58
66
|
OBS_FEATURE_MATRIX_MUDATA_ZARR: 'obsFeatureMatrix.mudata.zarr',
|
|
59
67
|
OBS_SETS_MUDATA_ZARR: 'obsSets.mudata.zarr',
|
|
60
68
|
OBS_EMBEDDING_MUDATA_ZARR: 'obsEmbedding.mudata.zarr',
|
|
69
|
+
OBS_SPOTS_MUDATA_ZARR: 'obsSpots.mudata.zarr',
|
|
70
|
+
OBS_POINTS_MUDATA_ZARR: 'obsPoints.mudata.zarr',
|
|
61
71
|
OBS_LOCATIONS_MUDATA_ZARR: 'obsLocations.mudata.zarr',
|
|
62
72
|
OBS_SEGMENTATIONS_MUDATA_ZARR: 'obsSegmentations.mudata.zarr',
|
|
63
73
|
OBS_LABELS_MUDATA_ZARR: 'obsLabels.mudata.zarr',
|
|
@@ -106,10 +116,8 @@ export const FileType = {
|
|
|
106
116
|
* to help prevent typos.
|
|
107
117
|
*/
|
|
108
118
|
export const CoordinationType = {
|
|
109
|
-
// Meta coordination scopes
|
|
110
119
|
META_COORDINATION_SCOPES: 'metaCoordinationScopes',
|
|
111
120
|
META_COORDINATION_SCOPES_BY: 'metaCoordinationScopesBy',
|
|
112
|
-
// Other coordination scopes
|
|
113
121
|
DATASET: 'dataset',
|
|
114
122
|
// Entity types
|
|
115
123
|
OBS_TYPE: 'obsType',
|
|
@@ -135,6 +143,7 @@ export const CoordinationType = {
|
|
|
135
143
|
SPATIAL_TARGET_X: 'spatialTargetX',
|
|
136
144
|
SPATIAL_TARGET_Y: 'spatialTargetY',
|
|
137
145
|
SPATIAL_TARGET_Z: 'spatialTargetZ',
|
|
146
|
+
SPATIAL_TARGET_T: 'spatialTargetT',
|
|
138
147
|
SPATIAL_ROTATION_X: 'spatialRotationX',
|
|
139
148
|
SPATIAL_ROTATION_Y: 'spatialRotationY',
|
|
140
149
|
SPATIAL_ROTATION_Z: 'spatialRotationZ',
|
|
@@ -173,6 +182,45 @@ export const CoordinationType = {
|
|
|
173
182
|
GATING_FEATURE_SELECTION_Y: 'gatingFeatureSelectionY',
|
|
174
183
|
FEATURE_VALUE_TRANSFORM_COEFFICIENT: 'featureValueTransformCoefficient',
|
|
175
184
|
TOOLTIPS_VISIBLE: 'tooltipsVisible',
|
|
185
|
+
FILE_UID: 'fileUid',
|
|
186
|
+
IMAGE_LAYER: 'imageLayer',
|
|
187
|
+
IMAGE_CHANNEL: 'imageChannel',
|
|
188
|
+
SEGMENTATION_LAYER: 'segmentationLayer',
|
|
189
|
+
SEGMENTATION_CHANNEL: 'segmentationChannel',
|
|
190
|
+
SPATIAL_TARGET_C: 'spatialTargetC',
|
|
191
|
+
SPATIAL_LAYER_VISIBLE: 'spatialLayerVisible',
|
|
192
|
+
SPATIAL_LAYER_OPACITY: 'spatialLayerOpacity',
|
|
193
|
+
SPATIAL_LAYER_COLORMAP: 'spatialLayerColormap',
|
|
194
|
+
SPATIAL_LAYER_TRANSPARENT_COLOR: 'spatialLayerTransparentColor',
|
|
195
|
+
SPATIAL_LAYER_MODEL_MATRIX: 'spatialLayerModelMatrix',
|
|
196
|
+
SPATIAL_SEGMENTATION_FILLED: 'spatialSegmentationFilled',
|
|
197
|
+
SPATIAL_SEGMENTATION_STROKE_WIDTH: 'spatialSegmentationStrokeWidth',
|
|
198
|
+
SPATIAL_CHANNEL_COLOR: 'spatialChannelColor',
|
|
199
|
+
SPATIAL_CHANNEL_VISIBLE: 'spatialChannelVisible',
|
|
200
|
+
SPATIAL_CHANNEL_OPACITY: 'spatialChannelOpacity',
|
|
201
|
+
SPATIAL_CHANNEL_WINDOW: 'spatialChannelWindow',
|
|
202
|
+
PHOTOMETRIC_INTERPRETATION: 'photometricInterpretation',
|
|
203
|
+
// For 3D volume rendering
|
|
204
|
+
SPATIAL_RENDERING_MODE: 'spatialRenderingMode', // For whole spatial view
|
|
205
|
+
VOLUMETRIC_RENDERING_ALGORITHM: 'volumetricRenderingAlgorithm', // Could be per-image-layer
|
|
206
|
+
SPATIAL_TARGET_RESOLUTION: 'spatialTargetResolution', // Per-spatial-layer
|
|
207
|
+
// For clipping plane sliders
|
|
208
|
+
SPATIAL_SLICE_X: 'spatialSliceX',
|
|
209
|
+
SPATIAL_SLICE_Y: 'spatialSliceY',
|
|
210
|
+
SPATIAL_SLICE_Z: 'spatialSliceZ',
|
|
211
|
+
// For spatial spot and point layers
|
|
212
|
+
SPOT_LAYER: 'spotLayer',
|
|
213
|
+
POINT_LAYER: 'pointLayer',
|
|
214
|
+
SPATIAL_SPOT_RADIUS: 'spatialSpotRadius', // In micrometers?
|
|
215
|
+
SPATIAL_SPOT_FILLED: 'spatialSpotFilled',
|
|
216
|
+
SPATIAL_SPOT_STROKE_WIDTH: 'spatialSpotStrokeWidth',
|
|
217
|
+
SPATIAL_LAYER_COLOR: 'spatialLayerColor',
|
|
218
|
+
PIXEL_HIGHLIGHT: 'pixelHighlight', // Per-image-layer
|
|
219
|
+
TOOLTIP_CROSSHAIRS_VISIBLE: 'tooltipCrosshairsVisible',
|
|
220
|
+
LEGEND_VISIBLE: 'legendVisible',
|
|
221
|
+
SPATIAL_CHANNEL_LABELS_VISIBLE: 'spatialChannelLabelsVisible',
|
|
222
|
+
SPATIAL_CHANNEL_LABELS_ORIENTATION: 'spatialChannelLabelsOrientation',
|
|
223
|
+
SPATIAL_CHANNEL_LABEL_SIZE: 'spatialChannelLabelSize',
|
|
176
224
|
};
|
|
177
225
|
|
|
178
226
|
export const STATUS = {
|
package/src/coordination.js
CHANGED
|
@@ -133,6 +133,77 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
133
133
|
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
134
134
|
CoordinationType.TOOLTIPS_VISIBLE,
|
|
135
135
|
],
|
|
136
|
+
[ViewType.SPATIAL_BETA]: [
|
|
137
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
138
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
139
|
+
CoordinationType.DATASET,
|
|
140
|
+
CoordinationType.OBS_TYPE,
|
|
141
|
+
CoordinationType.OBS_LABELS_TYPE,
|
|
142
|
+
CoordinationType.FEATURE_TYPE,
|
|
143
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
144
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
145
|
+
CoordinationType.SPATIAL_ROTATION,
|
|
146
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
147
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
148
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
149
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
150
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
151
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
152
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
153
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
154
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
155
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
156
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
157
|
+
CoordinationType.SPATIAL_AXIS_FIXED,
|
|
158
|
+
CoordinationType.OBS_FILTER,
|
|
159
|
+
CoordinationType.OBS_HIGHLIGHT,
|
|
160
|
+
CoordinationType.OBS_SET_SELECTION,
|
|
161
|
+
CoordinationType.OBS_SET_HIGHLIGHT,
|
|
162
|
+
CoordinationType.OBS_SET_COLOR,
|
|
163
|
+
CoordinationType.FEATURE_HIGHLIGHT,
|
|
164
|
+
CoordinationType.FEATURE_SELECTION,
|
|
165
|
+
CoordinationType.FEATURE_VALUE_COLORMAP,
|
|
166
|
+
CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
|
|
167
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
168
|
+
CoordinationType.ADDITIONAL_OBS_SETS,
|
|
169
|
+
CoordinationType.MOLECULE_HIGHLIGHT,
|
|
170
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
171
|
+
CoordinationType.FILE_UID,
|
|
172
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
173
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
174
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
175
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
176
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
177
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
178
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
179
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
180
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
181
|
+
CoordinationType.IMAGE_LAYER,
|
|
182
|
+
CoordinationType.SEGMENTATION_LAYER,
|
|
183
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
184
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
185
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
186
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
187
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
188
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
189
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
190
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
191
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
192
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
193
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
194
|
+
CoordinationType.SPOT_LAYER,
|
|
195
|
+
CoordinationType.POINT_LAYER,
|
|
196
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
197
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
198
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
199
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
200
|
+
CoordinationType.PIXEL_HIGHLIGHT,
|
|
201
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
202
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
203
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
204
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
205
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE,
|
|
206
|
+
],
|
|
136
207
|
[ViewType.HEATMAP]: [
|
|
137
208
|
CoordinationType.DATASET,
|
|
138
209
|
CoordinationType.OBS_TYPE,
|
|
@@ -238,6 +309,61 @@ export const COMPONENT_COORDINATION_TYPES = {
|
|
|
238
309
|
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
239
310
|
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
240
311
|
],
|
|
312
|
+
[ViewType.LAYER_CONTROLLER_BETA]: [
|
|
313
|
+
CoordinationType.META_COORDINATION_SCOPES,
|
|
314
|
+
CoordinationType.META_COORDINATION_SCOPES_BY,
|
|
315
|
+
CoordinationType.DATASET,
|
|
316
|
+
CoordinationType.OBS_TYPE,
|
|
317
|
+
CoordinationType.FEATURE_TYPE,
|
|
318
|
+
CoordinationType.FEATURE_VALUE_TYPE,
|
|
319
|
+
CoordinationType.SPATIAL_POINT_LAYER,
|
|
320
|
+
CoordinationType.SPATIAL_NEIGHBORHOOD_LAYER,
|
|
321
|
+
CoordinationType.SPATIAL_ZOOM,
|
|
322
|
+
CoordinationType.SPATIAL_TARGET_X,
|
|
323
|
+
CoordinationType.SPATIAL_TARGET_Y,
|
|
324
|
+
CoordinationType.SPATIAL_TARGET_Z,
|
|
325
|
+
CoordinationType.SPATIAL_TARGET_T,
|
|
326
|
+
CoordinationType.SPATIAL_ROTATION_X,
|
|
327
|
+
CoordinationType.SPATIAL_ROTATION_Y,
|
|
328
|
+
CoordinationType.SPATIAL_ROTATION_Z,
|
|
329
|
+
CoordinationType.SPATIAL_ROTATION_ORBIT,
|
|
330
|
+
CoordinationType.SPATIAL_ORBIT_AXIS,
|
|
331
|
+
CoordinationType.FILE_UID,
|
|
332
|
+
CoordinationType.SPATIAL_TARGET_C,
|
|
333
|
+
CoordinationType.SPATIAL_LAYER_VISIBLE,
|
|
334
|
+
CoordinationType.SPATIAL_LAYER_OPACITY,
|
|
335
|
+
CoordinationType.SPATIAL_LAYER_COLORMAP,
|
|
336
|
+
CoordinationType.SPATIAL_LAYER_TRANSPARENT_COLOR,
|
|
337
|
+
CoordinationType.SPATIAL_LAYER_MODEL_MATRIX,
|
|
338
|
+
CoordinationType.SPATIAL_CHANNEL_COLOR,
|
|
339
|
+
CoordinationType.SPATIAL_SEGMENTATION_FILLED,
|
|
340
|
+
CoordinationType.SPATIAL_SEGMENTATION_STROKE_WIDTH,
|
|
341
|
+
CoordinationType.IMAGE_CHANNEL,
|
|
342
|
+
CoordinationType.SEGMENTATION_CHANNEL,
|
|
343
|
+
CoordinationType.SPATIAL_CHANNEL_VISIBLE,
|
|
344
|
+
CoordinationType.SPATIAL_CHANNEL_OPACITY,
|
|
345
|
+
CoordinationType.SPATIAL_CHANNEL_WINDOW,
|
|
346
|
+
CoordinationType.PHOTOMETRIC_INTERPRETATION,
|
|
347
|
+
CoordinationType.SPATIAL_RENDERING_MODE,
|
|
348
|
+
CoordinationType.VOLUMETRIC_RENDERING_ALGORITHM,
|
|
349
|
+
CoordinationType.SPATIAL_TARGET_RESOLUTION,
|
|
350
|
+
CoordinationType.SPATIAL_SLICE_X,
|
|
351
|
+
CoordinationType.SPATIAL_SLICE_Y,
|
|
352
|
+
CoordinationType.SPATIAL_SLICE_Z,
|
|
353
|
+
CoordinationType.SPOT_LAYER,
|
|
354
|
+
CoordinationType.POINT_LAYER,
|
|
355
|
+
CoordinationType.SPATIAL_SPOT_RADIUS,
|
|
356
|
+
CoordinationType.SPATIAL_SPOT_FILLED,
|
|
357
|
+
CoordinationType.SPATIAL_SPOT_STROKE_WIDTH,
|
|
358
|
+
CoordinationType.SPATIAL_LAYER_COLOR,
|
|
359
|
+
CoordinationType.OBS_COLOR_ENCODING,
|
|
360
|
+
CoordinationType.TOOLTIPS_VISIBLE,
|
|
361
|
+
CoordinationType.TOOLTIP_CROSSHAIRS_VISIBLE,
|
|
362
|
+
CoordinationType.LEGEND_VISIBLE,
|
|
363
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_VISIBLE,
|
|
364
|
+
CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
|
|
365
|
+
CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE,
|
|
366
|
+
],
|
|
241
367
|
[ViewType.GENOMIC_PROFILES]: [
|
|
242
368
|
CoordinationType.DATASET,
|
|
243
369
|
CoordinationType.OBS_TYPE,
|
package/src/version.json
CHANGED