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

cornerstone-tools

Package Overview
Dependencies
Maintainers
3
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 0.8.6 to 0.8.7

.travis.yml

4

.eslintrc.js

@@ -15,4 +15,4 @@ module.exports = {

'cornerstone': true,
'cornerstoneTools': true,
'cornerstoneMath': true
'cornerstoneMath': true,
'Hammer': true,
},

@@ -19,0 +19,0 @@ 'rules': {

@@ -23,3 +23,7 @@ const path = require('path');

files: [
'node_modules/cornerstone-math/dist/cornerstoneMath.min.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/cornerstone-core/dist/cornerstone.js',
'node_modules/cornerstone-math/dist/cornerstoneMath.js',
'node_modules/dicom-parser/dist/dicomParser.js',
'node_modules/hammerjs/hammer.js',
'test/**/*_test.js'

@@ -26,0 +30,0 @@ ],

const path = require('path');
const webpack = require('webpack');
const rootPath = process.env.PWD;
const pkgPath = path.resolve(rootPath, "package");
const rootPath = process.cwd();
const pkgPath = path.join(rootPath, "package");
const pkg = require(pkgPath);

@@ -6,0 +6,0 @@

const path = require('path');
const webpack = require('webpack');
const rootPath = process.env.PWD;
const context = path.resolve(rootPath, "src");
const outputPath = path.resolve(rootPath, 'dist');
const rootPath = process.cwd();
const context = path.join(rootPath, "src");
const outputPath = path.join(rootPath, 'dist');
const bannerPlugin = require('./plugins/banner');

@@ -24,7 +24,25 @@

jquery: {
commonjs: "jquery",
commonjs2: "jquery",
amd: "jquery",
root: '$'
},
'hammerjs': 'Hammer',
'cornerstone-core': 'cornerstone',
'cornerstone-math': 'cornerstoneMath'
'hammerjs': {
commonjs: "hammerjs",
commonjs2: "hammerjs",
amd: "hammerjs",
root: 'Hammer'
},
'cornerstone-core': {
commonjs: "cornerstone-core",
commonjs2: "cornerstone-core",
amd: "cornerstone-core",
root: 'cornerstone'
},
'cornerstone-math': {
commonjs: "cornerstone-math",
commonjs2: "cornerstone-math",
amd: "cornerstone-math",
root: 'cornerstoneMath'
}
},

