@cornerstonejs/core 4.3.6 → 4.3.7
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.
|
@@ -717,8 +717,11 @@ class BaseVolumeViewport extends Viewport {
|
|
|
717
717
|
const diffVector = vec3.subtract(vec3.create(), focalPoint, imagePositionPatient);
|
|
718
718
|
const projectedDistance = vec3.dot(diffVector, viewPlaneNormal);
|
|
719
719
|
const newImagePositionPatient = vec3.scaleAndAdd(vec3.create(), focalPoint, [-viewPlaneNormal[0], -viewPlaneNormal[1], -viewPlaneNormal[2]], projectedDistance);
|
|
720
|
+
const focalShift = vec3.subtract(vec3.create(), newImagePositionPatient, focalPoint);
|
|
721
|
+
const newPosition = vec3.add(vec3.create(), position, focalShift);
|
|
720
722
|
this.setCamera({
|
|
721
723
|
focalPoint: newImagePositionPatient,
|
|
724
|
+
position: newPosition
|
|
722
725
|
});
|
|
723
726
|
this.render();
|
|
724
727
|
return;
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.3.
|
|
1
|
+
export declare const version = "4.3.7";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.3.
|
|
1
|
+
export const version = '4.3.7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
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": "
|
|
100
|
+
"gitHead": "0fcb6cf859920d15b5ca62360acbd00b02f7d3f8"
|
|
101
101
|
}
|