dicom-microscopy-viewer
Advanced tools
Comparing version 0.47.1 to 0.47.2
module.exports = { | ||
presets: [['@babel/preset-env', { targets: { node: 'current' } }]], | ||
presets: [ | ||
['@babel/preset-env', { | ||
targets: { | ||
browsers: ['ie 11'] | ||
} | ||
}] | ||
], | ||
plugins: [ | ||
['@babel/plugin-proposal-object-rest-spread'], | ||
['@babel/plugin-transform-runtime', | ||
@@ -9,4 +14,5 @@ { | ||
corejs: 3 | ||
}] | ||
} | ||
] | ||
] | ||
} |
@@ -18,2 +18,4 @@ /*! | ||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
/** | ||
@@ -20,0 +22,0 @@ * @license |
@@ -18,2 +18,4 @@ /*! | ||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
/** | ||
@@ -20,0 +22,0 @@ * @license |
{ | ||
"name": "dicom-microscopy-viewer", | ||
"version": "0.47.1", | ||
"version": "0.47.2", | ||
"license": "MIT", | ||
@@ -51,3 +51,3 @@ "author": "ImagingDataCommons", | ||
"webpack:dynamic-import:watch": "webpack --progress --watch --config ./config/webpack/webpack-dynamic-import", | ||
"webpack:watch": "webpack --progress --watch --config ./config/webpack" | ||
"webpack:watch": "webpack --progress --watch --config ./config/webpack/webpack-bundle" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
@@ -37,10 +37,2 @@ import PointGeometry from 'ol/geom/Point' | ||
const swapIfGreater = (array1, array2, index) => { | ||
if (array1[index] > array2[index]) { | ||
const temp = array1[index] | ||
array1[index] = array2[index] | ||
array2[index] = temp | ||
} | ||
} | ||
/** | ||
@@ -59,25 +51,11 @@ * Check if coordinate is inside bounding box | ||
) => { | ||
const result = !( | ||
Math.abs(topLeft[0]) > Math.abs(coordinate[0]) || | ||
Math.abs(coordinate[0]) > Math.abs(bottomRight[0]) || | ||
Math.abs(topLeft[1]) > Math.abs(coordinate[1]) || | ||
Math.abs(coordinate[1]) > Math.abs(bottomRight[1]) | ||
) || !( | ||
Math.abs(bottomRight[0]) > Math.abs(coordinate[0]) || | ||
Math.abs(coordinate[0]) > Math.abs(topLeft[0]) || | ||
Math.abs(bottomRight[1]) > Math.abs(coordinate[1]) || | ||
Math.abs(coordinate[1]) > Math.abs(topLeft[1]) | ||
) | ||
if (result === true) { | ||
return result | ||
} else { | ||
swapIfGreater(topLeft, bottomRight, 0) | ||
swapIfGreater(topLeft, bottomRight, 1) | ||
return !( | ||
Math.abs(topLeft[0]) > Math.abs(coordinate[0]) || | ||
Math.abs(coordinate[0]) > Math.abs(bottomRight[0]) || | ||
Math.abs(topLeft[1]) > Math.abs(coordinate[1]) || | ||
Math.abs(coordinate[1]) > Math.abs(bottomRight[1]) | ||
) | ||
} | ||
const minX = Math.min(topLeft[0], bottomRight[0]) | ||
const maxX = Math.max(topLeft[0], bottomRight[0]) | ||
const minY = Math.min(topLeft[1], bottomRight[1]) | ||
const maxY = Math.max(topLeft[1], bottomRight[1]) | ||
return coordinate[0] >= minX && | ||
coordinate[0] <= maxX && | ||
coordinate[1] >= minY && | ||
coordinate[1] <= maxY | ||
} | ||
@@ -473,2 +451,8 @@ | ||
const cachedAffine = getAffineBasedOnPyramidLevel({ | ||
affine, | ||
pyramid, | ||
annotationGroup | ||
}) | ||
const features = [] | ||
@@ -498,7 +482,3 @@ | ||
point: [firstCoordinate[0], firstCoordinate[1]], | ||
affine: getAffineBasedOnPyramidLevel({ | ||
affine, | ||
pyramid, | ||
annotationGroup | ||
}) | ||
affine: cachedAffine | ||
}) | ||
@@ -505,0 +485,0 @@ } |
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
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
30340337
166
46235
3
84