in pathology/viewer/src/components/image-viewer-page/image-viewer-page.component.ts [90:151]
ngOnInit() {
this.imageViewerPageStore.multiViewScreens$
.pipe(takeUntil(this.destroy$), tap((multiViewScreens) => {
this.multiViewScreens = multiViewScreens;
}))
.subscribe();
this.imageViewerPageStore.isMultiViewSlidePicker$
.pipe(
takeUntil(this.destroy$),
tap((isMultiViewSlidePicker) => {
this.isMultiViewScreenPicker = isMultiViewSlidePicker;
}),
)
.subscribe();
this.imageViewerPageStore.syncLock$
.pipe(takeUntil(this.destroy$), tap((syncLock) => {
this.syncLock = syncLock;
}))
.subscribe();
this.imageViewerPageStore.splitViewSlideDescriptors$
.pipe(
takeUntil(this.destroy$),
tap((splitViewSlideDescriptors) => {
this.splitViewSlideDescriptors = splitViewSlideDescriptors;
}),
)
.subscribe();
this.imageViewerPageStore.slideInfoBySlideDescriptorId$
.pipe(
takeUntil(this.destroy$),
tap((slideInfoBySlideDescriptorId) => {
this.slideInfoBySlideDescriptorId =
new Map(slideInfoBySlideDescriptorId);
}),
)
.subscribe();
this.imageViewerPageStore.multiViewScreenSelectedIndex$
.pipe(
takeUntil(this.destroy$),
tap((multiViewScreenSelectedIndex) => {
this.multiViewScreenSelectedIndex = multiViewScreenSelectedIndex;
}),
)
.subscribe();
combineLatest([
this.imageViewerPageStore.selectedSplitViewSlideDescriptor$,
this.imageViewerPageStore.olMapBySlideDescriptorId$,
])
.subscribe(
([selectedSplitViewSlideDescriptor, olMapBySlideDescriptorId]) => {
if (!selectedSplitViewSlideDescriptor ||
!olMapBySlideDescriptorId ||
!olMapBySlideDescriptorId.has(
selectedSplitViewSlideDescriptor.id as string)) {
return;
}
this.selectedOlMap = olMapBySlideDescriptorId.get(
selectedSplitViewSlideDescriptor.id as string);
});
}