Skip to content

Commit c0d1dc5

Browse files
committed
code lint style fix
1 parent c5bc612 commit c0d1dc5

2 files changed

Lines changed: 19 additions & 20 deletions

File tree

apps/dicom-web/table.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const sources = [{
99
}, {
1010
'name': 'google',
1111
'url': 'https://dicomwebproxy.app/dicomWeb',
12-
},{
13-
'name':'BMD',
14-
'url': 'https://dicom-wg26.bmd-software.com/ext/dicom-web'
12+
}, {
13+
'name': 'BMD',
14+
'url': 'https://dicom-wg26.bmd-software.com/ext/dicom-web',
1515
}];
1616
// const j4careStudiesUrl = 'https://development.j4care.com:11443/dcm4chee-arc/aets/DCM4CHEE/rs'
1717
// const dicomWebStudiesUrl = 'https://dicomwebproxy-bqmq3usc3a-uc.a.run.app/dicomWeb'
@@ -39,9 +39,9 @@ const pageStates = {
3939
}, {
4040
'name': 'google',
4141
'url': 'https://dicomwebproxy-bqmq3usc3a-uc.a.run.app/dicomWeb',
42-
},{
43-
'name':'BMD',
44-
'url': 'https://dicom-wg26.bmd-software.com/ext/dicom-web'
42+
}, {
43+
'name': 'BMD',
44+
'url': 'https://dicom-wg26.bmd-software.com/ext/dicom-web',
4545
}],
4646
},
4747
studies: {
@@ -158,25 +158,24 @@ function initialize() {
158158
{
159159
data: null,
160160
title: 'Study Id',
161-
render: function (data, type, row) {
161+
render: function(data, type, row) {
162162
const value = row?.['0020000D']?.Value?.[0] ?? '';
163163
return generateLink(value, type, row);
164-
}
164+
},
165165
},
166166
{
167167
data: null,
168168
title: 'Name',
169-
render: function (data, type, row) {
169+
render: function(data, type, row) {
170170
return row?.['00100020']?.Value?.[0] ?? '';
171-
}
171+
},
172172
},
173173
{
174174
data: 'source',
175-
title: 'Source'
176-
}
177-
]
175+
title: 'Source',
176+
},
177+
],
178178
});
179-
180179
});
181180

182181
break;

common/DicomWebMods.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// special: for 'sparse' tiles, show a debug overlay on render.
44
showDebugTiles = false;
5-
// special: for z index multi-plane/focal images, pick only one z.
5+
// special: for z index multi-plane/focal images, pick only one z.
66
whichZ = 1; // -1 means all no matter what.
77
function DicomWebMods() {
88
async function openSeries(baseUrl, studyId, seriesId) {
@@ -90,7 +90,7 @@ function DicomWebMods() {
9090
}
9191
}
9292
console.log(tileMap);
93-
uniquePhysZ = [...new Set(Object.values(tileMap).map(tile => tile.physZ))].sort((a, b) => a - b);
93+
uniquePhysZ = [...new Set(Object.values(tileMap).map((tile) => tile.physZ))].sort((a, b) => a - b);
9494
}
9595

9696
return {
@@ -137,15 +137,15 @@ function DicomWebMods() {
137137
});
138138
// get a true list of possible z values
139139
const globalUniquePhysZ = [
140-
...new Set(instanceResults.flatMap(inst => inst.uniquePhysZ))
140+
...new Set(instanceResults.flatMap((inst) => inst.uniquePhysZ)),
141141
].sort((a, b) => a - b);
142142

143143
// picking a z slice
144-
if (whichZ == -1 || globalUniquePhysZ.length == 0){
144+
if (whichZ == -1 || globalUniquePhysZ.length == 0) {
145145
whichZ = false; // sinal no slices to filter between
146146
} else {
147-
whichZ = Math.min(Math.max(whichZ, 0), globalUniquePhysZ.length)
148-
instanceResults = instanceResults.filter(inst => inst.uniquePhysZ.includes(globalUniquePhysZ[whichZ]))
147+
whichZ = Math.min(Math.max(whichZ, 0), globalUniquePhysZ.length);
148+
instanceResults = instanceResults.filter((inst) => inst.uniquePhysZ.includes(globalUniquePhysZ[whichZ]));
149149
}
150150

151151
if (showDebugTiles) {

0 commit comments

Comments
 (0)