@ohif/app 3.12.0-beta.90 → 3.12.0-beta.92
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/{1037.bundle.87a5adb8c92bd5bf53f5.js → 1037.bundle.dd9098a9a640f0d0ef0f.js} +129 -96
- package/dist/{1608.bundle.3d904bc76f5d5f78ff21.js → 1608.bundle.f855c4bdb7f00eb66fca.js} +1 -1
- package/dist/{1903.bundle.f0505c6e927d0bef5589.js → 1903.bundle.9a291597f23ebaa3371c.js} +49 -47
- package/dist/{1604.bundle.4f01a6b0b8d5b1cbc294.js → 1933.bundle.a5d41c04da5425d06694.js} +13 -26
- package/dist/{2018.bundle.59c7c4cb3f79f63bab68.js → 2018.bundle.4527f2b0c1c8ff75f568.js} +18 -43
- package/dist/{306.bundle.f9faa2b3cdd7e86b5869.js → 306.bundle.a0af0889477845729c6a.js} +23 -1
- package/dist/{3461.bundle.458597198f24359ec78f.js → 3461.bundle.3cac685ef19f883a0f9d.js} +27 -8
- package/dist/{4019.bundle.1be1cdd0805ad2c59d65.js → 4019.bundle.03029c488a02493cb7f3.js} +17 -1
- package/dist/{2518.bundle.644302643ac0790e7374.js → 4033.bundle.1609f8751de2a6aff280.js} +457 -303
- package/dist/{4819.bundle.f187a4c0517c85e37ab0.js → 4819.bundle.14344bf9acf5c5f6d123.js} +3 -3
- package/dist/{5028.bundle.6003ab9178779929462f.js → 5028.bundle.c61b7cd88172e2d589d5.js} +2 -2
- package/dist/{5400.bundle.c3a3fe8867efa2edfa94.js → 5400.bundle.428fdd2dc347a7fda9e6.js} +96 -92
- package/dist/5457.bundle.af893cd38fdaeafd5c2a.js +89 -0
- package/dist/{5485.bundle.2ee096f57ff7e51d4c23.js → 5485.bundle.929d9add8bdf90a4f3c7.js} +8 -0
- package/dist/{5802.bundle.8922caf16c088b10cdb0.js → 5802.bundle.756d2ed511c06ee8b461.js} +2 -2
- package/dist/{6991.bundle.46bc04720d99fbb06785.js → 6991.bundle.7d091de815571097b96e.js} +8 -10
- package/dist/{7412.bundle.34fe5e72833e857edc0a.js → 7412.bundle.dfe01ae3e53107abe53d.js} +80 -57
- package/dist/{8305.bundle.8ea926425cdffaf84fe3.js → 8305.bundle.08ba73235df90e099838.js} +75 -55
- package/dist/{8558.bundle.c9ffb4f942dbbbff1849.js → 8558.bundle.705446f4883e84021bf4.js} +29 -11
- package/dist/{8583.bundle.7715397a42e8f00a9e3e.js → 8583.bundle.0288cadf5cf8401446b1.js} +12 -13
- package/dist/{874.bundle.92ddc54408fef9debee7.js → 874.bundle.7e543ec9343c9a718e3d.js} +35 -42
- package/dist/{3613.bundle.6157004e0592003c0800.js → 8802.bundle.4958d8ba1d0d521a002a.js} +131 -76
- package/dist/{9548.bundle.7be4f24aeadd0ad4f16c.js → 9195.bundle.70afccd0f802b78c279a.js} +75 -104
- package/dist/{9845.bundle.7e4db5e31b28d73fdac2.js → 9845.bundle.0d22f2210c1d5ac18882.js} +1 -1
- package/dist/{app.bundle.bdd8a45996ed4ca28560.js → app.bundle.2b7e40349f89ffdfd96c.js} +1055 -219
- package/dist/{compute.bundle.f3ca9fb0e7ce9e885b9c.js → compute.bundle.4c0ef8b919cbe5eef44d.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.7b8d1bb21d442a48da1d.js → polySeg.bundle.75f37f2780c5375e161e.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +22 -22
- package/dist/5457.bundle.535bae0c872c1ca0c2cb.js +0 -1358
- /package/dist/{1459.bundle.0481573ae1bde12b24ee.js → 1459.bundle.c4acfc6df383fc187e9e.js} +0 -0
- /package/dist/{147.bundle.6fc65a239d1ae1c6a918.js → 147.bundle.c191ca0b67633f707aff.js} +0 -0
- /package/dist/{1515.bundle.73d415797a677ae5261e.js → 1515.bundle.3f81b326242dd945ecdb.js} +0 -0
- /package/dist/{1604.css → 1933.css} +0 -0
- /package/dist/{213.bundle.9b152cd4d202cae43af2.js → 213.bundle.33092c23ffe1d81ae242.js} +0 -0
- /package/dist/{2243.bundle.25ca9faa6d0776355adf.js → 2243.bundle.e37c80996a222167dc14.js} +0 -0
- /package/dist/{2424.bundle.57b7484a3b1b1e5a1722.js → 2424.bundle.45583fc64208a2821aa3.js} +0 -0
- /package/dist/{319.bundle.4ea0dbcfeb553c900206.js → 319.bundle.febb2a63634488c11db6.js} +0 -0
- /package/dist/{6027.bundle.06ab1f1cd27f93f826e5.js → 6027.bundle.b2942a0dd2c583374d7b.js} +0 -0
- /package/dist/{7431.bundle.55dd86000e66bee467e2.js → 7431.bundle.b80819b8eb28d2ee897d.js} +0 -0
- /package/dist/{7639.bundle.a89f4a8c6e8b2593d7a4.js → 7639.bundle.2ad4b6cd132d87439fa6.js} +0 -0
- /package/dist/{85.bundle.f3a9149485e3fcf652f0.js → 85.bundle.a772983604a0f9514e33.js} +0 -0
- /package/dist/{9862.bundle.0456a2d473895bf2916e.js → 9862.bundle.eca4ea8821bb040a44c1.js} +0 -0
- /package/dist/{9927.bundle.d7051dac659d827d62d3.js → 9927.bundle.775cb41458de4c28a9ba.js} +0 -0
|
@@ -5154,6 +5154,7 @@ const projectionRadiographSOPClassUIDs = new Set([
|
|
|
5154
5154
|
'1.2.840.10008.5.1.4.1.1.12.2.1',
|
|
5155
5155
|
'1.2.840.10008.5.1.4.1.1.12.3',
|
|
5156
5156
|
]);
|
|
5157
|
+
const alreadySeenWarn = new Set();
|
|
5157
5158
|
function calculateRadiographicPixelSpacing(instance) {
|
|
5158
5159
|
const { PixelSpacing, ImagerPixelSpacing, EstimatedRadiographicMagnificationFactor, PixelSpacingCalibrationType, PixelSpacingCalibrationDescription, } = instance;
|
|
5159
5160
|
const isProjection = true;
|
|
@@ -5166,7 +5167,10 @@ function calculateRadiographicPixelSpacing(instance) {
|
|
|
5166
5167
|
}
|
|
5167
5168
|
if (!PixelSpacing) {
|
|
5168
5169
|
if (!EstimatedRadiographicMagnificationFactor) {
|
|
5169
|
-
|
|
5170
|
+
if (!alreadySeenWarn.has(instance.SeriesInstanceUID)) {
|
|
5171
|
+
console.warn('EstimatedRadiographicMagnificationFactor was not present on series', instance.SeriesInstanceUID, ' Unable to correct ImagerPixelSpacing.');
|
|
5172
|
+
alreadySeenWarn.add(instance.SeriesInstanceUID);
|
|
5173
|
+
}
|
|
5170
5174
|
return {
|
|
5171
5175
|
PixelSpacing: ImagerPixelSpacing,
|
|
5172
5176
|
type: enums.CalibrationTypes.PROJECTION,
|
|
@@ -6935,7 +6939,7 @@ var COLOR_LUT = __webpack_require__(93952);
|
|
|
6935
6939
|
|
|
6936
6940
|
|
|
6937
6941
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/version.js
|
|
6938
|
-
const version = '4.11.
|
|
6942
|
+
const version = '4.11.3';
|
|
6939
6943
|
|
|
6940
6944
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/callbacks/cameraSyncCallback.js
|
|
6941
6945
|
|
|
@@ -7371,8 +7375,8 @@ class AnnotationMultiSlice {
|
|
|
7371
7375
|
var getViewportForAnnotation = __webpack_require__(40133);
|
|
7372
7376
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/annotationHydration.js
|
|
7373
7377
|
var annotationHydration = __webpack_require__(64485);
|
|
7374
|
-
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contours/index.js +
|
|
7375
|
-
var contours = __webpack_require__(
|
|
7378
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contours/index.js + 5 modules
|
|
7379
|
+
var contours = __webpack_require__(19111);
|
|
7376
7380
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/index.js
|
|
7377
7381
|
var segmentation = __webpack_require__(93759);
|
|
7378
7382
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/drawing/index.js
|
|
@@ -23175,6 +23179,8 @@ function LivewireContourTool_defaultGetTextLines(data, targetId) {
|
|
|
23175
23179
|
return textLines;
|
|
23176
23180
|
}
|
|
23177
23181
|
|
|
23182
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/contours/AnnotationToPointData.js
|
|
23183
|
+
var AnnotationToPointData = __webpack_require__(29632);
|
|
23178
23184
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/tools/annotation/LivewireContourSegmentationTool.js
|
|
23179
23185
|
|
|
23180
23186
|
|
|
@@ -23182,6 +23188,7 @@ function LivewireContourTool_defaultGetTextLines(data, targetId) {
|
|
|
23182
23188
|
|
|
23183
23189
|
|
|
23184
23190
|
|
|
23191
|
+
|
|
23185
23192
|
class LivewireContourSegmentationTool extends annotation_LivewireContourTool {
|
|
23186
23193
|
static { this.toolName = 'LivewireContourSegmentationTool'; }
|
|
23187
23194
|
updateInterpolatedAnnotation(annotation, enabledElement) {
|
|
@@ -23263,6 +23270,9 @@ class LivewireContourSegmentationTool extends annotation_LivewireContourTool {
|
|
|
23263
23270
|
isContourSegmentationTool() {
|
|
23264
23271
|
return true;
|
|
23265
23272
|
}
|
|
23273
|
+
static {
|
|
23274
|
+
AnnotationToPointData/* default */.A.register(this);
|
|
23275
|
+
}
|
|
23266
23276
|
}
|
|
23267
23277
|
/* harmony default export */ const annotation_LivewireContourSegmentationTool = ((/* unused pure expression or super */ null && (LivewireContourSegmentationTool)));
|
|
23268
23278
|
|
|
@@ -35293,9 +35303,12 @@ function defaultGetTextLines(data, targetId) {
|
|
|
35293
35303
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35294
35304
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
35295
35305
|
/* harmony export */ });
|
|
35306
|
+
/* unused harmony export PlanarFreehandContourSegmentationTool */
|
|
35296
35307
|
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
35297
35308
|
/* harmony import */ var _stateManagement_segmentation_triggerSegmentationEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49906);
|
|
35298
35309
|
/* harmony import */ var _PlanarFreehandROITool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28220);
|
|
35310
|
+
/* harmony import */ var _utilities_contours_AnnotationToPointData__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29632);
|
|
35311
|
+
|
|
35299
35312
|
|
|
35300
35313
|
|
|
35301
35314
|
|
|
@@ -35310,6 +35323,9 @@ class PlanarFreehandContourSegmentationTool extends _PlanarFreehandROITool__WEBP
|
|
|
35310
35323
|
}, toolProps);
|
|
35311
35324
|
super(initialProps);
|
|
35312
35325
|
}
|
|
35326
|
+
static {
|
|
35327
|
+
_utilities_contours_AnnotationToPointData__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A.register(this);
|
|
35328
|
+
}
|
|
35313
35329
|
isContourSegmentationTool() {
|
|
35314
35330
|
return true;
|
|
35315
35331
|
}
|
|
@@ -35336,32 +35352,30 @@ class PlanarFreehandContourSegmentationTool extends _PlanarFreehandROITool__WEBP
|
|
|
35336
35352
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35337
35353
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
35338
35354
|
/* harmony export */ });
|
|
35339
|
-
/* harmony import */ var
|
|
35340
|
-
/* harmony import */ var
|
|
35341
|
-
/* harmony import */ var
|
|
35342
|
-
/* harmony import */ var
|
|
35343
|
-
/* harmony import */ var
|
|
35344
|
-
/* harmony import */ var
|
|
35345
|
-
/* harmony import */ var
|
|
35346
|
-
/* harmony import */ var
|
|
35347
|
-
/* harmony import */ var
|
|
35348
|
-
/* harmony import */ var
|
|
35349
|
-
/* harmony import */ var
|
|
35350
|
-
/* harmony import */ var
|
|
35351
|
-
/* harmony import */ var
|
|
35352
|
-
/* harmony import */ var
|
|
35353
|
-
/* harmony import */ var
|
|
35354
|
-
/* harmony import */ var
|
|
35355
|
-
/* harmony import */ var
|
|
35356
|
-
/* harmony import */ var
|
|
35357
|
-
/* harmony import */ var
|
|
35358
|
-
/* harmony import */ var
|
|
35359
|
-
/* harmony import */ var
|
|
35360
|
-
/* harmony import */ var
|
|
35361
|
-
/* harmony import */ var
|
|
35362
|
-
/* harmony import */ var
|
|
35363
|
-
/* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(40634);
|
|
35364
|
-
|
|
35355
|
+
/* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15327);
|
|
35356
|
+
/* harmony import */ var gl_matrix__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3823);
|
|
35357
|
+
/* harmony import */ var _utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4096);
|
|
35358
|
+
/* harmony import */ var _utilities_math__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(95527);
|
|
35359
|
+
/* harmony import */ var _utilities_planar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13165);
|
|
35360
|
+
/* harmony import */ var _utilities_throttle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27730);
|
|
35361
|
+
/* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(60810);
|
|
35362
|
+
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58640);
|
|
35363
|
+
/* harmony import */ var _planarFreehandROITool_drawLoop__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(55927);
|
|
35364
|
+
/* harmony import */ var _planarFreehandROITool_editLoopCommon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(92400);
|
|
35365
|
+
/* harmony import */ var _planarFreehandROITool_closedContourEditLoop__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57999);
|
|
35366
|
+
/* harmony import */ var _planarFreehandROITool_openContourEditLoop__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(69855);
|
|
35367
|
+
/* harmony import */ var _planarFreehandROITool_openContourEndEditLoop__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(70734);
|
|
35368
|
+
/* harmony import */ var _planarFreehandROITool_renderMethods__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(58161);
|
|
35369
|
+
/* harmony import */ var _stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44049);
|
|
35370
|
+
/* harmony import */ var _drawingSvg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(74347);
|
|
35371
|
+
/* harmony import */ var _utilities_drawing__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(473);
|
|
35372
|
+
/* harmony import */ var _utilities_math_polyline__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(92984);
|
|
35373
|
+
/* harmony import */ var _utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(18990);
|
|
35374
|
+
/* harmony import */ var _utilities_math_basic__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(73262);
|
|
35375
|
+
/* harmony import */ var _utilities_contours_calculatePerimeter__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(93843);
|
|
35376
|
+
/* harmony import */ var _base_ContourSegmentationBaseTool__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(36320);
|
|
35377
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(99737);
|
|
35378
|
+
/* harmony import */ var _utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(40634);
|
|
35365
35379
|
|
|
35366
35380
|
|
|
35367
35381
|
|
|
@@ -35387,10 +35401,10 @@ class PlanarFreehandContourSegmentationTool extends _PlanarFreehandROITool__WEBP
|
|
|
35387
35401
|
|
|
35388
35402
|
|
|
35389
35403
|
|
|
35390
|
-
const { pointCanProjectOnLine } =
|
|
35391
|
-
const { EPSILON } =
|
|
35404
|
+
const { pointCanProjectOnLine } = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline;
|
|
35405
|
+
const { EPSILON } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.CONSTANTS;
|
|
35392
35406
|
const PARALLEL_THRESHOLD = 1 - EPSILON;
|
|
35393
|
-
class PlanarFreehandROITool extends
|
|
35407
|
+
class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .A {
|
|
35394
35408
|
static { this.toolName = 'PlanarFreehandROI'; }
|
|
35395
35409
|
constructor(toolProps = {}, defaultToolProps = {
|
|
35396
35410
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -35398,7 +35412,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35398
35412
|
storePointData: false,
|
|
35399
35413
|
shadow: true,
|
|
35400
35414
|
preventHandleOutsideImage: false,
|
|
35401
|
-
contourHoleAdditionModifierKey:
|
|
35415
|
+
contourHoleAdditionModifierKey: _enums__WEBPACK_IMPORTED_MODULE_22__.KeyboardBindings.Shift,
|
|
35402
35416
|
alwaysRenderOpenContourHandles: {
|
|
35403
35417
|
enabled: false,
|
|
35404
35418
|
radius: 2,
|
|
@@ -35425,7 +35439,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35425
35439
|
displayOnePointAsCrosshairs: false,
|
|
35426
35440
|
calculateStats: true,
|
|
35427
35441
|
getTextLines: defaultGetTextLines,
|
|
35428
|
-
statsCalculator:
|
|
35442
|
+
statsCalculator: _utilities_math_basic__WEBPACK_IMPORTED_MODULE_19__.BasicStatsCalculator,
|
|
35429
35443
|
},
|
|
35430
35444
|
}) {
|
|
35431
35445
|
super(toolProps, defaultToolProps);
|
|
@@ -35437,22 +35451,22 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35437
35451
|
const { element } = eventDetail;
|
|
35438
35452
|
const annotation = this.createAnnotation(evt);
|
|
35439
35453
|
this.addAnnotation(annotation, element);
|
|
35440
|
-
const viewportIdsToRender = (0,
|
|
35454
|
+
const viewportIdsToRender = (0,_utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_6__.getViewportIdsWithToolToRender)(element, this.getToolName());
|
|
35441
35455
|
this.activateDraw(evt, annotation, viewportIdsToRender);
|
|
35442
35456
|
evt.preventDefault();
|
|
35443
|
-
(0,
|
|
35457
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)(viewportIdsToRender);
|
|
35444
35458
|
return annotation;
|
|
35445
35459
|
};
|
|
35446
35460
|
this.handleSelectedCallback = (evt, annotation, handle) => {
|
|
35447
35461
|
const eventDetail = evt.detail;
|
|
35448
35462
|
const { element } = eventDetail;
|
|
35449
|
-
const viewportIdsToRender = (0,
|
|
35463
|
+
const viewportIdsToRender = (0,_utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_6__.getViewportIdsWithToolToRender)(element, this.getToolName());
|
|
35450
35464
|
this.activateOpenContourEndEdit(evt, annotation, viewportIdsToRender, handle);
|
|
35451
35465
|
};
|
|
35452
35466
|
this.toolSelectedCallback = (evt, annotation) => {
|
|
35453
35467
|
const eventDetail = evt.detail;
|
|
35454
35468
|
const { element } = eventDetail;
|
|
35455
|
-
const viewportIdsToRender = (0,
|
|
35469
|
+
const viewportIdsToRender = (0,_utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_6__.getViewportIdsWithToolToRender)(element, this.getToolName());
|
|
35456
35470
|
if (annotation.data.contour.closed) {
|
|
35457
35471
|
this.activateClosedContourEdit(evt, annotation, viewportIdsToRender);
|
|
35458
35472
|
}
|
|
@@ -35462,7 +35476,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35462
35476
|
evt.preventDefault();
|
|
35463
35477
|
};
|
|
35464
35478
|
this.isPointNearTool = (element, annotation, canvasCoords, proximity) => {
|
|
35465
|
-
const enabledElement = (0,
|
|
35479
|
+
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
35466
35480
|
const { viewport } = enabledElement;
|
|
35467
35481
|
const { polyline: points } = annotation.data.contour;
|
|
35468
35482
|
let previousPoint = viewport.worldToCanvas(points[0]);
|
|
@@ -35510,25 +35524,25 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35510
35524
|
const { imageData, metadata } = image;
|
|
35511
35525
|
const canvasCoordinates = points.map((p) => viewport.worldToCanvas(p));
|
|
35512
35526
|
const modalityUnitOptions = {
|
|
35513
|
-
isPreScaled: (0,
|
|
35527
|
+
isPreScaled: (0,_utilities_viewport_isViewportPreScaled__WEBPACK_IMPORTED_MODULE_18__/* .isViewportPreScaled */ .u)(viewport, targetId),
|
|
35514
35528
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
35515
35529
|
};
|
|
35516
|
-
const modalityUnit = (0,
|
|
35517
|
-
const calibratedScale = (0,
|
|
35530
|
+
const modalityUnit = (0,_utilities_getPixelValueUnits__WEBPACK_IMPORTED_MODULE_23__/* .getPixelValueUnits */ .j)(metadata.Modality, annotation.metadata.referencedImageId, modalityUnitOptions);
|
|
35531
|
+
const calibratedScale = (0,_utilities_getCalibratedUnits__WEBPACK_IMPORTED_MODULE_2__/* .getCalibratedLengthUnitsAndScale */ .Op)(image, () => {
|
|
35518
35532
|
const polyline = data.contour.polyline;
|
|
35519
35533
|
const numPoints = polyline.length;
|
|
35520
35534
|
const projectedPolyline = new Array(numPoints);
|
|
35521
35535
|
for (let i = 0; i < numPoints; i++) {
|
|
35522
35536
|
projectedPolyline[i] = viewport.worldToCanvas(polyline[i]);
|
|
35523
35537
|
}
|
|
35524
|
-
const { maxX: canvasMaxX, maxY: canvasMaxY, minX: canvasMinX, minY: canvasMinY, } =
|
|
35538
|
+
const { maxX: canvasMaxX, maxY: canvasMaxY, minX: canvasMinX, minY: canvasMinY, } = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline.getAABB(projectedPolyline);
|
|
35525
35539
|
const topLeftBBWorld = viewport.canvasToWorld([canvasMinX, canvasMinY]);
|
|
35526
|
-
const topLeftBBIndex =
|
|
35540
|
+
const topLeftBBIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, topLeftBBWorld);
|
|
35527
35541
|
const bottomRightBBWorld = viewport.canvasToWorld([
|
|
35528
35542
|
canvasMaxX,
|
|
35529
35543
|
canvasMaxY,
|
|
35530
35544
|
]);
|
|
35531
|
-
const bottomRightBBIndex =
|
|
35545
|
+
const bottomRightBBIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, bottomRightBBWorld);
|
|
35532
35546
|
return [topLeftBBIndex, bottomRightBBIndex];
|
|
35533
35547
|
});
|
|
35534
35548
|
const canvasPoint = canvasCoordinates[0];
|
|
@@ -35541,8 +35555,8 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35541
35555
|
canvasPoint[0],
|
|
35542
35556
|
canvasPoint[1] + 1,
|
|
35543
35557
|
]);
|
|
35544
|
-
const deltaInX =
|
|
35545
|
-
const deltaInY =
|
|
35558
|
+
const deltaInX = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.distance */ .eR.distance(originalWorldPoint, deltaXPoint);
|
|
35559
|
+
const deltaInY = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.distance */ .eR.distance(originalWorldPoint, deltaYPoint);
|
|
35546
35560
|
if (closed) {
|
|
35547
35561
|
this.updateClosedCachedStats({
|
|
35548
35562
|
targetId,
|
|
@@ -35572,7 +35586,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35572
35586
|
const invalidated = annotation.invalidated;
|
|
35573
35587
|
annotation.invalidated = false;
|
|
35574
35588
|
if (invalidated) {
|
|
35575
|
-
(0,
|
|
35589
|
+
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_14__.triggerAnnotationModified)(annotation, enabledElement.viewport.element, _enums__WEBPACK_IMPORTED_MODULE_22__.ChangeTypes.StatsUpdated);
|
|
35576
35590
|
}
|
|
35577
35591
|
return cachedStats;
|
|
35578
35592
|
};
|
|
@@ -35595,13 +35609,13 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35595
35609
|
}
|
|
35596
35610
|
const canvasCoordinates = data.contour.polyline.map((p) => viewport.worldToCanvas(p));
|
|
35597
35611
|
if (!data.handles.textBox.hasMoved) {
|
|
35598
|
-
const canvasTextBoxCoords = (0,
|
|
35612
|
+
const canvasTextBoxCoords = (0,_utilities_drawing__WEBPACK_IMPORTED_MODULE_16__.getTextBoxCoordsCanvas)(canvasCoordinates);
|
|
35599
35613
|
data.handles.textBox.worldPosition =
|
|
35600
35614
|
viewport.canvasToWorld(canvasTextBoxCoords);
|
|
35601
35615
|
}
|
|
35602
35616
|
const textBoxPosition = viewport.worldToCanvas(data.handles.textBox.worldPosition);
|
|
35603
35617
|
const textBoxUID = '1';
|
|
35604
|
-
const boundingBox = (0,
|
|
35618
|
+
const boundingBox = (0,_drawingSvg__WEBPACK_IMPORTED_MODULE_15__.drawLinkedTextBox)(svgDrawingHelper, annotation.annotationUID ?? '', textBoxUID, textLines, textBoxPosition, canvasCoordinates, {}, options);
|
|
35605
35619
|
const { x: left, y: top, width, height } = boundingBox;
|
|
35606
35620
|
data.handles.textBox.worldBoundingBox = {
|
|
35607
35621
|
topLeft: viewport.canvasToWorld([left, top]),
|
|
@@ -35610,13 +35624,13 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35610
35624
|
bottomRight: viewport.canvasToWorld([left + width, top + height]),
|
|
35611
35625
|
};
|
|
35612
35626
|
};
|
|
35613
|
-
(0,
|
|
35614
|
-
(0,
|
|
35615
|
-
(0,
|
|
35616
|
-
(0,
|
|
35617
|
-
(0,
|
|
35618
|
-
(0,
|
|
35619
|
-
this._throttledCalculateCachedStats = (0,
|
|
35627
|
+
(0,_planarFreehandROITool_drawLoop__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)(this);
|
|
35628
|
+
(0,_planarFreehandROITool_editLoopCommon__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .A)(this);
|
|
35629
|
+
(0,_planarFreehandROITool_closedContourEditLoop__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A)(this);
|
|
35630
|
+
(0,_planarFreehandROITool_openContourEditLoop__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A)(this);
|
|
35631
|
+
(0,_planarFreehandROITool_openContourEndEditLoop__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .A)(this);
|
|
35632
|
+
(0,_planarFreehandROITool_renderMethods__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .A)(this);
|
|
35633
|
+
this._throttledCalculateCachedStats = (0,_utilities_throttle__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this._calculateCachedStats, 100, { trailing: true });
|
|
35620
35634
|
}
|
|
35621
35635
|
filterInteractableAnnotationsForElement(element, annotations) {
|
|
35622
35636
|
if (!annotations || !annotations.length) {
|
|
@@ -35626,16 +35640,16 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35626
35640
|
if (!baseFilteredAnnotations || !baseFilteredAnnotations.length) {
|
|
35627
35641
|
return;
|
|
35628
35642
|
}
|
|
35629
|
-
const enabledElement = (0,
|
|
35643
|
+
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
|
|
35630
35644
|
const { viewport } = enabledElement;
|
|
35631
35645
|
let annotationsToDisplay;
|
|
35632
|
-
if (viewport instanceof
|
|
35646
|
+
if (viewport instanceof _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.VolumeViewport) {
|
|
35633
35647
|
const camera = viewport.getCamera();
|
|
35634
|
-
const { spacingInNormalDirection } =
|
|
35648
|
+
const { spacingInNormalDirection } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.getTargetVolumeAndSpacingInNormalDir(viewport, camera);
|
|
35635
35649
|
annotationsToDisplay = this.filterAnnotationsWithinSlice(baseFilteredAnnotations, camera, spacingInNormalDirection);
|
|
35636
35650
|
}
|
|
35637
35651
|
else {
|
|
35638
|
-
annotationsToDisplay = (0,
|
|
35652
|
+
annotationsToDisplay = (0,_utilities_planar__WEBPACK_IMPORTED_MODULE_4__.filterAnnotationsForDisplay)(viewport, annotations);
|
|
35639
35653
|
}
|
|
35640
35654
|
return annotationsToDisplay;
|
|
35641
35655
|
}
|
|
@@ -35647,9 +35661,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35647
35661
|
!annotationViewPlaneNormal &&
|
|
35648
35662
|
td.metadata.FrameOfReferenceUID) {
|
|
35649
35663
|
for (const point of td.data.contour.polyline) {
|
|
35650
|
-
const vector =
|
|
35651
|
-
const dotProduct =
|
|
35652
|
-
if (!
|
|
35664
|
+
const vector = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.sub */ .eR.sub(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create(), point, camera.focalPoint);
|
|
35665
|
+
const dotProduct = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(vector, camera.viewPlaneNormal);
|
|
35666
|
+
if (!_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isEqual(dotProduct, 0)) {
|
|
35653
35667
|
return false;
|
|
35654
35668
|
}
|
|
35655
35669
|
}
|
|
@@ -35659,14 +35673,14 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35659
35673
|
}
|
|
35660
35674
|
if (!annotationViewPlaneNormal) {
|
|
35661
35675
|
const { referencedImageId } = td.metadata;
|
|
35662
|
-
const { imageOrientationPatient } =
|
|
35663
|
-
const rowCosineVec =
|
|
35664
|
-
const colCosineVec =
|
|
35665
|
-
annotationViewPlaneNormal =
|
|
35666
|
-
|
|
35676
|
+
const { imageOrientationPatient } = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.metaData.get('imagePlaneModule', referencedImageId);
|
|
35677
|
+
const rowCosineVec = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.fromValues */ .eR.fromValues(imageOrientationPatient[0], imageOrientationPatient[1], imageOrientationPatient[2]);
|
|
35678
|
+
const colCosineVec = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.fromValues */ .eR.fromValues(imageOrientationPatient[3], imageOrientationPatient[4], imageOrientationPatient[5]);
|
|
35679
|
+
annotationViewPlaneNormal = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create();
|
|
35680
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.cross */ .eR.cross(annotationViewPlaneNormal, rowCosineVec, colCosineVec);
|
|
35667
35681
|
td.metadata.viewPlaneNormal = annotationViewPlaneNormal;
|
|
35668
35682
|
}
|
|
35669
|
-
const isParallel = Math.abs(
|
|
35683
|
+
const isParallel = Math.abs(gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(viewPlaneNormal, annotationViewPlaneNormal)) >
|
|
35670
35684
|
PARALLEL_THRESHOLD;
|
|
35671
35685
|
return annotationViewPlaneNormal && isParallel;
|
|
35672
35686
|
});
|
|
@@ -35682,9 +35696,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35682
35696
|
if (!annotation.isVisible) {
|
|
35683
35697
|
continue;
|
|
35684
35698
|
}
|
|
35685
|
-
const dir =
|
|
35686
|
-
|
|
35687
|
-
const dot =
|
|
35699
|
+
const dir = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.create */ .eR.create();
|
|
35700
|
+
gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.sub */ .eR.sub(dir, focalPoint, point);
|
|
35701
|
+
const dot = gl_matrix__WEBPACK_IMPORTED_MODULE_1__/* .vec3.dot */ .eR.dot(dir, viewPlaneNormal);
|
|
35688
35702
|
if (Math.abs(dot) < halfSpacingInNormalDirection) {
|
|
35689
35703
|
annotationsWithinSlice.push(annotation);
|
|
35690
35704
|
}
|
|
@@ -35700,7 +35714,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35700
35714
|
const onInterpolationComplete = (annotation) => {
|
|
35701
35715
|
annotation.data.handles.points.length = 0;
|
|
35702
35716
|
};
|
|
35703
|
-
const annotation =
|
|
35717
|
+
const annotation = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.deepMerge(contourAnnotation, {
|
|
35704
35718
|
data: {
|
|
35705
35719
|
contour: {
|
|
35706
35720
|
polyline: [[...worldPos]],
|
|
@@ -35796,7 +35810,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35796
35810
|
updateClosedCachedStats({ viewport, points, imageData, metadata, cachedStats, targetId, modalityUnit, canvasCoordinates, calibratedScale, deltaInX, deltaInY, }) {
|
|
35797
35811
|
const { scale, areaUnit, unit } = calibratedScale;
|
|
35798
35812
|
const { voxelManager } = viewport.getImageData();
|
|
35799
|
-
const worldPosIndex =
|
|
35813
|
+
const worldPosIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, points[0]);
|
|
35800
35814
|
worldPosIndex[0] = Math.floor(worldPosIndex[0]);
|
|
35801
35815
|
worldPosIndex[1] = Math.floor(worldPosIndex[1]);
|
|
35802
35816
|
worldPosIndex[2] = Math.floor(worldPosIndex[2]);
|
|
@@ -35807,7 +35821,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35807
35821
|
let kMin = worldPosIndex[2];
|
|
35808
35822
|
let kMax = worldPosIndex[2];
|
|
35809
35823
|
for (let j = 1; j < points.length; j++) {
|
|
35810
|
-
const worldPosIndex =
|
|
35824
|
+
const worldPosIndex = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, points[j]);
|
|
35811
35825
|
worldPosIndex[0] = Math.floor(worldPosIndex[0]);
|
|
35812
35826
|
worldPosIndex[1] = Math.floor(worldPosIndex[1]);
|
|
35813
35827
|
worldPosIndex[2] = Math.floor(worldPosIndex[2]);
|
|
@@ -35818,13 +35832,13 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35818
35832
|
kMin = Math.min(kMin, worldPosIndex[2]);
|
|
35819
35833
|
kMax = Math.max(kMax, worldPosIndex[2]);
|
|
35820
35834
|
}
|
|
35821
|
-
const worldPosIndex2 =
|
|
35835
|
+
const worldPosIndex2 = _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.transformWorldToIndex(imageData, points[1]);
|
|
35822
35836
|
worldPosIndex2[0] = Math.floor(worldPosIndex2[0]);
|
|
35823
35837
|
worldPosIndex2[1] = Math.floor(worldPosIndex2[1]);
|
|
35824
35838
|
worldPosIndex2[2] = Math.floor(worldPosIndex2[2]);
|
|
35825
|
-
let area =
|
|
35839
|
+
let area = _utilities_math__WEBPACK_IMPORTED_MODULE_3__.polyline.getArea(canvasCoordinates) / scale / scale;
|
|
35826
35840
|
area *= deltaInX * deltaInY;
|
|
35827
|
-
const perimeter = (0,
|
|
35841
|
+
const perimeter = (0,_utilities_contours_calculatePerimeter__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .A)(points, closed) / scale;
|
|
35828
35842
|
const iDelta = 0.01 * (iMax - iMin);
|
|
35829
35843
|
const jDelta = 0.01 * (jMax - jMin);
|
|
35830
35844
|
const kDelta = 0.01 * (kMax - kMin);
|
|
@@ -35854,7 +35868,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35854
35868
|
if (point[1] != curRow) {
|
|
35855
35869
|
intersectionCounter = 0;
|
|
35856
35870
|
curRow = point[1];
|
|
35857
|
-
intersections = (0,
|
|
35871
|
+
intersections = (0,_utilities_math_polyline__WEBPACK_IMPORTED_MODULE_17__.getLineSegmentIntersectionsCoordinates)(canvasCoordinates, point, [canvasPosEnd[0], point[1]]);
|
|
35858
35872
|
intersections.sort((function (index) {
|
|
35859
35873
|
return function (a, b) {
|
|
35860
35874
|
return a[index] === b[index]
|
|
@@ -35896,7 +35910,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__WEBPACK_I
|
|
|
35896
35910
|
}
|
|
35897
35911
|
updateOpenCachedStats({ targetId, metadata, cachedStats, modalityUnit, calibratedScale, points, }) {
|
|
35898
35912
|
const { scale, unit } = calibratedScale;
|
|
35899
|
-
const length = (0,
|
|
35913
|
+
const length = (0,_utilities_contours_calculatePerimeter__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .A)(points, closed) / scale;
|
|
35900
35914
|
cachedStats[targetId] = {
|
|
35901
35915
|
Modality: metadata.Modality,
|
|
35902
35916
|
length,
|
|
@@ -35909,29 +35923,29 @@ function defaultGetTextLines(data, targetId) {
|
|
|
35909
35923
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
35910
35924
|
const { area, mean, stdDev, length, perimeter, max, min, isEmptyArea, unit, areaUnit, modalityUnit, } = cachedVolumeStats || {};
|
|
35911
35925
|
const textLines = [];
|
|
35912
|
-
if (
|
|
35926
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(area)) {
|
|
35913
35927
|
const areaLine = isEmptyArea
|
|
35914
35928
|
? `Area: Oblique not supported`
|
|
35915
|
-
: `Area: ${
|
|
35929
|
+
: `Area: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(area)} ${areaUnit}`;
|
|
35916
35930
|
textLines.push(areaLine);
|
|
35917
35931
|
}
|
|
35918
|
-
if (
|
|
35919
|
-
textLines.push(`Mean: ${
|
|
35932
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(mean)) {
|
|
35933
|
+
textLines.push(`Mean: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(mean)} ${modalityUnit}`);
|
|
35920
35934
|
}
|
|
35921
|
-
if (
|
|
35922
|
-
textLines.push(`Max: ${
|
|
35935
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(max)) {
|
|
35936
|
+
textLines.push(`Max: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(max)} ${modalityUnit}`);
|
|
35923
35937
|
}
|
|
35924
|
-
if (
|
|
35925
|
-
textLines.push(`Min: ${
|
|
35938
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(min)) {
|
|
35939
|
+
textLines.push(`Min: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(min)} ${modalityUnit}`);
|
|
35926
35940
|
}
|
|
35927
|
-
if (
|
|
35928
|
-
textLines.push(`Std Dev: ${
|
|
35941
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(stdDev)) {
|
|
35942
|
+
textLines.push(`Std Dev: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(stdDev)} ${modalityUnit}`);
|
|
35929
35943
|
}
|
|
35930
|
-
if (
|
|
35931
|
-
textLines.push(`Perimeter: ${
|
|
35944
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(perimeter)) {
|
|
35945
|
+
textLines.push(`Perimeter: ${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(perimeter)} ${unit}`);
|
|
35932
35946
|
}
|
|
35933
|
-
if (
|
|
35934
|
-
textLines.push(`${
|
|
35947
|
+
if (_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.isNumber(length)) {
|
|
35948
|
+
textLines.push(`${_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.utilities.roundNumber(length)} ${unit}`);
|
|
35935
35949
|
}
|
|
35936
35950
|
return textLines;
|
|
35937
35951
|
}
|
|
@@ -36562,6 +36576,25 @@ function defaultGetTextLines(data, targetId) {
|
|
|
36562
36576
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RectangleROITool);
|
|
36563
36577
|
|
|
36564
36578
|
|
|
36579
|
+
/***/ }),
|
|
36580
|
+
|
|
36581
|
+
/***/ 85817:
|
|
36582
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
36583
|
+
|
|
36584
|
+
"use strict";
|
|
36585
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
36586
|
+
/* harmony export */ EC: () => (/* reexport safe */ _AnnotationTool__WEBPACK_IMPORTED_MODULE_1__.A),
|
|
36587
|
+
/* harmony export */ oS: () => (/* reexport safe */ _BaseTool__WEBPACK_IMPORTED_MODULE_0__.A)
|
|
36588
|
+
/* harmony export */ });
|
|
36589
|
+
/* harmony import */ var _BaseTool__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37234);
|
|
36590
|
+
/* harmony import */ var _AnnotationTool__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91350);
|
|
36591
|
+
/* harmony import */ var _AnnotationDisplayTool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6030);
|
|
36592
|
+
|
|
36593
|
+
|
|
36594
|
+
|
|
36595
|
+
|
|
36596
|
+
|
|
36597
|
+
|
|
36565
36598
|
/***/ }),
|
|
36566
36599
|
|
|
36567
36600
|
/***/ 48736:
|
|
@@ -145,7 +145,7 @@ function OHIFCornerstoneRTViewport(props) {
|
|
|
145
145
|
const {
|
|
146
146
|
unsubscribe
|
|
147
147
|
} = segmentationService.subscribe(segmentationService.EVENTS.SEGMENTATION_LOADING_COMPLETE, evt => {
|
|
148
|
-
if (evt.rtDisplaySet
|
|
148
|
+
if (evt.rtDisplaySet?.displaySetInstanceUID === rtDisplaySet.displaySetInstanceUID) {
|
|
149
149
|
setRtIsLoading(false);
|
|
150
150
|
}
|
|
151
151
|
if (rtDisplaySet?.firstSegmentedSliceImageId && viewportOptions?.presentationIds) {
|