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

dicom-microscopy-viewer

Package Overview
Dependencies
Maintainers
0
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dicom-microscopy-viewer - npm Package Compare versions

Comparing version 0.47.1 to 0.47.2

dist/dynamic-import/index.worker.min.worker.js.LICENSE.txt

12

babel.config.js
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

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