hellfire 0.21.3 → 0.21.4
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 +253 -253
- 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.21.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.21.3...v0.21.4) (2022-06-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.21.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.21.2...v0.21.3) (2022-06-28)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -30500,243 +30500,10 @@ function _createImage$1() {
|
|
|
30500
30500
|
enterModule && enterModule(module);
|
|
30501
30501
|
})();
|
|
30502
30502
|
|
|
30503
|
-
function ownKeys$d(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; }
|
|
30504
|
-
|
|
30505
|
-
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$d(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
30506
|
-
|
|
30507
30503
|
var __signature__$1Z = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30508
30504
|
return a;
|
|
30509
30505
|
};
|
|
30510
30506
|
|
|
30511
|
-
function wadoUriMetaDataProvider(type, imageId) {
|
|
30512
|
-
if (imageId.split(':')[0] !== 'wadouri') {
|
|
30513
|
-
return;
|
|
30514
|
-
}
|
|
30515
|
-
|
|
30516
|
-
var _cornerstoneWADOImage = cornerstoneWADOImageLoader.wadouri,
|
|
30517
|
-
parseImageId = _cornerstoneWADOImage.parseImageId,
|
|
30518
|
-
dataSetCacheManager = _cornerstoneWADOImage.dataSetCacheManager,
|
|
30519
|
-
metaData = _cornerstoneWADOImage.metaData;
|
|
30520
|
-
var parsedImageId = parseImageId(imageId);
|
|
30521
|
-
var dataSet = dataSetCacheManager.get(parsedImageId.url);
|
|
30522
|
-
var getNumberValues = metaData.getNumberValues;
|
|
30523
|
-
|
|
30524
|
-
if (!dataSet) {
|
|
30525
|
-
return;
|
|
30526
|
-
}
|
|
30527
|
-
|
|
30528
|
-
if (type === 'dicomInfo') {
|
|
30529
|
-
return new DicomInfo(dataSet);
|
|
30530
|
-
}
|
|
30531
|
-
|
|
30532
|
-
if (type === 'imagePlaneModule') {
|
|
30533
|
-
var imageOrientationPatient = getNumberValues(dataSet, 'x00200037', 6);
|
|
30534
|
-
var imagePositionPatient = getNumberValues(dataSet, 'x00200032', 3);
|
|
30535
|
-
var pixelSpacing = getNumberValues(dataSet, 'x00280030', 2);
|
|
30536
|
-
var imagePixelSpacing = getNumberValues(dataSet, 'x00181164', 2);
|
|
30537
|
-
|
|
30538
|
-
var _getPixelSpacing = getPixelSpacing$8(pixelSpacing, imagePixelSpacing),
|
|
30539
|
-
rowPixelSpacing = _getPixelSpacing.rowPixelSpacing,
|
|
30540
|
-
columnPixelSpacing = _getPixelSpacing.columnPixelSpacing;
|
|
30541
|
-
|
|
30542
|
-
var _getCosines = getCosines(imageOrientationPatient),
|
|
30543
|
-
rowCosines = _getCosines.rowCosines,
|
|
30544
|
-
columnCosines = _getCosines.columnCosines;
|
|
30545
|
-
|
|
30546
|
-
return {
|
|
30547
|
-
frameOfReferenceUID: dataSet.string('x00200052'),
|
|
30548
|
-
rows: dataSet.uint16('x00280010'),
|
|
30549
|
-
columns: dataSet.uint16('x00280011'),
|
|
30550
|
-
imageOrientationPatient: imageOrientationPatient,
|
|
30551
|
-
rowCosines: rowCosines,
|
|
30552
|
-
columnCosines: columnCosines,
|
|
30553
|
-
imagePositionPatient: imagePositionPatient,
|
|
30554
|
-
sliceThickness: dataSet.floatString('x00180050'),
|
|
30555
|
-
sliceLocation: dataSet.floatString('x00201041'),
|
|
30556
|
-
pixelSpacing: pixelSpacing,
|
|
30557
|
-
rowPixelSpacing: rowPixelSpacing,
|
|
30558
|
-
columnPixelSpacing: columnPixelSpacing
|
|
30559
|
-
};
|
|
30560
|
-
}
|
|
30561
|
-
}
|
|
30562
|
-
|
|
30563
|
-
function mprMetaDataProvider(type, imageId) {
|
|
30564
|
-
if (imageId.split(':')[0] !== 'mpr') {
|
|
30565
|
-
return;
|
|
30566
|
-
}
|
|
30567
|
-
|
|
30568
|
-
var _imageId$split = imageId.split(':'),
|
|
30569
|
-
_imageId$split2 = slicedToArray(_imageId$split, 4),
|
|
30570
|
-
scheme = _imageId$split2[0],
|
|
30571
|
-
seriesNumber = _imageId$split2[1],
|
|
30572
|
-
imageOrientationPatient = _imageId$split2[2],
|
|
30573
|
-
imagePositionPatient = _imageId$split2[3];
|
|
30574
|
-
|
|
30575
|
-
var mprWorker;
|
|
30576
|
-
mprWorker = _default$s.getWorkerFromCache(seriesNumber, ImageProcessType.MPR);
|
|
30577
|
-
|
|
30578
|
-
if (!mprWorker) {
|
|
30579
|
-
return;
|
|
30580
|
-
}
|
|
30581
|
-
|
|
30582
|
-
var images = mprWorker.imageResultDatasMap;
|
|
30583
|
-
var mprImage = images[imageOrientationPatient];
|
|
30584
|
-
var image = mprImage.CornerStoneImage;
|
|
30585
|
-
|
|
30586
|
-
if (type === 'dicomInfo') {
|
|
30587
|
-
return {
|
|
30588
|
-
Rows: {
|
|
30589
|
-
value: [image.rows]
|
|
30590
|
-
},
|
|
30591
|
-
Columns: {
|
|
30592
|
-
value: [image.columns]
|
|
30593
|
-
}
|
|
30594
|
-
};
|
|
30595
|
-
}
|
|
30596
|
-
|
|
30597
|
-
if (type === 'imagePlaneModule') {
|
|
30598
|
-
var imageOrientation = mprImage.imageOrientation,
|
|
30599
|
-
scoutLine = mprImage.scoutLine,
|
|
30600
|
-
imagePosition = mprImage.imagePosition;
|
|
30601
|
-
var rowPixelSpacing = image.rowPixelSpacing,
|
|
30602
|
-
columnPixelSpacing = image.columnPixelSpacing;
|
|
30603
|
-
|
|
30604
|
-
var _getCosines2 = getCosines(imageOrientation),
|
|
30605
|
-
rowCosines = _getCosines2.rowCosines,
|
|
30606
|
-
columnCosines = _getCosines2.columnCosines;
|
|
30607
|
-
|
|
30608
|
-
return _objectSpread$d({
|
|
30609
|
-
rowCosines: rowCosines,
|
|
30610
|
-
columnCosines: columnCosines,
|
|
30611
|
-
rowPixelSpacing: rowPixelSpacing,
|
|
30612
|
-
columnPixelSpacing: columnPixelSpacing,
|
|
30613
|
-
imagePositionPatient: imagePosition,
|
|
30614
|
-
scoutLine: scoutLine
|
|
30615
|
-
}, mprImage);
|
|
30616
|
-
}
|
|
30617
|
-
}
|
|
30618
|
-
|
|
30619
|
-
function centesisMetaDataProvider(type, imageId) {
|
|
30620
|
-
if (imageId.split(':')[0] !== 'centesis') {
|
|
30621
|
-
return;
|
|
30622
|
-
}
|
|
30623
|
-
|
|
30624
|
-
var _imageId$split3 = imageId.split(':'),
|
|
30625
|
-
_imageId$split4 = slicedToArray(_imageId$split3, 4),
|
|
30626
|
-
scheme = _imageId$split4[0],
|
|
30627
|
-
seriesNumber = _imageId$split4[1],
|
|
30628
|
-
imageOrientationPatient = _imageId$split4[2],
|
|
30629
|
-
imagePositionPatient = _imageId$split4[3];
|
|
30630
|
-
|
|
30631
|
-
var mprWorker;
|
|
30632
|
-
mprWorker = _default$s.getWorkerFromCache(seriesNumber, ImageProcessType.Centesis);
|
|
30633
|
-
|
|
30634
|
-
if (!mprWorker) {
|
|
30635
|
-
return;
|
|
30636
|
-
}
|
|
30637
|
-
|
|
30638
|
-
var images = mprWorker.imageResultDatasMap;
|
|
30639
|
-
var mprImage = images[imageOrientationPatient];
|
|
30640
|
-
var image = mprImage.CornerStoneImage;
|
|
30641
|
-
|
|
30642
|
-
if (type === 'dicomInfo') {
|
|
30643
|
-
return {
|
|
30644
|
-
Rows: {
|
|
30645
|
-
value: [image.rows]
|
|
30646
|
-
},
|
|
30647
|
-
Columns: {
|
|
30648
|
-
value: [image.columns]
|
|
30649
|
-
}
|
|
30650
|
-
};
|
|
30651
|
-
}
|
|
30652
|
-
|
|
30653
|
-
if (type === 'imagePlaneModule') {
|
|
30654
|
-
var imageOrientation = mprImage.imageOrientation,
|
|
30655
|
-
imagePosition = mprImage.imagePosition,
|
|
30656
|
-
centesisPaths = mprImage.centesisPaths;
|
|
30657
|
-
var rowPixelSpacing = image.rowPixelSpacing,
|
|
30658
|
-
columnPixelSpacing = image.columnPixelSpacing;
|
|
30659
|
-
|
|
30660
|
-
var _getCosines3 = getCosines(imageOrientation),
|
|
30661
|
-
rowCosines = _getCosines3.rowCosines,
|
|
30662
|
-
columnCosines = _getCosines3.columnCosines;
|
|
30663
|
-
|
|
30664
|
-
return _objectSpread$d({
|
|
30665
|
-
rowCosines: rowCosines,
|
|
30666
|
-
columnCosines: columnCosines,
|
|
30667
|
-
rowPixelSpacing: rowPixelSpacing,
|
|
30668
|
-
columnPixelSpacing: columnPixelSpacing,
|
|
30669
|
-
imagePositionPatient: imagePosition,
|
|
30670
|
-
centesisPaths: centesisPaths
|
|
30671
|
-
}, mprImage);
|
|
30672
|
-
}
|
|
30673
|
-
}
|
|
30674
|
-
|
|
30675
|
-
function getPixelSpacing$8(pixelSpacing, imagePixelSpacing) {
|
|
30676
|
-
var columnPixelSpacing = null;
|
|
30677
|
-
var rowPixelSpacing = null;
|
|
30678
|
-
|
|
30679
|
-
if (pixelSpacing) {
|
|
30680
|
-
rowPixelSpacing = pixelSpacing[0];
|
|
30681
|
-
columnPixelSpacing = pixelSpacing[1];
|
|
30682
|
-
} else if (imagePixelSpacing) {
|
|
30683
|
-
rowPixelSpacing = imagePixelSpacing[0];
|
|
30684
|
-
columnPixelSpacing = imagePixelSpacing[1];
|
|
30685
|
-
}
|
|
30686
|
-
|
|
30687
|
-
return {
|
|
30688
|
-
rowPixelSpacing: rowPixelSpacing,
|
|
30689
|
-
columnPixelSpacing: columnPixelSpacing
|
|
30690
|
-
};
|
|
30691
|
-
}
|
|
30692
|
-
|
|
30693
|
-
function getCosines(imageOrientation) {
|
|
30694
|
-
var rowCosines = null;
|
|
30695
|
-
var columnCosines = null;
|
|
30696
|
-
|
|
30697
|
-
if (imageOrientation) {
|
|
30698
|
-
rowCosines = [parseFloat(imageOrientation[0]), parseFloat(imageOrientation[1]), parseFloat(imageOrientation[2])];
|
|
30699
|
-
columnCosines = [parseFloat(imageOrientation[3]), parseFloat(imageOrientation[4]), parseFloat(imageOrientation[5])];
|
|
30700
|
-
}
|
|
30701
|
-
|
|
30702
|
-
return {
|
|
30703
|
-
rowCosines: rowCosines,
|
|
30704
|
-
columnCosines: columnCosines
|
|
30705
|
-
};
|
|
30706
|
-
}
|
|
30707
|
-
|
|
30708
|
-
cornerstone.metaData.addProvider(wadoUriMetaDataProvider);
|
|
30709
|
-
cornerstone.metaData.addProvider(mprMetaDataProvider);
|
|
30710
|
-
cornerstone.metaData.addProvider(centesisMetaDataProvider);
|
|
30711
|
-
|
|
30712
|
-
(function () {
|
|
30713
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
30714
|
-
|
|
30715
|
-
if (!reactHotLoader) {
|
|
30716
|
-
return;
|
|
30717
|
-
}
|
|
30718
|
-
|
|
30719
|
-
reactHotLoader.register(wadoUriMetaDataProvider, "wadoUriMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
30720
|
-
reactHotLoader.register(mprMetaDataProvider, "mprMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
30721
|
-
reactHotLoader.register(centesisMetaDataProvider, "centesisMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
30722
|
-
reactHotLoader.register(getPixelSpacing$8, "getPixelSpacing", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
30723
|
-
reactHotLoader.register(getCosines, "getCosines", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
30724
|
-
})();
|
|
30725
|
-
|
|
30726
|
-
(function () {
|
|
30727
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
30728
|
-
leaveModule && leaveModule(module);
|
|
30729
|
-
})();
|
|
30730
|
-
|
|
30731
|
-
(function () {
|
|
30732
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
30733
|
-
enterModule && enterModule(module);
|
|
30734
|
-
})();
|
|
30735
|
-
|
|
30736
|
-
var __signature__$1_ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30737
|
-
return a;
|
|
30738
|
-
};
|
|
30739
|
-
|
|
30740
30507
|
var isMobileTablet = _default$3.isDeviceTypeMobileOrTablet();
|
|
30741
30508
|
|
|
30742
30509
|
if (!isMobileTablet) {
|
|
@@ -30862,11 +30629,11 @@ cornerstone.registerImageLoader('centesis', _default$G);
|
|
|
30862
30629
|
enterModule && enterModule(module);
|
|
30863
30630
|
})();
|
|
30864
30631
|
|
|
30865
|
-
function ownKeys$
|
|
30632
|
+
function ownKeys$d(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; }
|
|
30866
30633
|
|
|
30867
|
-
function _objectSpread$
|
|
30634
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$d(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
30868
30635
|
|
|
30869
|
-
var __signature__$
|
|
30636
|
+
var __signature__$1_ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30870
30637
|
return a;
|
|
30871
30638
|
};
|
|
30872
30639
|
|
|
@@ -30934,42 +30701,42 @@ var _default$H = function _default() {
|
|
|
30934
30701
|
switch (action.type) {
|
|
30935
30702
|
case SET_ACTIVE_INDEX:
|
|
30936
30703
|
{
|
|
30937
|
-
return _objectSpread$
|
|
30704
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30938
30705
|
activeIndex: action.payload
|
|
30939
30706
|
});
|
|
30940
30707
|
}
|
|
30941
30708
|
|
|
30942
30709
|
case SET_LAST_ACTIVE_INDEX:
|
|
30943
30710
|
{
|
|
30944
|
-
return _objectSpread$
|
|
30711
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30945
30712
|
lastActiveIndex: action.payload
|
|
30946
30713
|
});
|
|
30947
30714
|
}
|
|
30948
30715
|
|
|
30949
30716
|
case SET_IMAGE_ACTIVE_INDEX:
|
|
30950
30717
|
{
|
|
30951
|
-
return _objectSpread$
|
|
30718
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30952
30719
|
imageActiveIndex: action.payload
|
|
30953
30720
|
});
|
|
30954
30721
|
}
|
|
30955
30722
|
|
|
30956
30723
|
case SET_MPR_ACTIVE_INDEX:
|
|
30957
30724
|
{
|
|
30958
|
-
return _objectSpread$
|
|
30725
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30959
30726
|
mprActiveIndex: action.payload
|
|
30960
30727
|
});
|
|
30961
30728
|
}
|
|
30962
30729
|
|
|
30963
30730
|
case SET_SURGERY_ACTIVE_INDEX:
|
|
30964
30731
|
{
|
|
30965
|
-
return _objectSpread$
|
|
30732
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30966
30733
|
surgeryActiveIndex: action.payload
|
|
30967
30734
|
});
|
|
30968
30735
|
}
|
|
30969
30736
|
|
|
30970
30737
|
case INIT_SERIES:
|
|
30971
30738
|
{
|
|
30972
|
-
return _objectSpread$
|
|
30739
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30973
30740
|
series: action.payload.series
|
|
30974
30741
|
});
|
|
30975
30742
|
}
|
|
@@ -30978,7 +30745,7 @@ var _default$H = function _default() {
|
|
|
30978
30745
|
{
|
|
30979
30746
|
var _series = lodash$1.concat(state.series, action.payload);
|
|
30980
30747
|
|
|
30981
|
-
return _objectSpread$
|
|
30748
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30982
30749
|
series: _series
|
|
30983
30750
|
});
|
|
30984
30751
|
}
|
|
@@ -30988,7 +30755,7 @@ var _default$H = function _default() {
|
|
|
30988
30755
|
var _series2 = lodash$1.clone(state.series);
|
|
30989
30756
|
|
|
30990
30757
|
_series2[action.payload.index] = action.payload.series;
|
|
30991
|
-
return _objectSpread$
|
|
30758
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
30992
30759
|
series: _series2
|
|
30993
30760
|
});
|
|
30994
30761
|
}
|
|
@@ -30997,21 +30764,21 @@ var _default$H = function _default() {
|
|
|
30997
30764
|
{
|
|
30998
30765
|
var _seriesCurrentIndex = state.seriesCurrentIndex;
|
|
30999
30766
|
_seriesCurrentIndex[action.payload.seriesIndex] = action.payload.index;
|
|
31000
|
-
return _objectSpread$
|
|
30767
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31001
30768
|
seriesCurrentIndex: _seriesCurrentIndex
|
|
31002
30769
|
});
|
|
31003
30770
|
}
|
|
31004
30771
|
|
|
31005
30772
|
case INIT_SERIES_CURRENT_INDEX:
|
|
31006
30773
|
{
|
|
31007
|
-
return _objectSpread$
|
|
30774
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31008
30775
|
seriesCurrentIndex: action.payload.data
|
|
31009
30776
|
});
|
|
31010
30777
|
}
|
|
31011
30778
|
|
|
31012
30779
|
case SET_CURRENT_SERIES_UID:
|
|
31013
30780
|
{
|
|
31014
|
-
return _objectSpread$
|
|
30781
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31015
30782
|
currentSeries: action.payload,
|
|
31016
30783
|
currentSeriesUID: action.payload.seriesInstanceUID
|
|
31017
30784
|
});
|
|
@@ -31019,21 +30786,21 @@ var _default$H = function _default() {
|
|
|
31019
30786
|
|
|
31020
30787
|
case SET_LINK_SERIES:
|
|
31021
30788
|
{
|
|
31022
|
-
return _objectSpread$
|
|
30789
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31023
30790
|
linkSeriesIndex: action.payload
|
|
31024
30791
|
});
|
|
31025
30792
|
}
|
|
31026
30793
|
|
|
31027
30794
|
case SET_LINK_IMAGES:
|
|
31028
30795
|
{
|
|
31029
|
-
return _objectSpread$
|
|
30796
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31030
30797
|
linkImageIndex: action.payload
|
|
31031
30798
|
});
|
|
31032
30799
|
}
|
|
31033
30800
|
|
|
31034
30801
|
case RESER_VIEWPORT:
|
|
31035
30802
|
{
|
|
31036
|
-
return _objectSpread$
|
|
30803
|
+
return _objectSpread$d({}, initialState$4);
|
|
31037
30804
|
}
|
|
31038
30805
|
|
|
31039
30806
|
case SWITCH_MPR_PERSPECTIVE:
|
|
@@ -31058,14 +30825,14 @@ var _default$H = function _default() {
|
|
|
31058
30825
|
}
|
|
31059
30826
|
}
|
|
31060
30827
|
|
|
31061
|
-
return _objectSpread$
|
|
30828
|
+
return _objectSpread$d(_objectSpread$d({}, state), {}, {
|
|
31062
30829
|
mprPerspective: nextPerspective
|
|
31063
30830
|
});
|
|
31064
30831
|
}
|
|
31065
30832
|
|
|
31066
30833
|
case SOCKET_INIT_REDUX:
|
|
31067
30834
|
{
|
|
31068
|
-
return _objectSpread$
|
|
30835
|
+
return _objectSpread$d(_objectSpread$d({}, state), action.payload.viewport);
|
|
31069
30836
|
}
|
|
31070
30837
|
|
|
31071
30838
|
default:
|
|
@@ -31228,7 +30995,7 @@ function switchMprPerspective(reset) {
|
|
|
31228
30995
|
enterModule && enterModule(module);
|
|
31229
30996
|
})();
|
|
31230
30997
|
|
|
31231
|
-
var __signature__$
|
|
30998
|
+
var __signature__$1$ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31232
30999
|
return a;
|
|
31233
31000
|
};
|
|
31234
31001
|
|
|
@@ -31270,6 +31037,239 @@ function socketInitRedux(payload) {
|
|
|
31270
31037
|
leaveModule && leaveModule(module);
|
|
31271
31038
|
})();
|
|
31272
31039
|
|
|
31040
|
+
(function () {
|
|
31041
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
31042
|
+
enterModule && enterModule(module);
|
|
31043
|
+
})();
|
|
31044
|
+
|
|
31045
|
+
function ownKeys$e(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; }
|
|
31046
|
+
|
|
31047
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$e(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31048
|
+
|
|
31049
|
+
var __signature__$20 = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
31050
|
+
return a;
|
|
31051
|
+
};
|
|
31052
|
+
|
|
31053
|
+
function wadoUriMetaDataProvider(type, imageId) {
|
|
31054
|
+
if (imageId.split(':')[0] !== 'wadouri') {
|
|
31055
|
+
return;
|
|
31056
|
+
}
|
|
31057
|
+
|
|
31058
|
+
var _cornerstoneWADOImage = cornerstoneWADOImageLoader.wadouri,
|
|
31059
|
+
parseImageId = _cornerstoneWADOImage.parseImageId,
|
|
31060
|
+
dataSetCacheManager = _cornerstoneWADOImage.dataSetCacheManager,
|
|
31061
|
+
metaData = _cornerstoneWADOImage.metaData;
|
|
31062
|
+
var parsedImageId = parseImageId(imageId);
|
|
31063
|
+
var dataSet = dataSetCacheManager.get(parsedImageId.url);
|
|
31064
|
+
var getNumberValues = metaData.getNumberValues;
|
|
31065
|
+
|
|
31066
|
+
if (!dataSet) {
|
|
31067
|
+
return;
|
|
31068
|
+
}
|
|
31069
|
+
|
|
31070
|
+
if (type === 'dicomInfo') {
|
|
31071
|
+
return new DicomInfo(dataSet);
|
|
31072
|
+
}
|
|
31073
|
+
|
|
31074
|
+
if (type === 'imagePlaneModule') {
|
|
31075
|
+
var imageOrientationPatient = getNumberValues(dataSet, 'x00200037', 6);
|
|
31076
|
+
var imagePositionPatient = getNumberValues(dataSet, 'x00200032', 3);
|
|
31077
|
+
var pixelSpacing = getNumberValues(dataSet, 'x00280030', 2);
|
|
31078
|
+
var imagePixelSpacing = getNumberValues(dataSet, 'x00181164', 2);
|
|
31079
|
+
|
|
31080
|
+
var _getPixelSpacing = getPixelSpacing$8(pixelSpacing, imagePixelSpacing),
|
|
31081
|
+
rowPixelSpacing = _getPixelSpacing.rowPixelSpacing,
|
|
31082
|
+
columnPixelSpacing = _getPixelSpacing.columnPixelSpacing;
|
|
31083
|
+
|
|
31084
|
+
var _getCosines = getCosines(imageOrientationPatient),
|
|
31085
|
+
rowCosines = _getCosines.rowCosines,
|
|
31086
|
+
columnCosines = _getCosines.columnCosines;
|
|
31087
|
+
|
|
31088
|
+
return {
|
|
31089
|
+
frameOfReferenceUID: dataSet.string('x00200052'),
|
|
31090
|
+
rows: dataSet.uint16('x00280010'),
|
|
31091
|
+
columns: dataSet.uint16('x00280011'),
|
|
31092
|
+
imageOrientationPatient: imageOrientationPatient,
|
|
31093
|
+
rowCosines: rowCosines,
|
|
31094
|
+
columnCosines: columnCosines,
|
|
31095
|
+
imagePositionPatient: imagePositionPatient,
|
|
31096
|
+
sliceThickness: dataSet.floatString('x00180050'),
|
|
31097
|
+
sliceLocation: dataSet.floatString('x00201041'),
|
|
31098
|
+
pixelSpacing: pixelSpacing,
|
|
31099
|
+
rowPixelSpacing: rowPixelSpacing,
|
|
31100
|
+
columnPixelSpacing: columnPixelSpacing
|
|
31101
|
+
};
|
|
31102
|
+
}
|
|
31103
|
+
}
|
|
31104
|
+
|
|
31105
|
+
function mprMetaDataProvider(type, imageId) {
|
|
31106
|
+
if (imageId.split(':')[0] !== 'mpr') {
|
|
31107
|
+
return;
|
|
31108
|
+
}
|
|
31109
|
+
|
|
31110
|
+
var _imageId$split = imageId.split(':'),
|
|
31111
|
+
_imageId$split2 = slicedToArray(_imageId$split, 4),
|
|
31112
|
+
scheme = _imageId$split2[0],
|
|
31113
|
+
seriesNumber = _imageId$split2[1],
|
|
31114
|
+
imageOrientationPatient = _imageId$split2[2],
|
|
31115
|
+
imagePositionPatient = _imageId$split2[3];
|
|
31116
|
+
|
|
31117
|
+
var mprWorker;
|
|
31118
|
+
mprWorker = _default$s.getWorkerFromCache(seriesNumber, ImageProcessType.MPR);
|
|
31119
|
+
|
|
31120
|
+
if (!mprWorker) {
|
|
31121
|
+
return;
|
|
31122
|
+
}
|
|
31123
|
+
|
|
31124
|
+
var images = mprWorker.imageResultDatasMap;
|
|
31125
|
+
var mprImage = images[imageOrientationPatient];
|
|
31126
|
+
var image = mprImage.CornerStoneImage;
|
|
31127
|
+
|
|
31128
|
+
if (type === 'dicomInfo') {
|
|
31129
|
+
return {
|
|
31130
|
+
Rows: {
|
|
31131
|
+
value: [image.rows]
|
|
31132
|
+
},
|
|
31133
|
+
Columns: {
|
|
31134
|
+
value: [image.columns]
|
|
31135
|
+
}
|
|
31136
|
+
};
|
|
31137
|
+
}
|
|
31138
|
+
|
|
31139
|
+
if (type === 'imagePlaneModule') {
|
|
31140
|
+
var imageOrientation = mprImage.imageOrientation,
|
|
31141
|
+
scoutLine = mprImage.scoutLine,
|
|
31142
|
+
imagePosition = mprImage.imagePosition;
|
|
31143
|
+
var rowPixelSpacing = image.rowPixelSpacing,
|
|
31144
|
+
columnPixelSpacing = image.columnPixelSpacing;
|
|
31145
|
+
|
|
31146
|
+
var _getCosines2 = getCosines(imageOrientation),
|
|
31147
|
+
rowCosines = _getCosines2.rowCosines,
|
|
31148
|
+
columnCosines = _getCosines2.columnCosines;
|
|
31149
|
+
|
|
31150
|
+
return _objectSpread$e({
|
|
31151
|
+
rowCosines: rowCosines,
|
|
31152
|
+
columnCosines: columnCosines,
|
|
31153
|
+
rowPixelSpacing: rowPixelSpacing,
|
|
31154
|
+
columnPixelSpacing: columnPixelSpacing,
|
|
31155
|
+
imagePositionPatient: imagePosition,
|
|
31156
|
+
scoutLine: scoutLine
|
|
31157
|
+
}, mprImage);
|
|
31158
|
+
}
|
|
31159
|
+
}
|
|
31160
|
+
|
|
31161
|
+
function centesisMetaDataProvider(type, imageId) {
|
|
31162
|
+
if (imageId.split(':')[0] !== 'centesis') {
|
|
31163
|
+
return;
|
|
31164
|
+
}
|
|
31165
|
+
|
|
31166
|
+
var _imageId$split3 = imageId.split(':'),
|
|
31167
|
+
_imageId$split4 = slicedToArray(_imageId$split3, 4),
|
|
31168
|
+
scheme = _imageId$split4[0],
|
|
31169
|
+
seriesNumber = _imageId$split4[1],
|
|
31170
|
+
imageOrientationPatient = _imageId$split4[2],
|
|
31171
|
+
imagePositionPatient = _imageId$split4[3];
|
|
31172
|
+
|
|
31173
|
+
var mprWorker;
|
|
31174
|
+
mprWorker = _default$s.getWorkerFromCache(seriesNumber, ImageProcessType.Centesis);
|
|
31175
|
+
|
|
31176
|
+
if (!mprWorker) {
|
|
31177
|
+
return;
|
|
31178
|
+
}
|
|
31179
|
+
|
|
31180
|
+
var images = mprWorker.imageResultDatasMap;
|
|
31181
|
+
var mprImage = images[imageOrientationPatient];
|
|
31182
|
+
var image = mprImage.CornerStoneImage;
|
|
31183
|
+
|
|
31184
|
+
if (type === 'dicomInfo') {
|
|
31185
|
+
return {
|
|
31186
|
+
Rows: {
|
|
31187
|
+
value: [image.rows]
|
|
31188
|
+
},
|
|
31189
|
+
Columns: {
|
|
31190
|
+
value: [image.columns]
|
|
31191
|
+
}
|
|
31192
|
+
};
|
|
31193
|
+
}
|
|
31194
|
+
|
|
31195
|
+
if (type === 'imagePlaneModule') {
|
|
31196
|
+
var imageOrientation = mprImage.imageOrientation,
|
|
31197
|
+
imagePosition = mprImage.imagePosition,
|
|
31198
|
+
centesisPaths = mprImage.centesisPaths;
|
|
31199
|
+
var rowPixelSpacing = image.rowPixelSpacing,
|
|
31200
|
+
columnPixelSpacing = image.columnPixelSpacing;
|
|
31201
|
+
|
|
31202
|
+
var _getCosines3 = getCosines(imageOrientation),
|
|
31203
|
+
rowCosines = _getCosines3.rowCosines,
|
|
31204
|
+
columnCosines = _getCosines3.columnCosines;
|
|
31205
|
+
|
|
31206
|
+
return _objectSpread$e({
|
|
31207
|
+
rowCosines: rowCosines,
|
|
31208
|
+
columnCosines: columnCosines,
|
|
31209
|
+
rowPixelSpacing: rowPixelSpacing,
|
|
31210
|
+
columnPixelSpacing: columnPixelSpacing,
|
|
31211
|
+
imagePositionPatient: imagePosition,
|
|
31212
|
+
centesisPaths: centesisPaths
|
|
31213
|
+
}, mprImage);
|
|
31214
|
+
}
|
|
31215
|
+
}
|
|
31216
|
+
|
|
31217
|
+
function getPixelSpacing$8(pixelSpacing, imagePixelSpacing) {
|
|
31218
|
+
var columnPixelSpacing = null;
|
|
31219
|
+
var rowPixelSpacing = null;
|
|
31220
|
+
|
|
31221
|
+
if (pixelSpacing) {
|
|
31222
|
+
rowPixelSpacing = pixelSpacing[0];
|
|
31223
|
+
columnPixelSpacing = pixelSpacing[1];
|
|
31224
|
+
} else if (imagePixelSpacing) {
|
|
31225
|
+
rowPixelSpacing = imagePixelSpacing[0];
|
|
31226
|
+
columnPixelSpacing = imagePixelSpacing[1];
|
|
31227
|
+
}
|
|
31228
|
+
|
|
31229
|
+
return {
|
|
31230
|
+
rowPixelSpacing: rowPixelSpacing,
|
|
31231
|
+
columnPixelSpacing: columnPixelSpacing
|
|
31232
|
+
};
|
|
31233
|
+
}
|
|
31234
|
+
|
|
31235
|
+
function getCosines(imageOrientation) {
|
|
31236
|
+
var rowCosines = null;
|
|
31237
|
+
var columnCosines = null;
|
|
31238
|
+
|
|
31239
|
+
if (imageOrientation) {
|
|
31240
|
+
rowCosines = [parseFloat(imageOrientation[0]), parseFloat(imageOrientation[1]), parseFloat(imageOrientation[2])];
|
|
31241
|
+
columnCosines = [parseFloat(imageOrientation[3]), parseFloat(imageOrientation[4]), parseFloat(imageOrientation[5])];
|
|
31242
|
+
}
|
|
31243
|
+
|
|
31244
|
+
return {
|
|
31245
|
+
rowCosines: rowCosines,
|
|
31246
|
+
columnCosines: columnCosines
|
|
31247
|
+
};
|
|
31248
|
+
}
|
|
31249
|
+
|
|
31250
|
+
cornerstone.metaData.addProvider(wadoUriMetaDataProvider);
|
|
31251
|
+
cornerstone.metaData.addProvider(mprMetaDataProvider);
|
|
31252
|
+
cornerstone.metaData.addProvider(centesisMetaDataProvider);
|
|
31253
|
+
|
|
31254
|
+
(function () {
|
|
31255
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
31256
|
+
|
|
31257
|
+
if (!reactHotLoader) {
|
|
31258
|
+
return;
|
|
31259
|
+
}
|
|
31260
|
+
|
|
31261
|
+
reactHotLoader.register(wadoUriMetaDataProvider, "wadoUriMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
31262
|
+
reactHotLoader.register(mprMetaDataProvider, "mprMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
31263
|
+
reactHotLoader.register(centesisMetaDataProvider, "centesisMetaDataProvider", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
31264
|
+
reactHotLoader.register(getPixelSpacing$8, "getPixelSpacing", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
31265
|
+
reactHotLoader.register(getCosines, "getCosines", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/metadataProvider.js");
|
|
31266
|
+
})();
|
|
31267
|
+
|
|
31268
|
+
(function () {
|
|
31269
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
31270
|
+
leaveModule && leaveModule(module);
|
|
31271
|
+
})();
|
|
31272
|
+
|
|
31273
31273
|
var _extends_1 = createCommonjsModule(function (module) {
|
|
31274
31274
|
function _extends() {
|
|
31275
31275
|
module.exports = _extends = Object.assign || function (target) {
|