cornerstone-tools
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -7,2 +7,15 @@ # Changelog | ||
## [1.1.1] - 2017-11-21 | ||
### Added | ||
- cornerstoneMath can now be specified as an external module. Use: | ||
````javascript | ||
cornerstoneTools.external.cornerstoneMath = cornerstoneMath; | ||
```` | ||
to do so. This is not required for normal use, as window.cornerstoneMath is the default. | ||
### Changed | ||
- imagePlaneModule metaData is no longer required to be cornerstoneMath.Vector3 format. These can be passed in as arrays of length 3 (i.e. [x, y, z]). This change was made so that cornerstoneWADOImageLoader didn't need to pull in cornerstoneMath. | ||
## [1.1.0] - 2017-11-17 | ||
@@ -9,0 +22,0 @@ ### Added |
@@ -5,6 +5,4 @@ (function metaDataProvider(cornerstone) { | ||
function metaDataProvider(type, imageId) | ||
{ | ||
function metaDataProvider(type, imageId) { | ||
if(type === 'imagePlaneModule') { | ||
if (imageId === 'example://1') { | ||
@@ -15,10 +13,9 @@ return { | ||
columns: 256, | ||
rowCosines: new cornerstoneMath.Vector3(0, 1, 0), | ||
columnCosines: new cornerstoneMath.Vector3(0, 0, -1), | ||
imagePositionPatient: new cornerstoneMath.Vector3(-9.4, -92.5, 98), | ||
rowCosines: [0, 1, 0], | ||
columnCosines: [0, 0, -1], | ||
imagePositionPatient: [-9.4, -92.5, 98], | ||
columnPixelSpacing: 0.78, | ||
rowPixelSpacing: 0.78 | ||
}; | ||
} | ||
if (imageId === 'example://2') { | ||
} else if (imageId === 'example://2') { | ||
return { | ||
@@ -28,10 +25,9 @@ frameOfReferenceUID: '1.2.3.4.5', | ||
columns: 256, | ||
rowCosines: new cornerstoneMath.Vector3(0, 1, 0), | ||
columnCosines: new cornerstoneMath.Vector3(0, 0, -1), | ||
imagePositionPatient: new cornerstoneMath.Vector3(-7, -92.5, 98), | ||
rowCosines: [0, 1, 0], | ||
columnCosines: [0, 0, -1], | ||
imagePositionPatient: [-7, -92.5, 98], | ||
columnPixelSpacing: 0.78, | ||
rowPixelSpacing: 0.78 | ||
}; | ||
} | ||
if (imageId === 'example://3') { | ||
} else if (imageId === 'example://3') { | ||
return { | ||
@@ -41,5 +37,5 @@ frameOfReferenceUID: '1.2.3.4.5', | ||
columns: 256, | ||
rowCosines: new cornerstoneMath.Vector3(1, 0, 0), | ||
columnCosines: new cornerstoneMath.Vector3(0, 0, -1), | ||
imagePositionPatient: new cornerstoneMath.Vector3(-100, -13, 98), | ||
rowCosines: [1, 0, 0], | ||
columnCosines: [0, 0, -1], | ||
imagePositionPatient: [-100, -13, 98], | ||
columnPixelSpacing: 0.78, | ||
@@ -50,9 +46,2 @@ rowPixelSpacing: 0.78 | ||
} | ||
else if(type === 'image') { | ||
if (imageId === 'example://1') { | ||
return { | ||
}; | ||
} | ||
} | ||
return undefined; | ||
} | ||
@@ -59,0 +48,0 @@ |
@@ -15,5 +15,5 @@ (function (cornerstone) { | ||
columns: 256, | ||
rowCosines: new cornerstoneMath.Vector3(0, 1, 0), | ||
columnCosines: new cornerstoneMath.Vector3(0, 0, -1), | ||
imagePositionPatient: new cornerstoneMath.Vector3(-9.4, -92.5, z), | ||
rowCosines: [0, 1, 0], | ||
columnCosines: [0, 0, -1], | ||
imagePositionPatient: [-9.4, -92.5, z], | ||
columnPixelSpacing: 0.78, | ||
@@ -20,0 +20,0 @@ rowPixelSpacing: 0.78 |
@@ -5,6 +5,4 @@ (function (cornerstone) { | ||
function metaDataProvider(type, imageId) | ||
{ | ||
if(type === 'imagePlaneModule') { | ||
function metaDataProvider(type, imageId) { | ||
if (type === 'imagePlaneModule') { | ||
if (imageId === 'ct://1') { | ||
@@ -15,17 +13,5 @@ return { | ||
columns: 512, | ||
rowCosines: { | ||
x: 1, | ||
y: 0, | ||
z: 0 | ||
}, | ||
columnCosines: { | ||
x: 0, | ||
y: 1, | ||
z: 0 | ||
}, | ||
imagePositionPatient: { | ||
x: -250, | ||
y: -250, | ||
z: -399.100006 | ||
}, | ||
rowCosines: [1, 0, 0], | ||
columnCosines: [0, 1, 0], | ||
imagePositionPatient: [-250, -250, -399.100006], | ||
rowPixelSpacing: 0.976562, | ||
@@ -39,23 +25,9 @@ columnPixelSpacing: 0.976562 | ||
columns: 512, | ||
rowCosines: { | ||
x: 1, | ||
y: 0, | ||
z: 0 | ||
}, | ||
columnCosines: { | ||
x: 0, | ||
y: 1, | ||
z: 0 | ||
}, | ||
imagePositionPatient: { | ||
x: -250, | ||
y: -250, | ||
z: -395.829987 | ||
}, | ||
rowCosines: [1, 0, 0], | ||
columnCosines: [0, 1, 0], | ||
imagePositionPatient: [-250, -250, -395.829987], | ||
rowPixelSpacing: 0.976562, | ||
columnPixelSpacing: 0.976562 | ||
}; | ||
} | ||
if (imageId === 'pet://1') { | ||
} else if (imageId === 'pet://1') { | ||
return { | ||
@@ -65,17 +37,5 @@ frameOfReferenceUID: "1.3.6.1.4.1.5962.99.1.2237260787.1662717184.1234892907507.1411.0", | ||
columns: 128, | ||
rowCosines: { | ||
x: 1, | ||
y: 0, | ||
z: 0 | ||
}, | ||
columnCosines: { | ||
x: 0, | ||
y: 1, | ||
z: 0 | ||
}, | ||
imagePositionPatient: { | ||
x: -297.65625, | ||
y: -297.65625, | ||
z: -399.12002563476 | ||
}, | ||
rowCosines: [1, 0, 0], | ||
columnCosines: [0, 1, 0], | ||
imagePositionPatient: [-297.65625, -297.65625, -399.12002563476], | ||
rowPixelSpacing: 4.6875, | ||
@@ -89,17 +49,5 @@ columnPixelSpacing: 4.6875 | ||
columns: 128, | ||
rowCosines: { | ||
x: 1, | ||
y: 0, | ||
z: 0 | ||
}, | ||
columnCosines: { | ||
x: 0, | ||
y: 1, | ||
z: 0 | ||
}, | ||
imagePositionPatient: { | ||
x: -297.65625, | ||
y: -297.65625, | ||
z: -395.85000610351 | ||
}, | ||
rowCosines: [1, 0, 0], | ||
columnCosines: [0, 1, 0], | ||
imagePositionPatient: [-297.65625, -297.65625, -395.85000610351], | ||
rowPixelSpacing: 4.6875, | ||
@@ -110,4 +58,2 @@ columnPixelSpacing: 4.6875 | ||
} | ||
return undefined; | ||
} | ||
@@ -114,0 +60,0 @@ |
{ | ||
"name": "cornerstone-tools", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Medical imaging tools for the Cornerstone library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cornerstoneTools.min.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
7667891
39443
0