@cornerstonejs/core 1.33.0 → 1.34.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.
- package/dist/cjs/utilities/calculateViewportsSpatialRegistration.d.ts +2 -2
- package/dist/cjs/utilities/calculateViewportsSpatialRegistration.js.map +1 -1
- package/dist/esm/utilities/calculateViewportsSpatialRegistration.js.map +1 -1
- package/dist/types/utilities/calculateViewportsSpatialRegistration.d.ts +2 -2
- package/dist/types/utilities/calculateViewportsSpatialRegistration.d.ts.map +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/utilities/calculateViewportsSpatialRegistration.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"type": "individual",
|
|
48
48
|
"url": "https://ohif.org/donate"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a1bdeb0d4083453272dbca7e8c5f445d30d1fd4c"
|
|
51
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { vec3, mat4 } from 'gl-matrix';
|
|
2
|
-
import { IStackViewport } from '../types';
|
|
2
|
+
import { IStackViewport, IVolumeViewport } from '../types';
|
|
3
3
|
import spatialRegistrationMetadataProvider from './spatialRegistrationMetadataProvider';
|
|
4
4
|
import { metaData } from '..';
|
|
5
5
|
|
|
@@ -24,8 +24,8 @@ const ALLOWED_DELTA = 0.05;
|
|
|
24
24
|
* @param viewport2 - The second stack viewport
|
|
25
25
|
*/
|
|
26
26
|
function calculateViewportsSpatialRegistration(
|
|
27
|
-
viewport1: IStackViewport,
|
|
28
|
-
viewport2: IStackViewport
|
|
27
|
+
viewport1: IStackViewport | IVolumeViewport,
|
|
28
|
+
viewport2: IStackViewport | IVolumeViewport
|
|
29
29
|
): void {
|
|
30
30
|
const imageId1 = viewport1.getCurrentImageId();
|
|
31
31
|
const imageId2 = viewport2.getCurrentImageId();
|