@cornerstonejs/core 1.9.1 → 2.0.0-beta.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.9.1",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/umd/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -46,5 +46,5 @@
46
46
  "type": "individual",
47
47
  "url": "https://ohif.org/donate"
48
48
  },
49
- "gitHead": "355531673d563820d618f9bfc249267483a5ef59"
49
+ "gitHead": "8cb0ace8dd10393a32f88507ef911ce823b0069d"
50
50
  }
@@ -68,7 +68,7 @@ const VIEWPORT_MIN_SIZE = 2;
68
68
  class RenderingEngine implements IRenderingEngine {
69
69
  /** Unique identifier for renderingEngine */
70
70
  readonly id: string;
71
- /** A flag which tells if the renderingEngine has been destroyed */
71
+ /** A flag which tells if the renderingEngine has been destroyed or not */
72
72
  public hasBeenDestroyed: boolean;
73
73
  public offscreenMultiRenderWindow: any;
74
74
  readonly offScreenCanvasContainer: any; // WebGL
@@ -547,7 +547,9 @@ class RenderingEngine implements IRenderingEngine {
547
547
  ) {
548
548
  // 1. If viewport has a custom resize method, call it here.
549
549
  customRenderingViewports.forEach((vp) => {
550
- if (typeof vp.resize === 'function') vp.resize();
550
+ if (typeof vp.resize === 'function') {
551
+ vp.resize();
552
+ }
551
553
  });
552
554
 
553
555
  // 3. Reset viewport cameras
@@ -1125,7 +1127,9 @@ class RenderingEngine implements IRenderingEngine {
1125
1127
 
1126
1128
  eventDetailArray.forEach((eventDetail) => {
1127
1129
  // Very small viewports won't have an element
1128
- if (!eventDetail?.element) return;
1130
+ if (!eventDetail?.element) {
1131
+ return;
1132
+ }
1129
1133
  triggerEvent(eventDetail.element, Events.IMAGE_RENDERED, eventDetail);
1130
1134
  });
1131
1135
  };