Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cornerstone-tools

Package Overview
Dependencies
Maintainers
5
Versions
412
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cornerstone-tools - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

32

changelog.md

@@ -0,1 +1,33 @@

# Version 1.0.3
- Biggest change: Tools that required 'imagePlane' metadata, now require 'imagePlaneModule':
This is partly a breaking change but in reality will help most users, since CornerstoneWADOImageLoader is populating 'imagePlaneModule', not 'imagePlane'. Thanks to @dannyrb for this fix.
*Note*: If you have written your own metadata provider, you should now use 'imagePlaneModule' instead of 'imagePlane'.
- Refactored the Brush tool into brush.js and brushTool.js. This works similarly to mouseButtonTool.
- Brush tool now draws / erases on a label map, which is rendered by Cornerstone with a color lookup table.
- Added an adaptive brush tool (thanks to @zelle-github of @Radiomics).
The adaptive brush (see Segmentation Brush example) uses the range of grey values in the original click location to help the user paint structures of similar intensity.
# Version 1.0.2
- The biggest behaviour change in this release comes from bug fixes to the fusion renderer.
When using the fusion renderer, this is how it works now:
- Stacks in Cornerstone Tools correspond to layers in Cornerstone Core. If you have ten stacks in your toolData and you are using the fusion renderer, you have ten layers.
- If no image is being displayed in the stack at any given time, the layer has image = undefined.
- The active layer cannot be changed to a layer with an undefined image. setActiveLayer will switch to the base layer in this case.
- When image is changed and current active layer has image=undefined, the active layer is set to the base layer.
- Update cornerstone-core dependency since stack fusion renderer now requires APIs added in Cornerstone Core 1.1.0 (cornerstone.setLayerImage)
- Added stackPrefetch configuration option for maximum amount of images to fetch (thanks @maistho)
This option was added to allow developers using very large stack (i.e. > 1000 images) to limit the prefetching behaviour. The default value is Infinity, so no changes are necessary for normal use.
- Bug fix for stackPrefetch: the first element on stackPrefetch.indicesToRequest wasn't being prefetched (thanks @lscoder). Closes #211
# Version 1.0.1

@@ -2,0 +34,0 @@

2

examples/exampleMetaDataProvider.js

@@ -7,3 +7,3 @@ (function metaDataProvider(cornerstone) {

{
if(type === 'imagePlane') {
if(type === 'imagePlaneModule') {

@@ -10,0 +10,0 @@ if (imageId === 'example://1') {

@@ -7,3 +7,3 @@ (function (cornerstoneTools) {

{
if(type === 'imagePlane') {
if(type === 'imagePlaneModule') {

@@ -10,0 +10,0 @@ if (imageId.startsWith('example-n')) {

@@ -7,3 +7,3 @@ (function (cornerstone) {

{
if(type === 'imagePlane') {
if(type === 'imagePlaneModule') {

@@ -10,0 +10,0 @@ if (imageId === 'ct://1') {

{
"name": "cornerstone-tools",
"version": "1.0.2",
"version": "1.0.3",
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc