@niivue/niivue 0.44.2-dev.2 → 0.44.2-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niivue/niivue",
3
- "version": "0.44.2-dev.2",
3
+ "version": "0.44.2-dev.4",
4
4
  "description": "minimal webgl2 nifti image viewer",
5
5
  "types": "./build/index.d.ts",
6
6
  "main": "./build/index.js",
@@ -7784,8 +7784,6 @@ export class Niivue {
7784
7784
  const xDiff = (this.clickToSegmentXY[0] - x) / this.gl.canvas.width
7785
7785
  const yDiff = (this.clickToSegmentXY[1] - y) / this.gl.canvas.height
7786
7786
  diff = Math.max(Math.abs(xDiff), Math.abs(yDiff))
7787
- // use the sign of the larger difference to determine the direction
7788
- diff *= Math.sign(Math.abs(xDiff) > Math.abs(yDiff) ? xDiff : yDiff)
7789
7787
  threshold = this.opts.clickToSegmentPercent + diff
7790
7788
  }
7791
7789
  // get voxel value of pt