Skip to content

Commit

Permalink
Change syncWith to broadcastTo
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Dec 6, 2023
1 parent 01338e6 commit e4c7c4e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/SurfaceAndMaskViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,8 @@ const SubplateSurfaces = ({ visualState }: { visualState: VisualState }) => {
const init = async () => {
await Promise.all([initMeshCanvas(), initVolumeCanvas()]);
syncNiivueSettings();
volumeNvRef.current.syncWith(meshNvRef.current, {
"3d": true,
"2d": true,
});
meshNvRef.current.syncWith(volumeNvRef.current, {
"3d": true,
"2d": true,
});
volumeNvRef.current.broadcastTo(meshNvRef.current);
meshNvRef.current.broadcastTo(volumeNvRef.current);
};

const initVolumeCanvas = async () => {
Expand Down

0 comments on commit e4c7c4e

Please sign in to comment.