Skip to content

Commit

Permalink
make syncing colormap optional
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE authored Feb 28, 2024
1 parent d317ea4 commit d911041
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ export default function voiSyncCallback(
| Types.VolumeViewportProperties
| Types.StackViewportProperties = {
voiRange: range,
colormap,
};

if (options?.syncInvertState && invertStateChanged) {
tProperties.invert = invert;
}
if (options?.syncColormap && colormap) {
tProperties.colormap = colormap;
}

if (tViewport instanceof BaseVolumeViewport) {
tViewport.setProperties(tProperties, volumeId);
Expand Down

0 comments on commit d911041

Please sign in to comment.