@cornerstonejs/core 2.18.2 → 2.18.4
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.
|
@@ -1222,14 +1222,12 @@ class StackViewport extends Viewport {
|
|
|
1222
1222
|
const isYVoxelsMatching = yVoxels === image.rows;
|
|
1223
1223
|
const isRowCosinesMatching = isEqual(imagePlaneModule.rowCosines, rowCosines);
|
|
1224
1224
|
const isColumnCosinesMatching = isEqual(imagePlaneModule.columnCosines, columnCosines);
|
|
1225
|
-
const isDataTypeMatching = dataType === image.voxelManager.getScalarData().constructor.name;
|
|
1226
1225
|
const result = isXSpacingValid &&
|
|
1227
1226
|
isYSpacingValid &&
|
|
1228
1227
|
isXVoxelsMatching &&
|
|
1229
1228
|
isYVoxelsMatching &&
|
|
1230
1229
|
isRowCosinesMatching &&
|
|
1231
|
-
isColumnCosinesMatching
|
|
1232
|
-
isDataTypeMatching;
|
|
1230
|
+
isColumnCosinesMatching;
|
|
1233
1231
|
return result;
|
|
1234
1232
|
}
|
|
1235
1233
|
_updateVTKImageDataFromCornerstoneImage(image) {
|
package/dist/esm/init.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ declare function resetInitialization(): void;
|
|
|
10
10
|
declare function getConfiguration(): Cornerstone3DConfig;
|
|
11
11
|
declare function setConfiguration(c: Cornerstone3DConfig): void;
|
|
12
12
|
declare function getWebWorkerManager(): any;
|
|
13
|
-
declare function peerImport(moduleId: string): any
|
|
13
|
+
declare function peerImport(moduleId: string): Promise<any>;
|
|
14
14
|
export { init, getShouldUseCPURendering, isCornerstoneInitialized, setUseCPURendering, setPreferSizeOverAccuracy, resetUseCPURendering, getConfiguration, setConfiguration, getWebWorkerManager, canRenderFloatTextures, peerImport, resetInitialization, };
|
package/dist/esm/init.js
CHANGED
|
@@ -126,7 +126,7 @@ function getWebWorkerManager() {
|
|
|
126
126
|
}
|
|
127
127
|
return webWorkerManager;
|
|
128
128
|
}
|
|
129
|
-
function peerImport(moduleId) {
|
|
129
|
+
async function peerImport(moduleId) {
|
|
130
130
|
return config.peerImport(moduleId);
|
|
131
131
|
}
|
|
132
132
|
export { init, getShouldUseCPURendering, isCornerstoneInitialized, setUseCPURendering, setPreferSizeOverAccuracy, resetUseCPURendering, getConfiguration, setConfiguration, getWebWorkerManager, canRenderFloatTextures, peerImport, resetInitialization, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.4",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"type": "individual",
|
|
83
83
|
"url": "https://ohif.org/donate"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "6649bfeca6a7b2b094062edae63b17972ac38352"
|
|
86
86
|
}
|