@@ -31,0 +49,0 @@ module: {

=============================== Coverage summary ===============================
Statements : 100% ( 5/5 )
Branches : 100% ( 0/0 )
Functions : 100% ( 1/1 )
Lines : 100% ( 5/5 )
Statements : 4.9% ( 222/4530 )
Branches : 1.3% ( 25/1926 )
Functions : 3.24% ( 16/494 )
Lines : 4.9% ( 222/4529 )
================================================================================

@@ -1,8 +0,130 @@

----------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
----------------|----------|----------|----------|----------|----------------|
util/  | 100 | 100 | 100 | 100 |  |
copyPoints.js | 100 | 100 | 100 | 100 |  |
----------------|----------|----------|----------|----------|----------------|
All files  | 100 | 100 | 100 | 100 |  |
----------------|----------|----------|----------|----------|----------------|
------------------------------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
------------------------------------------|----------|----------|----------|----------|----------------|
src/  | 100 | 100 | 100 | 100 |  |
index.js  | 100 | 100 | 100 | 100 |  |
metaData.js  | 100 | 100 | 100 | 100 |  |
version.js  | 100 | 100 | 100 | 100 |  |
src/imageTools/  | 5.06 | 2.34 | 5.43 | 5.06 |  |
angleTool.js  | 5.08 | 0 | 0 | 5.08 |... 153,154,155 |
arrowAnnotate.js  | 2.81 | 0 | 0 | 2.81 |... 443,445,449 |
crosshairs.js  | 3.66 | 0 | 0 | 3.66 |... 187,189,194 |
displayTool.js  | 44.44 | 100 | 100 | 44.44 | 6,9,10,11,14 |
doubleTapTool.js  | 25 | 100 | 100 | 25 | 4,5,7,10,13,16 |
doubleTapZoom.js  | 50 | 100 | 0 | 50 | 4,8,10 |
dragProbe.js  | 4.46 | 0 | 0 | 4.46 |... 216,217,219 |
ellipticalRoi.js  | 2.61 | 0 | 0 | 2.61 |... 386,387,390 |
freehand.js  | 1.6 | 0 | 0 | 1.6 |... 427,431,435 |
highlight.js  | 7.55 | 0 | 0 | 7.55 |... 142,145,146 |
imageStats.js  | 8.33 | 100 | 0 | 8.33 |... 17,20,22,23 |
keyboardTool.js  | 30 | 100 | 100 | 30 |... 13,16,19,22 |
length.js  | 4.23 | 0 | 0 | 4.23 |... 208,209,212 |
magnify.js  | 4.44 | 0 | 0 | 4.44 |... 204,209,213 |
mouseButtonRectangleTool.js  | 2.2 | 0 | 9.09 | 2.2 |... 203,204,206 |
mouseButtonTool.js  | 6.99 | 5.17 | 15.38 | 6.99 |... 296,299,303 |
mouseWheelTool.js  | 25 | 100 | 100 | 25 | 4,5,8,11,14,17 |
multiTouchDragTool.js  | 26.09 | 12.5 | 100 | 26.09 |... 36,37,38,42 |
orientationMarkers.js  | 2.86 | 0 | 0 | 2.86 |... 91,93,94,95 |
pan.js  | 10 | 0 | 0 | 10 |... 33,34,35,37 |
panMultiTouch.js  | 30 | 0 | 0 | 30 |4,6,7,8,9,11,17 |
probe.js  | 6.82 | 0 | 0 | 6.82 |... 112,113,114 |
rectangleRoi.js  | 2.42 | 0 | 0 | 2.42 |... 402,403,406 |
rotate.js  | 13.79 | 0 | 0 | 13.79 |... 55,60,61,63 |
rotateTouch.js  | 14.29 | 100 | 0 | 14.29 | 2,3,5,9,13,14 |
saveAs.js  | 0 | 0 | 0 | 0 |... 21,23,25,27 |
seedAnnotate.js  | 3.03 | 0 | 0 | 3.03 |... 411,413,417 |
simpleAngle.js  | 1.99 | 0 | 0 | 1.99 |... 365,366,367 |
simpleMouseButtonTool.js  | 27.27 | 100 | 100 | 27.27 |... 18,21,24,27 |
textMarker.js  | 2.4 | 0 | 0 | 2.4 |... 269,271,275 |
touchDragTool.js  | 25 | 16.67 | 100 | 25 |... 31,35,36,37 |
touchPinchTool.js  | 25 | 100 | 100 | 25 | 4,5,8,11,14,17 |
touchTool.js  | 4.95 | 8.11 | 6.67 | 4.95 |... 346,349,368 |
wwwc.js  | 9.76 | 0 | 0 | 9.76 |... 64,67,68,71 |
wwwcRegion.js  | 2.5 | 0 | 0 | 2.5 |... 341,345,349 |
zoom.js  | 5.36 | 0 | 0 | 5.36 |... 269,270,271 |
src/inputSources/  | 6.91 | 0 | 0 | 6.91 |  |
keyboardInput.js  | 14.29 | 0 | 0 | 14.29 |... 45,46,50,51 |
mouseInput.js  | 4.23 | 0 | 0 | 4.23 |... 276,277,278 |
mouseWheelInput.js  | 6.45 | 0 | 0 | 6.45 |... 65,72,74,78 |
preventGhostClick.js  | 25.93 | 0 | 0 | 25.93 |... 59,63,64,65 |
touchInput.js  | 4.35 | 0 | 0 | 4.35 |... 493,495,496 |
src/manipulators/  | 0.96 | 0 | 0 | 0.96 |  |
anyHandlesOutsideImage.js  | 0 | 0 | 0 | 0 |... 16,19,20,24 |
drawHandles.js  | 5.56 | 0 | 0 | 5.56 |... 31,32,33,36 |
getHandleNearImagePoint.js  | 0 | 0 | 0 | 0 |... 29,30,32,37 |
handleActivator.js  | 0 | 0 | 0 | 0 |... 32,33,36,39 |
moveAllHandles.js  | 0 | 0 | 0 | 0 |... 61,65,66,68 |
moveHandle.js  | 0 | 0 | 0 | 0 |... 47,48,52,53 |
moveNewHandle.js  | 0 | 0 | 0 | 0 |... 75,76,78,79 |
moveNewHandleTouch.js  | 0 | 0 | 0 | 0 |... 106,109,112 |
touchMoveAllHandles.js  | 0 | 0 | 0 | 0 |... 63,64,65,67 |
touchMoveHandle.js  | 3.77 | 0 | 0 | 3.77 |... 125,129,131 |
src/measurementManager/  | 29.41 | 100 | 20 | 29.41 |  |
lineSampleMeasurement.js  | 0 | 100 | 0 | 0 | 4,6,9,10,12 |
measurementManager.js  | 41.67 | 100 | 33.33 | 41.67 |... 20,22,24,29 |
src/orientation/  | 3.85 | 0 | 0 | 3.85 |  |
getOrientationString.js  | 0 | 0 | 0 | 0 |... 21,22,24,28 |
index.js  | 100 | 100 | 100 | 100 |  |
invertOrientationString.js  | 0 | 100 | 0 | 0 |... ,6,7,8,9,11 |
src/referenceLines/  | 5.26 | 0 | 0 | 5.26 |  |
calculateReferenceLine.js  | 0 | 0 | 0 | 0 | 7,9,10,13 |
index.js  | 100 | 100 | 100 | 100 |  |
referenceLinesTool.js  | 10 | 0 | 0 | 10 |... 47,48,53,54 |
renderActiveReferenceLine.js  | 0 | 0 | 0 | 0 |... 64,65,66,67 |
src/requestPool/  | 6.67 | 0 | 0 | 6.67 |  |
requestPoolManager.js  | 6.67 | 0 | 0 | 6.67 |... 191,194,198 |
src/stackTools/  | 7.17 | 0 | 0 | 7.19 |  |
playClip.js  | 1.1 | 0 | 0 | 1.1 |... 249,250,253 |
scrollIndicator.js  | 12.9 | 0 | 0 | 12.9 |... 56,57,59,62 |
stackPrefetch.js  | 5.79 | 0 | 0 | 5.83 |... 289,294,298 |
stackScroll.js  | 17.07 | 0 | 0 | 17.07 |... 82,84,85,91 |
stackScrollKeyboard.js  | 22.22 | 0 | 0 | 22.22 |... 16,18,19,22 |
src/stateManagement/  | 11.22 | 0 | 3.51 | 11.22 |  |
appState.js  | 3.85 | 0 | 0 | 3.85 |... 59,61,64,67 |
frameOfReferenceStateManager.js  | 10.34 | 0 | 25 | 10.34 |... 70,71,75,76 |
imageIdSpecificStateManager.js  | 11.11 | 0 | 12.5 | 11.11 |... 77,79,80,83 |
loadHandlerManager.js  | 14.29 | 100 | 0 | 14.29 |... 14,18,22,26 |
stackSpecificStateManager.js  | 3.85 | 0 | 0 | 3.85 |... 84,87,89,90 |
textStyle.js  | 40 | 100 | 0 | 40 |... 14,18,22,26 |
timeSeriesSpecificStateManager.js  | 4.55 | 0 | 0 | 4.55 |... 67,70,72,73 |
toolColors.js  | 36.36 | 0 | 0 | 36.36 |... 19,23,27,31 |
toolCoordinates.js  | 33.33 | 100 | 0 | 33.33 | 4,8 |
toolState.js  | 0 | 0 | 0 | 0 |... 72,73,79,81 |
toolStyle.js  | 42.86 | 100 | 0 | 42.86 | 5,9,13,17 |
src/synchronization/  | 0 | 0 | 0 | 0 |  |
Synchronizer.js  | 0 | 0 | 0 | 0 |... 275,277,278 |
panZoomSynchronizer.js  | 0 | 0 | 0 | 0 |... 18,19,20,21 |
stackImageIndexSynchronizer.js  | 0 | 0 | 0 | 0 |... 50,53,55,56 |
stackImagePositionOffsetSynchronizer.js | 0 | 0 | 0 | 0 |... 69,72,74,75 |
stackImagePositionSynchronizer.js  | 0 | 0 | 0 | 0 |... 62,65,67,68 |
stackScrollSynchronizer.js  | 0 | 0 | 0 | 0 |... 54,57,59,60 |
updateImageSynchronizer.js  | 0 | 0 | 0 | 0 | 5,6,9 |
wwwcSynchronizer.js  | 0 | 0 | 0 | 0 |... 18,19,20,21 |
src/timeSeriesTools/  | 4.86 | 0 | 0 | 4.86 |  |
incrementTimePoint.js  | 0 | 0 | 0 | 0 |... 56,60,62,63 |
probeTool4D.js  | 4.88 | 0 | 0 | 4.88 |... 101,103,105 |
timeSeriesPlayer.js  | 7.41 | 0 | 0 | 7.41 |... 67,69,72,73 |
timeSeriesScroll.js  | 7.32 | 0 | 0 | 7.32 |... 81,83,84,87 |
src/util/  | 1.93 | 0 | 3.13 | 1.93 |  |
calculateEllipseStatistics.js  | 0 | 0 | 0 | 0 |... 29,37,38,40 |
calculateSUV.js  | 0 | 0 | 0 | 0 |... 47,48,49,51 |
copyPoints.js  | 100 | 100 | 100 | 100 |  |
drawArrow.js  | 0 | 100 | 0 | 0 |... 29,30,31,32 |
drawCircle.js  | 0 | 100 | 0 | 0 | 2,4,5,6,7,8 |
drawEllipse.js  | 0 | 100 | 0 | 0 |... 15,16,17,18 |
drawTextBox.js  | 0 | 0 | 0 | 0 |... 57,66,69,72 |
getLuminance.js  | 0 | 0 | 0 | 0 |... 30,31,32,37 |
getMaxSimultaneousRequests.js  | 3.33 | 0 | 0 | 3.33 |... 80,83,87,90 |
getRGBPixels.js  | 0 | 0 | 0 | 0 |... 26,27,28,33 |
isMouseButtonEnabled.js  | 0 | 100 | 0 | 0 | 4,7 |
pauseEvent.js  | 0 | 0 | 0 | 0 |... 13,16,17,19 |
pointInEllipse.js  | 0 | 0 | 0 | 0 |... ,9,19,24,27 |
pointInsideBoundingBox.js  | 0 | 0 | 0 | 0 | 2,3,6 |
pointProjector.js  | 0 | 0 | 0 | 0 |... 112,113,116 |
roundToDecimal.js  | 0 | 100 | 0 | 0 | 2,5 |
scroll.js  | 0 | 0 | 0 | 0 |... 13,15,16,18 |
scrollToIndex.js  | 0 | 0 | 0 | 0 |... 89,92,94,96 |
setContextToDisplayFontSize.js  | 0 | 100 | 0 | 0 | 13,15,17,19,22 |
------------------------------------------|----------|----------|----------|----------|----------------|
All files  | 4.9 | 1.3 | 3.24 | 4.9 |  |
------------------------------------------|----------|----------|----------|----------|----------------|

@@ -142,3 +142,3 @@ /*! cornerstone-wado-image-loader - v0.5.2 - 2015-04-04 | (c) 2014 Chris Hafey | https://github.com/chafey/cornerstoneWADOImageLoader */

$(cornerstone).trigger('CornerstoneImageLoadProgress', {
$(cornerstone.events).trigger('CornerstoneImageLoadProgress', {
imageId: imageId,

@@ -145,0 +145,0 @@ loaded: loaded,

{
"name": "cornerstone-tools",
"version": "0.8.6",
"version": "0.8.7",
"description": "Medical imaging tools for the Cornerstone library",

@@ -32,4 +32,4 @@ "main": "./dist/cornerstoneTools.min.js",

"webpack": "npm run clean:dist && npm run webpack:prod && npm run webpack:dev",
"webpack:dev": "ENV=dev webpack --progress --config ./config/webpack",
"webpack:prod": "ENV=prod webpack --progress --config ./config/webpack",
"webpack:dev": "webpack --progress --config ./config/webpack/webpack-dev",
"webpack:prod": "webpack --progress --config ./config/webpack/webpack-prod",
"webpack:watch": "webpack --progress --debug --watch --config ./config/webpack",

@@ -50,5 +50,7 @@ "start": "npm run webpack",

"chai": "^3.5.0",
"coveralls": "^2.13.1",
"docdash": "^0.4.0",
"eslint": "^3.19.0",
"eslint-loader": "^1.7.1",
"istanbul": "^0.4.5",
"istanbul-instrumenter-loader": "^2.0.0",

@@ -63,2 +65,3 @@ "jsdoc": "^3.4.3",

"karma-webpack": "^2.0.3",
"lodash": "^4.17.4",
"mocha": "^3.2.0",

@@ -70,3 +73,3 @@ "opn-cli": "^3.1.0",

"dependencies": {
"cornerstone-core": "^0.10.10",
"cornerstone-core": "^0.11.0",
"cornerstone-math": "^0.1.5",

@@ -73,0 +76,0 @@ "dicom-parser": "1.7.4",

@@ -0,1 +1,4 @@

[![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]
[![Coverage Status][coverage-image]][coverage-url]
cornerstoneTools

@@ -137,1 +140,14 @@ ================

Copyright 2015 Chris Hafey [chafey@gmail.com](mailto:chafey@gmail.com)
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE
[npm-url]: https://npmjs.org/package/cornerstone-tools
[npm-version-image]: http://img.shields.io/npm/v/cornerstone-tools.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/cornerstone-tools.svg?style=flat
[travis-url]: http://travis-ci.org/chafey/cornerstoneTools
[travis-image]: https://travis-ci.org/chafey/cornerstoneTools.svg?branch=master
[coverage-url]: https://coveralls.io/github/chafey/cornerstoneTools?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 not supported yet

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 too big to display

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