Skip to content

Commit

Permalink
Reset style of optical paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermd committed Jul 15, 2022
1 parent ef96142 commit 5aef612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slim",
"version": "0.10.0",
"version": "0.10.1",
"homepage": "https://github.com/herrmannlab/slim",
"private": true,
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/components/SlideViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,12 @@ class SlideViewer extends React.Component<SlideViewerProps, SlideViewerState> {
} | null
} = {}
opticalPaths.forEach(opticalPath => {
// First, deactivate and hide all optical paths
// First, deactivate and hide all optical paths and reset style
const identifier = opticalPath.identifier
this.volumeViewer.hideOpticalPath(identifier)
this.volumeViewer.deactivateOpticalPath(identifier)
const style = this.volumeViewer.getOpticalPathDefaultStyle(identifier)
this.volumeViewer.setOpticalPathStyle(identifier, style)

presentationState.AdvancedBlendingSequence.forEach(blendingItem => {
// FIXME
Expand Down

0 comments on commit 5aef612

Please sign in to comment.