@cornerstonejs/core 3.23.0 → 3.24.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.
@@ -88,16 +88,16 @@ class VolumeViewport extends BaseVolumeViewport {
88
88
  if (!firstImageVolume) {
89
89
  throw new Error(`imageVolume with id: ${firstImageVolume.volumeId} does not exist`);
90
90
  }
91
- if (this.options.orientation &&
91
+ if (this._useAcquisitionPlaneForViewPlane) {
92
+ this._setViewPlaneToAcquisitionPlane(firstImageVolume);
93
+ this._useAcquisitionPlaneForViewPlane = false;
94
+ }
95
+ else if (this.options.orientation &&
92
96
  typeof this.options.orientation === 'string') {
93
97
  if (this.options.orientation.includes('_reformat')) {
94
98
  this._setViewPlaneToReformatOrientation(this.options.orientation, firstImageVolume);
95
99
  }
96
100
  }
97
- else if (this._useAcquisitionPlaneForViewPlane) {
98
- this._setViewPlaneToAcquisitionPlane(firstImageVolume);
99
- this._useAcquisitionPlaneForViewPlane = false;
100
- }
101
101
  return super.setVolumes(volumeInputArray, immediate, suppressEvents);
102
102
  }
103
103
  async addVolumes(volumeInputArray, immediate = false, suppressEvents = false) {
@@ -105,16 +105,16 @@ class VolumeViewport extends BaseVolumeViewport {
105
105
  if (!firstImageVolume) {
106
106
  throw new Error(`imageVolume with id: ${firstImageVolume.volumeId} does not exist`);
107
107
  }
108
- if (this.options.orientation &&
108
+ if (this._useAcquisitionPlaneForViewPlane) {
109
+ this._setViewPlaneToAcquisitionPlane(firstImageVolume);
110
+ this._useAcquisitionPlaneForViewPlane = false;
111
+ }
112
+ else if (this.options.orientation &&
109
113
  typeof this.options.orientation === 'string') {
110
114
  if (this.options.orientation.includes('_reformat')) {
111
115
  this._setViewPlaneToReformatOrientation(this.options.orientation, firstImageVolume);
112
116
  }
113
117
  }
114
- else if (this._useAcquisitionPlaneForViewPlane) {
115
- this._setViewPlaneToAcquisitionPlane(firstImageVolume);
116
- this._useAcquisitionPlaneForViewPlane = false;
117
- }
118
118
  return super.addVolumes(volumeInputArray, immediate, suppressEvents);
119
119
  }
120
120
  jumpToWorld(worldPos) {
@@ -1 +1 @@
1
- export declare const version = "3.23.0";
1
+ export declare const version = "3.24.0";
@@ -1 +1 @@
1
- export const version = '3.23.0';
1
+ export const version = '3.24.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "3.23.0",
3
+ "version": "3.24.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": "85796c96f904126c372f8e5bc6bea3db1c955aa8"
100
+ "gitHead": "c5fbc9b942368afc0e6835ca3f3747b1e4510182"
101
101
  }