diff --git a/docs/releases/v2.12.2.md b/docs/releases/v2.12.2.md index 7cc2498301c6e6e4261778e2313c101d903d4091..460f1ad348722d61037a9818bc164fc191a7ded3 100644 --- a/docs/releases/v2.12.2.md +++ b/docs/releases/v2.12.2.md @@ -3,3 +3,4 @@ ## Bugfixes - fixes screenshot in fsaverage +- on hover region label in fsaverage now display properly diff --git a/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts b/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts index 4af773b7b571e4593de25ca779827c24b8ab8b6a..275b12b736715e33fa95f0854a0dd677b32baab7 100644 --- a/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts +++ b/src/viewerModule/threeSurfer/threeSurferGlue/threeSurfer.component.ts @@ -906,13 +906,9 @@ export class ThreeSurferGlueCmp implements IViewer<'threeSurfer'>, AfterViewInit } }) this.mouseoverText = '' - if (mouseover.length > 0) { - this.mouseoverText += mouseover.map(el => el.name).join(' / ') - } if (error) { this.mouseoverText += `::error: ${error}` } - if (this.mouseoverText === '') this.mouseoverText = null } public toggleMeshVis(label: string) { diff --git a/src/viewerModule/viewerCmp/viewerCmp.component.ts b/src/viewerModule/viewerCmp/viewerCmp.component.ts index b0d53ca1162ec2a39f94a90a091c32dbd5ea3663..75f18fd1e32b272b33b510222e3d11f9e71ffee6 100644 --- a/src/viewerModule/viewerCmp/viewerCmp.component.ts +++ b/src/viewerModule/viewerCmp/viewerCmp.component.ts @@ -405,6 +405,14 @@ export class ViewerCmp implements OnDestroy { ) } } + if (event.data.viewerType === "threeSurfer") { + const { regions=[] } = (event.data as TContextArg<"threeSurfer">).payload + this.store$.dispatch( + userInteraction.actions.mouseoverRegions({ + regions: regions as SxplrRegion[] + }) + ) + } break default: }