Skip to content

Commit

Permalink
fix(compareUI): slowing performance with image mix animation
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed May 16, 2023
1 parent 461a2dc commit 5261928
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 192 deletions.
14 changes: 7 additions & 7 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 @@ -45,7 +45,7 @@
"itk-mesh-io": "^1.0.0-b.84",
"itk-viewer-color-maps": "^1.2.0",
"itk-viewer-icons": "11.13.1",
"itk-viewer-transfer-function-editor": "^1.2.2",
"itk-viewer-transfer-function-editor": "^1.2.5",
"itk-wasm": "^1.0.0-b.83",
"mobx": "^5.15.7",
"mousetrap": "^1.6.5",
Expand Down
363 changes: 188 additions & 175 deletions src/UI/reference-ui/dist/referenceUIMachineOptions.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/UI/reference-ui/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 src/UI/reference-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@material/web": "^1.0.0-pre.4",
"itk-viewer-color-maps": "^1.2.0",
"itk-viewer-icons": "^11.13.1",
"itk-viewer-transfer-function-editor": "^1.2.2",
"itk-viewer-transfer-function-editor": "^1.2.5",
"lit": "^2.4.0",
"xstate-lit": "^1.3.1"
}
Expand Down
4 changes: 4 additions & 0 deletions src/UI/reference-ui/src/ItkVtkViewer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@
padding-right: 6px;
}

.noFlexBasis {
flex-basis: auto;
}

.layerIcon {
display: inline-block;
}
Expand Down
2 changes: 1 addition & 1 deletion src/UI/reference-ui/src/Layers/compareUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const compareUI = context => (send, onReceive) => {
<div style="display: flex; justify-content: space-between;">
<label class="${style.inputLabel}">Image Mix</label>
<input id="${playImageMixButtonId}" type="checkbox" class="${style.toggleInput}">
<label itk-vtk-tooltip itk-vtk-tooltip-top-annotations itk-vtk-tooltip-content="animate" class="${style.visibleButton} ${style.toggleButton}" for="${playImageMixButtonId}">
<label itk-vtk-tooltip itk-vtk-tooltip-top-annotations itk-vtk-tooltip-content="animate" class="${style.visibleButton} ${style.noFlexBasis} ${style.toggleButton}" for="${playImageMixButtonId}">
<img src="${playIconDataUri}" id="${playImageMixImgId}" alt="animate" />
</label>
</input>
Expand Down

0 comments on commit 5261928

Please sign in to comment.