Skip to content

Commit

Permalink
z-slice move may set imageLoaded; remove unused reference
Browse files Browse the repository at this point in the history
  • Loading branch information
frasercl committed Jan 31, 2024
1 parent b4d1062 commit c104427
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/aics-image-viewer/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ const App: React.FC<AppProps> = (props) => {
axismax = isOrthoAxis ? slice + oneSlice : 1.0;
if (axis === "z" && viewerSettings.viewMode === ViewMode.xy) {
view3d.setZSlice(currentImage, Math.floor(slice * currentImage.imageInfo.volumeSize.z));
if (!currentImage.isLoaded()) {
setImageLoaded(false);
}
}
}
// view3d wants the coordinates in the -0.5 to 0.5 range
Expand Down Expand Up @@ -747,7 +750,6 @@ const App: React.FC<AppProps> = (props) => {
showControls={showControls}
// image state
imageName={image?.name}
imageLoaded={imageLoaded}
hasImage={!!image}
pixelSize={image ? image.imageInfo.physicalPixelSize.toArray() : [1, 1, 1]}
channelDataChannels={image?.channels}
Expand Down
1 change: 0 additions & 1 deletion src/aics-image-viewer/components/ChannelsWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { ColorArray, ColorObject } from "../../shared/utils/colorRepresentations
import { IsosurfaceFormat, Styles } from "../../shared/types";

export interface ChannelsWidgetProps {
imageLoaded: boolean;
channelDataChannels: Channel[] | undefined;
channelSettings: ChannelState[];
channelGroupedByType: ChannelGrouping;
Expand Down
1 change: 0 additions & 1 deletion src/aics-image-viewer/components/ControlPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export default function ControlPanel(props: ControlPanelProps): React.ReactEleme
<div className="channel-rows-list">
{tab === ControlTab.Channels && (
<ChannelsWidget
imageLoaded={props.imageLoaded}
channelSettings={props.channelSettings}
channelDataChannels={props.channelDataChannels}
channelGroupedByType={props.channelGroupedByType}
Expand Down

0 comments on commit c104427

Please sign in to comment.