@cornerstonejs/core 1.6.0 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "type": "individual",
45
45
  "url": "https://ohif.org/donate"
46
46
  },
47
- "gitHead": "cfde297ad3a3ef5f1976751654c847ea63610749"
47
+ "gitHead": "757fe06aab211f0bd506c40f262264e90290b702"
48
48
  }
@@ -75,6 +75,15 @@ enum Events {
75
75
  * and see what event detail is included in {@link EventTypes.ImageVolumeModifiedEventDetail | ImageVolumeModified Event Detail }
76
76
  */
77
77
  IMAGE_VOLUME_MODIFIED = 'CORNERSTONE_IMAGE_VOLUME_MODIFIED',
78
+ /**
79
+ * Triggers on the eventTarget when the image volume loading is completed and all
80
+ * frames are loaded and inserted into a volume.
81
+ *
82
+ * Make use of {@link EventTypes.ImageVolumeLoadingCompletedEvent | ImageVolumeLoadingCompleted Event Type } for typing your
83
+ * event listeners for IMAGE_VOLUME_LOADING_COMPLETED event, and see what event detail is included
84
+ * in {@link EventTypes.ImageVolumeLoadingCompletedEventDetail | ImageVolumeLoadingCompleted Event Detail }
85
+ */
86
+ IMAGE_VOLUME_LOADING_COMPLETED = 'CORNERSTONE_IMAGE_VOLUME_LOADING_COMPLETED',
78
87
  /**
79
88
  * Triggers on the eventTarget when the image has successfully loaded by imageLoaders
80
89
  *
@@ -111,6 +111,16 @@ type ImageVolumeModifiedEventDetail = {
111
111
  FrameOfReferenceUID: string;
112
112
  };
113
113
 
114
+ /**
115
+ * IMAGE_VOLUME_LOADING_COMPLETED Event's data
116
+ */
117
+ type ImageVolumeLoadingCompletedEventDetail = {
118
+ /** the loaded volume */
119
+ volumeId: string;
120
+ /** FrameOfReferenceUID where the volume belongs to */
121
+ FrameOfReferenceUID: string;
122
+ };
123
+
114
124
  /**
115
125
  * IMAGE_LOADED Event's data
116
126
  */
@@ -308,6 +318,14 @@ type ImageRenderedEvent = CustomEventType<ElementEnabledEventDetail>;
308
318
  */
309
319
  type ImageVolumeModifiedEvent = CustomEventType<ImageVolumeModifiedEventDetail>;
310
320
 
321
+ /**
322
+ * IMAGE_VOLUME_LOADING_COMPLETED Event type
323
+ * This event is fired when a volume is fully loaded, means all the frames
324
+ * are loaded and cached.
325
+ */
326
+ type ImageVolumeLoadingCompletedEvent =
327
+ CustomEventType<ImageVolumeLoadingCompletedEventDetail>;
328
+
311
329
  /**
312
330
  * IMAGE_LOADED Event type
313
331
  */
@@ -401,6 +419,8 @@ export type {
401
419
  ImageRenderedEvent,
402
420
  ImageVolumeModifiedEvent,
403
421
  ImageVolumeModifiedEventDetail,
422
+ ImageVolumeLoadingCompletedEvent,
423
+ ImageVolumeLoadingCompletedEventDetail,
404
424
  ImageLoadedEvent,
405
425
  ImageLoadedEventDetail,
406
426
  ImageLoadedFailedEventDetail,