@cornerstonejs/core 3.21.0 → 3.22.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.
@@ -334,14 +334,16 @@ class Viewport {
334
334
  return;
335
335
  }
336
336
  resetCameraNoEvent() {
337
+ const savedValue = this._suppressCameraModifiedEvents;
337
338
  this._suppressCameraModifiedEvents = true;
338
339
  this.resetCamera();
339
- this._suppressCameraModifiedEvents = false;
340
+ this._suppressCameraModifiedEvents = savedValue;
340
341
  }
341
342
  setCameraNoEvent(camera) {
343
+ const savedValue = this._suppressCameraModifiedEvents;
342
344
  this._suppressCameraModifiedEvents = true;
343
345
  this.setCamera(camera);
344
- this._suppressCameraModifiedEvents = false;
346
+ this._suppressCameraModifiedEvents = savedValue;
345
347
  }
346
348
  _getViewImageDataIntersections(imageData, focalPoint, normal) {
347
349
  const A = normal[0];
@@ -1 +1 @@
1
- export declare const version = "3.21.0";
1
+ export declare const version = "3.22.0";
@@ -1 +1 @@
1
- export const version = '3.21.0';
1
+ export const version = '3.22.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "3.21.0",
3
+ "version": "3.22.0",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -97,5 +97,5 @@
97
97
  "type": "individual",
98
98
  "url": "https://ohif.org/donate"
99
99
  },
100
- "gitHead": "ce026714032fd5e8eba66ff0d881ef88a11bb08c"
100
+ "gitHead": "eae87d19be6d8bcdb00fa14fc747ab61ede54e1e"
101
101
  }