cornerstone-tools
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,3 +0,31 @@ | ||
# Version 0.10.0 | ||
# Version 1.0.1 | ||
- Add check to make drag (touch or click) stack scrolling work better on very large stacks. | ||
The previous behaviour led to scrolling more than 1 image per pixel if there were more images than the height of the element in pixels, which wasn't a good user experience. | ||
New behaviour is to scroll at most 1 image per 2 pixels, and at least 1 image per 1/8 of the element height. (thanks @Maistho) | ||
- Switch package.json 'main' to minified version to reduce bundle sizes | ||
- Fixed incorrect 'externals' to 'external' in README (thanks @nicomlas) | ||
- Fixed incorrect cornerstone-core devDependency (ˆ0.13.0 to ˆ1.0.0) | ||
# Version 1.0.0 | ||
- Updated to 1.0.0 because 0.10.0 introduced a breaking change with Cornerstone, jQuery, and Hammer.js injection. This doesn't break usage if you are using HTML script tags, but if you are using a module system, Cornerstone Tools may not properly find its dependencies. | ||
The solution for this is to inject your Cornerstone / jQuery / Hammers instance into Cornerstone Tools as follows: | ||
````javascript | ||
cornerstoneTools.external.$ = $; | ||
cornerstoneTools.external.Hammer = Hammer; | ||
cornerstoneTools.external.cornerstone = cornerstone; | ||
```` | ||
An example commit doing this in the OHIF Viewer Meteor application is here: https://github.com/OHIF/Viewers/commit/012bba44806d0fb9bb60af329c4875e7f6b751e0#diff-d9ccd906dfc48b4589d720766fe14715R25 | ||
We apologize for any headaches that the breaking change 0.10.0 may have caused for those using module systems. | ||
# Version 0.10.0 (deprecated due to breaking change) | ||
- Add a 3rd parameter to saveAs to allow other mimeTypes, such as image/jpeg | ||
@@ -4,0 +32,0 @@ - Made Cornerstone, Jquery and Hammer as injection dependencies |
{ | ||
"name": "cornerstone-tools", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Medical imaging tools for the Cornerstone library", | ||
"main": "./dist/cornerstoneTools.js", | ||
"main": "./dist/cornerstoneTools.min.js", | ||
"keywords": [ | ||
@@ -49,3 +49,3 @@ "DICOM", | ||
"chai": "^4.1.2", | ||
"cornerstone-core": "^0.13.0", | ||
"cornerstone-core": "^1.0.0", | ||
"coveralls": "^3.0.0", | ||
@@ -52,0 +52,0 @@ "docdash": "^0.4.0", |
@@ -52,5 +52,5 @@ [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url] | ||
````javascript | ||
cornerstoneTools.externals.cornerstone = cornerstone; | ||
cornerstoneTools.externals.$ = $; | ||
cornerstoneTools.externals.Hammer = Hammer; | ||
cornerstoneTools.external.cornerstone = cornerstone; | ||
cornerstoneTools.external.$ = $; | ||
cornerstoneTools.external.Hammer = Hammer; | ||
```` | ||
@@ -151,2 +151,2 @@ | ||
[coverage-url]: https://coveralls.io/github/chafey/cornerstoneTools?branch=master | ||
[coverage-image]: https://coveralls.io/repos/github/chafey/cornerstoneTools/badge.svg?branch=master | ||
[coverage-image]: https://coveralls.io/repos/github/chafey/cornerstoneTools/badge.svg?branch=master |
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
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
7520147
38213
151