ESLint
This commit is contained in:
parent
4055655c7a
commit
74d8cba5be
@ -15,7 +15,7 @@ class BaseLoadingListener {
|
|||||||
|
|
||||||
_clearSession() {
|
_clearSession() {
|
||||||
const progressSessionId = this._getProgressSessionId();
|
const progressSessionId = this._getProgressSessionId();
|
||||||
Session.set(progressSessionId, undefined)
|
Session.set(progressSessionId, undefined);
|
||||||
delete Session.keys.progressSessionId;
|
delete Session.keys.progressSessionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ class DICOMFileLoadingListener extends BaseLoadingListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_imageLoadProgressEventHandle(e, eventData) {
|
_imageLoadProgressEventHandle(e, eventData) {
|
||||||
var dataSetUrl = this._getDataSetUrl(eventData.imageId);
|
const dataSetUrl = this._getDataSetUrl(eventData.imageId);
|
||||||
|
|
||||||
if (!this.dataSetUrls.has(dataSetUrl)) {
|
if (!this.dataSetUrls.has(dataSetUrl)) {
|
||||||
return;
|
return;
|
||||||
@ -90,7 +90,7 @@ class DICOMFileLoadingListener extends BaseLoadingListener {
|
|||||||
imageId = imageId.replace(/frame=\d+&?/i, '');
|
imageId = imageId.replace(/frame=\d+&?/i, '');
|
||||||
|
|
||||||
// Remove the last "&" like in "dicomweb:...&serverId=GQGpJcb4CnYDdu53q&"
|
// Remove the last "&" like in "dicomweb:...&serverId=GQGpJcb4CnYDdu53q&"
|
||||||
imageId = imageId.replace(/&$/, "");
|
imageId = imageId.replace(/&$/, '');
|
||||||
|
|
||||||
return imageId;
|
return imageId;
|
||||||
}
|
}
|
||||||
@ -226,7 +226,7 @@ class StudyLoadingListener {
|
|||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
for (let i = 0; i < length; i++) {
|
||||||
const displaySetInstanceUid = displaySetInstanceUids[i];
|
const displaySetInstanceUid = displaySetInstanceUids[i];
|
||||||
const displaySet = this.listeners[displaySetInstanceUid]
|
const displaySet = this.listeners[displaySetInstanceUid];
|
||||||
displaySet.destroy();
|
displaySet.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ class StudyLoadingListener {
|
|||||||
const schema = this._getSchema(stack);
|
const schema = this._getSchema(stack);
|
||||||
|
|
||||||
if ((schema === 'wadors') || !options.isMultiFrame) {
|
if ((schema === 'wadors') || !options.isMultiFrame) {
|
||||||
return new StackLoadingListener(stack)
|
return new StackLoadingListener(stack);
|
||||||
} else if ((schema === 'dicomweb') || (schema === 'wadouri')) {
|
} else if ((schema === 'dicomweb') || (schema === 'wadouri')) {
|
||||||
return new DICOMFileLoadingListener(stack);
|
return new DICOMFileLoadingListener(stack);
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ class StudyLoadingListener {
|
|||||||
|
|
||||||
_getSchema(stack) {
|
_getSchema(stack) {
|
||||||
const imageId = stack.imageIds[0];
|
const imageId = stack.imageIds[0];
|
||||||
const colonIndex = imageId.indexOf(":");
|
const colonIndex = imageId.indexOf(':');
|
||||||
return imageId.substring(0, colonIndex);
|
return imageId.substring(0, colonIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user