@cornerstonejs/core 4.15.27 → 4.15.29
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.
|
@@ -122,9 +122,19 @@ class VolumeViewport extends BaseVolumeViewport {
|
|
|
122
122
|
return super.addVolumes(volumeInputArray, immediate, suppressEvents);
|
|
123
123
|
}
|
|
124
124
|
jumpToWorld(worldPos) {
|
|
125
|
+
let targetWorldPos = worldPos;
|
|
126
|
+
const imageData = this.getImageData();
|
|
127
|
+
if (imageData?.imageData) {
|
|
128
|
+
const bounds = imageData.imageData.getBounds();
|
|
129
|
+
targetWorldPos = [
|
|
130
|
+
Math.max(bounds[0], Math.min(bounds[1], worldPos[0])),
|
|
131
|
+
Math.max(bounds[2], Math.min(bounds[3], worldPos[1])),
|
|
132
|
+
Math.max(bounds[4], Math.min(bounds[5], worldPos[2])),
|
|
133
|
+
];
|
|
134
|
+
}
|
|
125
135
|
const { focalPoint } = this.getCamera();
|
|
126
136
|
const delta = [0, 0, 0];
|
|
127
|
-
vec3.sub(delta,
|
|
137
|
+
vec3.sub(delta, targetWorldPos, focalPoint);
|
|
128
138
|
const camera = this.getCamera();
|
|
129
139
|
const normal = camera.viewPlaneNormal;
|
|
130
140
|
const dotProd = vec3.dot(delta, normal);
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.15.
|
|
1
|
+
export declare const version = "4.15.29";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.15.
|
|
1
|
+
export const version = '4.15.29';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.29",
|
|
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": "ff9cdf1e59a849b7ba2be95578dee05b311800d0"
|
|
101
101
|
}
|