hellfire 0.27.4 → 0.27.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.27.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.5...v0.27.6) (2023-11-21)
6
+
7
+
8
+
9
+ ## [0.27.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.4...v0.27.5) (2023-10-12)
10
+
11
+
12
+
5
13
  ## [0.27.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.3...v0.27.4) (2023-09-18)
6
14
 
7
15
 
package/dist/index.js CHANGED
@@ -28187,7 +28187,7 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
28187
28187
  var _renderToolData = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(evt) {
28188
28188
  var _this2 = this;
28189
28189
 
28190
- var eventData, element, toolData, stack, imagePlane, seriesInstanceUID, dicom, instanceNumber, aiData, drawData, context, lineWidth, i, data, xOffset;
28190
+ var eventData, element, toolData, stack, imagePlane, seriesInstanceUID, dicom, instanceNumber, aiData, SOPInstanceUIDs, currentImageIdIndex, drawData, context, lineWidth, i, data, xOffset;
28191
28191
  return regenerator.wrap(function _callee$(_context) {
28192
28192
  while (1) {
28193
28193
  switch (_context.prev = _context.next) {
@@ -28238,7 +28238,8 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
28238
28238
 
28239
28239
  return _objectSpread$d(_objectSpread$d({}, segmentation), {}, {
28240
28240
  index: i + 1,
28241
- info: info
28241
+ info: info,
28242
+ instanceUid: item.instanceUid
28242
28243
  });
28243
28244
  });
28244
28245
 
@@ -28247,8 +28248,16 @@ var AIAnalysisOverlayTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
28247
28248
  });
28248
28249
 
28249
28250
  if (aiData && aiData.length > 0) {
28251
+ SOPInstanceUIDs = stack.data[0].SOPInstanceUIDs;
28252
+ currentImageIdIndex = stack.data[0].currentImageIdIndex;
28250
28253
  drawData = lodash$1.filter(aiData, function (item) {
28251
- return item.sliceIndex === instanceNumber;
28254
+ if (item.sliceIndex || item.sliceIndex === 0) {
28255
+ return item.sliceIndex === instanceNumber;
28256
+ } else {
28257
+ if (item.instanceUid && SOPInstanceUIDs) {
28258
+ return item.instanceUid === SOPInstanceUIDs[currentImageIdIndex];
28259
+ }
28260
+ }
28252
28261
  });
28253
28262
 
28254
28263
  if (drawData && drawData.length > 0) {
@@ -44052,7 +44061,8 @@ var DicomToolMobileThreeModeBottom = /*#__PURE__*/function (_Component) {
44052
44061
  scrollHidden = _this$props.scrollHidden,
44053
44062
  MPR = _this$props.MPR,
44054
44063
  VR = _this$props.VR,
44055
- MIP = _this$props.MIP;
44064
+ MIP = _this$props.MIP,
44065
+ operateKeyImages = _this$props.operateKeyImages;
44056
44066
 
44057
44067
  var _toolsMap = _objectSpread$D(_objectSpread$D({}, toolsMap), {}, {
44058
44068
  MPR: {
@@ -44102,7 +44112,15 @@ var DicomToolMobileThreeModeBottom = /*#__PURE__*/function (_Component) {
44102
44112
  });
44103
44113
 
44104
44114
  var phoneToolsFixed = ["StackScroll", "Wwwc", "Zoom"];
44105
- var phoneTools = ["Layout", "Pan", "Rotate", "Length", "Reset", "Tool", "ReferenceLine", "KeyImages", "MPR", "VR", "MIP", "Settings"];
44115
+ var phoneTools = ["Layout", "Pan", "Rotate", "Length", "Reset", "Tool", "ReferenceLine", "MPR", "VR", "MIP", "Settings"]; // 关键图工具
44116
+
44117
+ if (operateKeyImages) {
44118
+ var referenceLineIndex = phoneTools.indexOf("ReferenceLine");
44119
+
44120
+ if (referenceLineIndex !== -1) {
44121
+ phoneTools.splice(referenceLineIndex + 1, 0, "KeyImages");
44122
+ }
44123
+ }
44106
44124
 
44107
44125
  if (MPR) {
44108
44126
  phoneTools = ["Rotate", "Length", "Reset", "Tool"];