feat(new-study-panel): default to list view for non thumbnail series, change default fitler to all, and add more menu to thumbnail items with a dicom tag browser (#4417)
This commit is contained in:
1 parent
1d0259451f
commit
a7fd9fa5bf
74 files changed
+361
-478
No files matched your search
@@ -156,6 +156,12 @@ export default class CustomizationService extends PubSubService {
|
||||
|
||||
public onModeEnter(): void {
|
||||
super.reset();
|
||||
|
||||
const modeCustomizationKeys = Array.from(this.modeCustomizations.keys());
|
||||
for (const key of modeCustomizationKeys) {
|
||||
this.transformedCustomizations.delete(key);
|
||||
}
|
||||
|
||||
this.modeCustomizations.clear();
|
||||
}
|
||||
|
||||
@@ -313,7 +319,12 @@ export default class CustomizationService extends PubSubService {
|
||||
return newValue;
|
||||
}
|
||||
|
||||
const returnValue = mergeWith({}, oldValue, newValue, mergeType === MergeEnum.Append ? appendCustomizer : mergeCustomizer);
|
||||
const returnValue = mergeWith(
|
||||
{},
|
||||
oldValue,
|
||||
newValue,
|
||||
mergeType === MergeEnum.Append ? appendCustomizer : mergeCustomizer
|
||||
);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
@@ -426,7 +437,12 @@ function appendCustomizer(obj, src) {
|
||||
const { position, isMerge } = findPosition(key, value, newList);
|
||||
if (isMerge) {
|
||||
if (typeof obj[position] === 'object') {
|
||||
newList[position] = mergeWith(Array.isArray(newList[position]) ? [] : {}, newList[position], value, appendCustomizer);
|
||||
newList[position] = mergeWith(
|
||||
Array.isArray(newList[position]) ? [] : {},
|
||||
newList[position],
|
||||
value,
|
||||
appendCustomizer
|
||||
);
|
||||
} else {
|
||||
newList[position] = value;
|
||||
}
|
||||
@@ -455,7 +471,7 @@ function findPosition(key, value, newList) {
|
||||
return { isMerge: true, position: (numVal + len) % len };
|
||||
}
|
||||
const absPosition = Math.ceil(numVal < 0 ? len + numVal : numVal);
|
||||
return { isMerge: false, position: Math.min(len, Math.max(absPosition, 0)) }
|
||||
return { isMerge: false, position: Math.min(len, Math.max(absPosition, 0)) };
|
||||
}
|
||||
const findIndex = newList.findIndex(it => it.id === key);
|
||||
if (findIndex !== -1) {
|
||||
@@ -467,7 +483,7 @@ function findPosition(key, value, newList) {
|
||||
return { isMerge: true, position: (priority + len) % len };
|
||||
}
|
||||
const absPosition = Math.ceil(priority < 0 ? len + priority : priority);
|
||||
return { isMerge: false, position: Math.min(len, Math.max(absPosition, 0)) }
|
||||
return { isMerge: false, position: Math.min(len, Math.max(absPosition, 0)) };
|
||||
}
|
||||
return { isMerge: false, position: len };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user