@cornerstonejs/core 1.84.4 → 1.85.1

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.84.4",
3
+ "version": "1.85.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "c1aac28a21231af731e8e3ea014a99f012c44931"
50
+ "gitHead": "042a87e58cdb6c975ed540a94c071469f1aead77"
51
51
  }
@@ -207,6 +207,11 @@ enum Events {
207
207
  */
208
208
  STACK_VIEWPORT_SCROLL = 'CORNERSTONE_STACK_VIEWPORT_SCROLL',
209
209
 
210
+ /**
211
+ * Triggers when the scroll function is called with a delta that is out of bounds in the stack viewport.
212
+ */
213
+ STACK_SCROLL_OUT_OF_BOUNDS = 'STACK_SCROLL_OUT_OF_BOUNDS',
214
+
210
215
  /**
211
216
  * Triggers on the eventTarget when a new geometry is added to the geometry cache
212
217
  */
@@ -310,6 +310,16 @@ type StackViewportScrollEventDetail = {
310
310
  direction: number;
311
311
  };
312
312
 
313
+ /**
314
+ * Stack Scroll out of bounds event detail
315
+ */
316
+ type StackScrollOutOfBoundsEventDetail = {
317
+ /** the current imageId index in the stack that we just scroll to */
318
+ imageIdIndex: number;
319
+ /** direction of the scroll */
320
+ direction: number;
321
+ };
322
+
313
323
  /**
314
324
  * CameraModified Event type
315
325
  */
@@ -431,6 +441,9 @@ type StackViewportNewStackEvent =
431
441
 
432
442
  type StackViewportScrollEvent = CustomEventType<StackViewportScrollEventDetail>;
433
443
 
444
+ type StackScrollOutOfBoundsEvent =
445
+ CustomEventType<StackScrollOutOfBoundsEventDetail>;
446
+
434
447
  export type {
435
448
  CameraModifiedEventDetail,
436
449
  CameraModifiedEvent,
@@ -478,6 +491,8 @@ export type {
478
491
  StackViewportNewStackEventDetail,
479
492
  StackViewportScrollEvent,
480
493
  StackViewportScrollEventDetail,
494
+ StackScrollOutOfBoundsEvent,
495
+ StackScrollOutOfBoundsEventDetail,
481
496
  CameraResetEvent,
482
497
  CameraResetEventDetail,
483
498
  };