@cornerstonejs/core 0.42.3 → 0.43.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": "0.42.3",
3
+ "version": "0.43.0",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -51,5 +51,5 @@
51
51
  "type": "individual",
52
52
  "url": "https://ohif.org/donate"
53
53
  },
54
- "gitHead": "f3db864a642cb3a4e56dd19b2fedaa6815bcf3a7"
54
+ "gitHead": "cc3ce18f1c601fc911d8866987ae369a8f4c28df"
55
55
  }
@@ -1750,6 +1750,14 @@ class StackViewport extends Viewport implements IStackViewport {
1750
1750
  useRGBA: true,
1751
1751
  };
1752
1752
 
1753
+ const eventDetail: EventTypes.PreStackNewImageEventDetail = {
1754
+ imageId,
1755
+ imageIdIndex,
1756
+ viewportId: this.id,
1757
+ renderingEngineId: this.renderingEngineId,
1758
+ };
1759
+ triggerEvent(this.element, Events.PRE_STACK_NEW_IMAGE, eventDetail);
1760
+
1753
1761
  imageLoadPoolManager.addRequest(
1754
1762
  sendRequest.bind(this, imageId, imageIdIndex, options),
1755
1763
  requestType,