@cornerstonejs/core 3.11.7 → 3.12.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.
@@ -280,12 +280,9 @@ class WSIViewport extends Viewport {
280
280
  }
281
281
  getCamera() {
282
282
  this.refreshRenderValues();
283
- const { resolution, xSpacing } = this.internalCamera;
283
+ const { resolution, xSpacing, centerIndex } = this.internalCamera;
284
284
  const canvasToWorldRatio = resolution * xSpacing;
285
- const canvasCenter = [
286
- this.element.clientWidth / 2,
287
- this.element.clientHeight / 2,
288
- ];
285
+ const canvasCenter = this.indexToCanvas(centerIndex.slice(0, 2));
289
286
  const focalPoint = this.canvasToWorld(canvasCenter);
290
287
  return {
291
288
  parallelProjection: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "3.11.7",
3
+ "version": "3.12.0",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -91,5 +91,5 @@
91
91
  "type": "individual",
92
92
  "url": "https://ohif.org/donate"
93
93
  },
94
- "gitHead": "06bda800542fef976683b2dd679962100ab1da7c"
94
+ "gitHead": "763786d4994c50236c5fe7f964546e758bdbe64d"
95
95
  }