fix: webpack import bugs showing warnings on import (#4265)
This commit is contained in:
1 parent
6d11048ca5
commit
24c511f4bc
23 files changed
+975
-1008
No files matched your search
@@ -37,7 +37,7 @@
|
||||
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
|
||||
"@cornerstonejs/codec-openjpeg": "^1.2.3",
|
||||
"@cornerstonejs/codec-openjph": "^2.4.5",
|
||||
"@cornerstonejs/dicom-image-loader": "^1.81.6",
|
||||
"@cornerstonejs/dicom-image-loader": "^1.82.0",
|
||||
"@ohif/ui": "3.9.0-beta.58",
|
||||
"cornerstone-math": "0.1.9",
|
||||
"dicom-parser": "^1.8.21"
|
||||
|
||||
@@ -31,6 +31,7 @@ export interface ExtensionParams extends ExtensionConstructor {
|
||||
servicesManager: AppTypes.ServicesManager;
|
||||
serviceProvidersManager: ServiceProvidersManager;
|
||||
configuration?: ExtensionConfiguration;
|
||||
peerImport: (moduleId: string) => Promise<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,6 +89,7 @@ export default class ExtensionManager extends PubSubService {
|
||||
private dataSourceDefs: Record<string, any>;
|
||||
private defaultDataSourceName: string;
|
||||
private activeDataSource: string;
|
||||
private peerImport: (moduleId) => Promise<any>;
|
||||
|
||||
constructor({
|
||||
commandsManager,
|
||||
@@ -116,6 +118,7 @@ export default class ExtensionManager extends PubSubService {
|
||||
this.dataSourceDefs = {};
|
||||
this.defaultDataSourceName = appConfig.defaultDataSourceName;
|
||||
this.activeDataSource = appConfig.defaultDataSourceName;
|
||||
this.peerImport = appConfig.peerImport;
|
||||
}
|
||||
|
||||
public setActiveDataSource(dataSource: string): void {
|
||||
@@ -608,6 +611,10 @@ export default class ExtensionManager extends PubSubService {
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
public get appConfig() {
|
||||
return this._appConfig;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -122,13 +122,14 @@ declare global {
|
||||
onConfiguration?: (dicomWebConfig: any, options: any) => any;
|
||||
dataSources?: any;
|
||||
oidc?: any;
|
||||
peerImport?: (moduleId: string) => Promise<any>;
|
||||
studyPrefetcher: {
|
||||
enabled: boolean;
|
||||
displaySetsCount: number;
|
||||
maxNumPrefetchRequests: number;
|
||||
order: 'closest' | 'downward' | 'upward';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface Test {
|
||||
services?: Services;
|
||||
|
||||
Reference in new issue
Block a user