Skip to content

Commit

Permalink
Merge pull request #66 from thewtex/vtk-bump
Browse files Browse the repository at this point in the history
feat(MouseWheelTouch): Improve normalization via vtk.js bump
  • Loading branch information
thewtex authored Mar 21, 2018
2 parents 5e649ce + 9f9676f commit c224194
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"express": "4.16.2",
"itk": "8.0.2",
"open": "0.0.5",
"vtk.js": "6.4.0"
"vtk.js": "6.4.1"
},
"devDependencies": {
"babel-polyfill": "^6.26.0",
Expand Down
6 changes: 3 additions & 3 deletions src/userInterface/createImageUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function createTransferFunctionWidget(
});

// Window
const windowMotionScale = 100.0;
const windowMotionScale = 150.0;
const windowGet = () => {
const gaussian = transferFunctionWidget.getGaussians()[0];
return gaussian.width * windowMotionScale;
Expand All @@ -194,7 +194,7 @@ function createTransferFunctionWidget(
rangeManipulator.setVerticalListener(0, windowMotionScale, 1, windowGet, windowSet);

// Level
const levelMotionScale = 100.0;
const levelMotionScale = 150.0;
const levelGet = () => {
const gaussian = transferFunctionWidget.getGaussians()[0];
return gaussian.position * levelMotionScale;
Expand Down Expand Up @@ -222,7 +222,7 @@ function createTransferFunctionWidget(
});

// Opacity
const opacityMotionScale = 100.0;
const opacityMotionScale = 200.0;
const opacityGet = () => {
const gaussian = transferFunctionWidget.getGaussians()[0];
return gaussian.height * opacityMotionScale;
Expand Down

0 comments on commit c224194

Please sign in to comment.