@vitessce/description 4.0.8 → 4.0.9

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 +48 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -34,7 +34,8 @@ const ViewType = {
34
34
  TREEMAP: "treemap",
35
35
  SAMPLE_SET_PAIR_MANAGER: "sampleSetPairManager",
36
36
  FEATURE_STATS_TABLE: "featureStatsTable",
37
- SINGLE_OBS_SET_SELECTOR: "singleObsSetSelector"
37
+ SINGLE_OBS_SET_SELECTOR: "singleObsSetSelector",
38
+ ANNOTATION_CONTROLLER: "annotationController"
38
39
  };
39
40
  const CoordinationType = {
40
41
  META_COORDINATION_SCOPES: "metaCoordinationScopes",
@@ -181,7 +182,15 @@ const CoordinationType = {
181
182
  FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
182
183
  FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
183
184
  // Treemap
184
- HIERARCHY_LEVELS: "hierarchyLevels"
185
+ HIERARCHY_LEVELS: "hierarchyLevels",
186
+ // Annotation frames
187
+ ANNOTATION_STORY: "annotationStory",
188
+ ANNOTATION_FRAME_INDEX: "annotationFrameIndex",
189
+ ANNOTATION_SHAPES: "annotationShapes",
190
+ ANNOTATION_OVERLAY_VISIBLE: "annotationOverlayVisible",
191
+ ANNOTATION_TRANSITION_DURATION: "annotationTransitionDuration",
192
+ ANNOTATION_SEMANTIC_ZOOM: "annotationSemanticZoom",
193
+ ANNOTATION_EDITABLE: "annotationEditable"
185
194
  };
186
195
  const DescriptionType = {
187
196
  MARKDOWN: "markdown"
@@ -279,7 +288,14 @@ const COMPONENT_COORDINATION_TYPES = {
279
288
  CoordinationType.EMBEDDING_CONTOURS_FILLED,
280
289
  CoordinationType.EMBEDDING_CONTOUR_PERCENTILES,
281
290
  CoordinationType.CONTOUR_COLOR_ENCODING,
282
- CoordinationType.CONTOUR_COLOR
291
+ CoordinationType.CONTOUR_COLOR,
292
+ CoordinationType.ANNOTATION_STORY,
293
+ CoordinationType.ANNOTATION_SHAPES,
294
+ CoordinationType.ANNOTATION_FRAME_INDEX,
295
+ CoordinationType.ANNOTATION_OVERLAY_VISIBLE,
296
+ CoordinationType.ANNOTATION_TRANSITION_DURATION,
297
+ CoordinationType.ANNOTATION_EDITABLE,
298
+ CoordinationType.ANNOTATION_SEMANTIC_ZOOM
283
299
  ],
284
300
  [ViewType.DUAL_SCATTERPLOT]: [
285
301
  CoordinationType.DATASET,
@@ -395,7 +411,14 @@ const COMPONENT_COORDINATION_TYPES = {
395
411
  CoordinationType.ADDITIONAL_OBS_SETS,
396
412
  CoordinationType.MOLECULE_HIGHLIGHT,
397
413
  CoordinationType.TOOLTIPS_VISIBLE,
398
- CoordinationType.PHOTOMETRIC_INTERPRETATION
414
+ CoordinationType.PHOTOMETRIC_INTERPRETATION,
415
+ CoordinationType.ANNOTATION_STORY,
416
+ CoordinationType.ANNOTATION_SHAPES,
417
+ CoordinationType.ANNOTATION_FRAME_INDEX,
418
+ CoordinationType.ANNOTATION_OVERLAY_VISIBLE,
419
+ CoordinationType.ANNOTATION_TRANSITION_DURATION,
420
+ CoordinationType.ANNOTATION_EDITABLE,
421
+ CoordinationType.ANNOTATION_SEMANTIC_ZOOM
399
422
  ],
400
423
  [ViewType.SPATIAL_BETA]: [
401
424
  CoordinationType.META_COORDINATION_SCOPES,
@@ -473,7 +496,27 @@ const COMPONENT_COORDINATION_TYPES = {
473
496
  CoordinationType.SPATIAL_CHANNEL_LABELS_ORIENTATION,
474
497
  CoordinationType.SPATIAL_CHANNEL_LABEL_SIZE,
475
498
  CoordinationType.SPATIAL_CHANNELS_SORT_ORDER,
476
- CoordinationType.PHOTOMETRIC_INTERPRETATION
499
+ CoordinationType.PHOTOMETRIC_INTERPRETATION,
500
+ CoordinationType.ANNOTATION_STORY,
501
+ CoordinationType.ANNOTATION_SHAPES,
502
+ CoordinationType.ANNOTATION_FRAME_INDEX,
503
+ CoordinationType.ANNOTATION_OVERLAY_VISIBLE,
504
+ CoordinationType.ANNOTATION_TRANSITION_DURATION,
505
+ CoordinationType.ANNOTATION_EDITABLE,
506
+ CoordinationType.ANNOTATION_SEMANTIC_ZOOM
507
+ ],
508
+ [ViewType.ANNOTATION_CONTROLLER]: [
509
+ CoordinationType.DATASET,
510
+ CoordinationType.ANNOTATION_STORY,
511
+ CoordinationType.ANNOTATION_FRAME_INDEX,
512
+ CoordinationType.ANNOTATION_OVERLAY_VISIBLE,
513
+ CoordinationType.ANNOTATION_TRANSITION_DURATION,
514
+ CoordinationType.ANNOTATION_EDITABLE,
515
+ CoordinationType.ANNOTATION_SEMANTIC_ZOOM
516
+ // Note: the annotation controller also needs to read the coordination state
517
+ // of all other views/coordination types via the full config.
518
+ // Note: we get/set the CoordinationType.ANNOTATION_SHAPES from the full config,
519
+ // as this info is view-specific rather than global to the story.
477
520
  ],
478
521
  [ViewType.HEATMAP]: [
479
522
  CoordinationType.DATASET,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/description",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -17,9 +17,9 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "react-markdown": "^9.0.1",
20
- "@vitessce/styles": "4.0.8",
21
- "@vitessce/vit-s": "4.0.8",
22
- "@vitessce/constants-internal": "4.0.8"
20
+ "@vitessce/constants-internal": "4.0.9",
21
+ "@vitessce/styles": "4.0.9",
22
+ "@vitessce/vit-s": "4.0.9"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@testing-library/jest-dom": "^6.6.3",