cornerstone-tools
Advanced tools
Changelog
[2.1.0] - 2018-03-02
Changelog
[2.0.0] - 2017-12-13
This is present in toolOptions.js and available as setToolOptions(toolType, element, options)
and getToolOptions(toolType, element)
. These are now used to keep track of which mouse button is enabled for which tool and element.
If you are listening to any Cornerstone Tools event, and your event handler has the signature
function(event, eventData) {
// do stuff
}````
You need to switch it to:
````javascript
function(event) {
const eventData = event.detail;
// do stuff
}
since this is how it is now being fired using native CustomEvents.
Breaking Change!!! Lower-cased all event names. This was done because we had two parallel sets of events (jQuery events and native Custom Events) in the previous major version. The jQuery events have now been removed. Check events.js for the list of event names. e.g. CornerstoneToolsMouseDrag -> cornerstonetoolsmousedrag
Breaking Change!!! jQuery Events are no longer being dispatched by triggerEvent.js
Breaking Change!!! Cornerstone Tools now depends on Cornerstone Core >= 2.0.0.
Removed jQuery from nearly all of the examples and replaced with native APIs. It is still being used in the All Image Tools example, solely for the Bootstrap dropdown.
Centralized all of the event names in events.js
Switched ESLint's capitalized-comments warning to ignore inline comments
Changelog
[1.1.3] - 2017-12-13
Changelog
[1.1.2] - 2017-11-21
Changelog
[1.1.1] - 2017-11-21
cornerstoneTools.external.cornerstoneMath = cornerstoneMath;
to do so. This is not required for normal use, as window.cornerstoneMath is the default.
Changelog
[1.1.0] - 2017-11-17
This will be the prevailing format moving forward, but you aren't forced to migrate until 2.0.0 when we plan to drop the jQuery events.
Changelog
Version 1.0.3
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'.
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.