@ohif/app 3.13.0-beta.21 → 3.13.0-beta.23
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/{6409.bundle.24edbaa283b7c521b8f7.js → 2075.bundle.a9783d07b48ca241486e.js} +239 -168
- package/dist/{3081.bundle.69c2ed88c1fc66671e82.js → 3081.bundle.4344a3bedb7e70eb5d78.js} +2 -2
- package/dist/{3461.bundle.b1c56af281517014477c.js → 3461.bundle.7127d96c33ad3cd68c11.js} +3 -3
- package/dist/{4287.bundle.571587a1d29d54203175.js → 4287.bundle.c6bd6cf991e2dae32044.js} +111 -35
- package/dist/{5028.bundle.b75c0bb0fa9a490055bd.js → 5028.bundle.5833a530fe9ade4dc787.js} +2 -2
- package/dist/{2031.bundle.a17bc2d85cef3a9fea57.js → 581.bundle.2bb402f7316b6e8c735b.js} +326 -231
- package/dist/{6280.bundle.6574101421b8a4ab6777.js → 6280.bundle.828ccda61aa5c83408a5.js} +425 -567
- package/dist/{2816.bundle.838fa4d72921c026083c.js → 6386.bundle.d1be64fd274877e918d9.js} +30 -58
- package/dist/{8665.bundle.056dcd3e86743de2526c.js → 7537.bundle.5a26371cf1368d0e5cf2.js} +321 -75
- package/dist/{8305.bundle.e621bc861f8c16092e7c.js → 8305.bundle.61e53a1298804bd4bc46.js} +2 -2
- package/dist/{8583.bundle.d0773ead34455cfa28d7.js → 8583.bundle.3bae324bc92e2a4f00e4.js} +2 -2
- package/dist/{9195.bundle.902ab556e8909fa878a1.js → 9195.bundle.e4457f0ed6c34993e3c6.js} +3 -4
- package/dist/{9205.bundle.dca4f040999d069f1cc5.js → 9205.bundle.a37976b4f3ded2cbb2ab.js} +587 -709
- package/dist/{933.bundle.c8f45e1f380ad5a34e07.js → 933.bundle.a6220d057519db0b7651.js} +2 -2
- package/dist/{app.bundle.38dca800f336facdb28b.js → app.bundle.f8d7e7242f341be6acab.js} +282 -81
- package/dist/{compute.bundle.6bc9d64acadd16a85f59.js → compute.bundle.0fa6bd11224eb79e7474.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.41c40b57dd1b265fb425.js → polySeg.bundle.f15c8d2cc2559db627cf.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +21 -21
- /package/dist/{1459.bundle.2f3d935de1ef66d49c9b.js → 1459.bundle.fdfad1e671918501e3d2.js} +0 -0
- /package/dist/{1933.bundle.1b74cba28c11aaa349c1.js → 1933.bundle.f89ae7ae7baa9a38128e.js} +0 -0
- /package/dist/{2018.bundle.330c371c2152bc79a68e.js → 2018.bundle.a517a2a8d4b076b2c684.js} +0 -0
- /package/dist/{213.bundle.83766bfd0ad91206ba20.js → 213.bundle.df5bb838062f6a1aa79c.js} +0 -0
- /package/dist/{2424.bundle.8d41a94526449b9c27f2.js → 2424.bundle.c2786065ba1937631a79.js} +0 -0
- /package/dist/{3138.bundle.536017116b2a48fe8f59.js → 3138.bundle.a33cbe78017b1918c923.js} +0 -0
- /package/dist/{4507.bundle.2943a08dea2a96095e86.js → 4507.bundle.895bc803df58395a221f.js} +0 -0
- /package/dist/{4819.bundle.b817d46688ec00d46826.js → 4819.bundle.e97fa2fed6fb6e421f1a.js} +0 -0
- /package/dist/{5015.bundle.ea7e3b295cd3ef134df2.js → 5015.bundle.eff33bbbbd6ff055c742.js} +0 -0
- /package/dist/{5457.bundle.ea0a729d0bb45314d5ca.js → 5457.bundle.4b2e1e0aaf4f54d8cd1e.js} +0 -0
- /package/dist/{5485.bundle.8248a4caa4411103e190.js → 5485.bundle.70dbc4d41d1b5f299e6e.js} +0 -0
- /package/dist/{6027.bundle.b9a666f05ac57e742979.js → 6027.bundle.77ed34c72d695295cc90.js} +0 -0
- /package/dist/{7431.bundle.e6f5f5835a3c49e2309c.js → 7431.bundle.8ddbd21f7b2b8528a14a.js} +0 -0
- /package/dist/{7639.bundle.2e179ab85c66a6def98f.js → 7639.bundle.9a1d8c0a3624fff53cb9.js} +0 -0
- /package/dist/{8499.bundle.59df69e1919739d6e444.js → 8499.bundle.cca6ef54e2c475fc9f2b.js} +0 -0
- /package/dist/{85.bundle.14430d53b13d7ff9f8a8.js → 85.bundle.aa4e9485c037e1bf2cbc.js} +0 -0
- /package/dist/{8558.bundle.288aabeb7473ee9d7312.js → 8558.bundle.69bda0c8e9b438294401.js} +0 -0
- /package/dist/{9927.bundle.006c8d2dda07109c4749.js → 9927.bundle.006b27903e0450ce2e94.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[
|
|
2
|
+
(globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[6386],{
|
|
3
3
|
|
|
4
4
|
/***/ 5057
|
|
5
5
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
@@ -8364,11 +8364,9 @@ function resetSvgNodeCache() {
|
|
|
8364
8364
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(29857);
|
|
8365
8365
|
/* harmony import */ var _utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(60810);
|
|
8366
8366
|
/* harmony import */ var _utilities_math_line__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(93258);
|
|
8367
|
-
/* harmony import */ var
|
|
8368
|
-
/* harmony import */ var
|
|
8369
|
-
/* harmony import */ var
|
|
8370
|
-
/* harmony import */ var _stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(76712);
|
|
8371
|
-
|
|
8367
|
+
/* harmony import */ var _cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7001);
|
|
8368
|
+
/* harmony import */ var _utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(58640);
|
|
8369
|
+
/* harmony import */ var _stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(76712);
|
|
8372
8370
|
|
|
8373
8371
|
|
|
8374
8372
|
|
|
@@ -8449,8 +8447,8 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8449
8447
|
this._activateModify(element);
|
|
8450
8448
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__.getEnabledElement)(element);
|
|
8451
8449
|
const { renderingEngine } = enabledElement;
|
|
8452
|
-
(0,
|
|
8453
|
-
(0,
|
|
8450
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8451
|
+
(0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__.hideElementCursor)(element);
|
|
8454
8452
|
evt.preventDefault();
|
|
8455
8453
|
};
|
|
8456
8454
|
this.handleSelectedCallback = (evt, annotation, handle) => {
|
|
@@ -8467,7 +8465,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8467
8465
|
handleIndex = data.handles.points.findIndex((p) => p === handle);
|
|
8468
8466
|
}
|
|
8469
8467
|
const viewportIdsToRender = (0,_utilities_viewportFilters__WEBPACK_IMPORTED_MODULE_12__.getViewportIdsWithToolToRender)(element, this.getToolName());
|
|
8470
|
-
(0,
|
|
8468
|
+
(0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__.hideElementCursor)(element);
|
|
8471
8469
|
this.editData = {
|
|
8472
8470
|
annotation,
|
|
8473
8471
|
viewportIdsToRender,
|
|
@@ -8477,7 +8475,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8477
8475
|
this._activateModify(element);
|
|
8478
8476
|
const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__.getEnabledElement)(element);
|
|
8479
8477
|
const { renderingEngine } = enabledElement;
|
|
8480
|
-
(0,
|
|
8478
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8481
8479
|
evt.preventDefault();
|
|
8482
8480
|
};
|
|
8483
8481
|
this._endCallback = (evt) => {
|
|
@@ -8492,7 +8490,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8492
8490
|
data.handles.activeHandleIndex = null;
|
|
8493
8491
|
this._deactivateModify(element);
|
|
8494
8492
|
this._deactivateDraw(element);
|
|
8495
|
-
(0,
|
|
8493
|
+
(0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__.resetElementCursor)(element);
|
|
8496
8494
|
const { renderingEngine } = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_1__.getEnabledElement)(element);
|
|
8497
8495
|
if (this.editData.handleIndex !== undefined) {
|
|
8498
8496
|
const { points } = data.handles;
|
|
@@ -8527,7 +8525,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8527
8525
|
this.configuration.preventHandleOutsideImage) {
|
|
8528
8526
|
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.removeAnnotation)(annotation.annotationUID);
|
|
8529
8527
|
}
|
|
8530
|
-
(0,
|
|
8528
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8531
8529
|
if (newAnnotation) {
|
|
8532
8530
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__.triggerAnnotationCompleted)(annotation);
|
|
8533
8531
|
}
|
|
@@ -8589,7 +8587,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8589
8587
|
data.handles.points[2] = viewport.canvasToWorld([startX, startY]);
|
|
8590
8588
|
data.handles.points[3] = viewport.canvasToWorld([endX, endY]);
|
|
8591
8589
|
annotation.invalidated = true;
|
|
8592
|
-
(0,
|
|
8590
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8593
8591
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__.triggerAnnotationModified)(annotation, element, _enums__WEBPACK_IMPORTED_MODULE_11__.ChangeTypes.HandlesUpdated);
|
|
8594
8592
|
this.editData.hasMoved = true;
|
|
8595
8593
|
};
|
|
@@ -8625,7 +8623,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8625
8623
|
this._dragModifyHandle(evt);
|
|
8626
8624
|
annotation.invalidated = true;
|
|
8627
8625
|
}
|
|
8628
|
-
(0,
|
|
8626
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8629
8627
|
if (annotation.invalidated) {
|
|
8630
8628
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__.triggerAnnotationModified)(annotation, element, _enums__WEBPACK_IMPORTED_MODULE_11__.ChangeTypes.HandlesUpdated);
|
|
8631
8629
|
}
|
|
@@ -8780,12 +8778,12 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8780
8778
|
this.isDrawing = false;
|
|
8781
8779
|
this._deactivateDraw(element);
|
|
8782
8780
|
this._deactivateModify(element);
|
|
8783
|
-
(0,
|
|
8781
|
+
(0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__.resetElementCursor)(element);
|
|
8784
8782
|
const { annotation, viewportIdsToRender, newAnnotation } = this.editData;
|
|
8785
8783
|
const { data } = annotation;
|
|
8786
8784
|
annotation.highlighted = false;
|
|
8787
8785
|
data.handles.activeHandleIndex = null;
|
|
8788
|
-
(0,
|
|
8786
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
8789
8787
|
if (newAnnotation) {
|
|
8790
8788
|
(0,_stateManagement_annotation_helpers_state__WEBPACK_IMPORTED_MODULE_8__.triggerAnnotationCompleted)(annotation);
|
|
8791
8789
|
}
|
|
@@ -8885,7 +8883,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8885
8883
|
activeHandleIndex !== null) {
|
|
8886
8884
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
8887
8885
|
}
|
|
8888
|
-
const showHandlesAlways = Boolean((0,
|
|
8886
|
+
const showHandlesAlways = Boolean((0,_stateManagement_annotation_config_helpers__WEBPACK_IMPORTED_MODULE_16__/* .getStyleProperty */ .h)('showHandlesAlways', {}));
|
|
8889
8887
|
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
8890
8888
|
const handleGroupUID = '0';
|
|
8891
8889
|
(0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
@@ -8909,40 +8907,20 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
8909
8907
|
shadow,
|
|
8910
8908
|
}, dataId2);
|
|
8911
8909
|
renderStatus = true;
|
|
8912
|
-
const options = this.getLinkedTextBoxStyle(styleSpecifier, annotation);
|
|
8913
|
-
if (!options.visibility) {
|
|
8914
|
-
data.handles.textBox = {
|
|
8915
|
-
hasMoved: false,
|
|
8916
|
-
worldPosition: [0, 0, 0],
|
|
8917
|
-
worldBoundingBox: {
|
|
8918
|
-
topLeft: [0, 0, 0],
|
|
8919
|
-
topRight: [0, 0, 0],
|
|
8920
|
-
bottomLeft: [0, 0, 0],
|
|
8921
|
-
bottomRight: [0, 0, 0],
|
|
8922
|
-
},
|
|
8923
|
-
};
|
|
8924
|
-
continue;
|
|
8925
|
-
}
|
|
8926
8910
|
const textLines = this.configuration.getTextLines(data, targetId);
|
|
8927
8911
|
if (!textLines || textLines.length === 0) {
|
|
8928
8912
|
continue;
|
|
8929
8913
|
}
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8934
|
-
|
|
8914
|
+
if (!this.renderLinkedTextBoxAnnotation({
|
|
8915
|
+
enabledElement,
|
|
8916
|
+
svgDrawingHelper,
|
|
8917
|
+
annotation,
|
|
8918
|
+
styleSpecifier,
|
|
8919
|
+
textLines,
|
|
8920
|
+
canvasCoordinates,
|
|
8921
|
+
})) {
|
|
8922
|
+
continue;
|
|
8935
8923
|
}
|
|
8936
|
-
const textBoxPosition = viewport.worldToCanvas(data.handles.textBox.worldPosition);
|
|
8937
|
-
const textBoxUID = '1';
|
|
8938
|
-
const boundingBox = (0,_drawingSvg__WEBPACK_IMPORTED_MODULE_9__.drawLinkedTextBox)(svgDrawingHelper, annotationUID, textBoxUID, textLines, textBoxPosition, canvasCoordinates, {}, options);
|
|
8939
|
-
const { x: left, y: top, width, height } = boundingBox;
|
|
8940
|
-
data.handles.textBox.worldBoundingBox = {
|
|
8941
|
-
topLeft: viewport.canvasToWorld([left, top]),
|
|
8942
|
-
topRight: viewport.canvasToWorld([left + width, top]),
|
|
8943
|
-
bottomLeft: viewport.canvasToWorld([left, top + height]),
|
|
8944
|
-
bottomRight: viewport.canvasToWorld([left + width, top + height]),
|
|
8945
|
-
};
|
|
8946
8924
|
}
|
|
8947
8925
|
return renderStatus;
|
|
8948
8926
|
};
|
|
@@ -9046,9 +9024,9 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
9046
9024
|
hasMoved: false,
|
|
9047
9025
|
};
|
|
9048
9026
|
this._activateDraw(element);
|
|
9049
|
-
(0,
|
|
9027
|
+
(0,_cursors_elementCursor__WEBPACK_IMPORTED_MODULE_14__.hideElementCursor)(element);
|
|
9050
9028
|
evt.preventDefault();
|
|
9051
|
-
(0,
|
|
9029
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)(viewportIdsToRender);
|
|
9052
9030
|
return annotation;
|
|
9053
9031
|
}
|
|
9054
9032
|
static { this.hydrate = (viewportId, axis, options) => {
|
|
@@ -9095,7 +9073,7 @@ class BidirectionalTool extends _base__WEBPACK_IMPORTED_MODULE_3__/* .Annotation
|
|
|
9095
9073
|
},
|
|
9096
9074
|
};
|
|
9097
9075
|
(0,_stateManagement_annotation_annotationState__WEBPACK_IMPORTED_MODULE_5__.addAnnotation)(annotation, viewport.element);
|
|
9098
|
-
(0,
|
|
9076
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .A)([viewport.id]);
|
|
9099
9077
|
return annotation;
|
|
9100
9078
|
}; }
|
|
9101
9079
|
}
|
|
@@ -10757,7 +10735,7 @@ var getCanvasEllipseCorners = __webpack_require__(2222);
|
|
|
10757
10735
|
|
|
10758
10736
|
/***/ },
|
|
10759
10737
|
|
|
10760
|
-
/***/
|
|
10738
|
+
/***/ 18153
|
|
10761
10739
|
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10762
10740
|
|
|
10763
10741
|
|
|
@@ -10769,14 +10747,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10769
10747
|
|
|
10770
10748
|
// UNUSED EXPORTS: BasicStatsCalculator, aabb, angle, circle, ellipse, lineSegment, rectangle, vec2
|
|
10771
10749
|
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
return (aabb1.minX <= aabb2.maxX &&
|
|
10775
|
-
aabb1.maxX >= aabb2.minX &&
|
|
10776
|
-
aabb1.minY <= aabb2.maxY &&
|
|
10777
|
-
aabb1.maxY >= aabb2.minY);
|
|
10778
|
-
}
|
|
10779
|
-
|
|
10750
|
+
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/intersectAABB.js
|
|
10751
|
+
var intersectAABB = __webpack_require__(33277);
|
|
10780
10752
|
;// ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/aabb/distanceToPointSquared.js
|
|
10781
10753
|
function distanceToPointSquared(aabb, point) {
|
|
10782
10754
|
const aabbWidth = aabb.maxX - aabb.minX;
|