fix: Clicking on measurement should highlight the measurement row in the measurement panel OHIF-433 (#3111)
* fix: OHIF-433 Clicking on measurement should highlight the measurement row in the measurement panel Added selected flag to each OHIF measurement. Listening to CS3D ANNOTATION_SELECTION_CHANGE to keep the selected flag in sync. * fix: OHIF-433 Clicking on measurement should highlight the measurement row in the measurement panel Fixed broken unit tests. * PR feedback from Alireza: - use MEASUREMENT_UPDATED event for selection changed - added TODO to eventually have CS3D introduce the selected flag per annotation - added MeasurementService._publishEvent * PR feedback: now using _broadcastEvent
This commit is contained in:
1 parent
a997198587
commit
58ae8690a7
8 files changed
+103
-36
No files matched your search
@@ -86,7 +86,7 @@ function getMappedAnnotations(annotation, DisplaySetService) {
|
||||
const targets = Object.keys(cachedStats);
|
||||
|
||||
if (!targets.length) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
|
||||
const annotations = [];
|
||||
|
||||
@@ -85,7 +85,7 @@ function getMappedAnnotations(annotation, DisplaySetService) {
|
||||
const targets = Object.keys(cachedStats);
|
||||
|
||||
if (!targets.length) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
|
||||
const annotations = [];
|
||||
|
||||
@@ -91,7 +91,7 @@ function getMappedAnnotations(annotation, DisplaySetService) {
|
||||
const targets = Object.keys(cachedStats);
|
||||
|
||||
if (!targets.length) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
|
||||
const annotations = [];
|
||||
|
||||
Reference in new issue
Block a user