hellfire 0.18.0 → 0.18.1
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 +232 -141
- 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.18.1](http://10.16.100.57/diffusion/115/paladin/compare/v0.18.0...v0.18.1) (2022-01-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
# [0.18.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.12...v0.18.0) (2022-01-26)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -26412,11 +26412,60 @@ function imagePointToPatientPoint(imagePoint, imagePlane) {
|
|
|
26412
26412
|
enterModule && enterModule(module);
|
|
26413
26413
|
})();
|
|
26414
26414
|
|
|
26415
|
+
var __signature__$1E = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26416
|
+
return a;
|
|
26417
|
+
};
|
|
26418
|
+
var dicomCache = {};
|
|
26419
|
+
|
|
26420
|
+
var loadAndCacheDicom = function loadAndCacheDicom(imageId) {
|
|
26421
|
+
return new Promise(function (resolve, reject) {
|
|
26422
|
+
if (dicomCache[imageId]) {
|
|
26423
|
+
resolve(dicomCache[imageId]);
|
|
26424
|
+
return;
|
|
26425
|
+
}
|
|
26426
|
+
|
|
26427
|
+
var imagePromise = loadAndCacheImagePlus(imageId);
|
|
26428
|
+
imagePromise.then(function (image) {
|
|
26429
|
+
var dicom = new DicomInfo(image.data, image.getPixelData());
|
|
26430
|
+
dicomCache[imageId] = dicom;
|
|
26431
|
+
resolve(dicom);
|
|
26432
|
+
}, function (e) {
|
|
26433
|
+
reject(e);
|
|
26434
|
+
});
|
|
26435
|
+
});
|
|
26436
|
+
};
|
|
26437
|
+
|
|
26438
|
+
var purgeDicomCache = function purgeDicomCache() {
|
|
26439
|
+
dicomCache = {};
|
|
26440
|
+
};
|
|
26441
|
+
|
|
26442
|
+
(function () {
|
|
26443
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
26444
|
+
|
|
26445
|
+
if (!reactHotLoader) {
|
|
26446
|
+
return;
|
|
26447
|
+
}
|
|
26448
|
+
|
|
26449
|
+
reactHotLoader.register(dicomCache, "dicomCache", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
26450
|
+
reactHotLoader.register(loadAndCacheDicom, "loadAndCacheDicom", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
26451
|
+
reactHotLoader.register(purgeDicomCache, "purgeDicomCache", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
26452
|
+
})();
|
|
26453
|
+
|
|
26454
|
+
(function () {
|
|
26455
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
26456
|
+
leaveModule && leaveModule(module);
|
|
26457
|
+
})();
|
|
26458
|
+
|
|
26459
|
+
(function () {
|
|
26460
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26461
|
+
enterModule && enterModule(module);
|
|
26462
|
+
})();
|
|
26463
|
+
|
|
26415
26464
|
function _createSuper$A(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$A(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
26416
26465
|
|
|
26417
26466
|
function _isNativeReflectConstruct$A() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
26418
26467
|
|
|
26419
|
-
var __signature__$
|
|
26468
|
+
var __signature__$1F = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26420
26469
|
return a;
|
|
26421
26470
|
};
|
|
26422
26471
|
var getNewContext$c = cornerstoneTools.importInternal('drawing/getNewContext');
|
|
@@ -26670,100 +26719,191 @@ var ReferencePositionTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
|
|
|
26670
26719
|
|
|
26671
26720
|
}, {
|
|
26672
26721
|
key: "renderTargetPosition",
|
|
26673
|
-
value: function
|
|
26674
|
-
var
|
|
26722
|
+
value: function () {
|
|
26723
|
+
var _renderTargetPosition = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(evt) {
|
|
26724
|
+
var _this3 = this;
|
|
26675
26725
|
|
|
26676
|
-
|
|
26677
|
-
image = _evt$detail2.image,
|
|
26678
|
-
element = _evt$detail2.element;
|
|
26679
|
-
var sourceElements = this.synchronizationContext.getSourceElements();
|
|
26726
|
+
var _evt$detail2, image, element, sourceElements, sourceElement, sourceToolData, cornerstone, sourceImage, currentTargetImage, sourceImagePlane, currentTargetPlane, currentTargetImageDicom, sourceImageDicom, sourcePoint, sourcePointV3, imageTotalCount, targetImageIndex, firstImageId, lastImageId, firstTargetImagePlane, lastTargetImagePlane, sourcePointInFirstPlane, sourcePointInLastPlane, sourcePointInFirstPlaneV3, sourcePointInLastPlaneV3, totalDistance, pointToFirstImageDistance, _targetImageIndex, targetImagePlane, sourcePointToTargetPlanePoint, context, handles;
|
|
26680
26727
|
|
|
26681
|
-
|
|
26682
|
-
|
|
26683
|
-
|
|
26728
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
26729
|
+
while (1) {
|
|
26730
|
+
switch (_context2.prev = _context2.next) {
|
|
26731
|
+
case 0:
|
|
26732
|
+
_evt$detail2 = evt.detail, image = _evt$detail2.image, element = _evt$detail2.element;
|
|
26733
|
+
sourceElements = this.synchronizationContext.getSourceElements();
|
|
26684
26734
|
|
|
26685
|
-
|
|
26686
|
-
|
|
26735
|
+
if (!(!sourceElements || sourceElements.length === 0 || !this.imageIds || this.imageIds.length === 0)) {
|
|
26736
|
+
_context2.next = 4;
|
|
26737
|
+
break;
|
|
26738
|
+
}
|
|
26687
26739
|
|
|
26688
|
-
|
|
26689
|
-
return;
|
|
26690
|
-
} // 操作的element有二维定位的点
|
|
26740
|
+
return _context2.abrupt("return");
|
|
26691
26741
|
|
|
26742
|
+
case 4:
|
|
26743
|
+
sourceElement = sourceElements[0];
|
|
26744
|
+
sourceToolData = getToolState$b(sourceElement, this.name);
|
|
26692
26745
|
|
|
26693
|
-
|
|
26694
|
-
|
|
26746
|
+
if (!(!sourceToolData || !sourceToolData.data || sourceToolData.data.length === 0)) {
|
|
26747
|
+
_context2.next = 8;
|
|
26748
|
+
break;
|
|
26749
|
+
}
|
|
26695
26750
|
|
|
26696
|
-
|
|
26697
|
-
return;
|
|
26698
|
-
}
|
|
26751
|
+
return _context2.abrupt("return");
|
|
26699
26752
|
|
|
26700
|
-
|
|
26753
|
+
case 8:
|
|
26754
|
+
// 操作的element有二维定位的点
|
|
26755
|
+
cornerstone = external$j.cornerstone;
|
|
26756
|
+
sourceImage = cornerstone.getEnabledElement(sourceElement).image;
|
|
26757
|
+
currentTargetImage = cornerstone.getEnabledElement(element).image;
|
|
26701
26758
|
|
|
26702
|
-
|
|
26703
|
-
|
|
26704
|
-
|
|
26759
|
+
if (!(!sourceImage || !currentTargetImage)) {
|
|
26760
|
+
_context2.next = 13;
|
|
26761
|
+
break;
|
|
26762
|
+
}
|
|
26705
26763
|
|
|
26706
|
-
|
|
26707
|
-
var sourcePointV3 = imagePointToPatientPoint(sourcePoint, sourceImagePlane);
|
|
26708
|
-
/**
|
|
26709
|
-
* 1.在起始的外侧,就直接取第一个image
|
|
26710
|
-
* 2.在结束的外侧,直接取最后一个image
|
|
26711
|
-
* 3.在中间,把source的点击的p点投到第一张上获得p1,投到最后一张上获得p2,因为层是平行的,
|
|
26712
|
-
* 这样三个点就在一条空间的直线上了,然后计算p1到p2的距离distance,distance/层数,
|
|
26713
|
-
* 就是层厚+层间距(默认当它是等分的),然后p点到p1的距离也能知道,除以(层厚+层间距)找到index
|
|
26714
|
-
*/
|
|
26764
|
+
return _context2.abrupt("return");
|
|
26715
26765
|
|
|
26716
|
-
|
|
26717
|
-
|
|
26718
|
-
|
|
26719
|
-
if (imageTotalCount > 1) {
|
|
26720
|
-
var firstImageId = this.imageIds[0];
|
|
26721
|
-
var lastImageId = this.imageIds[imageTotalCount - 1];
|
|
26722
|
-
var firstTargetImagePlane = cornerstone.metaData.get('imagePlaneModule', firstImageId);
|
|
26723
|
-
var lastTargetImagePlane = cornerstone.metaData.get('imagePlaneModule', lastImageId);
|
|
26724
|
-
var sourcePointInFirstPlane = projectPatientPointToImagePlane$1(sourcePointV3, firstTargetImagePlane);
|
|
26725
|
-
var sourcePointInLastPlane = projectPatientPointToImagePlane$1(sourcePointV3, lastTargetImagePlane);
|
|
26726
|
-
var sourcePointInFirstPlaneV3 = imagePointToPatientPoint(sourcePointInFirstPlane, firstTargetImagePlane);
|
|
26727
|
-
var sourcePointInLastPlaneV3 = imagePointToPatientPoint(sourcePointInLastPlane, lastTargetImagePlane);
|
|
26728
|
-
var totalDistance = this.calcDistance(sourcePointInFirstPlaneV3, sourcePointInLastPlaneV3);
|
|
26729
|
-
var pointToFirstImageDistance = this.calcDistance(sourcePointInFirstPlaneV3, sourcePointV3);
|
|
26730
|
-
|
|
26731
|
-
var _targetImageIndex = lodash$1.round(pointToFirstImageDistance / (totalDistance / (imageTotalCount - 1)));
|
|
26732
|
-
|
|
26733
|
-
if (_targetImageIndex < 0 || _targetImageIndex > imageTotalCount - 1) {
|
|
26734
|
-
// 不在这个序列范围内 不翻页 不绘制
|
|
26735
|
-
return;
|
|
26736
|
-
}
|
|
26766
|
+
case 13:
|
|
26767
|
+
sourceImagePlane = cornerstone.metaData.get('imagePlaneModule', sourceImage.imageId);
|
|
26768
|
+
currentTargetPlane = cornerstone.metaData.get('imagePlaneModule', currentTargetImage.imageId);
|
|
26737
26769
|
|
|
26738
|
-
|
|
26739
|
-
|
|
26770
|
+
if (!(!sourceImagePlane || !currentTargetPlane || !sourceImagePlane.rowCosines || !sourceImagePlane.columnCosines || !sourceImagePlane.imagePositionPatient || !sourceImagePlane.frameOfReferenceUID || !currentTargetPlane.frameOfReferenceUID)) {
|
|
26771
|
+
_context2.next = 17;
|
|
26772
|
+
break;
|
|
26773
|
+
}
|
|
26740
26774
|
|
|
26741
|
-
|
|
26775
|
+
return _context2.abrupt("return");
|
|
26742
26776
|
|
|
26743
|
-
|
|
26744
|
-
|
|
26745
|
-
|
|
26777
|
+
case 17:
|
|
26778
|
+
if (!(currentTargetPlane.frameOfReferenceUID !== sourceImagePlane.frameOfReferenceUID)) {
|
|
26779
|
+
_context2.next = 19;
|
|
26780
|
+
break;
|
|
26781
|
+
}
|
|
26746
26782
|
|
|
26747
|
-
|
|
26748
|
-
var context = getNewContext$c(evt.detail.canvasContext.canvas);
|
|
26749
|
-
var handles = {
|
|
26750
|
-
end: sourcePointToTargetPlanePoint
|
|
26751
|
-
};
|
|
26752
|
-
draw$b(context, function (context) {
|
|
26753
|
-
_default$t(context, evt.detail, handles, {
|
|
26754
|
-
handleRadius: _this3.configuration.handleRadius,
|
|
26755
|
-
lineLength: 20,
|
|
26756
|
-
lineSpacing: 8,
|
|
26757
|
-
hideCenterPoint: true,
|
|
26758
|
-
color: '#eb6565',
|
|
26759
|
-
lineWidth: 2
|
|
26760
|
-
});
|
|
26783
|
+
return _context2.abrupt("return");
|
|
26761
26784
|
|
|
26762
|
-
|
|
26763
|
-
|
|
26764
|
-
|
|
26765
|
-
|
|
26766
|
-
|
|
26785
|
+
case 19:
|
|
26786
|
+
_context2.next = 21;
|
|
26787
|
+
return loadAndCacheDicom(currentTargetImage.imageId);
|
|
26788
|
+
|
|
26789
|
+
case 21:
|
|
26790
|
+
currentTargetImageDicom = _context2.sent;
|
|
26791
|
+
_context2.next = 24;
|
|
26792
|
+
return loadAndCacheDicom(sourceImage.imageId);
|
|
26793
|
+
|
|
26794
|
+
case 24:
|
|
26795
|
+
sourceImageDicom = _context2.sent;
|
|
26796
|
+
|
|
26797
|
+
if (!(!currentTargetImageDicom.ImageType || !currentTargetImageDicom.ImageType.value || !lodash$1.includes(lodash$1.toUpper(currentTargetImageDicom.ImageType.value), 'PRIMARY'))) {
|
|
26798
|
+
_context2.next = 27;
|
|
26799
|
+
break;
|
|
26800
|
+
}
|
|
26801
|
+
|
|
26802
|
+
return _context2.abrupt("return");
|
|
26803
|
+
|
|
26804
|
+
case 27:
|
|
26805
|
+
if (!(!sourceImageDicom.ImageType || !sourceImageDicom.ImageType.value || !lodash$1.includes(lodash$1.toUpper(sourceImageDicom.ImageType.value), 'PRIMARY'))) {
|
|
26806
|
+
_context2.next = 29;
|
|
26807
|
+
break;
|
|
26808
|
+
}
|
|
26809
|
+
|
|
26810
|
+
return _context2.abrupt("return");
|
|
26811
|
+
|
|
26812
|
+
case 29:
|
|
26813
|
+
sourcePoint = sourceToolData.data[0].handles.end;
|
|
26814
|
+
sourcePointV3 = imagePointToPatientPoint(sourcePoint, sourceImagePlane);
|
|
26815
|
+
/**
|
|
26816
|
+
* 1.在起始的外侧,就直接取第一个image
|
|
26817
|
+
* 2.在结束的外侧,直接取最后一个image
|
|
26818
|
+
* 3.在中间,把source的点击的p点投到第一张上获得p1,投到最后一张上获得p2,因为层是平行的,
|
|
26819
|
+
* 这样三个点就在一条空间的直线上了,然后计算p1到p2的距离distance,distance/层数,
|
|
26820
|
+
* 就是层厚+层间距(默认当它是等分的),然后p点到p1的距离也能知道,除以(层厚+层间距)找到index
|
|
26821
|
+
*/
|
|
26822
|
+
|
|
26823
|
+
imageTotalCount = this.imageIds.length;
|
|
26824
|
+
targetImageIndex = 0;
|
|
26825
|
+
|
|
26826
|
+
if (!(imageTotalCount > 1)) {
|
|
26827
|
+
_context2.next = 50;
|
|
26828
|
+
break;
|
|
26829
|
+
}
|
|
26830
|
+
|
|
26831
|
+
firstImageId = this.imageIds[0];
|
|
26832
|
+
lastImageId = this.imageIds[imageTotalCount - 1];
|
|
26833
|
+
firstTargetImagePlane = cornerstone.metaData.get('imagePlaneModule', firstImageId);
|
|
26834
|
+
lastTargetImagePlane = cornerstone.metaData.get('imagePlaneModule', lastImageId);
|
|
26835
|
+
|
|
26836
|
+
if (!(!firstTargetImagePlane || !lastTargetImagePlane || !firstTargetImagePlane.rowCosines || !lastTargetImagePlane.rowCosines || !firstTargetImagePlane.columnCosines || !lastTargetImagePlane.columnCosines || !firstTargetImagePlane.imagePositionPatient || !lastTargetImagePlane.imagePositionPatient)) {
|
|
26837
|
+
_context2.next = 40;
|
|
26838
|
+
break;
|
|
26839
|
+
}
|
|
26840
|
+
|
|
26841
|
+
return _context2.abrupt("return");
|
|
26842
|
+
|
|
26843
|
+
case 40:
|
|
26844
|
+
sourcePointInFirstPlane = projectPatientPointToImagePlane$1(sourcePointV3, firstTargetImagePlane);
|
|
26845
|
+
sourcePointInLastPlane = projectPatientPointToImagePlane$1(sourcePointV3, lastTargetImagePlane);
|
|
26846
|
+
sourcePointInFirstPlaneV3 = imagePointToPatientPoint(sourcePointInFirstPlane, firstTargetImagePlane);
|
|
26847
|
+
sourcePointInLastPlaneV3 = imagePointToPatientPoint(sourcePointInLastPlane, lastTargetImagePlane);
|
|
26848
|
+
totalDistance = this.calcDistance(sourcePointInFirstPlaneV3, sourcePointInLastPlaneV3);
|
|
26849
|
+
pointToFirstImageDistance = this.calcDistance(sourcePointInFirstPlaneV3, sourcePointV3);
|
|
26850
|
+
_targetImageIndex = lodash$1.round(pointToFirstImageDistance / (totalDistance / (imageTotalCount - 1)));
|
|
26851
|
+
|
|
26852
|
+
if (!(_targetImageIndex < 0 || _targetImageIndex > imageTotalCount - 1)) {
|
|
26853
|
+
_context2.next = 49;
|
|
26854
|
+
break;
|
|
26855
|
+
}
|
|
26856
|
+
|
|
26857
|
+
return _context2.abrupt("return");
|
|
26858
|
+
|
|
26859
|
+
case 49:
|
|
26860
|
+
scrollToIndex(element, _targetImageIndex);
|
|
26861
|
+
|
|
26862
|
+
case 50:
|
|
26863
|
+
targetImagePlane = cornerstone.metaData.get('imagePlaneModule', this.imageIds[targetImageIndex]);
|
|
26864
|
+
|
|
26865
|
+
if (!(!targetImagePlane || !targetImagePlane.rowCosines || !targetImagePlane.columnCosines || !targetImagePlane.imagePositionPatient || !targetImagePlane.frameOfReferenceUID)) {
|
|
26866
|
+
_context2.next = 53;
|
|
26867
|
+
break;
|
|
26868
|
+
}
|
|
26869
|
+
|
|
26870
|
+
return _context2.abrupt("return");
|
|
26871
|
+
|
|
26872
|
+
case 53:
|
|
26873
|
+
sourcePointToTargetPlanePoint = projectPatientPointToImagePlane$1(sourcePointV3, targetImagePlane);
|
|
26874
|
+
context = getNewContext$c(evt.detail.canvasContext.canvas);
|
|
26875
|
+
handles = {
|
|
26876
|
+
end: sourcePointToTargetPlanePoint
|
|
26877
|
+
};
|
|
26878
|
+
draw$b(context, function (context) {
|
|
26879
|
+
_default$t(context, evt.detail, handles, {
|
|
26880
|
+
handleRadius: _this3.configuration.handleRadius,
|
|
26881
|
+
lineLength: 20,
|
|
26882
|
+
lineSpacing: 8,
|
|
26883
|
+
hideCenterPoint: true,
|
|
26884
|
+
color: '#eb6565',
|
|
26885
|
+
lineWidth: 2
|
|
26886
|
+
});
|
|
26887
|
+
|
|
26888
|
+
_this3.updateCachedStats(image, element, {
|
|
26889
|
+
handles: handles
|
|
26890
|
+
});
|
|
26891
|
+
});
|
|
26892
|
+
|
|
26893
|
+
case 57:
|
|
26894
|
+
case "end":
|
|
26895
|
+
return _context2.stop();
|
|
26896
|
+
}
|
|
26897
|
+
}
|
|
26898
|
+
}, _callee2, this);
|
|
26899
|
+
}));
|
|
26900
|
+
|
|
26901
|
+
function renderTargetPosition(_x2) {
|
|
26902
|
+
return _renderTargetPosition.apply(this, arguments);
|
|
26903
|
+
}
|
|
26904
|
+
|
|
26905
|
+
return renderTargetPosition;
|
|
26906
|
+
}()
|
|
26767
26907
|
}, {
|
|
26768
26908
|
key: "calcDistance",
|
|
26769
26909
|
value: function calcDistance(p1, p2) {
|
|
@@ -26817,7 +26957,7 @@ var ReferencePositionTool = /*#__PURE__*/function (_BaseAnnotationPlusTo) {
|
|
|
26817
26957
|
enterModule && enterModule(module);
|
|
26818
26958
|
})();
|
|
26819
26959
|
|
|
26820
|
-
var __signature__$
|
|
26960
|
+
var __signature__$1G = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26821
26961
|
return a;
|
|
26822
26962
|
};
|
|
26823
26963
|
var getToolState$c = cornerstoneTools.getToolState;
|
|
@@ -26854,7 +26994,7 @@ var _default$w = function _default(element) {
|
|
|
26854
26994
|
enterModule && enterModule(module);
|
|
26855
26995
|
})();
|
|
26856
26996
|
|
|
26857
|
-
var __signature__$
|
|
26997
|
+
var __signature__$1H = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26858
26998
|
return a;
|
|
26859
26999
|
};
|
|
26860
27000
|
var scrollToIndex$1 = cornerstoneTools.importInternal('util/scrollToIndex');
|
|
@@ -26932,7 +27072,7 @@ var _default$x = {
|
|
|
26932
27072
|
enterModule && enterModule(module);
|
|
26933
27073
|
})();
|
|
26934
27074
|
|
|
26935
|
-
var __signature__$
|
|
27075
|
+
var __signature__$1I = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26936
27076
|
return a;
|
|
26937
27077
|
};
|
|
26938
27078
|
var external$k = cornerstoneTools.external;
|
|
@@ -27219,7 +27359,7 @@ var _default$y = function _default(synchronizer, sourceElement, targetElement, e
|
|
|
27219
27359
|
enterModule && enterModule(module);
|
|
27220
27360
|
})();
|
|
27221
27361
|
|
|
27222
|
-
var __signature__$
|
|
27362
|
+
var __signature__$1J = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27223
27363
|
return a;
|
|
27224
27364
|
};
|
|
27225
27365
|
var external$l = cornerstoneTools.external;
|
|
@@ -27373,7 +27513,7 @@ var _default$z = function _default(synchronizer, sourceElement, targetElement, e
|
|
|
27373
27513
|
enterModule && enterModule(module);
|
|
27374
27514
|
})();
|
|
27375
27515
|
|
|
27376
|
-
var __signature__$
|
|
27516
|
+
var __signature__$1K = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27377
27517
|
return a;
|
|
27378
27518
|
};
|
|
27379
27519
|
var getToolState$e = cornerstoneTools.getToolState;
|
|
@@ -27448,7 +27588,7 @@ var _default$A = function _default(synchronizer, sourceElement, targetElement, e
|
|
|
27448
27588
|
enterModule && enterModule(module);
|
|
27449
27589
|
})();
|
|
27450
27590
|
|
|
27451
|
-
var __signature__$
|
|
27591
|
+
var __signature__$1L = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27452
27592
|
return a;
|
|
27453
27593
|
};
|
|
27454
27594
|
var external$m = cornerstoneTools.external;
|
|
@@ -27532,7 +27672,7 @@ var _default$B = function _default(synchronizer, sourceElement, targetElement, e
|
|
|
27532
27672
|
enterModule && enterModule(module);
|
|
27533
27673
|
})();
|
|
27534
27674
|
|
|
27535
|
-
var __signature__$
|
|
27675
|
+
var __signature__$1M = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27536
27676
|
return a;
|
|
27537
27677
|
};
|
|
27538
27678
|
|
|
@@ -27573,7 +27713,7 @@ var _MPR_DIRECTION_COLOR;
|
|
|
27573
27713
|
enterModule && enterModule(module);
|
|
27574
27714
|
})();
|
|
27575
27715
|
|
|
27576
|
-
var __signature__$
|
|
27716
|
+
var __signature__$1N = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27577
27717
|
return a;
|
|
27578
27718
|
};
|
|
27579
27719
|
var MPR_DIRECTION_COLOR = (_MPR_DIRECTION_COLOR = {}, defineProperty(_MPR_DIRECTION_COLOR, ImagePlanDirection.Sagittal, 'red'), defineProperty(_MPR_DIRECTION_COLOR, ImagePlanDirection.Transverse, 'greenyellow'), defineProperty(_MPR_DIRECTION_COLOR, ImagePlanDirection.Coronal, 'blue'), _MPR_DIRECTION_COLOR);
|
|
@@ -27598,7 +27738,7 @@ var MPR_DIRECTION_COLOR = (_MPR_DIRECTION_COLOR = {}, defineProperty(_MPR_DIRECT
|
|
|
27598
27738
|
enterModule && enterModule(module);
|
|
27599
27739
|
})();
|
|
27600
27740
|
|
|
27601
|
-
var __signature__$
|
|
27741
|
+
var __signature__$1O = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27602
27742
|
return a;
|
|
27603
27743
|
};
|
|
27604
27744
|
var external$n = cornerstoneTools.external; // 两条直线求焦点
|
|
@@ -27668,7 +27808,7 @@ var _userAgent$cpu, _userAgent$device, _userAgent$os, _userAgent$os2, _userAgent
|
|
|
27668
27808
|
enterModule && enterModule(module);
|
|
27669
27809
|
})();
|
|
27670
27810
|
|
|
27671
|
-
var __signature__$
|
|
27811
|
+
var __signature__$1P = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27672
27812
|
return a;
|
|
27673
27813
|
};
|
|
27674
27814
|
|
|
@@ -27818,7 +27958,7 @@ function _createSuper$B(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
27818
27958
|
|
|
27819
27959
|
function _isNativeReflectConstruct$B() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
27820
27960
|
|
|
27821
|
-
var __signature__$
|
|
27961
|
+
var __signature__$1Q = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
27822
27962
|
return a;
|
|
27823
27963
|
};
|
|
27824
27964
|
var external$o = cornerstoneTools.external;
|
|
@@ -28352,7 +28492,7 @@ function _createSuper$C(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
28352
28492
|
|
|
28353
28493
|
function _isNativeReflectConstruct$C() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
|
28354
28494
|
|
|
28355
|
-
var __signature__$
|
|
28495
|
+
var __signature__$1R = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28356
28496
|
return a;
|
|
28357
28497
|
};
|
|
28358
28498
|
var external$p = cornerstoneTools.external;
|
|
@@ -28501,7 +28641,7 @@ var OverlayTool = /*#__PURE__*/function (_BaseTool) {
|
|
|
28501
28641
|
enterModule && enterModule(module);
|
|
28502
28642
|
})();
|
|
28503
28643
|
|
|
28504
|
-
var __signature__$
|
|
28644
|
+
var __signature__$1S = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28505
28645
|
return a;
|
|
28506
28646
|
};
|
|
28507
28647
|
var cornerstoneState = {
|
|
@@ -28615,55 +28755,6 @@ function reset$2(key) {
|
|
|
28615
28755
|
enterModule && enterModule(module);
|
|
28616
28756
|
})();
|
|
28617
28757
|
|
|
28618
|
-
var __signature__$1S = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28619
|
-
return a;
|
|
28620
|
-
};
|
|
28621
|
-
var dicomCache = {};
|
|
28622
|
-
|
|
28623
|
-
var loadAndCacheDicom = function loadAndCacheDicom(imageId) {
|
|
28624
|
-
return new Promise(function (resolve, reject) {
|
|
28625
|
-
if (dicomCache[imageId]) {
|
|
28626
|
-
resolve(dicomCache[imageId]);
|
|
28627
|
-
return;
|
|
28628
|
-
}
|
|
28629
|
-
|
|
28630
|
-
var imagePromise = loadAndCacheImagePlus(imageId);
|
|
28631
|
-
imagePromise.then(function (image) {
|
|
28632
|
-
var dicom = new DicomInfo(image.data, image.getPixelData());
|
|
28633
|
-
dicomCache[imageId] = dicom;
|
|
28634
|
-
resolve(dicom);
|
|
28635
|
-
}, function (e) {
|
|
28636
|
-
reject(e);
|
|
28637
|
-
});
|
|
28638
|
-
});
|
|
28639
|
-
};
|
|
28640
|
-
|
|
28641
|
-
var purgeDicomCache = function purgeDicomCache() {
|
|
28642
|
-
dicomCache = {};
|
|
28643
|
-
};
|
|
28644
|
-
|
|
28645
|
-
(function () {
|
|
28646
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
28647
|
-
|
|
28648
|
-
if (!reactHotLoader) {
|
|
28649
|
-
return;
|
|
28650
|
-
}
|
|
28651
|
-
|
|
28652
|
-
reactHotLoader.register(dicomCache, "dicomCache", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
28653
|
-
reactHotLoader.register(loadAndCacheDicom, "loadAndCacheDicom", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
28654
|
-
reactHotLoader.register(purgeDicomCache, "purgeDicomCache", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/dicom-parser-plus/dicom/utils/loadAndCacheDicom.js");
|
|
28655
|
-
})();
|
|
28656
|
-
|
|
28657
|
-
(function () {
|
|
28658
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
28659
|
-
leaveModule && leaveModule(module);
|
|
28660
|
-
})();
|
|
28661
|
-
|
|
28662
|
-
(function () {
|
|
28663
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28664
|
-
enterModule && enterModule(module);
|
|
28665
|
-
})();
|
|
28666
|
-
|
|
28667
28758
|
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
28668
28759
|
|
|
28669
28760
|
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$c(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|