@ohif/app 3.13.0-beta.109 → 3.13.0-beta.110
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/{3454.bundle.b0670a82c99931af.js → 3454.bundle.ab8c63c1e3d46eab.js} +220 -1609
- package/dist/{379.bundle.cacf70fcef530540.js → 379.bundle.75b0fb722268f037.js} +48 -43
- package/dist/{3856.bundle.285a42d08540a74a.js → 3856.bundle.cc247da8b523d738.js} +1 -0
- package/dist/{8274.bundle.a206a2e68e796155.js → 3867.bundle.0d44986c6b0bde7d.js} +663 -1814
- package/dist/{414.bundle.5faf580251ecccc5.js → 414.bundle.adb184d0525a2638.js} +19 -6
- package/dist/{5989.bundle.6a8c5b7de30385c8.js → 5989.bundle.f3905a4493574e09.js} +1106 -804
- package/dist/{6577.bundle.f614df8efd7562f4.js → 6577.bundle.a3e571d5f84837ea.js} +47 -41
- package/dist/{8568.bundle.73ae0a60200a13e0.js → 7579.bundle.9369c6c58a5d6df5.js} +252 -94
- package/dist/{9789.bundle.19323edfc98a32b6.js → 7760.bundle.2b8057d52a6bb394.js} +3399 -389
- package/dist/{4456.bundle.2c6f4bb6de866b88.js → 8565.bundle.a7532bbc39906b3c.js} +50 -7
- package/dist/{9358.bundle.f28c3008748433d0.js → 9358.bundle.6e3ad740c6167bce.js} +2 -2
- package/dist/{app.bundle.02d944bdfbe7f56f.js → app.bundle.2ff5b8155b4cffb1.js} +2256 -820
- package/dist/{compute.bundle.11dbfc2d25ce8e89.js → compute.bundle.4922bddc18cacdbd.js} +3 -3
- package/dist/index.html +1 -1
- package/dist/{polySeg.bundle.485090724c5da16c.js → polySeg.bundle.c549b9f4bad23335.js} +3 -3
- package/dist/sw.js +1 -1
- package/package.json +6 -6
- /package/dist/{100.bundle.b53f62d2c9e9d217.js → 100.bundle.4cf7bd363eb335b7.js} +0 -0
- /package/dist/{1180.bundle.91d7318b888f49d4.js → 1180.bundle.b2242ffb09ba5148.js} +0 -0
- /package/dist/{1602.bundle.82eb27054f87c46e.js → 1602.bundle.82c5d8be3ed58042.js} +0 -0
- /package/dist/{2666.bundle.ba07d670ce889a55.js → 2666.bundle.ee1d4d309ce2ca82.js} +0 -0
- /package/dist/{2779.bundle.2fc7fefe1c4baa18.js → 2779.bundle.357c1cb7a7c97a12.js} +0 -0
- /package/dist/{3500.bundle.1f08c43b36ccb8e8.js → 3500.bundle.d30a0fe9f2c01716.js} +0 -0
- /package/dist/{3760.bundle.2585498b240d6a6a.js → 3760.bundle.954d6b9d91e32698.js} +0 -0
- /package/dist/{4556.bundle.ab9eb35c4157e756.js → 4556.bundle.15bb2344dda86bc2.js} +0 -0
- /package/dist/{4683.bundle.a76560d5378ac6eb.js → 4683.bundle.e8c02628855b8f06.js} +0 -0
- /package/dist/{4834.bundle.16feedbb89a48139.js → 4834.bundle.90a643174dce8dec.js} +0 -0
- /package/dist/{5189.bundle.ef9d707c4c3f31aa.js → 5189.bundle.5ef0d5922ba029ba.js} +0 -0
- /package/dist/{5696.bundle.4c4a7c97de60e8e9.js → 5696.bundle.3c85e69c1cc52c7d.js} +0 -0
- /package/dist/{5708.bundle.6f993438bc9cd1cb.js → 5708.bundle.f4015201f2af7141.js} +0 -0
- /package/dist/{6001.bundle.ea20503d32089842.js → 6001.bundle.27b3105664e9300e.js} +0 -0
- /package/dist/{6650.bundle.29f772517a82ee09.js → 6650.bundle.defab1d01ae0dcba.js} +0 -0
- /package/dist/{7231.bundle.e80ae4c82e76f9aa.js → 7231.bundle.791409f68df0de05.js} +0 -0
- /package/dist/{7248.bundle.759cfc9d51cb3ce1.js → 7248.bundle.f59ba717c33fe7a9.js} +0 -0
- /package/dist/{7295.bundle.669ec6678960bc9b.js → 7295.bundle.ed75fcf8ee66b10a.js} +0 -0
- /package/dist/{8423.bundle.6e8a9d8368e6deb6.js → 8423.bundle.22a629778b9e5e5f.js} +0 -0
- /package/dist/{8832.bundle.5f4cceed2a78111b.js → 8832.bundle.c550b761182eb3f6.js} +0 -0
- /package/dist/{9116.bundle.1b4a60b74cf6e76f.js → 9116.bundle.c002e22cfadc9396.js} +0 -0
- /package/dist/{9290.bundle.8d5e18c97f597402.js → 9290.bundle.a77e843b58fe5013.js} +0 -0
- /package/dist/{9415.bundle.23cdd187e22f3555.js → 9415.bundle.e1cfbd843dd3d63b.js} +0 -0
- /package/dist/{9437.bundle.91da0017f6cf6613.js → 9437.bundle.10d4785589703e3d.js} +0 -0
|
@@ -757,7 +757,9 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__rspack_im
|
|
|
757
757
|
if (!this.configuration.calculateStats) {
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
const { data, invalidated } = annotation;
|
|
761
|
+
const cachedStats = data?.cachedStats;
|
|
762
|
+
if (invalidated || !cachedStats?.[targetId]) {
|
|
761
763
|
this._calculateStatsIfActive(annotation, targetId, viewport, renderingEngine, enabledElement);
|
|
762
764
|
}
|
|
763
765
|
this._renderStats(annotation, viewport, enabledElement, svgDrawingHelper);
|
|
@@ -791,6 +793,7 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__rspack_im
|
|
|
791
793
|
updateClosedCachedStats({ viewport, points, imageData, metadata, voxelManager, cachedStats, targetId, modalityUnit, canvasCoordinates, calibratedScale, deltaInX, deltaInY, }) {
|
|
792
794
|
const { areaUnit, unit } = calibratedScale;
|
|
793
795
|
const indexPoints = points.map((point) => imageData.worldToIndex(point));
|
|
796
|
+
const dims = imageData.getDimensions();
|
|
794
797
|
let iMin = Number.MAX_SAFE_INTEGER;
|
|
795
798
|
let iMax = Number.MIN_SAFE_INTEGER;
|
|
796
799
|
let jMin = Number.MAX_SAFE_INTEGER;
|
|
@@ -806,6 +809,12 @@ class PlanarFreehandROITool extends _base_ContourSegmentationBaseTool__rspack_im
|
|
|
806
809
|
kMin = Math.min(kMin, worldPosIndex[2]);
|
|
807
810
|
kMax = Math.max(kMax, worldPosIndex[2]);
|
|
808
811
|
}
|
|
812
|
+
iMin = Math.max(0, Math.min(dims[0] - 1, iMin));
|
|
813
|
+
iMax = Math.max(0, Math.min(dims[0] - 1, iMax));
|
|
814
|
+
jMin = Math.max(0, Math.min(dims[1] - 1, jMin));
|
|
815
|
+
jMax = Math.max(0, Math.min(dims[1] - 1, jMax));
|
|
816
|
+
kMin = Math.max(0, Math.min(dims[2] - 1, kMin));
|
|
817
|
+
kMax = Math.max(0, Math.min(dims[2] - 1, kMax));
|
|
809
818
|
[iMin, iMax] = (0,_utilities_boundingBox_snapIndexBounds__rspack_import_21/* ["default"] */.A)(iMin, iMax);
|
|
810
819
|
[jMin, jMax] = (0,_utilities_boundingBox_snapIndexBounds__rspack_import_21/* ["default"] */.A)(jMin, jMax);
|
|
811
820
|
[kMin, kMax] = (0,_utilities_boundingBox_snapIndexBounds__rspack_import_21/* ["default"] */.A)(kMin, kMax);
|
|
@@ -963,14 +972,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
963
972
|
/* import */ var _store_state__rspack_import_10 = __webpack_require__(85204);
|
|
964
973
|
/* import */ var _enums__rspack_import_11 = __webpack_require__(87937);
|
|
965
974
|
/* import */ var _utilities_viewportFilters__rspack_import_12 = __webpack_require__(60810);
|
|
966
|
-
/* import */ var
|
|
967
|
-
/* import */ var
|
|
968
|
-
/* import */ var
|
|
969
|
-
/* import */ var
|
|
970
|
-
/* import */ var
|
|
971
|
-
/* import */ var
|
|
972
|
-
/* import */ var
|
|
973
|
-
/* import */ var
|
|
975
|
+
/* import */ var _utilities_getViewportICamera__rspack_import_13 = __webpack_require__(29604);
|
|
976
|
+
/* import */ var _utilities_math_rectangle__rspack_import_14 = __webpack_require__(33657);
|
|
977
|
+
/* import */ var _cursors_elementCursor__rspack_import_15 = __webpack_require__(7001);
|
|
978
|
+
/* import */ var _utilities_triggerAnnotationRenderForViewportIds__rspack_import_16 = __webpack_require__(58640);
|
|
979
|
+
/* import */ var _utilities_getPixelValueUnits__rspack_import_17 = __webpack_require__(40634);
|
|
980
|
+
/* import */ var _utilities_viewportCapabilities__rspack_import_18 = __webpack_require__(90398);
|
|
981
|
+
/* import */ var _utilities_viewport_isViewportPreScaled__rspack_import_19 = __webpack_require__(18990);
|
|
982
|
+
/* import */ var _utilities_math_basic__rspack_import_20 = __webpack_require__(73262);
|
|
983
|
+
/* import */ var _stateManagement_annotation_config_helpers__rspack_import_21 = __webpack_require__(76712);
|
|
974
984
|
var _a;
|
|
975
985
|
|
|
976
986
|
|
|
@@ -991,6 +1001,7 @@ var _a;
|
|
|
991
1001
|
|
|
992
1002
|
|
|
993
1003
|
|
|
1004
|
+
|
|
994
1005
|
|
|
995
1006
|
|
|
996
1007
|
const { transformWorldToIndex } = _cornerstonejs_core__rspack_import_1.utilities;
|
|
@@ -1003,7 +1014,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1003
1014
|
preventHandleOutsideImage: false,
|
|
1004
1015
|
calculateStats: true,
|
|
1005
1016
|
getTextLines: defaultGetTextLines,
|
|
1006
|
-
statsCalculator:
|
|
1017
|
+
statsCalculator: _utilities_math_basic__rspack_import_20.BasicStatsCalculator,
|
|
1007
1018
|
},
|
|
1008
1019
|
}) {
|
|
1009
1020
|
super(toolProps, defaultToolProps);
|
|
@@ -1048,9 +1059,9 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1048
1059
|
hasMoved: false,
|
|
1049
1060
|
};
|
|
1050
1061
|
this._activateDraw(element);
|
|
1051
|
-
(0,
|
|
1062
|
+
(0,_cursors_elementCursor__rspack_import_15.hideElementCursor)(element);
|
|
1052
1063
|
evt.preventDefault();
|
|
1053
|
-
(0,
|
|
1064
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1054
1065
|
return annotation;
|
|
1055
1066
|
};
|
|
1056
1067
|
this.isPointNearTool = (element, annotation, canvasCoords, proximity) => {
|
|
@@ -1066,7 +1077,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1066
1077
|
]);
|
|
1067
1078
|
const point = [canvasCoords[0], canvasCoords[1]];
|
|
1068
1079
|
const { left, top, width, height } = rect;
|
|
1069
|
-
const distanceToPoint =
|
|
1080
|
+
const distanceToPoint = _utilities_math_rectangle__rspack_import_14.distanceToPoint([left, top, width, height], point);
|
|
1070
1081
|
if (distanceToPoint <= proximity) {
|
|
1071
1082
|
return true;
|
|
1072
1083
|
}
|
|
@@ -1083,10 +1094,10 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1083
1094
|
movingTextBox: false,
|
|
1084
1095
|
};
|
|
1085
1096
|
this._activateModify(element);
|
|
1086
|
-
(0,
|
|
1097
|
+
(0,_cursors_elementCursor__rspack_import_15.hideElementCursor)(element);
|
|
1087
1098
|
const enabledElement = (0,_cornerstonejs_core__rspack_import_1.getEnabledElement)(element);
|
|
1088
1099
|
const { renderingEngine } = enabledElement;
|
|
1089
|
-
(0,
|
|
1100
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1090
1101
|
evt.preventDefault();
|
|
1091
1102
|
};
|
|
1092
1103
|
this.handleSelectedCallback = (evt, annotation, handle) => {
|
|
@@ -1110,10 +1121,10 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1110
1121
|
movingTextBox,
|
|
1111
1122
|
};
|
|
1112
1123
|
this._activateModify(element);
|
|
1113
|
-
(0,
|
|
1124
|
+
(0,_cursors_elementCursor__rspack_import_15.hideElementCursor)(element);
|
|
1114
1125
|
const enabledElement = (0,_cornerstonejs_core__rspack_import_1.getEnabledElement)(element);
|
|
1115
1126
|
const { renderingEngine } = enabledElement;
|
|
1116
|
-
(0,
|
|
1127
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1117
1128
|
evt.preventDefault();
|
|
1118
1129
|
};
|
|
1119
1130
|
this._endCallback = (evt) => {
|
|
@@ -1127,7 +1138,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1127
1138
|
data.handles.activeHandleIndex = null;
|
|
1128
1139
|
this._deactivateModify(element);
|
|
1129
1140
|
this._deactivateDraw(element);
|
|
1130
|
-
(0,
|
|
1141
|
+
(0,_cursors_elementCursor__rspack_import_15.resetElementCursor)(element);
|
|
1131
1142
|
this.doneEditMemo();
|
|
1132
1143
|
this.editData = null;
|
|
1133
1144
|
this.isDrawing = false;
|
|
@@ -1135,7 +1146,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1135
1146
|
this.configuration.preventHandleOutsideImage) {
|
|
1136
1147
|
(0,_stateManagement__rspack_import_5/* .removeAnnotation */.O8)(annotation.annotationUID);
|
|
1137
1148
|
}
|
|
1138
|
-
(0,
|
|
1149
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1139
1150
|
if (newAnnotation) {
|
|
1140
1151
|
(0,_stateManagement_annotation_helpers_state__rspack_import_8.triggerAnnotationCompleted)(annotation);
|
|
1141
1152
|
}
|
|
@@ -1217,7 +1228,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1217
1228
|
}
|
|
1218
1229
|
this.editData.hasMoved = true;
|
|
1219
1230
|
const enabledElement = (0,_cornerstonejs_core__rspack_import_1.getEnabledElement)(element);
|
|
1220
|
-
(0,
|
|
1231
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1221
1232
|
if (annotation.invalidated) {
|
|
1222
1233
|
(0,_stateManagement_annotation_helpers_state__rspack_import_8.triggerAnnotationModified)(annotation, element, _enums__rspack_import_11.ChangeTypes.HandlesUpdated);
|
|
1223
1234
|
}
|
|
@@ -1227,12 +1238,12 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1227
1238
|
this.isDrawing = false;
|
|
1228
1239
|
this._deactivateDraw(element);
|
|
1229
1240
|
this._deactivateModify(element);
|
|
1230
|
-
(0,
|
|
1241
|
+
(0,_cursors_elementCursor__rspack_import_15.resetElementCursor)(element);
|
|
1231
1242
|
const { annotation, viewportIdsToRender, newAnnotation } = this.editData;
|
|
1232
1243
|
const { data } = annotation;
|
|
1233
1244
|
annotation.highlighted = false;
|
|
1234
1245
|
data.handles.activeHandleIndex = null;
|
|
1235
|
-
(0,
|
|
1246
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)(viewportIdsToRender);
|
|
1236
1247
|
if (newAnnotation) {
|
|
1237
1248
|
(0,_stateManagement_annotation_helpers_state__rspack_import_8.triggerAnnotationCompleted)(annotation);
|
|
1238
1249
|
}
|
|
@@ -1307,7 +1318,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1307
1318
|
annotation,
|
|
1308
1319
|
styleSpecifier,
|
|
1309
1320
|
});
|
|
1310
|
-
const { viewPlaneNormal, viewUp } =
|
|
1321
|
+
const { viewPlaneNormal, viewUp } = (0,_utilities_getViewportICamera__rspack_import_13/* ["default"] */.A)(viewport);
|
|
1311
1322
|
if (!data.cachedStats[targetId] ||
|
|
1312
1323
|
data.cachedStats[targetId].areaUnit == null) {
|
|
1313
1324
|
data.cachedStats[targetId] = {
|
|
@@ -1328,7 +1339,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1328
1339
|
if (targetId.startsWith('imageId')) {
|
|
1329
1340
|
const viewports = renderingEngine
|
|
1330
1341
|
.getViewports()
|
|
1331
|
-
.filter(
|
|
1342
|
+
.filter(_utilities_viewportCapabilities__rspack_import_18/* .viewportSupportsImageSlices */.hz);
|
|
1332
1343
|
const invalidatedStack = viewports.find((vp) => {
|
|
1333
1344
|
const referencedImageURI = _cornerstonejs_core__rspack_import_1.utilities.imageIdToURI(referencedImageId);
|
|
1334
1345
|
const hasImageURI = vp.hasImageURI(referencedImageURI);
|
|
@@ -1356,7 +1367,7 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1356
1367
|
activeHandleIndex !== undefined) {
|
|
1357
1368
|
activeHandleCanvasCoords = [canvasCoordinates[activeHandleIndex]];
|
|
1358
1369
|
}
|
|
1359
|
-
const showHandlesAlways = Boolean((0,
|
|
1370
|
+
const showHandlesAlways = Boolean((0,_stateManagement_annotation_config_helpers__rspack_import_21/* .getStyleProperty */.h)('showHandlesAlways', {}));
|
|
1360
1371
|
if (activeHandleCanvasCoords || showHandlesAlways) {
|
|
1361
1372
|
const handleGroupUID = '0';
|
|
1362
1373
|
(0,_drawingSvg__rspack_import_9.drawHandles)(svgDrawingHelper, annotationUID, handleGroupUID, showHandlesAlways ? canvasCoordinates : activeHandleCanvasCoords, {
|
|
@@ -1443,10 +1454,10 @@ class RectangleROITool extends _base__rspack_import_0/* .AnnotationTool */.EC {
|
|
|
1443
1454
|
const area = Math.abs(width * height);
|
|
1444
1455
|
const { areaUnit } = calibrate;
|
|
1445
1456
|
const pixelUnitsOptions = {
|
|
1446
|
-
isPreScaled: (0,
|
|
1457
|
+
isPreScaled: (0,_utilities_viewport_isViewportPreScaled__rspack_import_19/* .isViewportPreScaled */.u)(viewport, targetId),
|
|
1447
1458
|
isSuvScaled: this.isSuvScaled(viewport, targetId, annotation.metadata.referencedImageId),
|
|
1448
1459
|
};
|
|
1449
|
-
const modalityUnit = (0,
|
|
1460
|
+
const modalityUnit = (0,_utilities_getPixelValueUnits__rspack_import_17/* .getPixelValueUnits */.j)(metadata.Modality, annotation.metadata.referencedImageId, pixelUnitsOptions);
|
|
1450
1461
|
let pointsInShape;
|
|
1451
1462
|
if (voxelManager) {
|
|
1452
1463
|
pointsInShape = voxelManager.forEach(this.configuration.statsCalculator.statsCallback, {
|
|
@@ -1523,7 +1534,7 @@ RectangleROITool.hydrate = (viewportId, points, options) => {
|
|
|
1523
1534
|
},
|
|
1524
1535
|
};
|
|
1525
1536
|
(0,_stateManagement__rspack_import_5/* .addAnnotation */.lC)(annotation, viewport.element);
|
|
1526
|
-
(0,
|
|
1537
|
+
(0,_utilities_triggerAnnotationRenderForViewportIds__rspack_import_16/* ["default"] */.A)([viewport.id]);
|
|
1527
1538
|
};
|
|
1528
1539
|
function defaultGetTextLines(data, targetId) {
|
|
1529
1540
|
const cachedVolumeStats = data.cachedStats[targetId];
|
|
@@ -1887,6 +1898,12 @@ class AnnotationTool extends _AnnotationDisplayTool__rspack_import_2/* ["default
|
|
|
1887
1898
|
else if (viewport instanceof _cornerstonejs_core__rspack_import_0.BaseVolumeViewport) {
|
|
1888
1899
|
referencedImageId = instance.getReferencedImageId(viewport, points[0], viewPlaneNormal, viewUp);
|
|
1889
1900
|
}
|
|
1901
|
+
else if (_cornerstonejs_core__rspack_import_0.utilities.isGenericViewport(viewport)) {
|
|
1902
|
+
const genericViewport = viewport;
|
|
1903
|
+
referencedImageId = genericViewport.getViewReference?.({
|
|
1904
|
+
points: [points[0]],
|
|
1905
|
+
})?.referencedImageId;
|
|
1906
|
+
}
|
|
1890
1907
|
else {
|
|
1891
1908
|
throw new Error('Unsupported viewport type');
|
|
1892
1909
|
}
|
|
@@ -1920,7 +1937,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1920
1937
|
/* import */ var _stateManagement_segmentation_config_segmentationColor__rspack_import_7 = __webpack_require__(93733);
|
|
1921
1938
|
/* import */ var _stateManagement_segmentation_getActiveSegmentIndex__rspack_import_8 = __webpack_require__(60740);
|
|
1922
1939
|
/* import */ var _enums__rspack_import_9 = __webpack_require__(87937);
|
|
1923
|
-
/* import */ var _utilities_segmentation_createLabelmapMemo__rspack_import_10 = __webpack_require__(
|
|
1940
|
+
/* import */ var _utilities_segmentation_createLabelmapMemo__rspack_import_10 = __webpack_require__(24778);
|
|
1924
1941
|
/* import */ var _stateManagement_annotation_annotationState__rspack_import_11 = __webpack_require__(82056);
|
|
1925
1942
|
/* import */ var _utilities_planar__rspack_import_12 = __webpack_require__(71096);
|
|
1926
1943
|
/* import */ var _utilities_math_polyline__rspack_import_13 = __webpack_require__(3549);
|
|
@@ -3293,18 +3310,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3293
3310
|
/* import */ var _cornerstonejs_core__rspack_import_0 = __webpack_require__(70594);
|
|
3294
3311
|
|
|
3295
3312
|
function isViewportPreScaled(viewport, targetId) {
|
|
3296
|
-
|
|
3297
|
-
const volumeId = _cornerstonejs_core__rspack_import_0.utilities.getVolumeId(targetId);
|
|
3298
|
-
const volume = _cornerstonejs_core__rspack_import_0.cache.getVolume(volumeId);
|
|
3299
|
-
return !!volume?.scaling && Object.keys(volume.scaling).length > 0;
|
|
3300
|
-
}
|
|
3301
|
-
else if (viewport instanceof _cornerstonejs_core__rspack_import_0.StackViewport) {
|
|
3302
|
-
const { preScale } = viewport.getImageData() || {};
|
|
3303
|
-
return !!preScale?.scaled;
|
|
3304
|
-
}
|
|
3305
|
-
else {
|
|
3306
|
-
return false;
|
|
3307
|
-
}
|
|
3313
|
+
return !!_cornerstonejs_core__rspack_import_0.utilities.getScalingDescriptor(viewport, targetId)?.isPreScaled;
|
|
3308
3314
|
}
|
|
3309
3315
|
|
|
3310
3316
|
|