@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/build/index.d.ts +79 -16
- package/build/index.js +630 -208
- package/build/index.js.map +1 -1
- package/build/index.min.js +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/niivue.umd.js +1869 -0
- package/package.json +1 -1
- package/src/niivue/index.ts +0 -2
package/package.json
CHANGED
package/src/niivue/index.ts
CHANGED
|
@@ -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
|