hellfire 0.31.6 → 0.31.7
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 +4 -0
- package/dist/index.js +13 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.31.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.31.6...v0.31.7) (2025-11-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.31.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.31.5...v0.31.6) (2025-11-20)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -56708,12 +56708,13 @@ var DicomLayout = /*#__PURE__*/function (_Component) {
|
|
|
56708
56708
|
col: col
|
|
56709
56709
|
});
|
|
56710
56710
|
}
|
|
56711
|
+
var stack = series[index];
|
|
56711
56712
|
return /*#__PURE__*/React__default.createElement(ConnectedDicomViewport // key={`viewport-${row}-${col}-${currentScrollLine}-${index}`}
|
|
56712
56713
|
, {
|
|
56713
|
-
key: "viewport-".concat(index),
|
|
56714
|
+
key: "viewport-".concat(stack.seriesInstanceUID, "-").concat(index),
|
|
56714
56715
|
scrollWidth: scrollWidth,
|
|
56715
56716
|
scrollType: scrollType,
|
|
56716
|
-
stack:
|
|
56717
|
+
stack: stack,
|
|
56717
56718
|
linkedIndexArr: linkedIndexArr,
|
|
56718
56719
|
width: "".concat(100 / col, "%"),
|
|
56719
56720
|
activeIndex: activeIndex,
|
|
@@ -71120,20 +71121,6 @@ var getTRAndTE$1 = function getTRAndTE(repetitionTime, echoTime) {
|
|
|
71120
71121
|
}
|
|
71121
71122
|
};
|
|
71122
71123
|
|
|
71123
|
-
var getADAndNEX$1 = function getADAndNEX(acquisitionDuration, numberOfAverages) {
|
|
71124
|
-
var formatedAD = convertSecondsToMinAndSecond(acquisitionDuration);
|
|
71125
|
-
|
|
71126
|
-
if (formatedAD && numberOfAverages) {
|
|
71127
|
-
return "AD/NEX: ".concat(formatedAD, "/").concat(numberOfAverages);
|
|
71128
|
-
} else if (formatedAD) {
|
|
71129
|
-
return "AD: ".concat(formatedAD);
|
|
71130
|
-
} else if (numberOfAverages) {
|
|
71131
|
-
return "NEX: ".concat(numberOfAverages);
|
|
71132
|
-
} else {
|
|
71133
|
-
return '';
|
|
71134
|
-
}
|
|
71135
|
-
};
|
|
71136
|
-
|
|
71137
71124
|
var formatDicomInfo$1 = function formatDicomInfo(label, value) {
|
|
71138
71125
|
var isNumber = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
71139
71126
|
var formated = value;
|
|
@@ -71398,8 +71385,8 @@ var getFilmPrintImageData = /*#__PURE__*/function () {
|
|
|
71398
71385
|
mergedCanvas.style.width = filmWidth + 'px';
|
|
71399
71386
|
mergedCanvas.style.height = filmHeight + 'px';
|
|
71400
71387
|
mergedCanvas.style.position = 'fixed'; // mergedCanvas.style.left = '-1400px';
|
|
71401
|
-
// mergedCanvas.style.top = '-
|
|
71402
|
-
// mergedCanvas.style.transform = 'scale(0.
|
|
71388
|
+
// mergedCanvas.style.top = '-2010px';
|
|
71389
|
+
// mergedCanvas.style.transform = 'scale(0.15)';
|
|
71403
71390
|
|
|
71404
71391
|
mergedCanvas.style.left = 0;
|
|
71405
71392
|
mergedCanvas.style.top = 0;
|
|
@@ -71615,8 +71602,6 @@ var addDicomInfoOnCanvas = /*#__PURE__*/function () {
|
|
|
71615
71602
|
|
|
71616
71603
|
var drawLeftTop = function drawLeftTop(dicom, ctx) {
|
|
71617
71604
|
var institutionName = dicom.InstitutionName.toString();
|
|
71618
|
-
var manufacturer = dicom.Manufacturer.toString();
|
|
71619
|
-
var manufacturerModelName = dicom.ManufacturerModelName.toString();
|
|
71620
71605
|
var patientName = dicom.PatientName.toString();
|
|
71621
71606
|
var patientSex = dicom.PatientSex.toString();
|
|
71622
71607
|
var patientAge = dicom.PatientAge.toString();
|
|
@@ -71633,12 +71618,9 @@ var drawLeftTop = function drawLeftTop(dicom, ctx) {
|
|
|
71633
71618
|
contentY += spacing;
|
|
71634
71619
|
}
|
|
71635
71620
|
|
|
71636
|
-
|
|
71637
|
-
|
|
71638
|
-
|
|
71639
|
-
}
|
|
71640
|
-
|
|
71641
|
-
ctx.fillText("".concat(patientName || '', "/").concat(patientSex || '', "/").concat(patientAge || ''), contentX, contentY);
|
|
71621
|
+
ctx.fillText("".concat(patientName || ''), contentX, contentY);
|
|
71622
|
+
contentY += spacing;
|
|
71623
|
+
ctx.fillText("".concat(patientSex || '', "/").concat(patientAge || ''), contentX, contentY);
|
|
71642
71624
|
contentY += spacing;
|
|
71643
71625
|
|
|
71644
71626
|
if (patientID) {
|
|
@@ -71670,13 +71652,10 @@ var drawLeftTop = function drawLeftTop(dicom, ctx) {
|
|
|
71670
71652
|
var drawLeftBottom = function drawLeftBottom(dicom, ctx, height) {
|
|
71671
71653
|
var patientOrientation = dicom.PatientOrientation.toString();
|
|
71672
71654
|
var protocolName = dicom.ProtocolName.toString();
|
|
71673
|
-
var sequenceName = dicom.SequenceName.toString();
|
|
71674
71655
|
var repetitionTime = dicom.RepetitionTime.toString();
|
|
71675
71656
|
var echoTime = dicom.EchoTime.toString();
|
|
71676
71657
|
var inversionTime = dicom.InversionTime.toString();
|
|
71677
71658
|
var flipAngle = dicom.FlipAngle.toString();
|
|
71678
|
-
var acquisitionDuration = dicom.AcquisitionDuration.toString();
|
|
71679
|
-
var numberOfAverages = dicom.NumberOfAverages.toString();
|
|
71680
71659
|
var sliceThickness = dicom.SliceThickness.value; // 层厚
|
|
71681
71660
|
|
|
71682
71661
|
var spacingBetweenSlices = dicom.SpacingBetweenSlices.value; // 两层中心点的层间距
|
|
@@ -71707,13 +71686,6 @@ var drawLeftBottom = function drawLeftBottom(dicom, ctx, height) {
|
|
|
71707
71686
|
contentY -= spacing;
|
|
71708
71687
|
}
|
|
71709
71688
|
|
|
71710
|
-
var adAndNex = getADAndNEX$1(acquisitionDuration, numberOfAverages);
|
|
71711
|
-
|
|
71712
|
-
if (adAndNex) {
|
|
71713
|
-
ctx.fillText(adAndNex, contentX, contentY);
|
|
71714
|
-
contentY -= spacing;
|
|
71715
|
-
}
|
|
71716
|
-
|
|
71717
71689
|
var _flipAngle = formatDicomInfo$1('FA', flipAngle);
|
|
71718
71690
|
|
|
71719
71691
|
if (_flipAngle) {
|
|
@@ -71735,16 +71707,6 @@ var drawLeftBottom = function drawLeftBottom(dicom, ctx, height) {
|
|
|
71735
71707
|
contentY -= spacing;
|
|
71736
71708
|
}
|
|
71737
71709
|
|
|
71738
|
-
if (sequenceName) {
|
|
71739
|
-
ctx.fillText(sequenceName, contentX, contentY);
|
|
71740
|
-
contentY -= spacing;
|
|
71741
|
-
}
|
|
71742
|
-
|
|
71743
|
-
if (protocolName) {
|
|
71744
|
-
ctx.fillText(protocolName, contentX, contentY);
|
|
71745
|
-
contentY -= spacing;
|
|
71746
|
-
}
|
|
71747
|
-
|
|
71748
71710
|
if (patientOrientation) {
|
|
71749
71711
|
ctx.fillText(patientOrientation, contentX, contentY);
|
|
71750
71712
|
}
|
|
@@ -71756,8 +71718,7 @@ var drawRightTop = function drawRightTop(dicom, ctx, width, stack) {
|
|
|
71756
71718
|
var instanceCount = stack.instanceCount || '';
|
|
71757
71719
|
var instanceNumber = stack.instanceNumber.toString() || '';
|
|
71758
71720
|
var seriesCount = stack.seriesCount || '';
|
|
71759
|
-
var seriesNumber = stack.seriesNumber.toString() || '';
|
|
71760
|
-
|
|
71721
|
+
var seriesNumber = stack.seriesNumber.toString() || '';
|
|
71761
71722
|
var inPlanePhaseEncodingDirection = dicom.InPlanePhaseEncodingDirection.toString();
|
|
71762
71723
|
var contentX = width - dicomInfoPaddingX;
|
|
71763
71724
|
var contentY = dicomInfoPaddingY;
|
|
@@ -71773,10 +71734,7 @@ var drawRightTop = function drawRightTop(dicom, ctx, width, stack) {
|
|
|
71773
71734
|
ctx.fillText("Se: ".concat(seriesNumber, "/").concat(seriesCount), contentX, contentY);
|
|
71774
71735
|
contentY += spacing;
|
|
71775
71736
|
ctx.fillText("Im: ".concat(instanceNumber, "/").concat(instanceCount), contentX, contentY);
|
|
71776
|
-
contentY += spacing;
|
|
71777
|
-
// ctx.fillText(compression, contentX, contentY);
|
|
71778
|
-
// contentY += spacing;
|
|
71779
|
-
// }
|
|
71737
|
+
contentY += spacing;
|
|
71780
71738
|
|
|
71781
71739
|
var _inPlanePhaseEncodingDirection = formatInPlanePhaseEncodingDirection$1(inPlanePhaseEncodingDirection);
|
|
71782
71740
|
|
|
@@ -74015,7 +73973,7 @@ var getTRAndTE$3 = function getTRAndTE(repetitionTime, echoTime) {
|
|
|
74015
73973
|
}
|
|
74016
73974
|
};
|
|
74017
73975
|
|
|
74018
|
-
var getADAndNEX$
|
|
73976
|
+
var getADAndNEX$1 = function getADAndNEX(acquisitionDuration, numberOfAverages) {
|
|
74019
73977
|
var formatedAD = convertSecondsToMinAndSecond(acquisitionDuration);
|
|
74020
73978
|
|
|
74021
73979
|
if (formatedAD && numberOfAverages) {
|
|
@@ -74301,7 +74259,7 @@ var ViewportOverlay$2 = /*#__PURE__*/function (_PureComponent) {
|
|
|
74301
74259
|
fontSize: "".concat(fontSize, "px"),
|
|
74302
74260
|
display: "".concat(hide ? 'none' : 'block')
|
|
74303
74261
|
}
|
|
74304
|
-
}, /*#__PURE__*/React__default.createElement("div", null, patientOrientation), /*#__PURE__*/React__default.createElement("div", null, protocolName), /*#__PURE__*/React__default.createElement("div", null, sequenceName), /*#__PURE__*/React__default.createElement("div", null, getTRAndTE$3(repetitionTime, echoTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('TI', inversionTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('FA', flipAngle)), /*#__PURE__*/React__default.createElement("div", null, getADAndNEX$
|
|
74262
|
+
}, /*#__PURE__*/React__default.createElement("div", null, patientOrientation), /*#__PURE__*/React__default.createElement("div", null, protocolName), /*#__PURE__*/React__default.createElement("div", null, sequenceName), /*#__PURE__*/React__default.createElement("div", null, getTRAndTE$3(repetitionTime, echoTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('TI', inversionTime)), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('FA', flipAngle)), /*#__PURE__*/React__default.createElement("div", null, getADAndNEX$1(acquisitionDuration, numberOfAverages)), /*#__PURE__*/React__default.createElement("div", null, thk), /*#__PURE__*/React__default.createElement("div", null, formatDicomInfo$3('B', diffusionBValue, false)), seriesDescription && seriesDescription !== protocolName && /*#__PURE__*/React__default.createElement("div", null, seriesDescription), imageComments && imageComments.length < 20 && /*#__PURE__*/React__default.createElement("div", null, imageComments)), /*#__PURE__*/React__default.createElement("div", {
|
|
74305
74263
|
style: {
|
|
74306
74264
|
position: 'absolute',
|
|
74307
74265
|
top: 4,
|
|
@@ -77188,6 +77146,7 @@ var mergeProps$E = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
77188
77146
|
|
|
77189
77147
|
purgeDicomCache(); // 清除所有imageCache
|
|
77190
77148
|
|
|
77149
|
+
cornerstone.imageCache.purgeCache();
|
|
77191
77150
|
var cacheInfo = cornerstone.imageCache.getCacheInfo();
|
|
77192
77151
|
var maximumSizeInBytes = cacheInfo.maximumSizeInBytes;
|
|
77193
77152
|
cornerstone.imageCache.setMaximumSizeBytes(0);
|