@ohif/app 3.14.0-beta.59 → 3.14.0-beta.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{3386.bundle.8b87c5e9.js → 3386.bundle.09162b93.js} +216 -208
- package/dist/{5888.bundle.cd717f42.js → 5888.bundle.ceb1bc83.js} +1 -0
- package/dist/{6956.bundle.a9e0e3bb.js → 6956.bundle.74258d90.js} +4 -1
- package/dist/{app.bundle.7e4e841a.js → app.bundle.00e56285.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +5 -5
|
@@ -2416,7 +2416,7 @@ const Enums = {
|
|
|
2416
2416
|
/* export default */ var enums = (Enums);
|
|
2417
2417
|
|
|
2418
2418
|
// EXTERNAL MODULE: ../core/src/index.ts + 74 modules
|
|
2419
|
-
var
|
|
2419
|
+
var src = __webpack_require__(24178);
|
|
2420
2420
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/loaders/index.js
|
|
2421
2421
|
var loaders = __webpack_require__(34270);
|
|
2422
2422
|
// EXTERNAL MODULE: ../../node_modules/@cornerstonejs/core/dist/esm/enums/RequestType.js
|
|
@@ -2437,7 +2437,7 @@ function initWADOImageLoader(userAuthenticationService, appConfig, extensionMana
|
|
|
2437
2437
|
beforeSend: function(xhr) {
|
|
2438
2438
|
const sourceConfig = extensionManager.getActiveDataSource()?.[0].getConfig() ?? {};
|
|
2439
2439
|
const headers = userAuthenticationService.getAuthorizationHeader();
|
|
2440
|
-
const acceptHeader =
|
|
2440
|
+
const acceptHeader = src/* .utils.generateAcceptHeader */.Wp.generateAcceptHeader(sourceConfig.acceptHeader, sourceConfig.requestTransferSyntaxUID, sourceConfig.omitQuotationForMultipartRequest);
|
|
2441
2441
|
const xhrRequestHeaders = {
|
|
2442
2442
|
Accept: acceptHeader
|
|
2443
2443
|
};
|
|
@@ -2447,7 +2447,7 @@ function initWADOImageLoader(userAuthenticationService, appConfig, extensionMana
|
|
|
2447
2447
|
return xhrRequestHeaders;
|
|
2448
2448
|
},
|
|
2449
2449
|
errorInterceptor: (error)=>{
|
|
2450
|
-
|
|
2450
|
+
src/* .errorHandler.getHTTPErrorHandler */.r_.getHTTPErrorHandler(error);
|
|
2451
2451
|
}
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
@@ -3157,7 +3157,7 @@ function getDisplayText(mappedAnnotations, displaySet) {
|
|
|
3157
3157
|
if (length === null || length === undefined) {
|
|
3158
3158
|
return displayText;
|
|
3159
3159
|
}
|
|
3160
|
-
const roundedLength =
|
|
3160
|
+
const roundedLength = src/* .utils.roundNumber */.Wp.roundNumber(length, 2);
|
|
3161
3161
|
displayText.primary.push(`${roundedLength} ${unit}`);
|
|
3162
3162
|
displayText.secondary.push(`S: ${SeriesNumber}${instanceText}${frameText}`);
|
|
3163
3163
|
return displayText;
|
|
@@ -3343,8 +3343,8 @@ function Bidirectional_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
3343
3343
|
return displayText;
|
|
3344
3344
|
} // Area is the same for all series
|
|
3345
3345
|
const { length, width, unit, SeriesNumber, SOPInstanceUID, frameNumber } = mappedAnnotations[0];
|
|
3346
|
-
const roundedLength =
|
|
3347
|
-
const roundedWidth =
|
|
3346
|
+
const roundedLength = src/* .utils.roundNumber */.Wp.roundNumber(length, 2);
|
|
3347
|
+
const roundedWidth = src/* .utils.roundNumber */.Wp.roundNumber(width, 2);
|
|
3348
3348
|
const instance = displaySet.instances.find((image)=>image.SOPInstanceUID === SOPInstanceUID);
|
|
3349
3349
|
let InstanceNumber;
|
|
3350
3350
|
if (instance) {
|
|
@@ -3364,10 +3364,10 @@ function Bidirectional_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
3364
3364
|
|
|
3365
3365
|
const getStatisticDisplayString = (numbers, unit, key)=>{
|
|
3366
3366
|
if (Array.isArray(numbers) && numbers.length > 0) {
|
|
3367
|
-
const results = numbers.map((number)=>
|
|
3367
|
+
const results = numbers.map((number)=>src/* .utils.roundNumber */.Wp.roundNumber(number, 2));
|
|
3368
3368
|
return `${key.charAt(0).toUpperCase() + key.slice(1)}: ${results.join(', ')} ${utils_getDisplayUnit(unit)}`;
|
|
3369
3369
|
}
|
|
3370
|
-
const result =
|
|
3370
|
+
const result = src/* .utils.roundNumber */.Wp.roundNumber(numbers, 2);
|
|
3371
3371
|
return `${key.charAt(0).toUpperCase() + key.slice(1)}: ${result} ${utils_getDisplayUnit(unit)}`;
|
|
3372
3372
|
};
|
|
3373
3373
|
|
|
@@ -3515,7 +3515,7 @@ function EllipticalROI_getDisplayText(mappedAnnotations, displaySet, customizati
|
|
|
3515
3515
|
}
|
|
3516
3516
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
3517
3517
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : '';
|
|
3518
|
-
const roundedArea =
|
|
3518
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area, 2);
|
|
3519
3519
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`); // Todo: we need a better UI for displaying all these information
|
|
3520
3520
|
mappedAnnotations.forEach((mappedAnnotation)=>{
|
|
3521
3521
|
const { unit, max, SeriesNumber } = mappedAnnotation;
|
|
@@ -3672,7 +3672,7 @@ function CircleROI_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
3672
3672
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
3673
3673
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : ''; // Area sometimes becomes undefined if `preventHandleOutsideImage` is off.
|
|
3674
3674
|
if (!isNaN(area)) {
|
|
3675
|
-
const roundedArea =
|
|
3675
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area || 0, 2);
|
|
3676
3676
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`);
|
|
3677
3677
|
} // Todo: we need a better UI for displaying all these information
|
|
3678
3678
|
mappedAnnotations.forEach((mappedAnnotation)=>{
|
|
@@ -3954,7 +3954,7 @@ function CobbAngle_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
3954
3954
|
if (angle === undefined) {
|
|
3955
3955
|
return displayText;
|
|
3956
3956
|
}
|
|
3957
|
-
const roundedAngle =
|
|
3957
|
+
const roundedAngle = src/* .utils.roundNumber */.Wp.roundNumber(angle, 2);
|
|
3958
3958
|
displayText.primary.push(`${roundedAngle} ${utils_getDisplayUnit(unit)}`);
|
|
3959
3959
|
displayText.secondary.push(`S: ${SeriesNumber}${instanceText}${frameText}`);
|
|
3960
3960
|
return displayText;
|
|
@@ -4098,7 +4098,7 @@ function Angle_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
4098
4098
|
if (angle === undefined) {
|
|
4099
4099
|
return displayText;
|
|
4100
4100
|
}
|
|
4101
|
-
const roundedAngle =
|
|
4101
|
+
const roundedAngle = src/* .utils.roundNumber */.Wp.roundNumber(angle, 2);
|
|
4102
4102
|
displayText.primary.push(`${roundedAngle} ${utils_getDisplayUnit(unit)}`);
|
|
4103
4103
|
displayText.secondary.push(`S: ${SeriesNumber}${instanceText}${frameText}`);
|
|
4104
4104
|
return displayText;
|
|
@@ -4266,7 +4266,7 @@ function PlanarFreehandROI_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
4268
4268
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : '';
|
|
4269
|
-
const roundedArea =
|
|
4269
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area || 0, 2);
|
|
4270
4270
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`);
|
|
4271
4271
|
mappedAnnotations.forEach((mappedAnnotation)=>{
|
|
4272
4272
|
const { unit, max, SeriesNumber } = mappedAnnotation;
|
|
@@ -4423,7 +4423,7 @@ function RectangleROI_getDisplayText(mappedAnnotations, displaySet, customizatio
|
|
|
4423
4423
|
}
|
|
4424
4424
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
4425
4425
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : ''; // Area sometimes becomes undefined if `preventHandleOutsideImage` is off.
|
|
4426
|
-
const roundedArea =
|
|
4426
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area || 0, 2);
|
|
4427
4427
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`); // Todo: we need a better UI for displaying all these information
|
|
4428
4428
|
mappedAnnotations.forEach((mappedAnnotation)=>{
|
|
4429
4429
|
const { unit, max, SeriesNumber } = mappedAnnotation;
|
|
@@ -4594,7 +4594,7 @@ function SplineROI_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
4596
4596
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : '';
|
|
4597
|
-
const roundedArea =
|
|
4597
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area || 0, 2);
|
|
4598
4598
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`); // we don't have max yet for splines rois
|
|
4599
4599
|
// mappedAnnotations.forEach(mappedAnnotation => {
|
|
4600
4600
|
// const { unit, max, SeriesNumber } = mappedAnnotation;
|
|
@@ -4725,7 +4725,7 @@ function LivewireContour_getDisplayText(annotation, displaySet, displaySetServic
|
|
|
4725
4725
|
seriesText = `S: ${SeriesNumber}${instanceText}${frameText}`;
|
|
4726
4726
|
}
|
|
4727
4727
|
if (area) {
|
|
4728
|
-
const roundedArea =
|
|
4728
|
+
const roundedArea = src/* .utils.roundNumber */.Wp.roundNumber(area || 0, 2);
|
|
4729
4729
|
displayText.primary.push(`${roundedArea} ${utils_getDisplayUnit(areaUnit)}`);
|
|
4730
4730
|
}
|
|
4731
4731
|
if (seriesText) {
|
|
@@ -4867,7 +4867,7 @@ function Probe_getDisplayText(mappedAnnotations, displaySet, customizationServic
|
|
|
4867
4867
|
const instanceText = InstanceNumber ? ` I: ${InstanceNumber}` : '';
|
|
4868
4868
|
const frameText = displaySet.isMultiFrame ? ` F: ${frameNumber}` : '';
|
|
4869
4869
|
if (value !== undefined) {
|
|
4870
|
-
const roundedValue =
|
|
4870
|
+
const roundedValue = src/* .utils.roundNumber */.Wp.roundNumber(value, 2);
|
|
4871
4871
|
displayText.primary.push(`${roundedValue} ${utils_getDisplayUnit(unit)}`);
|
|
4872
4872
|
displayText.secondary.push(`S: ${SeriesNumber}${instanceText}${frameText}`);
|
|
4873
4873
|
}
|
|
@@ -4979,14 +4979,14 @@ function UltrasoundDirectional_getReport(mappedAnnotations, points, FrameOfRefer
|
|
|
4979
4979
|
const { xValues, yValues, units, isUnitless } = annotation;
|
|
4980
4980
|
if (isUnitless) {
|
|
4981
4981
|
columns.push('Length' + units[0]);
|
|
4982
|
-
values.push(
|
|
4982
|
+
values.push(src/* .utils.roundNumber */.Wp.roundNumber(xValues[0], 2));
|
|
4983
4983
|
} else {
|
|
4984
4984
|
const dist1 = Math.abs(xValues[1] - xValues[0]);
|
|
4985
4985
|
const dist2 = Math.abs(yValues[1] - yValues[0]);
|
|
4986
4986
|
columns.push('Time' + units[0]);
|
|
4987
|
-
values.push(
|
|
4987
|
+
values.push(src/* .utils.roundNumber */.Wp.roundNumber(dist1, 2));
|
|
4988
4988
|
columns.push('Length' + units[1]);
|
|
4989
|
-
values.push(
|
|
4989
|
+
values.push(src/* .utils.roundNumber */.Wp.roundNumber(dist2, 2));
|
|
4990
4990
|
}
|
|
4991
4991
|
});
|
|
4992
4992
|
if (FrameOfReferenceUID) {
|
|
@@ -5023,12 +5023,12 @@ function UltrasoundDirectional_getDisplayText(mappedAnnotations, displaySet, cus
|
|
|
5023
5023
|
return displayText;
|
|
5024
5024
|
}
|
|
5025
5025
|
if (isUnitless) {
|
|
5026
|
-
displayText.primary.push(`${
|
|
5026
|
+
displayText.primary.push(`${src/* .utils.roundNumber */.Wp.roundNumber(xValues[0], 2)} ${units[0]}`);
|
|
5027
5027
|
} else {
|
|
5028
5028
|
const dist1 = Math.abs(xValues[1] - xValues[0]);
|
|
5029
5029
|
const dist2 = Math.abs(yValues[1] - yValues[0]);
|
|
5030
|
-
displayText.primary.push(`${
|
|
5031
|
-
displayText.primary.push(`${
|
|
5030
|
+
displayText.primary.push(`${src/* .utils.roundNumber */.Wp.roundNumber(dist1)} ${units[0]}`);
|
|
5031
|
+
displayText.primary.push(`${src/* .utils.roundNumber */.Wp.roundNumber(dist2)} ${units[1]}`);
|
|
5032
5032
|
}
|
|
5033
5033
|
displayText.secondary.push(seriesText);
|
|
5034
5034
|
return displayText;
|
|
@@ -5151,8 +5151,8 @@ function SegmentBidirectional_getDisplayText(mappedAnnotations, displaySet) {
|
|
|
5151
5151
|
return displayText;
|
|
5152
5152
|
} // Area is the same for all series
|
|
5153
5153
|
const { length, width, unit, SeriesNumber, SOPInstanceUID, frameNumber } = mappedAnnotations[0];
|
|
5154
|
-
const roundedLength =
|
|
5155
|
-
const roundedWidth =
|
|
5154
|
+
const roundedLength = src/* .utils.roundNumber */.Wp.roundNumber(length, 2);
|
|
5155
|
+
const roundedWidth = src/* .utils.roundNumber */.Wp.roundNumber(width, 2);
|
|
5156
5156
|
const instance = displaySet.instances.find((image)=>image.SOPInstanceUID === SOPInstanceUID);
|
|
5157
5157
|
let InstanceNumber;
|
|
5158
5158
|
if (instance) {
|
|
@@ -5314,7 +5314,7 @@ function UltrasoundPleuraBLine_getDisplayText(mappedAnnotations, displaySet, cus
|
|
|
5314
5314
|
|
|
5315
5315
|
const measurementServiceMappingsFactory = (measurementService, displaySetService, cornerstoneViewportService, customizationService)=>{
|
|
5316
5316
|
const _getValueTypeFromToolType = (toolType)=>{
|
|
5317
|
-
const { POLYLINE, ELLIPSE, CIRCLE, RECTANGLE, BIDIRECTIONAL, POINT, ANGLE } =
|
|
5317
|
+
const { POLYLINE, ELLIPSE, CIRCLE, RECTANGLE, BIDIRECTIONAL, POINT, ANGLE } = src/* .MeasurementService.VALUE_TYPES */.C5.VALUE_TYPES; // TODO -> I get why this was attempted, but its not nearly flexible enough.
|
|
5318
5318
|
// A single measurement may have an ellipse + a bidirectional measurement, for instances.
|
|
5319
5319
|
// You can't define a bidirectional tool as a single type..
|
|
5320
5320
|
const TOOL_TYPE_TO_VALUE_TYPE = {
|
|
@@ -5341,7 +5341,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5341
5341
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_Length.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5342
5342
|
matchingCriteria: [
|
|
5343
5343
|
{
|
|
5344
|
-
valueType:
|
|
5344
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5345
5345
|
points: 2
|
|
5346
5346
|
}
|
|
5347
5347
|
]
|
|
@@ -5352,11 +5352,11 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5352
5352
|
matchingCriteria: [
|
|
5353
5353
|
// But its still a little unclear how these automatic interpretations will work.
|
|
5354
5354
|
{
|
|
5355
|
-
valueType:
|
|
5355
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5356
5356
|
points: 2
|
|
5357
5357
|
},
|
|
5358
5358
|
{
|
|
5359
|
-
valueType:
|
|
5359
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5360
5360
|
points: 2
|
|
5361
5361
|
}
|
|
5362
5362
|
]
|
|
@@ -5366,11 +5366,11 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5366
5366
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_SegmentBidirectional.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5367
5367
|
matchingCriteria: [
|
|
5368
5368
|
{
|
|
5369
|
-
valueType:
|
|
5369
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5370
5370
|
points: 2
|
|
5371
5371
|
},
|
|
5372
5372
|
{
|
|
5373
|
-
valueType:
|
|
5373
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5374
5374
|
points: 2
|
|
5375
5375
|
}
|
|
5376
5376
|
]
|
|
@@ -5380,7 +5380,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5380
5380
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_EllipticalROI.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5381
5381
|
matchingCriteria: [
|
|
5382
5382
|
{
|
|
5383
|
-
valueType:
|
|
5383
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.ELLIPSE */.C5.VALUE_TYPES.ELLIPSE
|
|
5384
5384
|
}
|
|
5385
5385
|
]
|
|
5386
5386
|
},
|
|
@@ -5389,7 +5389,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5389
5389
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_CircleROI.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5390
5390
|
matchingCriteria: [
|
|
5391
5391
|
{
|
|
5392
|
-
valueType:
|
|
5392
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.CIRCLE */.C5.VALUE_TYPES.CIRCLE
|
|
5393
5393
|
}
|
|
5394
5394
|
]
|
|
5395
5395
|
},
|
|
@@ -5398,7 +5398,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5398
5398
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_RectangleROI.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5399
5399
|
matchingCriteria: [
|
|
5400
5400
|
{
|
|
5401
|
-
valueType:
|
|
5401
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE
|
|
5402
5402
|
}
|
|
5403
5403
|
]
|
|
5404
5404
|
},
|
|
@@ -5407,7 +5407,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5407
5407
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_PlanarFreehandROI.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5408
5408
|
matchingCriteria: [
|
|
5409
5409
|
{
|
|
5410
|
-
valueType:
|
|
5410
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE
|
|
5411
5411
|
}
|
|
5412
5412
|
]
|
|
5413
5413
|
},
|
|
@@ -5416,7 +5416,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5416
5416
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_SplineROI.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5417
5417
|
matchingCriteria: [
|
|
5418
5418
|
{
|
|
5419
|
-
valueType:
|
|
5419
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE
|
|
5420
5420
|
}
|
|
5421
5421
|
]
|
|
5422
5422
|
},
|
|
@@ -5425,7 +5425,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5425
5425
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_LivewireContour.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5426
5426
|
matchingCriteria: [
|
|
5427
5427
|
{
|
|
5428
|
-
valueType:
|
|
5428
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE
|
|
5429
5429
|
}
|
|
5430
5430
|
]
|
|
5431
5431
|
},
|
|
@@ -5434,7 +5434,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5434
5434
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_ArrowAnnotate.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5435
5435
|
matchingCriteria: [
|
|
5436
5436
|
{
|
|
5437
|
-
valueType:
|
|
5437
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POINT */.C5.VALUE_TYPES.POINT,
|
|
5438
5438
|
points: 1
|
|
5439
5439
|
}
|
|
5440
5440
|
]
|
|
@@ -5444,7 +5444,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5444
5444
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_Probe.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5445
5445
|
matchingCriteria: [
|
|
5446
5446
|
{
|
|
5447
|
-
valueType:
|
|
5447
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POINT */.C5.VALUE_TYPES.POINT,
|
|
5448
5448
|
points: 1
|
|
5449
5449
|
}
|
|
5450
5450
|
]
|
|
@@ -5454,7 +5454,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5454
5454
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_CobbAngle.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5455
5455
|
matchingCriteria: [
|
|
5456
5456
|
{
|
|
5457
|
-
valueType:
|
|
5457
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.ANGLE */.C5.VALUE_TYPES.ANGLE
|
|
5458
5458
|
}
|
|
5459
5459
|
]
|
|
5460
5460
|
},
|
|
@@ -5463,7 +5463,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5463
5463
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_Angle.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5464
5464
|
matchingCriteria: [
|
|
5465
5465
|
{
|
|
5466
|
-
valueType:
|
|
5466
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.ANGLE */.C5.VALUE_TYPES.ANGLE
|
|
5467
5467
|
}
|
|
5468
5468
|
]
|
|
5469
5469
|
},
|
|
@@ -5472,7 +5472,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5472
5472
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_UltrasoundDirectional.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5473
5473
|
matchingCriteria: [
|
|
5474
5474
|
{
|
|
5475
|
-
valueType:
|
|
5475
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5476
5476
|
points: 2
|
|
5477
5477
|
}
|
|
5478
5478
|
]
|
|
@@ -5482,7 +5482,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
5482
5482
|
toMeasurement: (csToolsAnnotation)=>measurementServiceMappings_UltrasoundPleuraBLine.toMeasurement(csToolsAnnotation, displaySetService, cornerstoneViewportService, _getValueTypeFromToolType, customizationService),
|
|
5483
5483
|
matchingCriteria: [
|
|
5484
5484
|
{
|
|
5485
|
-
valueType:
|
|
5485
|
+
valueType: src/* .MeasurementService.VALUE_TYPES.POLYLINE */.C5.VALUE_TYPES.POLYLINE,
|
|
5486
5486
|
points: 2
|
|
5487
5487
|
}
|
|
5488
5488
|
]
|
|
@@ -5710,7 +5710,7 @@ const connectMeasurementServiceToTools = ({ servicesManager, commandsManager, ex
|
|
|
5710
5710
|
return;
|
|
5711
5711
|
}
|
|
5712
5712
|
const { referenceSeriesUID, referenceStudyUID, SOPInstanceUID, metadata } = measurement;
|
|
5713
|
-
const instance =
|
|
5713
|
+
const instance = src/* .DicomMetadataStore.getInstance */.H8.getInstance(referenceStudyUID, referenceSeriesUID, SOPInstanceUID);
|
|
5714
5714
|
let imageId;
|
|
5715
5715
|
let frameNumber = 1;
|
|
5716
5716
|
if (measurement?.metadata?.referencedImageId) {
|
|
@@ -6545,10 +6545,10 @@ const imageTiming = {
|
|
|
6545
6545
|
function initViewTiming({ element }) {
|
|
6546
6546
|
if (!IMAGE_TIMING_KEYS.length) {
|
|
6547
6547
|
// quite fast enough to be declared statically.
|
|
6548
|
-
const { /* TimingEnum */W: TimingEnum } =
|
|
6548
|
+
const { /* TimingEnum */W: TimingEnum } = src/* .Enums */.fX;
|
|
6549
6549
|
IMAGE_TIMING_KEYS.push(TimingEnum.DISPLAY_SETS_TO_ALL_IMAGES, TimingEnum.DISPLAY_SETS_TO_FIRST_IMAGE, TimingEnum.STUDY_TO_FIRST_IMAGE);
|
|
6550
6550
|
}
|
|
6551
|
-
if (!IMAGE_TIMING_KEYS.find((key)=>
|
|
6551
|
+
if (!IMAGE_TIMING_KEYS.find((key)=>src/* .log.timingKeys */.Rm.timingKeys[key])) {
|
|
6552
6552
|
return;
|
|
6553
6553
|
}
|
|
6554
6554
|
imageTiming.viewportsWaiting += 1;
|
|
@@ -6558,14 +6558,14 @@ function imageRenderedListener(evt) {
|
|
|
6558
6558
|
if (evt.detail.viewportStatus === 'preRender') {
|
|
6559
6559
|
return;
|
|
6560
6560
|
}
|
|
6561
|
-
const { /* TimingEnum */W: TimingEnum } =
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6561
|
+
const { /* TimingEnum */W: TimingEnum } = src/* .Enums */.fX;
|
|
6562
|
+
src/* .log.timeEnd */.Rm.timeEnd(TimingEnum.DISPLAY_SETS_TO_FIRST_IMAGE);
|
|
6563
|
+
src/* .log.timeEnd */.Rm.timeEnd(TimingEnum.STUDY_TO_FIRST_IMAGE);
|
|
6564
|
+
src/* .log.timeEnd */.Rm.timeEnd(TimingEnum.SCRIPT_TO_VIEW);
|
|
6565
6565
|
imageTiming.viewportsWaiting -= 1;
|
|
6566
6566
|
evt.detail.element.removeEventListener(esm.EVENTS.IMAGE_RENDERED, imageRenderedListener);
|
|
6567
6567
|
if (!imageTiming.viewportsWaiting) {
|
|
6568
|
-
|
|
6568
|
+
src/* .log.timeEnd */.Rm.timeEnd(TimingEnum.DISPLAY_SETS_TO_ALL_IMAGES);
|
|
6569
6569
|
}
|
|
6570
6570
|
}
|
|
6571
6571
|
|
|
@@ -16188,7 +16188,7 @@ async function init({ servicesManager, commandsManager, extensionManager, appCon
|
|
|
16188
16188
|
renderFill: false,
|
|
16189
16189
|
renderFillInactive: false
|
|
16190
16190
|
});
|
|
16191
|
-
const metadataProvider =
|
|
16191
|
+
const metadataProvider = src/* ["default"].classes.MetadataProvider */.Ay.classes.MetadataProvider;
|
|
16192
16192
|
esm.volumeLoader.registerVolumeLoader('cornerstoneStreamingImageVolume', loaders/* .cornerstoneStreamingImageVolumeLoader */.FC);
|
|
16193
16193
|
esm.volumeLoader.registerVolumeLoader('cornerstoneStreamingDynamicImageVolume', loaders/* .cornerstoneStreamingDynamicImageVolumeLoader */.Mr); // Register strategies using the wrapper
|
|
16194
16194
|
const imageLoadStrategies = {
|
|
@@ -16257,7 +16257,7 @@ async function init({ servicesManager, commandsManager, extensionManager, appCon
|
|
|
16257
16257
|
* @param event
|
|
16258
16258
|
*/
|
|
16259
16259
|
const imageLoadFailedHandler = ({ detail })=>{
|
|
16260
|
-
const handler =
|
|
16260
|
+
const handler = src/* .errorHandler.getHTTPErrorHandler */.r_.getHTTPErrorHandler();
|
|
16261
16261
|
handler(detail.error);
|
|
16262
16262
|
};
|
|
16263
16263
|
esm.eventTarget.addEventListener(esm.EVENTS.IMAGE_LOAD_FAILED, imageLoadFailedHandler);
|
|
@@ -16572,7 +16572,7 @@ const ExportSegmentationSubMenuItem = (t0)=>{
|
|
|
16572
16572
|
*/
|
|
16573
16573
|
const CustomDropdownMenuContent_CustomDropdownMenuContent = ()=>{
|
|
16574
16574
|
const $ = (0,compiler_runtime.c)(64);
|
|
16575
|
-
const { commandsManager } = (0,
|
|
16575
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
16576
16576
|
const { t } = (0,es/* .useTranslation */.Bd)("SegmentationPanel");
|
|
16577
16577
|
const { onSegmentationAdd, onSegmentationRemoveFromViewport, onSegmentationEdit, onSegmentationDelete, exportOptions, activeSegmentation, activeSegmentationId, segmentationRepresentationTypes, disableEditing } = (0,ui_next_src/* .useSegmentationTableContext */.dQ$)("CustomDropdownMenu");
|
|
16578
16578
|
const expandedContext = (0,ui_next_src/* .useSegmentationExpanded */.dPM)();
|
|
@@ -16902,7 +16902,7 @@ const CustomDropdownMenuContent_CustomDropdownMenuContent = ()=>{
|
|
|
16902
16902
|
const CustomSegmentStatisticsHeader_CustomSegmentStatisticsHeader = (t0)=>{
|
|
16903
16903
|
const $ = (0,compiler_runtime.c)(86);
|
|
16904
16904
|
const { segmentationId, segmentIndex } = t0;
|
|
16905
|
-
const { servicesManager, commandsManager } = (0,
|
|
16905
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
16906
16906
|
const { segmentationService } = servicesManager.services;
|
|
16907
16907
|
const { t } = (0,es/* .useTranslation */.Bd)("SegmentationPanel");
|
|
16908
16908
|
let bidirectional;
|
|
@@ -17361,7 +17361,7 @@ const CustomSegmentStatisticsHeader_CustomSegmentStatisticsHeader = (t0)=>{
|
|
|
17361
17361
|
|
|
17362
17362
|
function SegmentationToolConfig() {
|
|
17363
17363
|
const $ = (0,compiler_runtime.c)(53);
|
|
17364
|
-
const { commandsManager } = (0,
|
|
17364
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
17365
17365
|
const { t } = (0,es/* .useTranslation */.Bd)("SegmentationPanel");
|
|
17366
17366
|
const [previewEdits, setPreviewEdits] = (0,react.useState)(false);
|
|
17367
17367
|
const [segmentLabelEnabled, setSegmentLabelEnabled] = (0,react.useState)(false);
|
|
@@ -18223,7 +18223,7 @@ var i18next = __webpack_require__(96392);
|
|
|
18223
18223
|
|
|
18224
18224
|
|
|
18225
18225
|
|
|
18226
|
-
const { TOOLBAR_SECTIONS } =
|
|
18226
|
+
const { TOOLBAR_SECTIONS } = src/* .ToolbarService */.hx;
|
|
18227
18227
|
const callbacks = (toolName)=>[
|
|
18228
18228
|
{
|
|
18229
18229
|
commandName: 'setViewportForToolConfiguration',
|
|
@@ -18487,8 +18487,8 @@ const toolbarButtonsCustomization_toolbarButtons = [
|
|
|
18487
18487
|
tooltip: i18next/* ["default"].t */.A.t('Buttons:Show Reference Lines'),
|
|
18488
18488
|
commands: 'toggleEnabledDisabledToolbar',
|
|
18489
18489
|
listeners: {
|
|
18490
|
-
[
|
|
18491
|
-
[
|
|
18490
|
+
[src/* .ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: callbacks('ReferenceLines'),
|
|
18491
|
+
[src/* .ViewportGridService.EVENTS.VIEWPORTS_READY */.sI.EVENTS.VIEWPORTS_READY]: callbacks('ReferenceLines')
|
|
18492
18492
|
},
|
|
18493
18493
|
evaluate: [
|
|
18494
18494
|
'evaluate.cornerstoneTool.toggle',
|
|
@@ -19024,7 +19024,7 @@ const toolbarButtonsCustomization = {
|
|
|
19024
19024
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/customizations/segmentationToolbarCustomization.ts
|
|
19025
19025
|
|
|
19026
19026
|
|
|
19027
|
-
const { TOOLBAR_SECTIONS: segmentationToolbarCustomization_TOOLBAR_SECTIONS } =
|
|
19027
|
+
const { TOOLBAR_SECTIONS: segmentationToolbarCustomization_TOOLBAR_SECTIONS } = src/* .ToolbarService */.hx;
|
|
19028
19028
|
const MIN_SEGMENTATION_DRAWING_RADIUS = 0.5;
|
|
19029
19029
|
const MAX_SEGMENTATION_DRAWING_RADIUS = 99.5;
|
|
19030
19030
|
const segmentationToolbarCustomization_setToolActiveToolbar = (/* unused pure expression or super */ null && ({
|
|
@@ -19523,8 +19523,8 @@ const segmentationToolbarButtons = [
|
|
|
19523
19523
|
}
|
|
19524
19524
|
],
|
|
19525
19525
|
listeners: {
|
|
19526
|
-
[
|
|
19527
|
-
[
|
|
19526
|
+
[src/* .ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: segmentationToolbarCustomization_callbacks('LabelmapSlicePropagation'),
|
|
19527
|
+
[src/* .ViewportGridService.EVENTS.VIEWPORTS_READY */.sI.EVENTS.VIEWPORTS_READY]: segmentationToolbarCustomization_callbacks('LabelmapSlicePropagation')
|
|
19528
19528
|
},
|
|
19529
19529
|
commands: [
|
|
19530
19530
|
{
|
|
@@ -19568,8 +19568,8 @@ const segmentationToolbarButtons = [
|
|
|
19568
19568
|
}
|
|
19569
19569
|
],
|
|
19570
19570
|
listeners: {
|
|
19571
|
-
[
|
|
19572
|
-
[
|
|
19571
|
+
[src/* .ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: segmentationToolbarCustomization_callbacks('MarkerLabelmap'),
|
|
19572
|
+
[src/* .ViewportGridService.EVENTS.VIEWPORTS_READY */.sI.EVENTS.VIEWPORTS_READY]: segmentationToolbarCustomization_callbacks('MarkerLabelmap')
|
|
19573
19573
|
},
|
|
19574
19574
|
options: [
|
|
19575
19575
|
{
|
|
@@ -20332,7 +20332,7 @@ class UploadRejection {
|
|
|
20332
20332
|
this.status = status;
|
|
20333
20333
|
}
|
|
20334
20334
|
}
|
|
20335
|
-
class DicomFileUploader extends
|
|
20335
|
+
class DicomFileUploader extends src/* .PubSubService */.Rc {
|
|
20336
20336
|
_abortController = new AbortController();
|
|
20337
20337
|
_status = DicomFileUploader_UploadStatus.NotStarted;
|
|
20338
20338
|
_percentComplete = 0;
|
|
@@ -20727,7 +20727,7 @@ const NO_WRAP_ELLIPSIS_CLASS_NAMES = 'text-ellipsis whitespace-nowrap overflow-h
|
|
|
20727
20727
|
function DicomUploadProgress(t0) {
|
|
20728
20728
|
const $ = (0,compiler_runtime.c)(60);
|
|
20729
20729
|
const { dicomFileUploaderArr, onComplete } = t0;
|
|
20730
|
-
const { servicesManager } = (0,
|
|
20730
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
20731
20731
|
let t1;
|
|
20732
20732
|
if ($[0] !== servicesManager.services.customizationService) {
|
|
20733
20733
|
t1 = servicesManager.services.customizationService.getCustomization("ui.progressLoadingBar");
|
|
@@ -22595,7 +22595,7 @@ var html2canvas_esm = __webpack_require__(48516);
|
|
|
22595
22595
|
|
|
22596
22596
|
|
|
22597
22597
|
|
|
22598
|
-
const { downloadUrl } =
|
|
22598
|
+
const { downloadUrl } = src/* .utils */.Wp;
|
|
22599
22599
|
const DEFAULT_SIZE = 512;
|
|
22600
22600
|
const CornerstoneViewportDownloadForm_MAX_TEXTURE_SIZE = 10000;
|
|
22601
22601
|
const VIEWPORT_ID = 'cornerstone-viewport-download-form';
|
|
@@ -22666,7 +22666,7 @@ async function mountCaptureViewport(viewport, downloadViewport, segmentationRepr
|
|
|
22666
22666
|
const CornerstoneViewportDownloadForm = (t0)=>{
|
|
22667
22667
|
const $ = (0,compiler_runtime.c)(46);
|
|
22668
22668
|
const { hide, activeViewportId: activeViewportIdProp } = t0;
|
|
22669
|
-
const { servicesManager } = (0,
|
|
22669
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
22670
22670
|
const { customizationService, cornerstoneViewportService } = servicesManager.services;
|
|
22671
22671
|
const [showAnnotations, setShowAnnotations] = (0,react.useState)(true);
|
|
22672
22672
|
let t1;
|
|
@@ -23112,7 +23112,7 @@ function updateSegmentBidirectionalStats({ segmentationId, segmentIndex, bidirec
|
|
|
23112
23112
|
|
|
23113
23113
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/utils/generateSegmentationCSVReport.ts
|
|
23114
23114
|
|
|
23115
|
-
const { downloadCsv } =
|
|
23115
|
+
const { downloadCsv } = src/* .utils */.Wp;
|
|
23116
23116
|
function generateSegmentationCSVReport(segmentationData, info) {
|
|
23117
23117
|
const csvRows = []; // Add segmentation-level information
|
|
23118
23118
|
csvRows.push([
|
|
@@ -24466,7 +24466,7 @@ function commandsModule({ servicesManager, commandsManager, extensionManager })
|
|
|
24466
24466
|
/**
|
|
24467
24467
|
* Download the CSV report for the measurements.
|
|
24468
24468
|
*/ downloadCSVMeasurementsReport: ({ measurementFilter })=>{
|
|
24469
|
-
|
|
24469
|
+
src/* .utils.downloadCSVReport */.Wp.downloadCSVReport(measurementService.getMeasurements(measurementFilter));
|
|
24470
24470
|
},
|
|
24471
24471
|
downloadCSVSegmentationReport: ({ segmentationId })=>{
|
|
24472
24472
|
const segmentation = segmentationService.getSegmentation(segmentationId);
|
|
@@ -28810,7 +28810,7 @@ var hooks = __webpack_require__(66340);
|
|
|
28810
28810
|
function ViewportDataOverlayMenu(t0) {
|
|
28811
28811
|
const $ = (0,compiler_runtime.c)(134);
|
|
28812
28812
|
const { viewportId } = t0;
|
|
28813
|
-
const { commandsManager, servicesManager } = (0,
|
|
28813
|
+
const { commandsManager, servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
28814
28814
|
const { t } = (0,es/* .useTranslation */.Bd)();
|
|
28815
28815
|
let t1;
|
|
28816
28816
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -29731,7 +29731,7 @@ function ViewportDataOverlayMenuWrapper(props) {
|
|
|
29731
29731
|
t1 = $[10];
|
|
29732
29732
|
}
|
|
29733
29733
|
const handleOpenChange = t1;
|
|
29734
|
-
const { servicesManager } = (0,
|
|
29734
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
29735
29735
|
const { toolbarService } = servicesManager.services;
|
|
29736
29736
|
let t2;
|
|
29737
29737
|
if ($[11] !== location || $[12] !== toolbarService) {
|
|
@@ -29889,7 +29889,7 @@ function ViewportOrientationMenu(t0) {
|
|
|
29889
29889
|
viewportId = $[8];
|
|
29890
29890
|
}
|
|
29891
29891
|
const isOpen = t1 === undefined ? false : t1;
|
|
29892
|
-
const { servicesManager, commandsManager } = (0,
|
|
29892
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
29893
29893
|
const { cornerstoneViewportService, toolbarService } = servicesManager.services;
|
|
29894
29894
|
let t2;
|
|
29895
29895
|
if ($[9] !== cornerstoneViewportService || $[10] !== viewportId) {
|
|
@@ -31143,7 +31143,7 @@ function WindowLevel_temp(ds_0) {
|
|
|
31143
31143
|
function VolumeRenderingPresetsContent(t0) {
|
|
31144
31144
|
const $ = (0,compiler_runtime.c)(33);
|
|
31145
31145
|
const { presets, viewportId, hide } = t0;
|
|
31146
|
-
const { commandsManager } = (0,
|
|
31146
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
31147
31147
|
const [searchValue, setSearchValue] = (0,react.useState)("");
|
|
31148
31148
|
const [selectedPreset, setSelectedPreset] = (0,react.useState)(null);
|
|
31149
31149
|
const { t } = (0,es/* .useTranslation */.Bd)("WindowLevelActionMenu");
|
|
@@ -31336,7 +31336,7 @@ function VolumeRenderingPresets(t0) {
|
|
|
31336
31336
|
}
|
|
31337
31337
|
const { viewportId } = t1;
|
|
31338
31338
|
const { volumeRenderingPresets } = (0,useViewportRendering/* .useViewportRendering */.e)(viewportId);
|
|
31339
|
-
const { servicesManager } = (0,
|
|
31339
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
31340
31340
|
const { uiDialogService } = servicesManager.services;
|
|
31341
31341
|
const { t } = (0,es/* .useTranslation */.Bd)("WindowLevelActionMenu");
|
|
31342
31342
|
let t2;
|
|
@@ -31410,7 +31410,7 @@ function VolumeRenderingPresets(t0) {
|
|
|
31410
31410
|
function VolumeRenderingQuality(t0) {
|
|
31411
31411
|
const $ = (0,compiler_runtime.c)(16);
|
|
31412
31412
|
const { volumeRenderingQualityRange, viewportId } = t0;
|
|
31413
|
-
const { servicesManager, commandsManager } = (0,
|
|
31413
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
31414
31414
|
const { cornerstoneViewportService } = servicesManager.services;
|
|
31415
31415
|
const { min, max, step } = volumeRenderingQualityRange;
|
|
31416
31416
|
const [quality, setQuality] = (0,react.useState)(null);
|
|
@@ -31538,7 +31538,7 @@ function setShiftedBy(viewport, shift) {
|
|
|
31538
31538
|
function VolumeShift(t0) {
|
|
31539
31539
|
const $ = (0,compiler_runtime.c)(30);
|
|
31540
31540
|
const { viewportId } = t0;
|
|
31541
|
-
const { servicesManager, commandsManager } = (0,
|
|
31541
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
31542
31542
|
const { cornerstoneViewportService } = servicesManager.services;
|
|
31543
31543
|
const [minShift, setMinShift] = (0,react.useState)(null);
|
|
31544
31544
|
const [maxShift, setMaxShift] = (0,react.useState)(null);
|
|
@@ -31694,7 +31694,7 @@ function VolumeShift(t0) {
|
|
|
31694
31694
|
function VolumeLighting(t0) {
|
|
31695
31695
|
const $ = (0,compiler_runtime.c)(29);
|
|
31696
31696
|
const { viewportId, hasShade } = t0;
|
|
31697
|
-
const { servicesManager, commandsManager } = (0,
|
|
31697
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
31698
31698
|
const { cornerstoneViewportService } = servicesManager.services;
|
|
31699
31699
|
let t1;
|
|
31700
31700
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -31884,7 +31884,7 @@ function VolumeShade(t0) {
|
|
|
31884
31884
|
const { viewportId, onClickShade: t1 } = t0;
|
|
31885
31885
|
const onClickShade = t1 === undefined ? VolumeShade_temp : t1;
|
|
31886
31886
|
const { t } = (0,es/* .useTranslation */.Bd)("WindowLevelActionMenu");
|
|
31887
|
-
const { servicesManager, commandsManager } = (0,
|
|
31887
|
+
const { servicesManager, commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
31888
31888
|
const { cornerstoneViewportService } = servicesManager.services;
|
|
31889
31889
|
const [shade, setShade] = (0,react.useState)(true);
|
|
31890
31890
|
const [key, setKey] = (0,react.useState)(0);
|
|
@@ -32349,7 +32349,7 @@ function WindowLevelActionMenuWrapper(props) {
|
|
|
32349
32349
|
const [gridState] = (0,ui_next_src/* .useViewportGrid */.ihW)();
|
|
32350
32350
|
const viewportIdToUse = viewportId || gridState.activeViewportId;
|
|
32351
32351
|
const { viewportDisplaySets: displaySets } = (0,useViewportDisplaySets/* .useViewportDisplaySets */.N)(viewportIdToUse);
|
|
32352
|
-
const { servicesManager } = (0,
|
|
32352
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
32353
32353
|
const { toolbarService } = servicesManager.services;
|
|
32354
32354
|
const { IconContainer, className: iconClassName, containerProps } = (0,ui_next_src/* .useIconPresentation */.n1D)();
|
|
32355
32355
|
const { hasColorbar, toggleColorbar } = (0,hooks/* .useViewportRendering */.eH)(viewportId);
|
|
@@ -32514,7 +32514,7 @@ const TABS = {
|
|
|
32514
32514
|
function VOIManualControlMenu(t0) {
|
|
32515
32515
|
const $ = (0,compiler_runtime.c)(68);
|
|
32516
32516
|
const { viewportId, className } = t0;
|
|
32517
|
-
const { servicesManager } = (0,
|
|
32517
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
32518
32518
|
const { displaySetService } = servicesManager.services;
|
|
32519
32519
|
const [activeTab, setActiveTab] = (0,react.useState)(TABS.MINMAX);
|
|
32520
32520
|
const { viewportDisplaySets } = (0,useViewportDisplaySets/* .useViewportDisplaySets */.N)(viewportId);
|
|
@@ -32949,7 +32949,7 @@ function VOIManualControlMenuWrapper(props) {
|
|
|
32949
32949
|
t1 = $[10];
|
|
32950
32950
|
}
|
|
32951
32951
|
const handleOpenChange = t1;
|
|
32952
|
-
const { servicesManager } = (0,
|
|
32952
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
32953
32953
|
const { toolbarService } = servicesManager.services;
|
|
32954
32954
|
let t2;
|
|
32955
32955
|
if ($[11] !== location || $[12] !== toolbarService) {
|
|
@@ -33392,7 +33392,7 @@ function ThresholdMenuWrapper(props) {
|
|
|
33392
33392
|
t1 = $[10];
|
|
33393
33393
|
}
|
|
33394
33394
|
const handleOpenChange = t1;
|
|
33395
|
-
const { servicesManager } = (0,
|
|
33395
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
33396
33396
|
const { toolbarService } = servicesManager.services;
|
|
33397
33397
|
let t2;
|
|
33398
33398
|
if ($[11] !== location || $[12] !== toolbarService) {
|
|
@@ -33695,7 +33695,7 @@ function OpacityMenuWrapper(props) {
|
|
|
33695
33695
|
t1 = $[10];
|
|
33696
33696
|
}
|
|
33697
33697
|
const handleOpenChange = t1;
|
|
33698
|
-
const { servicesManager } = (0,
|
|
33698
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
33699
33699
|
const { toolbarService } = servicesManager.services;
|
|
33700
33700
|
let t2;
|
|
33701
33701
|
if ($[11] !== location || $[12] !== toolbarService) {
|
|
@@ -33814,7 +33814,7 @@ var useMeasurementTracking = __webpack_require__(70266);
|
|
|
33814
33814
|
function ModalityLoadBadge(t0) {
|
|
33815
33815
|
const $ = (0,compiler_runtime.c)(39);
|
|
33816
33816
|
const { viewportId } = t0;
|
|
33817
|
-
const { commandsManager } = (0,
|
|
33817
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
33818
33818
|
const { t } = (0,es/* .useTranslation */.Bd)("Common");
|
|
33819
33819
|
let t1;
|
|
33820
33820
|
if ($[0] !== t) {
|
|
@@ -34097,7 +34097,7 @@ function ModalityLoadBadge_temp(ds) {
|
|
|
34097
34097
|
function NavigationComponent(t0) {
|
|
34098
34098
|
const $ = (0,compiler_runtime.c)(25);
|
|
34099
34099
|
const { viewportId } = t0;
|
|
34100
|
-
const { servicesManager } = (0,
|
|
34100
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
34101
34101
|
const { segmentationService, cornerstoneViewportService, measurementService } = servicesManager.services;
|
|
34102
34102
|
let t1;
|
|
34103
34103
|
if ($[0] !== viewportId) {
|
|
@@ -34339,10 +34339,10 @@ function ViewportColorbar(t0) {
|
|
|
34339
34339
|
const $ = (0,compiler_runtime.c)(49);
|
|
34340
34340
|
const { viewportId, displaySetInstanceUID, colormaps, activeColormapName, volumeId, position, tickStyles, numColorbars } = t0;
|
|
34341
34341
|
const [containerEl, setContainerEl] = (0,react.useState)(null);
|
|
34342
|
-
const { servicesManager } = (0,
|
|
34342
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
34343
34343
|
const { customizationService } = servicesManager.services;
|
|
34344
|
-
const viewportElement = (0,
|
|
34345
|
-
const { height, width } = (0,
|
|
34344
|
+
const viewportElement = (0,src/* .useViewportElement */.c4)(viewportId);
|
|
34345
|
+
const { height, width } = (0,src/* .useViewportSize */.lR)(viewportId);
|
|
34346
34346
|
let t1;
|
|
34347
34347
|
if ($[0] !== customizationService) {
|
|
34348
34348
|
t1 = customizationService.getCustomization("cornerstone.colorbar");
|
|
@@ -34561,7 +34561,7 @@ function ViewportColorbarsContainer(t0) {
|
|
|
34561
34561
|
t1 = $[0];
|
|
34562
34562
|
}
|
|
34563
34563
|
const [colorbars, setColorbars] = (0,react.useState)(t1);
|
|
34564
|
-
const { servicesManager } = (0,
|
|
34564
|
+
const { servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
34565
34565
|
const { colorbarService, customizationService, displaySetService } = servicesManager.services;
|
|
34566
34566
|
const { viewportDisplaySets, backgroundDisplaySet, foregroundDisplaySets } = (0,useViewportDisplaySets/* .useViewportDisplaySets */.N)(viewportId);
|
|
34567
34567
|
let t2;
|
|
@@ -35484,7 +35484,7 @@ class ToolGroupService {
|
|
|
35484
35484
|
this.customizationService = customizationService;
|
|
35485
35485
|
this.listeners = {};
|
|
35486
35486
|
this.EVENTS = ToolGroupService_EVENTS;
|
|
35487
|
-
Object.assign(this,
|
|
35487
|
+
Object.assign(this, src/* .pubSubServiceInterface */.Ml);
|
|
35488
35488
|
this._init();
|
|
35489
35489
|
}
|
|
35490
35490
|
onModeExit() {
|
|
@@ -35948,7 +35948,7 @@ class SyncGroupService {
|
|
|
35948
35948
|
this.servicesManager = servicesManager;
|
|
35949
35949
|
this.listeners = {};
|
|
35950
35950
|
this.EVENTS = SyncGroupService_EVENTS; //
|
|
35951
|
-
Object.assign(this,
|
|
35951
|
+
Object.assign(this, src/* .pubSubServiceInterface */.Ml);
|
|
35952
35952
|
}
|
|
35953
35953
|
_createSynchronizer(type, id, options) {
|
|
35954
35954
|
this.synchronizersByType[type] = this.synchronizersByType[type] || [];
|
|
@@ -36367,7 +36367,7 @@ const SegmentationService_EVENTS = {
|
|
|
36367
36367
|
};
|
|
36368
36368
|
const VALUE_TYPES = (/* unused pure expression or super */ null && ({})); // A selected segment's highlight: animating, or finished and still selected.
|
|
36369
36369
|
const segmentHighlightKey = (segmentationId, segmentIndex, type)=>`${segmentationId}:${segmentIndex}:${type}`;
|
|
36370
|
-
class SegmentationService extends
|
|
36370
|
+
class SegmentationService extends src/* .PubSubService */.Rc {
|
|
36371
36371
|
static REGISTRATION = {
|
|
36372
36372
|
name: 'segmentationService',
|
|
36373
36373
|
altName: 'SegmentationService',
|
|
@@ -38868,7 +38868,7 @@ const CornerstoneViewportService_WITH_ORIENTATION = {
|
|
|
38868
38868
|
* Handles cornerstone viewport logic including enabling, disabling, and
|
|
38869
38869
|
* updating the viewport.
|
|
38870
38870
|
*/
|
|
38871
|
-
class CornerstoneViewportService_CornerstoneViewportService extends
|
|
38871
|
+
class CornerstoneViewportService_CornerstoneViewportService extends src/* .PubSubService */.Rc {
|
|
38872
38872
|
static REGISTRATION = {
|
|
38873
38873
|
name: 'cornerstoneViewportService',
|
|
38874
38874
|
altName: 'CornerstoneViewportService',
|
|
@@ -39155,7 +39155,7 @@ class CornerstoneViewportService_CornerstoneViewportService extends core_src/* .
|
|
|
39155
39155
|
viewportData,
|
|
39156
39156
|
viewportId
|
|
39157
39157
|
});
|
|
39158
|
-
});
|
|
39158
|
+
}, (error)=>console.error('[CornerstoneViewportService] Failed to set the viewport data', error));
|
|
39159
39159
|
}
|
|
39160
39160
|
getViewportOptions(viewportId) {
|
|
39161
39161
|
return this.viewportsById.get(viewportId).getViewportOptions();
|
|
@@ -39337,7 +39337,16 @@ class CornerstoneViewportService_CornerstoneViewportService extends core_src/* .
|
|
|
39337
39337
|
console.error('[CornerstoneViewportService] ECG display set has no imageId');
|
|
39338
39338
|
return;
|
|
39339
39339
|
}
|
|
39340
|
-
|
|
39340
|
+
try {
|
|
39341
|
+
await this.backend.mountEcg(viewport, displaySet, imageId);
|
|
39342
|
+
} catch (error) {
|
|
39343
|
+
this.servicesManager.services.uiNotificationService?.show({
|
|
39344
|
+
title: 'ECG',
|
|
39345
|
+
message: 'The ECG waveform could not be loaded.',
|
|
39346
|
+
type: 'error'
|
|
39347
|
+
});
|
|
39348
|
+
throw error;
|
|
39349
|
+
}
|
|
39341
39350
|
}
|
|
39342
39351
|
async _setOtherViewport(viewport, viewportData, viewportInfo, _presentations = {}) {
|
|
39343
39352
|
const [displaySet] = viewportData.data;
|
|
@@ -39773,7 +39782,7 @@ class CornerstoneViewportService_CornerstoneViewportService extends core_src/* .
|
|
|
39773
39782
|
viewportData,
|
|
39774
39783
|
viewportId
|
|
39775
39784
|
});
|
|
39776
|
-
});
|
|
39785
|
+
}, (error)=>console.error('[CornerstoneViewportService] Failed to update the viewport', error));
|
|
39777
39786
|
}
|
|
39778
39787
|
_setDisplaySets(viewport, viewportData, viewportInfo, presentations = {}) {
|
|
39779
39788
|
// per-family routing: legacy dispatches by the runtime cornerstone viewport
|
|
@@ -39977,7 +39986,7 @@ let Colorbar_ChangeTypes = /*#__PURE__*/ function(ChangeTypes) {
|
|
|
39977
39986
|
|
|
39978
39987
|
|
|
39979
39988
|
|
|
39980
|
-
class ColorbarService extends
|
|
39989
|
+
class ColorbarService extends src/* .PubSubService */.Rc {
|
|
39981
39990
|
static EVENTS = {
|
|
39982
39991
|
STATE_CHANGED: 'event::ColorbarService:stateChanged'
|
|
39983
39992
|
};
|
|
@@ -40109,7 +40118,7 @@ class ColorbarService extends core_src/* .PubSubService */.Rc {
|
|
|
40109
40118
|
|
|
40110
40119
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/services/ViewedDataService/ViewedDataService.ts
|
|
40111
40120
|
|
|
40112
|
-
class ViewedDataService extends
|
|
40121
|
+
class ViewedDataService extends src/* .PubSubService */.Rc {
|
|
40113
40122
|
static EVENTS = {
|
|
40114
40123
|
VIEWED_DATA_CHANGED: 'event::viewedDataChanged'
|
|
40115
40124
|
};
|
|
@@ -40217,7 +40226,7 @@ const getNonImageInstance = (dataset)=>{
|
|
|
40217
40226
|
const getImageInstanceId = (imageInstance)=>{
|
|
40218
40227
|
return getImageId(imageInstance);
|
|
40219
40228
|
};
|
|
40220
|
-
const fetchIt = (url, headers =
|
|
40229
|
+
const fetchIt = (url, headers = src/* .DICOMWeb.getAuthorizationHeader */.ll.getAuthorizationHeader())=>{
|
|
40221
40230
|
return fetch(url, headers).then((response)=>response.arrayBuffer());
|
|
40222
40231
|
};
|
|
40223
40232
|
const cornerstoneRetriever = (imageId)=>{
|
|
@@ -40225,7 +40234,7 @@ const cornerstoneRetriever = (imageId)=>{
|
|
|
40225
40234
|
return image && image.data && image.data.byteArray.buffer;
|
|
40226
40235
|
});
|
|
40227
40236
|
};
|
|
40228
|
-
const wadorsRetriever = (url, studyInstanceUID, seriesInstanceUID, sopInstanceUID, headers =
|
|
40237
|
+
const wadorsRetriever = (url, studyInstanceUID, seriesInstanceUID, sopInstanceUID, headers = src/* .DICOMWeb.getAuthorizationHeader */.ll.getAuthorizationHeader(), errorInterceptor = src/* .errorHandler.getHTTPErrorHandler */.r_.getHTTPErrorHandler())=>{
|
|
40229
40238
|
const config = {
|
|
40230
40239
|
url,
|
|
40231
40240
|
headers,
|
|
@@ -40387,99 +40396,94 @@ const createFrameViewSynchronizer = (synchronizerName)=>{
|
|
|
40387
40396
|
// EXTERNAL MODULE: ../../node_modules/dcmjs/build/dcmjs.es.js
|
|
40388
40397
|
var dcmjs_es = __webpack_require__(85631);
|
|
40389
40398
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/utils/ecgMetadata.ts
|
|
40390
|
-
|
|
40391
|
-
|
|
40392
|
-
|
|
40393
|
-
|
|
40394
|
-
|
|
40395
|
-
* treated as Int16 because Cornerstone ECGViewport expects Int16Array[].
|
|
40396
|
-
*/ function decodeInt16Multiplex(buffer, numberOfChannels, numberOfSamples) {
|
|
40397
|
-
const src = new Int16Array(buffer);
|
|
40398
|
-
const channels = [];
|
|
40399
|
-
for(let ch = 0; ch < numberOfChannels; ch++){
|
|
40400
|
-
const out = new Int16Array(numberOfSamples);
|
|
40401
|
-
for(let s = 0; s < numberOfSamples; s++){
|
|
40402
|
-
out[s] = src[s * numberOfChannels + ch];
|
|
40403
|
-
}
|
|
40404
|
-
channels.push(out);
|
|
40405
|
-
}
|
|
40406
|
-
return channels;
|
|
40407
|
-
} /**
|
|
40408
|
-
* Decode a base64 InlineBinary string into a raw ArrayBuffer.
|
|
40409
|
-
*/
|
|
40410
|
-
function base64ToArrayBuffer(base64) {
|
|
40411
|
-
const binaryStr = atob(base64);
|
|
40412
|
-
const bytes = new Uint8Array(binaryStr.length);
|
|
40413
|
-
for(let i = 0; i < binaryStr.length; i++){
|
|
40414
|
-
bytes[i] = binaryStr.charCodeAt(i);
|
|
40399
|
+
|
|
40400
|
+
const buildEcgModuleFromInstance = (...args)=>metadata_dist_esm/* .utilities.buildEcgModuleFromInstance */.BF.l3(...args); /** Returns the items of a naturalized sequence: an array, an array-like, or one item. */
|
|
40401
|
+
function toList(value) {
|
|
40402
|
+
if (!value) {
|
|
40403
|
+
return [];
|
|
40415
40404
|
}
|
|
40416
|
-
return
|
|
40405
|
+
return typeof value.length === 'number' ? Array.from(value) : [
|
|
40406
|
+
value
|
|
40407
|
+
];
|
|
40408
|
+
} /** Returns the first item of a naturalized value, but keeps binary data whole. */
|
|
40409
|
+
function firstItem(value) {
|
|
40410
|
+
if (!value || value instanceof ArrayBuffer || ArrayBuffer.isView(value)) {
|
|
40411
|
+
return value;
|
|
40412
|
+
}
|
|
40413
|
+
return typeof value.length === 'number' ? value[0] : value;
|
|
40414
|
+
} /** Copies the bytes of a typed array into an ArrayBuffer, which every Cornerstone version decodes. */
|
|
40415
|
+
function toArrayBuffer(bytes) {
|
|
40416
|
+
return ArrayBuffer.isView(bytes) ? bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength) : bytes;
|
|
40417
|
+
}
|
|
40418
|
+
async function decodeBulkData(group, waveformData) {
|
|
40419
|
+
let bytes = waveformData.Value;
|
|
40420
|
+
if (bytes === undefined) {
|
|
40421
|
+
bytes = await waveformData.retrieveBulkData();
|
|
40422
|
+
}
|
|
40423
|
+
const loaded = {
|
|
40424
|
+
WaveformSequence: [
|
|
40425
|
+
{
|
|
40426
|
+
...group,
|
|
40427
|
+
WaveformData: toArrayBuffer(bytes)
|
|
40428
|
+
}
|
|
40429
|
+
]
|
|
40430
|
+
};
|
|
40431
|
+
const decoded = buildEcgModuleFromInstance(loaded);
|
|
40432
|
+
if (!decoded) {
|
|
40433
|
+
throw new Error('[ECGViewport] Failed to decode the waveform bulkdata');
|
|
40434
|
+
}
|
|
40435
|
+
return decoded.waveformData.retrieveBulkData();
|
|
40417
40436
|
} /**
|
|
40418
40437
|
* Parse the naturalized DICOM instance's WaveformSequence and build the ecgModule
|
|
40419
40438
|
* that Cornerstone's ECGViewport.setEcg() expects via
|
|
40420
40439
|
* metaData.get(MetadataModules.ECG, imageId).
|
|
40421
40440
|
*
|
|
40441
|
+
* Cornerstone decodes the waveform. When the data source attached a
|
|
40442
|
+
* `retrieveBulkData` to `WaveformData`, that method fetches the bytes, so the
|
|
40443
|
+
* data source handles multipart/related, auth and relative bulkdata URIs.
|
|
40444
|
+
* The bytes come from `WaveformData.Value` when the data source already
|
|
40445
|
+
* cached them there. The decoded channels are kept, so a re-mount of the
|
|
40446
|
+
* same display set does not fetch or decode again; a failed load is retried.
|
|
40447
|
+
*
|
|
40422
40448
|
* Returns null if the instance has no WaveformSequence.
|
|
40423
40449
|
*/
|
|
40424
40450
|
function buildEcgModule(instance, userAuthenticationService) {
|
|
40425
|
-
|
|
40426
|
-
if (!waveformGroups?.length) {
|
|
40451
|
+
if (!instance?.WaveformSequence?.length) {
|
|
40427
40452
|
return null;
|
|
40428
|
-
}
|
|
40429
|
-
const
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
|
|
40434
|
-
|
|
40435
|
-
const
|
|
40436
|
-
const
|
|
40437
|
-
|
|
40438
|
-
|
|
40439
|
-
|
|
40440
|
-
|
|
40441
|
-
|
|
40442
|
-
const
|
|
40443
|
-
if (!
|
|
40444
|
-
|
|
40445
|
-
return [];
|
|
40453
|
+
}
|
|
40454
|
+
const ecgModule = buildEcgModuleFromInstance(instance, instance.imageId, {
|
|
40455
|
+
getHeaders: ()=>userAuthenticationService?.getAuthorizationHeader?.()
|
|
40456
|
+
});
|
|
40457
|
+
if (!ecgModule) {
|
|
40458
|
+
return null;
|
|
40459
|
+
}
|
|
40460
|
+
const group = firstItem(instance.WaveformSequence);
|
|
40461
|
+
const channelDefinitions = toList(group.ChannelDefinitionSequence); // Works around a Cornerstone bug: buildEcgModuleFromInstance reads only an
|
|
40462
|
+
// upper-case CodeMeaning, and drops CodeValue and CodingSchemeDesignator.
|
|
40463
|
+
// No released Cornerstone viewport reads the lead code yet, so only the unit
|
|
40464
|
+
// test covers it.
|
|
40465
|
+
ecgModule.channelDefinitionSequence.forEach((definition, index)=>{
|
|
40466
|
+
const source = definition.channelSourceSequence;
|
|
40467
|
+
const raw = firstItem(channelDefinitions[index]?.ChannelSourceSequence);
|
|
40468
|
+
if (!source || !raw) {
|
|
40469
|
+
return;
|
|
40446
40470
|
}
|
|
40447
|
-
|
|
40448
|
-
|
|
40449
|
-
|
|
40450
|
-
|
|
40451
|
-
|
|
40452
|
-
|
|
40453
|
-
|
|
40454
|
-
|
|
40455
|
-
|
|
40456
|
-
|
|
40457
|
-
|
|
40458
|
-
const response = await fetch(waveformData.BulkDataURI, {
|
|
40459
|
-
headers
|
|
40471
|
+
source.codeMeaning ||= raw.codeMeaning ?? raw.CodeMeaning ?? '';
|
|
40472
|
+
source.codeValue ??= raw.CodeValue ?? raw.codeValue;
|
|
40473
|
+
source.codingSchemeDesignator ??= raw.CodingSchemeDesignator ?? raw.codingSchemeDesignator;
|
|
40474
|
+
});
|
|
40475
|
+
const waveformData = firstItem(group.WaveformData ?? group.waveformData);
|
|
40476
|
+
if (typeof waveformData?.retrieveBulkData === 'function') {
|
|
40477
|
+
let channels;
|
|
40478
|
+
ecgModule.waveformData.retrieveBulkData = ()=>{
|
|
40479
|
+
channels ??= decodeBulkData(group, waveformData).catch((error)=>{
|
|
40480
|
+
channels = undefined;
|
|
40481
|
+
throw error;
|
|
40460
40482
|
});
|
|
40461
|
-
|
|
40462
|
-
|
|
40463
|
-
|
|
40464
|
-
|
|
40465
|
-
} else {
|
|
40466
|
-
console.warn('[ECGViewport] WaveformData has no InlineBinary or BulkDataURI');
|
|
40467
|
-
return [];
|
|
40468
|
-
}
|
|
40469
|
-
return decodeInt16Multiplex(buffer, numberOfChannels, numberOfSamples);
|
|
40470
|
-
};
|
|
40471
|
-
return {
|
|
40472
|
-
numberOfWaveformChannels: numberOfChannels,
|
|
40473
|
-
numberOfWaveformSamples: numberOfSamples,
|
|
40474
|
-
samplingFrequency,
|
|
40475
|
-
waveformBitsAllocated: bitsAllocated,
|
|
40476
|
-
waveformSampleInterpretation: sampleInterpretation,
|
|
40477
|
-
multiplexGroupLabel,
|
|
40478
|
-
channelDefinitionSequence,
|
|
40479
|
-
waveformData: {
|
|
40480
|
-
retrieveBulkData
|
|
40481
|
-
}
|
|
40482
|
-
};
|
|
40483
|
+
return channels;
|
|
40484
|
+
};
|
|
40485
|
+
}
|
|
40486
|
+
return ecgModule;
|
|
40483
40487
|
}
|
|
40484
40488
|
|
|
40485
40489
|
;// CONCATENATED MODULE: ../../extensions/cornerstone/src/getSopClassHandlerModule.js
|
|
@@ -40490,7 +40494,7 @@ function buildEcgModule(instance, userAuthenticationService) {
|
|
|
40490
40494
|
|
|
40491
40495
|
|
|
40492
40496
|
const { MetadataModules } = esm.Enums;
|
|
40493
|
-
const { utils: getSopClassHandlerModule_utils } =
|
|
40497
|
+
const { utils: getSopClassHandlerModule_utils } = src/* ["default"] */.Ay;
|
|
40494
40498
|
const { denaturalizeDataset } = dcmjs_es/* ["default"].data.DicomMetaDictionary */.Ay.data.DicomMetaDictionary; // NOTE: access transferDenaturalizedDataset / fixMultiValueKeys lazily (at call
|
|
40495
40499
|
// time) rather than destructuring here. This module and @ohif/extension-default
|
|
40496
40500
|
// form a circular import, so dicomWebUtils can be undefined at module-eval time
|
|
@@ -40905,7 +40909,7 @@ const hasExportableContourData = (contour)=>{
|
|
|
40905
40909
|
function PanelSegmentation(t0) {
|
|
40906
40910
|
const $ = (0,compiler_runtime.c)(126);
|
|
40907
40911
|
const { children, segmentationRepresentationTypes } = t0;
|
|
40908
|
-
const { commandsManager, servicesManager } = (0,
|
|
40912
|
+
const { commandsManager, servicesManager } = (0,src/* .useSystem */.Jg)();
|
|
40909
40913
|
const { displaySetService, viewportGridService, toolbarService, segmentationService } = servicesManager.services;
|
|
40910
40914
|
const { activeViewportId } = viewportGridService.getState();
|
|
40911
40915
|
let t1;
|
|
@@ -40934,7 +40938,7 @@ function PanelSegmentation(t0) {
|
|
|
40934
40938
|
} else {
|
|
40935
40939
|
t2 = $[4];
|
|
40936
40940
|
}
|
|
40937
|
-
const { activeToolOptions: activeUtilityOptions } = (0,
|
|
40941
|
+
const { activeToolOptions: activeUtilityOptions } = (0,src/* .useActiveToolOptions */.KP)(t2);
|
|
40938
40942
|
const { segmentationsWithRepresentations, disabled } = (0,useActiveViewportSegmentationRepresentations/* .useActiveViewportSegmentationRepresentations */.c)();
|
|
40939
40943
|
const setUIState = (0,default_src/* .useUIStateStore */.FS)(PanelSegmentation_temp);
|
|
40940
40944
|
let t3;
|
|
@@ -40979,12 +40983,12 @@ function PanelSegmentation(t0) {
|
|
|
40979
40983
|
t5 = $[13];
|
|
40980
40984
|
}
|
|
40981
40985
|
const handlePopoverOpenChange = t5;
|
|
40982
|
-
const segmentationTableMode = (0,
|
|
40983
|
-
const onSegmentationAdd = (0,
|
|
40984
|
-
const disableEditing = (0,
|
|
40985
|
-
const showAddSegment = (0,
|
|
40986
|
-
const CustomDropdownMenuContent = (0,
|
|
40987
|
-
const CustomSegmentStatisticsHeader = (0,
|
|
40986
|
+
const segmentationTableMode = (0,src/* .useCustomization */.hS)("panelSegmentation.tableMode");
|
|
40987
|
+
const onSegmentationAdd = (0,src/* .useCustomization */.hS)("panelSegmentation.onSegmentationAdd");
|
|
40988
|
+
const disableEditing = (0,src/* .useCustomization */.hS)("panelSegmentation.disableEditing");
|
|
40989
|
+
const showAddSegment = (0,src/* .useCustomization */.hS)("panelSegmentation.showAddSegment");
|
|
40990
|
+
const CustomDropdownMenuContent = (0,src/* .useCustomization */.hS)("panelSegmentation.customDropdownMenuContent");
|
|
40991
|
+
const CustomSegmentStatisticsHeader = (0,src/* .useCustomization */.hS)("panelSegmentation.customSegmentStatisticsHeader");
|
|
40988
40992
|
let t10;
|
|
40989
40993
|
let t11;
|
|
40990
40994
|
let t12;
|
|
@@ -41821,7 +41825,7 @@ const ViewportWindowLevel = (t0)=>{
|
|
|
41821
41825
|
t2 = $[3];
|
|
41822
41826
|
}
|
|
41823
41827
|
const [isLoading, setIsLoading] = (0,react.useState)(t2);
|
|
41824
|
-
const displaySets = (0,
|
|
41828
|
+
const displaySets = (0,src/* .useActiveViewportDisplaySets */.BZ)();
|
|
41825
41829
|
let t3;
|
|
41826
41830
|
if ($[4] !== cornerstoneViewportService) {
|
|
41827
41831
|
t3 = (volumeIds)=>{
|
|
@@ -42212,7 +42216,7 @@ const DEFAULT_TYPES = [
|
|
|
42212
42216
|
function AccordionGroup(props) {
|
|
42213
42217
|
const $ = (0,compiler_runtime.c)(18);
|
|
42214
42218
|
const { grouping, items, children, sourceChildren } = props;
|
|
42215
|
-
const childProps = (0,
|
|
42219
|
+
const childProps = (0,src/* .useSystem */.Jg)();
|
|
42216
42220
|
let defaultValue = props.defaultValue;
|
|
42217
42221
|
let groups;
|
|
42218
42222
|
if ($[0] !== childProps || $[1] !== defaultValue || $[2] !== grouping || $[3] !== items) {
|
|
@@ -42555,7 +42559,7 @@ AccordionGroup.Accordion = GroupAccordion;
|
|
|
42555
42559
|
function MeasurementTableNested(props) {
|
|
42556
42560
|
const $ = (0,compiler_runtime.c)(16);
|
|
42557
42561
|
const { title, items, group, customHeader } = props;
|
|
42558
|
-
const { commandsManager } = (0,
|
|
42562
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
42559
42563
|
let t0;
|
|
42560
42564
|
if ($[0] !== commandsManager || $[1] !== items) {
|
|
42561
42565
|
t0 = (e, command, uid)=>{
|
|
@@ -42635,7 +42639,7 @@ function MeasurementTableNested(props) {
|
|
|
42635
42639
|
|
|
42636
42640
|
|
|
42637
42641
|
|
|
42638
|
-
const { filterNot, filterAdditionalFindings } =
|
|
42642
|
+
const { filterNot, filterAdditionalFindings } = src/* .utils.MeasurementFilters */.Wp.MeasurementFilters;
|
|
42639
42643
|
const MeasurementOrAdditionalFindingSets = [
|
|
42640
42644
|
{
|
|
42641
42645
|
title: 'Measurements',
|
|
@@ -42751,7 +42755,7 @@ function MeasurementsOrAdditionalFindings(props) {
|
|
|
42751
42755
|
|
|
42752
42756
|
|
|
42753
42757
|
|
|
42754
|
-
const { formatDate: StudySummaryFromMetadata_formatDate } =
|
|
42758
|
+
const { formatDate: StudySummaryFromMetadata_formatDate } = src/* .utils */.Wp;
|
|
42755
42759
|
function StudySummaryFromMetadata(props) {
|
|
42756
42760
|
const $ = (0,compiler_runtime.c)(9);
|
|
42757
42761
|
const { StudyInstanceUID } = props;
|
|
@@ -42765,7 +42769,7 @@ function StudySummaryFromMetadata(props) {
|
|
|
42765
42769
|
if ($[0] !== StudyInstanceUID) {
|
|
42766
42770
|
t1 = Symbol.for("react.early_return_sentinel");
|
|
42767
42771
|
bb0: {
|
|
42768
|
-
const studyMeta =
|
|
42772
|
+
const studyMeta = src/* .DicomMetadataStore.getStudy */.H8.getStudy(StudyInstanceUID);
|
|
42769
42773
|
if (!studyMeta?.series?.length) {
|
|
42770
42774
|
t1 = null;
|
|
42771
42775
|
break bb0;
|
|
@@ -42816,7 +42820,7 @@ function StudySummaryFromMetadata(props) {
|
|
|
42816
42820
|
function StudyMeasurementsActions(t0) {
|
|
42817
42821
|
const $ = (0,compiler_runtime.c)(33);
|
|
42818
42822
|
const { items, StudyInstanceUID, measurementFilter, actions } = t0;
|
|
42819
|
-
const { commandsManager } = (0,
|
|
42823
|
+
const { commandsManager } = (0,src/* .useSystem */.Jg)();
|
|
42820
42824
|
const { t } = (0,es/* .useTranslation */.Bd)("MeasurementTable");
|
|
42821
42825
|
const disabled = !items?.length;
|
|
42822
42826
|
if (disabled) {
|
|
@@ -43040,7 +43044,7 @@ function StudySummaryWithActions(props) {
|
|
|
43040
43044
|
|
|
43041
43045
|
|
|
43042
43046
|
|
|
43043
|
-
const { MeasurementFilters } =
|
|
43047
|
+
const { MeasurementFilters } = src/* .utils */.Wp; /**
|
|
43044
43048
|
* Groups measurements by study in order to allow display and saving by study
|
|
43045
43049
|
* @param {Object} servicesManager
|
|
43046
43050
|
*/
|
|
@@ -43094,7 +43098,7 @@ function StudyMeasurements(props) {
|
|
|
43094
43098
|
t1 = $[1];
|
|
43095
43099
|
}
|
|
43096
43100
|
const grouping = t1;
|
|
43097
|
-
const activeDisplaySets = (0,
|
|
43101
|
+
const activeDisplaySets = (0,src/* .useActiveViewportDisplaySets */.BZ)();
|
|
43098
43102
|
const activeStudyUID = activeDisplaySets?.[0]?.StudyInstanceUID;
|
|
43099
43103
|
let t2;
|
|
43100
43104
|
if ($[2] !== activeStudyUID || $[3] !== grouping) {
|
|
@@ -43878,7 +43882,7 @@ function MeasumentsMenu(props) {
|
|
|
43878
43882
|
const $ = (0,compiler_runtime.c)(36);
|
|
43879
43883
|
const { group, classNames } = props;
|
|
43880
43884
|
const { t } = (0,es/* .useTranslation */.Bd)("MeasurementTable");
|
|
43881
|
-
const system = (0,
|
|
43885
|
+
const system = (0,src/* .useSystem */.Jg)();
|
|
43882
43886
|
const [isDropdownOpen, setIsDropdownOpen] = (0,react.useState)(false);
|
|
43883
43887
|
if (!group.items?.length) {
|
|
43884
43888
|
console.log("No items to iterate", group.items);
|
|
@@ -44312,7 +44316,7 @@ function MeasurementItem(props) {
|
|
|
44312
44316
|
function MeasurementAccordion(props) {
|
|
44313
44317
|
const $ = (0,compiler_runtime.c)(9);
|
|
44314
44318
|
const { items } = props;
|
|
44315
|
-
const system = (0,
|
|
44319
|
+
const system = (0,src/* .useSystem */.Jg)();
|
|
44316
44320
|
let t0;
|
|
44317
44321
|
if ($[0] !== system) {
|
|
44318
44322
|
t0 = (e, group)=>{
|
|
@@ -44457,8 +44461,8 @@ function SeriesMeasurements(props) {
|
|
|
44457
44461
|
t1 = $[1];
|
|
44458
44462
|
}
|
|
44459
44463
|
const grouping = t1;
|
|
44460
|
-
const system = (0,
|
|
44461
|
-
const activeDisplaySets = (0,
|
|
44464
|
+
const system = (0,src/* .useSystem */.Jg)();
|
|
44465
|
+
const activeDisplaySets = (0,src/* .useActiveViewportDisplaySets */.BZ)(system);
|
|
44462
44466
|
const activeDisplaySetInstanceUID = activeDisplaySets?.[0]?.displaySetInstanceUID;
|
|
44463
44467
|
let t2;
|
|
44464
44468
|
if ($[2] !== system) {
|
|
@@ -48637,8 +48641,12 @@ function createDicomWebApi(dicomWebConfig, servicesManager) {
|
|
|
48637
48641
|
} // The value.Value will be set with the bulkdata read value
|
|
48638
48642
|
// in which case it isn't necessary to re-read this.
|
|
48639
48643
|
if (value && value.BulkDataURI && !value.Value) {
|
|
48640
|
-
fixBulkDataURI(value, instance, dicomWebConfig); // Provide a method to fetch bulkdata
|
|
48641
|
-
|
|
48644
|
+
fixBulkDataURI(value, instance, dicomWebConfig); // Provide a method to fetch bulkdata. The client is shared, so set the
|
|
48645
|
+
// current auth headers at fetch time, as the other ops here do.
|
|
48646
|
+
value.retrieveBulkData = (options)=>{
|
|
48647
|
+
dicomWebClient.headers = getAuthorizationHeader();
|
|
48648
|
+
return retrieveBulkData.call(dicomWebClient, value, options);
|
|
48649
|
+
};
|
|
48642
48650
|
}
|
|
48643
48651
|
}
|
|
48644
48652
|
return naturalized;
|
|
@@ -59175,8 +59183,8 @@ function AboutModalDefault() {
|
|
|
59175
59183
|
version = $[3];
|
|
59176
59184
|
}
|
|
59177
59185
|
const browser = `${t0}${t1} ${version}`;
|
|
59178
|
-
const versionNumber = "3.14.0-beta.
|
|
59179
|
-
const commitHash = "
|
|
59186
|
+
const versionNumber = "3.14.0-beta.60";
|
|
59187
|
+
const commitHash = "dd72889a0496b8c4e308a7f25b1e4d457d198869";
|
|
59180
59188
|
let t2;
|
|
59181
59189
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
59182
59190
|
t2 = versionNumber.split("-");
|