feat(thumbnail highlight): Thumbnails of hydrated series are now highlighted (#3594)
This commit is contained in:
1 parent
3fe676638b
commit
0f9b36906f
11 files changed
+121
-29
No files matched your search
@@ -1,17 +1,8 @@
|
||||
import { ExtensionManager } from '../../extensions';
|
||||
import { InstanceMetadata } from '../../types';
|
||||
import { DisplaySet, InstanceMetadata } from '../../types';
|
||||
import { PubSubService } from '../_shared/pubSubServiceInterface';
|
||||
import EVENTS from './EVENTS';
|
||||
|
||||
export type DisplaySet = {
|
||||
displaySetInstanceUID: string;
|
||||
instances: InstanceMetadata[];
|
||||
StudyInstanceUID: string;
|
||||
SeriesInstanceUID?: string;
|
||||
numImages?: number;
|
||||
unsupported?: boolean;
|
||||
};
|
||||
|
||||
const displaySetCache = new Map<string, DisplaySet>();
|
||||
|
||||
/**
|
||||
@@ -154,7 +145,10 @@ export default class DisplaySetService extends PubSubService {
|
||||
return displaySet;
|
||||
}
|
||||
|
||||
public setDisplaySetMetadataInvalidated(displaySetInstanceUID: string): void {
|
||||
public setDisplaySetMetadataInvalidated(
|
||||
displaySetInstanceUID: string,
|
||||
invalidateData = true
|
||||
): void {
|
||||
const displaySet = this.getDisplaySetByUID(displaySetInstanceUID);
|
||||
|
||||
if (!displaySet) {
|
||||
@@ -162,10 +156,10 @@ export default class DisplaySetService extends PubSubService {
|
||||
}
|
||||
|
||||
// broadcast event to update listeners with the new displaySets
|
||||
this._broadcastEvent(
|
||||
EVENTS.DISPLAY_SET_SERIES_METADATA_INVALIDATED,
|
||||
displaySetInstanceUID
|
||||
);
|
||||
this._broadcastEvent(EVENTS.DISPLAY_SET_SERIES_METADATA_INVALIDATED, {
|
||||
displaySetInstanceUID,
|
||||
invalidateData,
|
||||
});
|
||||
}
|
||||
|
||||
public deleteDisplaySet(displaySetInstanceUID) {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { InstanceMetadata } from './StudyMetadata';
|
||||
|
||||
export type DisplaySet = {
|
||||
displaySetInstanceUID: string;
|
||||
instances: InstanceMetadata[];
|
||||
StudyInstanceUID: string;
|
||||
SeriesInstanceUID?: string;
|
||||
numImages?: number;
|
||||
unsupported?: boolean;
|
||||
};
|
||||
|
||||
export type DisplaySetSeriesMetadataInvalidatedEvent = {
|
||||
displaySetInstanceUID: string;
|
||||
invalidateData: boolean;
|
||||
};
|
||||
@@ -2,7 +2,6 @@ import * as Extensions from '../extensions/ExtensionManager';
|
||||
import * as HangingProtocol from './HangingProtocol';
|
||||
import Services from './Services';
|
||||
import Hotkey from '../classes/Hotkey';
|
||||
import { DisplaySet } from '../services/DisplaySetService/DisplaySetService';
|
||||
import { DataSourceDefinition } from './DataSource';
|
||||
|
||||
export * from '../services/CustomizationService/types';
|
||||
@@ -10,6 +9,7 @@ export * from '../services/CustomizationService/types';
|
||||
export * from './AppConfig';
|
||||
export * from './Consumer';
|
||||
export * from './Command';
|
||||
export * from './DisplaySet';
|
||||
export * from './StudyMetadata';
|
||||
export * from './PanelModule';
|
||||
export * from './IPubSub';
|
||||
@@ -19,11 +19,4 @@ export * from './Color';
|
||||
* Export the types used within the various services and managers, but
|
||||
* not the services/managers themselves, which are exported at the top level.
|
||||
*/
|
||||
export {
|
||||
Extensions,
|
||||
HangingProtocol,
|
||||
Services,
|
||||
Hotkey,
|
||||
DisplaySet,
|
||||
DataSourceDefinition,
|
||||
};
|
||||
export { Extensions, HangingProtocol, Services, Hotkey, DataSourceDefinition };
|
||||
Reference in new issue
Block a user