hellfire 0.27.11 → 0.27.13
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 +8 -0
- package/README.md +20 -0
- package/dist/.DS_Store +0 -0
- package/dist/index.js +770 -286
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1036,7 +1036,8 @@ var action = (function () {
|
|
|
1036
1036
|
|
|
1037
1037
|
case RESET_TOOLS_STATE:
|
|
1038
1038
|
{
|
|
1039
|
-
|
|
1039
|
+
var mergeState = action.payload || {};
|
|
1040
|
+
return _objectSpread$1(_objectSpread$1({}, initialState$1), mergeState);
|
|
1040
1041
|
}
|
|
1041
1042
|
|
|
1042
1043
|
case SET_VR_MODE:
|
|
@@ -1186,9 +1187,10 @@ function setViewMode(payload) {
|
|
|
1186
1187
|
};
|
|
1187
1188
|
} // 重置工具栏状态(切换study时调用)
|
|
1188
1189
|
|
|
1189
|
-
function resetToolsState() {
|
|
1190
|
+
function resetToolsState(payload) {
|
|
1190
1191
|
return {
|
|
1191
|
-
type: RESET_TOOLS_STATE
|
|
1192
|
+
type: RESET_TOOLS_STATE,
|
|
1193
|
+
payload: payload
|
|
1192
1194
|
};
|
|
1193
1195
|
} // 切换VR渲染模式
|
|
1194
1196
|
|
|
@@ -6187,12 +6189,48 @@ var formatToString = function formatToString(value) {
|
|
|
6187
6189
|
}
|
|
6188
6190
|
};
|
|
6189
6191
|
|
|
6190
|
-
var DicomInfo = function DicomInfo(datasets, pixelData) {
|
|
6192
|
+
var DicomInfo = function DicomInfo(datasets, pixelData, isAnonymous) {
|
|
6191
6193
|
classCallCheck(this, DicomInfo);
|
|
6192
6194
|
|
|
6193
6195
|
return new Proxy(this, {
|
|
6194
6196
|
get: function get(dicomTarget, dicomProp, dicomReceiver) {
|
|
6195
6197
|
switch (true) {
|
|
6198
|
+
case dicomProp === 'PatientName':
|
|
6199
|
+
{
|
|
6200
|
+
if (isAnonymous) {
|
|
6201
|
+
return '***';
|
|
6202
|
+
} else {
|
|
6203
|
+
return new DicomElementAggregator(datasets, dicomProp);
|
|
6204
|
+
}
|
|
6205
|
+
}
|
|
6206
|
+
|
|
6207
|
+
case dicomProp === 'PatientSex':
|
|
6208
|
+
{
|
|
6209
|
+
if (isAnonymous) {
|
|
6210
|
+
return '*';
|
|
6211
|
+
} else {
|
|
6212
|
+
return new DicomElementAggregator(datasets, dicomProp);
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6216
|
+
case dicomProp === 'PatientAge':
|
|
6217
|
+
{
|
|
6218
|
+
if (isAnonymous) {
|
|
6219
|
+
return '**';
|
|
6220
|
+
} else {
|
|
6221
|
+
return new DicomElementAggregator(datasets, dicomProp);
|
|
6222
|
+
}
|
|
6223
|
+
}
|
|
6224
|
+
|
|
6225
|
+
case dicomProp === 'PatientID' || dicomProp === 'InstitutionName':
|
|
6226
|
+
{
|
|
6227
|
+
if (isAnonymous) {
|
|
6228
|
+
return '****';
|
|
6229
|
+
} else {
|
|
6230
|
+
return new DicomElementAggregator(datasets, dicomProp);
|
|
6231
|
+
}
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6196
6234
|
case dicomProp === 'datasets':
|
|
6197
6235
|
{
|
|
6198
6236
|
return datasets;
|
|
@@ -10329,6 +10367,7 @@ function resetTaskPool() {
|
|
|
10329
10367
|
}
|
|
10330
10368
|
|
|
10331
10369
|
var dicomCache = {};
|
|
10370
|
+
var isAnonymous = false;
|
|
10332
10371
|
|
|
10333
10372
|
var loadAndCacheDicom = function loadAndCacheDicom(imageId) {
|
|
10334
10373
|
return new Promise(function (resolve, reject) {
|
|
@@ -10339,7 +10378,7 @@ var loadAndCacheDicom = function loadAndCacheDicom(imageId) {
|
|
|
10339
10378
|
|
|
10340
10379
|
var imagePromise = loadAndCacheImagePlus(imageId);
|
|
10341
10380
|
imagePromise.then(function (image) {
|
|
10342
|
-
var dicom = new DicomInfo(image.data, image.getPixelData());
|
|
10381
|
+
var dicom = new DicomInfo(image.data, image.getPixelData(), isAnonymous);
|
|
10343
10382
|
dicomCache[imageId] = dicom;
|
|
10344
10383
|
resolve(dicom);
|
|
10345
10384
|
}, function (e) {
|
|
@@ -10352,6 +10391,18 @@ var purgeDicomCache = function purgeDicomCache() {
|
|
|
10352
10391
|
dicomCache = {};
|
|
10353
10392
|
};
|
|
10354
10393
|
|
|
10394
|
+
var setInfoAnonymous = function setInfoAnonymous() {
|
|
10395
|
+
isAnonymous = true;
|
|
10396
|
+
};
|
|
10397
|
+
|
|
10398
|
+
var setNotAnonymous = function setNotAnonymous() {
|
|
10399
|
+
isAnonymous = false;
|
|
10400
|
+
};
|
|
10401
|
+
|
|
10402
|
+
var getAnonymousState = function getAnonymousState() {
|
|
10403
|
+
return isAnonymous;
|
|
10404
|
+
};
|
|
10405
|
+
|
|
10355
10406
|
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); 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); }; }
|
|
10356
10407
|
|
|
10357
10408
|
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; } }
|
|
@@ -32590,6 +32641,7 @@ var ButtonGroup = /*#__PURE__*/function (_Component) {
|
|
|
32590
32641
|
|
|
32591
32642
|
defineProperty(ButtonGroup, "propTypes", {});
|
|
32592
32643
|
|
|
32644
|
+
var anonymousKeys = ['InstitutionName', 'InstitutionAddress', 'PatientID', 'IssuerOfPatientID', 'TypeOfPatientID', 'IssuerOfPatientIDQualifiersSequence', 'PatientName', 'PatientSex', 'PatientAge', 'PatientBirthDate', 'PatientBirthTime', 'PatientBirthName', 'PatientSize', 'PatientWeight', 'PatientAddress', 'PatientMotherBirthName', 'PatientTelephoneNumbers', 'PatientComments'];
|
|
32593
32645
|
/**
|
|
32594
32646
|
*
|
|
32595
32647
|
* Get tag js object from our custom dicom object
|
|
@@ -32619,6 +32671,7 @@ var formatDicom = function formatDicom(dicom) {
|
|
|
32619
32671
|
]
|
|
32620
32672
|
};
|
|
32621
32673
|
var formatedDicomInfos = [];
|
|
32674
|
+
var isAnonymous = getAnonymousState();
|
|
32622
32675
|
lodash$1.forEach(dicom, function (item) {
|
|
32623
32676
|
var tagID = item.tag.toUpperCase();
|
|
32624
32677
|
var value;
|
|
@@ -32628,7 +32681,13 @@ var formatDicom = function formatDicom(dicom) {
|
|
|
32628
32681
|
if (options.maxLength && item.element.length > options.maxLength) {
|
|
32629
32682
|
value = "Length(".concat(item.element.length, ")");
|
|
32630
32683
|
} else {
|
|
32631
|
-
value = item.toString();
|
|
32684
|
+
value = item.toString(); // 匿名
|
|
32685
|
+
|
|
32686
|
+
if (isAnonymous) {
|
|
32687
|
+
if (item.keyword && lodash$1.includes(anonymousKeys, item.keyword)) {
|
|
32688
|
+
value = "**";
|
|
32689
|
+
}
|
|
32690
|
+
}
|
|
32632
32691
|
}
|
|
32633
32692
|
|
|
32634
32693
|
if (item.vr === 'SQ') {
|
|
@@ -32761,72 +32820,100 @@ var DicomInfoModal = /*#__PURE__*/function (_Component) {
|
|
|
32761
32820
|
|
|
32762
32821
|
_this = _super.call(this, props);
|
|
32763
32822
|
|
|
32764
|
-
defineProperty(assertThisInitialized(_this), "getAndFormatOriginData", function (
|
|
32765
|
-
var
|
|
32766
|
-
|
|
32767
|
-
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
|
|
32771
|
-
|
|
32772
|
-
|
|
32773
|
-
var dataSource = [];
|
|
32774
|
-
lodash$1.forEach(dicomInfo, function (item) {
|
|
32775
|
-
var id;
|
|
32776
|
-
var idStart;
|
|
32777
|
-
xregexp.replace(item.tagID, xregexp('\\((?<a>.{4}),(?<b>.{4})\\)'), function (match) {
|
|
32778
|
-
id = match && lodash$1.toString(match.a) + lodash$1.toString(match.b) || null;
|
|
32779
|
-
idStart = match && match.a || null;
|
|
32780
|
-
});
|
|
32781
|
-
var tagNameOrigin = dicomDataDictionary$1.standardDataElements[id] ? dicomDataDictionary$1.standardDataElements[id].name : null;
|
|
32823
|
+
defineProperty(assertThisInitialized(_this), "getAndFormatOriginData", /*#__PURE__*/function () {
|
|
32824
|
+
var _ref = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(imageId) {
|
|
32825
|
+
var dicom, dicomInfo, originDataWithIdOdd, dataSource, dataSourceScan;
|
|
32826
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
32827
|
+
while (1) {
|
|
32828
|
+
switch (_context.prev = _context.next) {
|
|
32829
|
+
case 0:
|
|
32830
|
+
_context.next = 2;
|
|
32831
|
+
return loadAndCacheDicom(imageId);
|
|
32782
32832
|
|
|
32783
|
-
|
|
32784
|
-
|
|
32785
|
-
idStart: idStart,
|
|
32786
|
-
tagNameOrigin: tagNameOrigin
|
|
32787
|
-
});
|
|
32833
|
+
case 2:
|
|
32834
|
+
dicom = _context.sent;
|
|
32788
32835
|
|
|
32789
|
-
|
|
32790
|
-
|
|
32791
|
-
|
|
32792
|
-
|
|
32793
|
-
}
|
|
32794
|
-
});
|
|
32836
|
+
if (dicom) {
|
|
32837
|
+
_context.next = 5;
|
|
32838
|
+
break;
|
|
32839
|
+
}
|
|
32795
32840
|
|
|
32796
|
-
|
|
32797
|
-
originDataWithIdOdd = lodash$1.groupBy(originDataWithIdOdd, 'idStart');
|
|
32798
|
-
lodash$1.forEach(originDataWithIdOdd, function (item) {
|
|
32799
|
-
if (item.length === 1) {
|
|
32800
|
-
dataSource = lodash$1.concat(dataSource, item);
|
|
32801
|
-
} else {
|
|
32802
|
-
// 收纳
|
|
32803
|
-
var firstItem = item[0];
|
|
32841
|
+
return _context.abrupt("return");
|
|
32804
32842
|
|
|
32805
|
-
|
|
32843
|
+
case 5:
|
|
32844
|
+
dicomInfo = getTagInfo(dicom); // id第一位是奇数 处理成收纳的形式
|
|
32845
|
+
|
|
32846
|
+
originDataWithIdOdd = []; // id第一位是偶数
|
|
32847
|
+
// let originDataWithIdEven = [];
|
|
32848
|
+
|
|
32849
|
+
dataSource = [];
|
|
32850
|
+
lodash$1.forEach(dicomInfo, function (item) {
|
|
32851
|
+
var id;
|
|
32852
|
+
var idStart;
|
|
32853
|
+
xregexp.replace(item.tagID, xregexp('\\((?<a>.{4}),(?<b>.{4})\\)'), function (match) {
|
|
32854
|
+
id = match && lodash$1.toString(match.a) + lodash$1.toString(match.b) || null;
|
|
32855
|
+
idStart = match && match.a || null;
|
|
32856
|
+
});
|
|
32857
|
+
var tagNameOrigin = dicomDataDictionary$1.standardDataElements[id] ? dicomDataDictionary$1.standardDataElements[id].name : null;
|
|
32806
32858
|
|
|
32807
|
-
|
|
32808
|
-
|
|
32809
|
-
|
|
32810
|
-
|
|
32811
|
-
|
|
32812
|
-
}
|
|
32859
|
+
var data = _objectSpread$l(_objectSpread$l({}, item), {}, {
|
|
32860
|
+
tagIDOrigin: id,
|
|
32861
|
+
idStart: idStart,
|
|
32862
|
+
tagNameOrigin: tagNameOrigin
|
|
32863
|
+
});
|
|
32813
32864
|
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
tagNameOrigin: dicomDataDictionary$1.standardDataElements[key] && dicomDataDictionary$1.standardDataElements[key].name || ''
|
|
32821
|
-
};
|
|
32822
|
-
});
|
|
32865
|
+
if (idStart && idStart.substring(idStart.length - 1) % 2 === 1) {
|
|
32866
|
+
originDataWithIdOdd.push(data);
|
|
32867
|
+
} else {
|
|
32868
|
+
dataSource.push(data);
|
|
32869
|
+
}
|
|
32870
|
+
});
|
|
32823
32871
|
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32829
|
-
|
|
32872
|
+
if (originDataWithIdOdd && originDataWithIdOdd.length > 0) {
|
|
32873
|
+
originDataWithIdOdd = lodash$1.groupBy(originDataWithIdOdd, 'idStart');
|
|
32874
|
+
lodash$1.forEach(originDataWithIdOdd, function (item) {
|
|
32875
|
+
if (item.length === 1) {
|
|
32876
|
+
dataSource = lodash$1.concat(dataSource, item);
|
|
32877
|
+
} else {
|
|
32878
|
+
// 收纳
|
|
32879
|
+
var firstItem = item[0];
|
|
32880
|
+
|
|
32881
|
+
var _item = item.splice(1);
|
|
32882
|
+
|
|
32883
|
+
dataSource.push(_objectSpread$l(_objectSpread$l({}, firstItem), {}, {
|
|
32884
|
+
items: [_item]
|
|
32885
|
+
}));
|
|
32886
|
+
}
|
|
32887
|
+
});
|
|
32888
|
+
}
|
|
32889
|
+
|
|
32890
|
+
dataSource = lodash$1.sortBy(dataSource, 'tagIDOrigin');
|
|
32891
|
+
dataSourceScan = lodash$1.map(dicomTagsKeysScan, function (key) {
|
|
32892
|
+
return lodash$1.find(dataSource, {
|
|
32893
|
+
'tagIDOrigin': key
|
|
32894
|
+
}) || {
|
|
32895
|
+
tagIDOrigin: key,
|
|
32896
|
+
tagNameOrigin: dicomDataDictionary$1.standardDataElements[key] && dicomDataDictionary$1.standardDataElements[key].name || ''
|
|
32897
|
+
};
|
|
32898
|
+
});
|
|
32899
|
+
|
|
32900
|
+
_this.setState({
|
|
32901
|
+
dataSource: dataSource,
|
|
32902
|
+
dataSourceScan: dataSourceScan
|
|
32903
|
+
});
|
|
32904
|
+
|
|
32905
|
+
case 13:
|
|
32906
|
+
case "end":
|
|
32907
|
+
return _context.stop();
|
|
32908
|
+
}
|
|
32909
|
+
}
|
|
32910
|
+
}, _callee);
|
|
32911
|
+
}));
|
|
32912
|
+
|
|
32913
|
+
return function (_x) {
|
|
32914
|
+
return _ref.apply(this, arguments);
|
|
32915
|
+
};
|
|
32916
|
+
}());
|
|
32830
32917
|
|
|
32831
32918
|
defineProperty(assertThisInitialized(_this), "setDicomModalTag", function (dicomModalTag) {
|
|
32832
32919
|
_this.setState({
|
|
@@ -42665,7 +42752,8 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
42665
42752
|
toggleMeasure = _this$props3.toggleMeasure,
|
|
42666
42753
|
handleFullscreen = _this$props3.handleFullscreen,
|
|
42667
42754
|
openDicomModal = _this$props3.openDicomModal,
|
|
42668
|
-
operateKeyImages = _this$props3.operateKeyImages
|
|
42755
|
+
operateKeyImages = _this$props3.operateKeyImages,
|
|
42756
|
+
openSettingModal = _this$props3.openSettingModal;
|
|
42669
42757
|
var isThree = MPR || VR || Surgery || MIP || CPR; // 非同屏互通模式下
|
|
42670
42758
|
|
|
42671
42759
|
var IODisconnect = !IO;
|
|
@@ -42892,7 +42980,14 @@ var DicomToolFlattenMode = /*#__PURE__*/function (_Component) {
|
|
|
42892
42980
|
start3D('Surgery');
|
|
42893
42981
|
}
|
|
42894
42982
|
}
|
|
42895
|
-
}, Surgery ? '退出手术路径规划' : '手术路径规划'))
|
|
42983
|
+
}, Surgery ? '退出手术路径规划' : '手术路径规划')), /*#__PURE__*/React__default.createElement("div", {
|
|
42984
|
+
className: "paladin-flex-row"
|
|
42985
|
+
}, /*#__PURE__*/React__default.createElement(LargeToolItem, {
|
|
42986
|
+
onClick: function onClick(e) {
|
|
42987
|
+
e.stopPropagation();
|
|
42988
|
+
openSettingModal();
|
|
42989
|
+
}
|
|
42990
|
+
}, "\u529F\u80FD\u8BBE\u7F6E"))));
|
|
42896
42991
|
}
|
|
42897
42992
|
}]);
|
|
42898
42993
|
|
|
@@ -45681,15 +45776,187 @@ function _ref$1m() {
|
|
|
45681
45776
|
return _ref$1m.apply(this, arguments);
|
|
45682
45777
|
}
|
|
45683
45778
|
|
|
45779
|
+
var css_248z$r = ".paladin-user-setting {\n padding: 0 20px;\n margin-bottom: 30px;\n font-size: 15px;\n}\n.paladin-user-setting p {\n font-size: 16px;\n}\n.paladin-user-setting .paladin-user-setting-remark {\n font-size: 14px;\n color: #666;\n margin: 10px 0;\n}\n.paladin-user-setting .paladin-setting-radio {\n display: flex;\n}\n.paladin-user-setting .paladin-setting-radio .paladin-setting-radio-item {\n display: flex;\n flex-direction: row;\n margin-right: 10px;\n}\n.paladin-user-setting .paladin-setting-radio .paladin-setting-radio-item:first-child {\n margin-right: 0;\n}\n.paladin-user-setting .paladin-setting-radio .paladin-setting-radio-item input {\n display: flex;\n flex-direction: column;\n width: 20px;\n height: 20px;\n}\n.paladin-user-setting .paladin-setting-radio .paladin-setting-radio-item span {\n display: flex;\n flex-direction: column;\n}\n.paladin-user-setting .paladin-setting-hotkey {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n}\n.paladin-user-setting .paladin-setting-hotkey .paladin-setting-hotkey-item {\n display: flex;\n flex-direction: column;\n flex: none;\n padding: 5px 10px;\n border: 1px solid #666;\n border-radius: 3px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n";
|
|
45780
|
+
styleInject$1(css_248z$r);
|
|
45781
|
+
|
|
45782
|
+
var dicomSettingLeftMouseTools = ['StackScroll', 'Wwwc'];
|
|
45783
|
+
var dicomSettingLeftMouseToolsDic = [{
|
|
45784
|
+
label: '浏览',
|
|
45785
|
+
value: 'StackScroll'
|
|
45786
|
+
}, {
|
|
45787
|
+
label: '调窗',
|
|
45788
|
+
value: 'Wwwc'
|
|
45789
|
+
}];
|
|
45790
|
+
var dicomSettingRightMouseToolsDic = [{
|
|
45791
|
+
label: '浏览',
|
|
45792
|
+
value: 'StackScroll'
|
|
45793
|
+
}, {
|
|
45794
|
+
label: '调窗',
|
|
45795
|
+
value: 'Wwwc'
|
|
45796
|
+
}, {
|
|
45797
|
+
label: '缩放',
|
|
45798
|
+
value: 'Zoom'
|
|
45799
|
+
}, {
|
|
45800
|
+
label: '移动',
|
|
45801
|
+
value: 'Pan'
|
|
45802
|
+
}];
|
|
45803
|
+
var dicomSettingHotKeyDic = [{
|
|
45804
|
+
label: '调窗',
|
|
45805
|
+
hotkey: 'Q'
|
|
45806
|
+
}, {
|
|
45807
|
+
label: '浏览',
|
|
45808
|
+
hotkey: 'W'
|
|
45809
|
+
}, {
|
|
45810
|
+
label: '缩放',
|
|
45811
|
+
hotkey: 'E'
|
|
45812
|
+
}, {
|
|
45813
|
+
label: '移动',
|
|
45814
|
+
hotkey: 'R'
|
|
45815
|
+
}, {
|
|
45816
|
+
label: '反色',
|
|
45817
|
+
hotkey: 'T'
|
|
45818
|
+
}, {
|
|
45819
|
+
label: '直线测量',
|
|
45820
|
+
hotkey: 'A'
|
|
45821
|
+
}, {
|
|
45822
|
+
label: '矩形测量',
|
|
45823
|
+
hotkey: 'S'
|
|
45824
|
+
}, {
|
|
45825
|
+
label: 'CT值测量',
|
|
45826
|
+
hotkey: 'D'
|
|
45827
|
+
}, {
|
|
45828
|
+
label: '连续测量',
|
|
45829
|
+
hotkey: 'F'
|
|
45830
|
+
}, {
|
|
45831
|
+
label: '扫描定位线',
|
|
45832
|
+
hotkey: 'G'
|
|
45833
|
+
}, {
|
|
45834
|
+
label: '显示/隐藏图像信息',
|
|
45835
|
+
hotkey: 'Z'
|
|
45836
|
+
}];
|
|
45837
|
+
var customDicomSetting = {
|
|
45838
|
+
leftMouseTool: 'Wwwc',
|
|
45839
|
+
rightMouseTool: 'Zoom'
|
|
45840
|
+
};
|
|
45841
|
+
|
|
45842
|
+
var saveCustomDicomSetting = function saveCustomDicomSetting() {
|
|
45843
|
+
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
45844
|
+
|
|
45845
|
+
var _data = lodash$1.pickBy(data, function (value) {
|
|
45846
|
+
return value && value !== '';
|
|
45847
|
+
});
|
|
45848
|
+
|
|
45849
|
+
customDicomSetting = Object.assign(customDicomSetting, _data);
|
|
45850
|
+
};
|
|
45851
|
+
|
|
45852
|
+
function ownKeys$H(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; }
|
|
45853
|
+
|
|
45854
|
+
function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$H(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$H(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
45855
|
+
|
|
45856
|
+
function _createSuper$1m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1m(); 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); }; }
|
|
45857
|
+
|
|
45858
|
+
function _isNativeReflectConstruct$1m() { 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; } }
|
|
45859
|
+
|
|
45860
|
+
var UserSettingModal = /*#__PURE__*/function (_Component) {
|
|
45861
|
+
inherits(UserSettingModal, _Component);
|
|
45862
|
+
|
|
45863
|
+
var _super = _createSuper$1m(UserSettingModal);
|
|
45864
|
+
|
|
45865
|
+
function UserSettingModal(props) {
|
|
45866
|
+
var _this;
|
|
45867
|
+
|
|
45868
|
+
classCallCheck(this, UserSettingModal);
|
|
45869
|
+
|
|
45870
|
+
_this = _super.call(this, props);
|
|
45871
|
+
_this.state = _objectSpread$I({}, customDicomSetting);
|
|
45872
|
+
return _this;
|
|
45873
|
+
}
|
|
45874
|
+
|
|
45875
|
+
createClass(UserSettingModal, [{
|
|
45876
|
+
key: "render",
|
|
45877
|
+
value: function render() {
|
|
45878
|
+
var _this2 = this;
|
|
45879
|
+
|
|
45880
|
+
var _this$state = this.state,
|
|
45881
|
+
leftMouseTool = _this$state.leftMouseTool,
|
|
45882
|
+
rightMouseTool = _this$state.rightMouseTool;
|
|
45883
|
+
var dicomSettingChange = this.props.dicomSettingChange;
|
|
45884
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
45885
|
+
className: 'paladin-user-setting'
|
|
45886
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
45887
|
+
className: 'paladin-user-setting-remark'
|
|
45888
|
+
}, "\u6CE8\uFF1A\u4FEE\u6539\u8BBE\u7F6E\u540E\uFF0C\u9700\u91CD\u542F\u8F6F\u4EF6\u6216\u91CD\u65B0\u767B\u5F55\u8D26\u53F7\uFF0C\u624D\u80FD\u751F\u6548\u3002"), /*#__PURE__*/React__default.createElement("p", null, "\u9F20\u6807\u8BBE\u7F6E\uFF1A"), /*#__PURE__*/React__default.createElement("div", {
|
|
45889
|
+
className: 'paladin-setting-radio'
|
|
45890
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
45891
|
+
className: 'paladin-setting-radio-item'
|
|
45892
|
+
}, "\u5DE6\u952E\uFF1A"), dicomSettingLeftMouseToolsDic && dicomSettingLeftMouseToolsDic.map(function (item, index) {
|
|
45893
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
45894
|
+
className: 'paladin-setting-radio-item',
|
|
45895
|
+
key: "setting-left-mouse-".concat(index)
|
|
45896
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
45897
|
+
type: "radio",
|
|
45898
|
+
checked: leftMouseTool === item.value,
|
|
45899
|
+
onChange: function onChange(e) {
|
|
45900
|
+
_this2.setState({
|
|
45901
|
+
leftMouseTool: item.value
|
|
45902
|
+
});
|
|
45903
|
+
|
|
45904
|
+
dicomSettingChange && dicomSettingChange('leftMouseTool', item.value);
|
|
45905
|
+
}
|
|
45906
|
+
}), /*#__PURE__*/React__default.createElement("span", null, item.label));
|
|
45907
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
45908
|
+
className: 'paladin-setting-radio',
|
|
45909
|
+
style: {
|
|
45910
|
+
marginTop: '10px'
|
|
45911
|
+
}
|
|
45912
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
45913
|
+
className: 'paladin-setting-radio-item'
|
|
45914
|
+
}, "\u53F3\u952E\uFF1A"), dicomSettingRightMouseToolsDic && dicomSettingRightMouseToolsDic.map(function (item, index) {
|
|
45915
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
45916
|
+
className: 'paladin-setting-radio-item',
|
|
45917
|
+
key: "setting-right-mouse-".concat(index)
|
|
45918
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
45919
|
+
type: "radio",
|
|
45920
|
+
checked: rightMouseTool === item.value,
|
|
45921
|
+
onChange: function onChange(e) {
|
|
45922
|
+
_this2.setState({
|
|
45923
|
+
rightMouseTool: item.value
|
|
45924
|
+
});
|
|
45925
|
+
|
|
45926
|
+
dicomSettingChange && dicomSettingChange('rightMouseTool', item.value);
|
|
45927
|
+
}
|
|
45928
|
+
}), /*#__PURE__*/React__default.createElement("span", null, item.label));
|
|
45929
|
+
})), /*#__PURE__*/React__default.createElement("p", {
|
|
45930
|
+
style: {
|
|
45931
|
+
marginTop: '30px'
|
|
45932
|
+
}
|
|
45933
|
+
}, "\u5FEB\u6377\u952E\u8BF4\u660E\uFF1A"), /*#__PURE__*/React__default.createElement("div", {
|
|
45934
|
+
className: 'paladin-setting-hotkey'
|
|
45935
|
+
}, dicomSettingHotKeyDic && dicomSettingHotKeyDic.map(function (value, index) {
|
|
45936
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
45937
|
+
className: 'paladin-setting-hotkey-item',
|
|
45938
|
+
key: "setting-hotkey-".concat(index)
|
|
45939
|
+
}, value.label, "(", value.hotkey, ")");
|
|
45940
|
+
})));
|
|
45941
|
+
}
|
|
45942
|
+
}]);
|
|
45943
|
+
|
|
45944
|
+
return UserSettingModal;
|
|
45945
|
+
}(React.Component);
|
|
45946
|
+
|
|
45947
|
+
defineProperty(UserSettingModal, "propTypes", {
|
|
45948
|
+
dicomSettingChange: PropTypes$1.func
|
|
45949
|
+
});
|
|
45950
|
+
|
|
45684
45951
|
function _createForOfIteratorHelper$9(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$b(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
45685
45952
|
|
|
45686
45953
|
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
|
|
45687
45954
|
|
|
45688
45955
|
function _arrayLikeToArray$b(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
45689
45956
|
|
|
45690
|
-
function ownKeys$
|
|
45957
|
+
function ownKeys$I(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; }
|
|
45691
45958
|
|
|
45692
|
-
function _objectSpread$
|
|
45959
|
+
function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$I(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$I(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
45693
45960
|
var scrollToIndex$4 = cornerstoneTools.scrollToIndex;
|
|
45694
45961
|
|
|
45695
45962
|
var mapStateToProps$j = function mapStateToProps(state) {
|
|
@@ -45940,7 +46207,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
45940
46207
|
};
|
|
45941
46208
|
|
|
45942
46209
|
var isThree = MPR || VR || MIP || CPR;
|
|
45943
|
-
return _objectSpread$
|
|
46210
|
+
return _objectSpread$J(_objectSpread$J(_objectSpread$J(_objectSpread$J({}, ownProps), propsFromState), propsFromDispatch), {}, {
|
|
45944
46211
|
isThree: isThree,
|
|
45945
46212
|
reset: function reset() {
|
|
45946
46213
|
// 重置
|
|
@@ -46769,6 +47036,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46769
47036
|
resetToolState(activeElement, mode);
|
|
46770
47037
|
},
|
|
46771
47038
|
toggleKeyImages: function toggleKeyImages() {
|
|
47039
|
+
// 关键图像添加/移除
|
|
46772
47040
|
var realSeriesIndex = col * currentScrollLine + activeIndex;
|
|
46773
47041
|
var currentSeriesIndex = seriesCurrentIndex[realSeriesIndex];
|
|
46774
47042
|
var SOPInstanceUID = currentSeries.SOPInstanceUIDs[currentSeriesIndex];
|
|
@@ -46860,6 +47128,23 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
46860
47128
|
handleAddKeyImage();
|
|
46861
47129
|
}
|
|
46862
47130
|
}
|
|
47131
|
+
},
|
|
47132
|
+
// 打开功能设置的弹框
|
|
47133
|
+
openSettingModal: function openSettingModal() {
|
|
47134
|
+
Modal.create( /*#__PURE__*/React__default.createElement(UserSettingModal, {
|
|
47135
|
+
dicomSettingChange: ownProps.dicomSettingChange
|
|
47136
|
+
}), {
|
|
47137
|
+
title: '功能设置',
|
|
47138
|
+
okText: '关闭',
|
|
47139
|
+
cancelButtonProps: {
|
|
47140
|
+
show: false
|
|
47141
|
+
},
|
|
47142
|
+
style: {
|
|
47143
|
+
width: '580px',
|
|
47144
|
+
top: '10%',
|
|
47145
|
+
transform: 'translate(-50%,0)'
|
|
47146
|
+
}
|
|
47147
|
+
});
|
|
46863
47148
|
}
|
|
46864
47149
|
});
|
|
46865
47150
|
};
|
|
@@ -46890,8 +47175,8 @@ var ConnectedDicomTool = reactRedux.connect(mapStateToProps$j, {
|
|
|
46890
47175
|
closeGlobalLoading: closeGlobalLoading
|
|
46891
47176
|
}, mergeProps$j)(DicomTool);
|
|
46892
47177
|
|
|
46893
|
-
var css_248z$
|
|
46894
|
-
styleInject$1(css_248z$
|
|
47178
|
+
var css_248z$s = ".paladin-thumb-content {\n position: relative;\n height: 66px;\n width: 66px;\n border-width: 1px;\n border-style: solid;\n cursor: pointer;\n}\n.paladin-thumb-content .paladin-thumb-bottom {\n white-space: nowrap;\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n color: #faa80a;\n text-align: center;\n font-size: 14px;\n z-index: 2;\n}\n.paladin-thumb-content .paladin-thumb-bottom-mobile {\n font-size: 10px;\n}\n.paladin-thumb-content .paladin-thumb-mask {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1;\n}\n.paladin-thumb-content .paladin-thumb-process {\n position: absolute;\n z-index: 1;\n top: 0;\n height: 4px;\n width: 100%;\n background: #ffffff;\n overflow: hidden;\n}\n.paladin-thumb-content .paladin-thumb-process .paladin-thumb-process-inner {\n background: #faa80a;\n height: 100%;\n}\n.mobile-thumb {\n width: 50px;\n height: 50px;\n}\n.paladin-thumb-svg {\n cursor: pointer;\n justify-content: center;\n}\n.paladin-thumb-svg svg {\n fill: #fff;\n}\n.paladin-thumb-svg:hover {\n background-color: #616772;\n}\n.paladin-thumb-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 15px;\n}\n.paladin-thumb-button svg {\n fill: #fff;\n}\n.paladin-thumb-button:hover {\n background-color: #616772;\n}\n.paladin-thumb-button svg {\n width: 11px !important;\n}\n.paladin-fresh-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 25px;\n}\n.paladin-fresh-button svg {\n fill: #fff;\n}\n.paladin-fresh-button:hover {\n background-color: #616772;\n}\n.paladin-fresh-button svg {\n width: 15px !important;\n}\n.paladin-thumb-study {\n cursor: pointer;\n font-size: 14px;\n line-height: 40px;\n padding: 0 12px;\n color: #ffffff;\n}\n.paladin-thumb-viewport {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.paladin-thumb-viewport h4,\n.paladin-thumb-viewport p {\n font-size: 10px;\n}\n.paladin-thumb-study-wrapper {\n border-bottom: 1px solid #727882;\n}\n.paladin-thumb-context-wrapper {\n padding: 4px 2px;\n}\n";
|
|
47179
|
+
styleInject$1(css_248z$s);
|
|
46895
47180
|
|
|
46896
47181
|
function _extends$1o() { _extends$1o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
|
|
46897
47182
|
|
|
@@ -46906,17 +47191,17 @@ const SvgRefresh$1 = props => /*#__PURE__*/React__default.createElement("svg", _
|
|
|
46906
47191
|
fill: "currentColor"
|
|
46907
47192
|
}, props), _ref$1n);
|
|
46908
47193
|
|
|
46909
|
-
var css_248z$
|
|
46910
|
-
styleInject$1(css_248z$
|
|
47194
|
+
var css_248z$t = ".loadingIndicator {\n position: absolute;\n top: 0;\n background: black;\n opacity: 1;\n width: 100%;\n height: 100%;\n text-align: center;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.loadingIndicator .lds-ring {\n color: #999;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n width: 40px;\n height: 40px;\n margin: auto;\n}\n.loadingIndicator .lds-ring div {\n box-sizing: border-box;\n display: block;\n position: absolute;\n width: 40px;\n height: 40px;\n border: 4px solid silver;\n border-radius: 50%;\n animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n border-color: silver transparent transparent transparent;\n}\n.loadingIndicator .lds-ring div:nth-child(1) {\n animation-delay: -0.45s;\n}\n.loadingIndicator .lds-ring div:nth-child(2) {\n animation-delay: -0.3s;\n}\n.loadingIndicator .lds-ring div:nth-child(3) {\n animation-delay: -0.15s;\n}\n@keyframes lds-ring {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.loadingIndicator .loadingIndicator-retry {\n width: 40px;\n color: #999;\n margin: 0 auto;\n font-size: 14px;\n}\n.loadingIndicator .indicatorContents h4 {\n font-size: 18px;\n margin: 0 auto 10px 0;\n}\n.loadingIndicator .indicatorContents h5 {\n font-size: 16px;\n margin: 0 auto 10px 0;\n}\n.loadingIndicator .indicatorContents p {\n margin: 4px auto;\n color: #999;\n font-size: 14px;\n}\n.loadingIndicator .indicatorContents .loadingIndicator-retry {\n width: 40px;\n margin: 20px auto 0 auto;\n}\n.loadingIndicator .indicatorContents-mini h4 {\n color: #fff;\n font-size: 12px;\n margin: 5px 0 5px 0;\n}\n.loadingIndicator .indicatorContents-mini .loadingIndicator-retry {\n width: 20px;\n font-size: 12px;\n}\n";
|
|
47195
|
+
styleInject$1(css_248z$t);
|
|
46911
47196
|
|
|
46912
|
-
function _createSuper$
|
|
47197
|
+
function _createSuper$1n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1n(); 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); }; }
|
|
46913
47198
|
|
|
46914
|
-
function _isNativeReflectConstruct$
|
|
47199
|
+
function _isNativeReflectConstruct$1n() { 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; } }
|
|
46915
47200
|
|
|
46916
47201
|
var LoadingIndicator = /*#__PURE__*/function (_PureComponent) {
|
|
46917
47202
|
inherits(LoadingIndicator, _PureComponent);
|
|
46918
47203
|
|
|
46919
|
-
var _super = _createSuper$
|
|
47204
|
+
var _super = _createSuper$1n(LoadingIndicator);
|
|
46920
47205
|
|
|
46921
47206
|
function LoadingIndicator() {
|
|
46922
47207
|
classCallCheck(this, LoadingIndicator);
|
|
@@ -46982,9 +47267,9 @@ defineProperty(LoadingIndicator, "defaultProps", {
|
|
|
46982
47267
|
error: null
|
|
46983
47268
|
});
|
|
46984
47269
|
|
|
46985
|
-
function _createSuper$
|
|
47270
|
+
function _createSuper$1o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1o(); 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); }; }
|
|
46986
47271
|
|
|
46987
|
-
function _isNativeReflectConstruct$
|
|
47272
|
+
function _isNativeReflectConstruct$1o() { 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; } }
|
|
46988
47273
|
var loadIndicatorDelay = 300;
|
|
46989
47274
|
var isMobile$2 = ua.isDeviceTypeMobile();
|
|
46990
47275
|
|
|
@@ -47011,7 +47296,7 @@ function initializeTools(cornerstoneTools, tools, element) {
|
|
|
47011
47296
|
var ThumbnailViewport = /*#__PURE__*/function (_Component) {
|
|
47012
47297
|
inherits(ThumbnailViewport, _Component);
|
|
47013
47298
|
|
|
47014
|
-
var _super = _createSuper$
|
|
47299
|
+
var _super = _createSuper$1o(ThumbnailViewport);
|
|
47015
47300
|
|
|
47016
47301
|
function ThumbnailViewport(props) {
|
|
47017
47302
|
var _this;
|
|
@@ -47166,9 +47451,9 @@ defineProperty(ThumbnailViewport, "defaultProps", {
|
|
|
47166
47451
|
}]
|
|
47167
47452
|
});
|
|
47168
47453
|
|
|
47169
|
-
function _createSuper$
|
|
47454
|
+
function _createSuper$1p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1p(); 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); }; }
|
|
47170
47455
|
|
|
47171
|
-
function _isNativeReflectConstruct$
|
|
47456
|
+
function _isNativeReflectConstruct$1p() { 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; } }
|
|
47172
47457
|
var isMobile$3 = ua.isDeviceTypeMobile();
|
|
47173
47458
|
|
|
47174
47459
|
var ThumbContent = function ThumbContent(props) {
|
|
@@ -47211,7 +47496,7 @@ var ThumbContent = function ThumbContent(props) {
|
|
|
47211
47496
|
var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
47212
47497
|
inherits(DicomThumbnailLayout, _Component);
|
|
47213
47498
|
|
|
47214
|
-
var _super = _createSuper$
|
|
47499
|
+
var _super = _createSuper$1p(DicomThumbnailLayout);
|
|
47215
47500
|
|
|
47216
47501
|
function DicomThumbnailLayout(props) {
|
|
47217
47502
|
var _this;
|
|
@@ -47368,9 +47653,9 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
|
47368
47653
|
return DicomThumbnailLayout;
|
|
47369
47654
|
}(React.Component);
|
|
47370
47655
|
|
|
47371
|
-
function ownKeys$
|
|
47656
|
+
function ownKeys$J(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; }
|
|
47372
47657
|
|
|
47373
|
-
function _objectSpread$
|
|
47658
|
+
function _objectSpread$K(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$J(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$J(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
47374
47659
|
|
|
47375
47660
|
var mapStateToProps$k = function mapStateToProps(state) {
|
|
47376
47661
|
var _state$paladin$viewpo = state.paladin.viewport,
|
|
@@ -47394,7 +47679,7 @@ var mapStateToProps$k = function mapStateToProps(state) {
|
|
|
47394
47679
|
};
|
|
47395
47680
|
|
|
47396
47681
|
var mergeProps$k = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
47397
|
-
return _objectSpread$
|
|
47682
|
+
return _objectSpread$K(_objectSpread$K(_objectSpread$K({}, ownProps), propsFromState), {}, {
|
|
47398
47683
|
selectThumb: function selectThumb(selectSeriesIndex, currentStudy) {
|
|
47399
47684
|
/**
|
|
47400
47685
|
* 选择了缩略图时
|
|
@@ -47460,8 +47745,8 @@ var ConnectedDicomThumbnail = reactRedux.connect(mapStateToProps$k, {
|
|
|
47460
47745
|
setActiveIndex: setActiveIndex
|
|
47461
47746
|
}, mergeProps$k)(DicomThumbnailLayout);
|
|
47462
47747
|
|
|
47463
|
-
var css_248z$
|
|
47464
|
-
styleInject$1(css_248z$
|
|
47748
|
+
var css_248z$u = ".paladin-dicom-layout {\n display: flex;\n flex-wrap: wrap;\n height: 100%;\n flex: 1;\n}\n.paladin-dicom-layout-warp {\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n";
|
|
47749
|
+
styleInject$1(css_248z$u);
|
|
47465
47750
|
|
|
47466
47751
|
function combineDateAndTimeToMoment(dicom, tag) {
|
|
47467
47752
|
var date = dicom[tag + 'Date'].toString();
|
|
@@ -47514,9 +47799,9 @@ function getPixelSpacing$9(imageId) {
|
|
|
47514
47799
|
};
|
|
47515
47800
|
}
|
|
47516
47801
|
|
|
47517
|
-
function _createSuper$
|
|
47802
|
+
function _createSuper$1q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1q(); 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); }; }
|
|
47518
47803
|
|
|
47519
|
-
function _isNativeReflectConstruct$
|
|
47804
|
+
function _isNativeReflectConstruct$1q() { 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; } }
|
|
47520
47805
|
|
|
47521
47806
|
var getCompression = function getCompression(dicom) {
|
|
47522
47807
|
var lossyImageCompression = dicom.LossyImageCompression.toString(),
|
|
@@ -47640,7 +47925,7 @@ var formatDicomInfo = function formatDicomInfo(label, value) {
|
|
|
47640
47925
|
var ViewportOverlay = /*#__PURE__*/function (_PureComponent) {
|
|
47641
47926
|
inherits(ViewportOverlay, _PureComponent);
|
|
47642
47927
|
|
|
47643
|
-
var _super = _createSuper$
|
|
47928
|
+
var _super = _createSuper$1q(ViewportOverlay);
|
|
47644
47929
|
|
|
47645
47930
|
function ViewportOverlay(props) {
|
|
47646
47931
|
var _this;
|
|
@@ -47870,8 +48155,8 @@ defineProperty(ViewportOverlay, "propTypes", {
|
|
|
47870
48155
|
hide: PropTypes$1.bool
|
|
47871
48156
|
});
|
|
47872
48157
|
|
|
47873
|
-
var css_248z$
|
|
47874
|
-
styleInject$1(css_248z$
|
|
48158
|
+
var css_248z$v = ".paladin-custom-scroll {\n cursor: pointer;\n background: #333333;\n position: relative;\n border-color: #727882;\n border-style: solid;\n border-width: 0;\n box-sizing: border-box;\n}\n.paladin-custom-scroll .paladin-custom-scroll-controller {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.paladin-custom-scroll .paladin-custom-scroll-controller .paladin-custom-scroll-box {\n position: absolute;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background: rgba(91, 91, 91, 0.8);\n}\n.paladin-custom-scroll .paladin-custom-scroll-ctrl-up {\n width: 16px;\n height: 20px;\n background: #5b5b5b;\n position: absolute;\n top: 0;\n}\n.paladin-custom-scroll .paladin-custom-scroll-ctrl-up svg {\n color: #ccc;\n}\n.paladin-custom-scroll .paladin-custom-scroll-ctrl-down {\n width: 16px;\n height: 20px;\n background: #5b5b5b;\n position: absolute;\n bottom: 0;\n}\n.paladin-custom-scroll .paladin-custom-scroll-ctrl-down svg {\n color: #ccc;\n}\n";
|
|
48159
|
+
styleInject$1(css_248z$v);
|
|
47875
48160
|
|
|
47876
48161
|
function _extends$1p() { _extends$1p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1p.apply(this, arguments); }
|
|
47877
48162
|
|
|
@@ -47899,17 +48184,17 @@ const SvgChevronDown = props => /*#__PURE__*/React__default.createElement("svg",
|
|
|
47899
48184
|
fill: "currentColor"
|
|
47900
48185
|
}, props), _ref$1p);
|
|
47901
48186
|
|
|
47902
|
-
var css_248z$
|
|
47903
|
-
styleInject$1(css_248z$
|
|
48187
|
+
var css_248z$w = ".paladin-aiTips-wrapper {\n width: 100%;\n height: 100%;\n}\n.paladin-aiTips-content {\n width: 1px;\n height: 100%;\n background: #ffff00;\n position: absolute;\n top: 0;\n}\n";
|
|
48188
|
+
styleInject$1(css_248z$w);
|
|
47904
48189
|
|
|
47905
|
-
function _createSuper$
|
|
48190
|
+
function _createSuper$1r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1r(); 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); }; }
|
|
47906
48191
|
|
|
47907
|
-
function _isNativeReflectConstruct$
|
|
48192
|
+
function _isNativeReflectConstruct$1r() { 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; } }
|
|
47908
48193
|
|
|
47909
48194
|
var AITips = /*#__PURE__*/function (_Component) {
|
|
47910
48195
|
inherits(AITips, _Component);
|
|
47911
48196
|
|
|
47912
|
-
var _super = _createSuper$
|
|
48197
|
+
var _super = _createSuper$1r(AITips);
|
|
47913
48198
|
|
|
47914
48199
|
function AITips() {
|
|
47915
48200
|
classCallCheck(this, AITips);
|
|
@@ -47946,14 +48231,14 @@ defineProperty(AITips, "propTypes", {
|
|
|
47946
48231
|
data: PropTypes$1.any
|
|
47947
48232
|
});
|
|
47948
48233
|
|
|
47949
|
-
function _createSuper$
|
|
48234
|
+
function _createSuper$1s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1s(); 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); }; }
|
|
47950
48235
|
|
|
47951
|
-
function _isNativeReflectConstruct$
|
|
48236
|
+
function _isNativeReflectConstruct$1s() { 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; } }
|
|
47952
48237
|
|
|
47953
48238
|
var CustomScroll = /*#__PURE__*/function (_Component) {
|
|
47954
48239
|
inherits(CustomScroll, _Component);
|
|
47955
48240
|
|
|
47956
|
-
var _super = _createSuper$
|
|
48241
|
+
var _super = _createSuper$1s(CustomScroll);
|
|
47957
48242
|
|
|
47958
48243
|
function CustomScroll(props) {
|
|
47959
48244
|
var _this;
|
|
@@ -48333,8 +48618,8 @@ defineProperty(CustomScroll, "propTypes", {
|
|
|
48333
48618
|
|
|
48334
48619
|
});
|
|
48335
48620
|
|
|
48336
|
-
var css_248z$
|
|
48337
|
-
styleInject$1(css_248z$
|
|
48621
|
+
var css_248z$x = ".paladin-mpr-direaction-tip {\n position: absolute;\n top: 10px;\n left: 10px;\n z-index: 2;\n width: 10px;\n height: 10px;\n}\n.paladin-mpr-direaction-toggle-box {\n position: absolute;\n top: 10px;\n left: 10px;\n z-index: 2;\n cursor: pointer;\n}\n.paladin-mpr-direaction-toggle-box span {\n display: inline-block;\n padding: 3px;\n font-size: 12px;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle {\n border: 1px solid #999;\n background: #000;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle:last-child {\n border-left: none;\n}\n.paladin-mpr-direaction-toggle-box .paladin-mpr-direaction-toggle-active {\n background: #0d5075;\n}\n.rc-slider {\n background-color: transparent !important;\n}\n.paladin-viewport-wrapper {\n overflow: hidden;\n color: white;\n height: 100%;\n position: relative;\n}\n.cornerstone-canvas-container {\n box-sizing: border-box;\n width: 100%;\n position: relative;\n}\n.paladin-viewport-scroll-wrappper {\n width: 100%;\n left: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n z-index: 1;\n height: 30px;\n}\n.paladin-viewport-scroll-inner {\n width: 40%;\n margin: 5px auto auto;\n}\n.paladin-viewport-scroll-mpr-wrappper {\n width: 100%;\n position: relative;\n z-index: 1;\n}\n.paladin-key-image-tip {\n position: absolute;\n top: 9px;\n left: 50%;\n font-size: 12px;\n transform: translateX(20px);\n}\n.paladin-key-image-tip svg {\n display: inline-block;\n width: 12px !important;\n height: 12px !important;\n margin-right: 3px;\n}\n";
|
|
48622
|
+
styleInject$1(css_248z$x);
|
|
48338
48623
|
|
|
48339
48624
|
function _createForOfIteratorHelper$a(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$c(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
48340
48625
|
|
|
@@ -48581,17 +48866,17 @@ function processCentesisPath(imageId) {
|
|
|
48581
48866
|
}
|
|
48582
48867
|
}
|
|
48583
48868
|
|
|
48584
|
-
var css_248z$
|
|
48585
|
-
styleInject$1(css_248z$
|
|
48869
|
+
var css_248z$y = ".paladin-thickness-container {\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 90px;\n height: 16px;\n background-color: #505050;\n color: #888;\n font-size: 13px;\n}\n.paladin-thickness-selecter {\n padding: 5px 0;\n background-color: #333;\n color: #c8c8c8;\n font-size: 12px;\n}\n.paladin-thickness-selecter .paladin-thickness-select-item {\n padding: 3px 20px;\n cursor: pointer;\n}\n.paladin-thickness-selecter .paladin-thickness-select-item:hover {\n background-color: #fff;\n color: #000;\n}\n.paladin-thickness-selecter .paladin-thickness-select-mpr {\n border-bottom: 1px solid #ffffff;\n padding: 3px 20px 8px 20px;\n}\n";
|
|
48870
|
+
styleInject$1(css_248z$y);
|
|
48586
48871
|
|
|
48587
|
-
function _createSuper$
|
|
48872
|
+
function _createSuper$1t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1t(); 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); }; }
|
|
48588
48873
|
|
|
48589
|
-
function _isNativeReflectConstruct$
|
|
48874
|
+
function _isNativeReflectConstruct$1t() { 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; } }
|
|
48590
48875
|
|
|
48591
48876
|
var ThicknessSelectMain = /*#__PURE__*/function (_Component) {
|
|
48592
48877
|
inherits(ThicknessSelectMain, _Component);
|
|
48593
48878
|
|
|
48594
|
-
var _super = _createSuper$
|
|
48879
|
+
var _super = _createSuper$1t(ThicknessSelectMain);
|
|
48595
48880
|
|
|
48596
48881
|
function ThicknessSelectMain(props) {
|
|
48597
48882
|
var _this;
|
|
@@ -48811,13 +49096,209 @@ function newImageIdSpecificToolStateManager() {
|
|
|
48811
49096
|
|
|
48812
49097
|
var seriesInstanceUidStateManager = newImageIdSpecificToolStateManager();
|
|
48813
49098
|
|
|
48814
|
-
|
|
49099
|
+
var dicomToolDefaultProps = {
|
|
49100
|
+
activeTool: 'Wwwc',
|
|
49101
|
+
availableTools: [{
|
|
49102
|
+
name: 'Pan',
|
|
49103
|
+
mouseButtonMasks: [1, 4]
|
|
49104
|
+
}, {
|
|
49105
|
+
name: 'Zoom',
|
|
49106
|
+
props: {
|
|
49107
|
+
configuration: {
|
|
49108
|
+
minScale: 0.01,
|
|
49109
|
+
maxScale: 30,
|
|
49110
|
+
preventZoomOutsideImage: true
|
|
49111
|
+
}
|
|
49112
|
+
},
|
|
49113
|
+
mouseButtonMasks: [1, 2]
|
|
49114
|
+
}, {
|
|
49115
|
+
name: 'Wwwc',
|
|
49116
|
+
mouseButtonMasks: [1]
|
|
49117
|
+
}, {
|
|
49118
|
+
name: 'Length',
|
|
49119
|
+
mouseButtonMasks: [1]
|
|
49120
|
+
}, {
|
|
49121
|
+
name: 'ArrowAnnotate',
|
|
49122
|
+
mouseButtonMasks: [1]
|
|
49123
|
+
}, {
|
|
49124
|
+
name: 'RectangleRoi',
|
|
49125
|
+
mouseButtonMasks: [1]
|
|
49126
|
+
}, {
|
|
49127
|
+
name: 'EllipticalRoi',
|
|
49128
|
+
mouseButtonMasks: [1]
|
|
49129
|
+
}, {
|
|
49130
|
+
name: 'Angle',
|
|
49131
|
+
mouseButtonMasks: [1]
|
|
49132
|
+
}, {
|
|
49133
|
+
name: 'CobbAngle',
|
|
49134
|
+
mouseButtonMasks: [1]
|
|
49135
|
+
}, {
|
|
49136
|
+
name: 'Polygon',
|
|
49137
|
+
mouseButtonMasks: [1]
|
|
49138
|
+
}, {
|
|
49139
|
+
name: 'Probe',
|
|
49140
|
+
mouseButtonMasks: [1]
|
|
49141
|
+
}, {
|
|
49142
|
+
name: 'CTR',
|
|
49143
|
+
mouseButtonMasks: [1]
|
|
49144
|
+
}, {
|
|
49145
|
+
name: 'PanMultiTouch'
|
|
49146
|
+
}, {
|
|
49147
|
+
name: 'ZoomTouchPinch'
|
|
49148
|
+
}, {
|
|
49149
|
+
name: 'StackScrollMouseWheel',
|
|
49150
|
+
props: {
|
|
49151
|
+
configuration: {
|
|
49152
|
+
loop: true,
|
|
49153
|
+
allowSkipping: true
|
|
49154
|
+
}
|
|
49155
|
+
}
|
|
49156
|
+
}, {
|
|
49157
|
+
name: 'StackScroll',
|
|
49158
|
+
props: {
|
|
49159
|
+
configuration: {
|
|
49160
|
+
loop: true,
|
|
49161
|
+
allowSkipping: true
|
|
49162
|
+
}
|
|
49163
|
+
},
|
|
49164
|
+
mouseButtonMasks: [1]
|
|
49165
|
+
}, {
|
|
49166
|
+
name: 'StackScrollMultiTouch'
|
|
49167
|
+
}, {
|
|
49168
|
+
name: 'OrientationMarkers',
|
|
49169
|
+
props: {
|
|
49170
|
+
color: "#faa80a"
|
|
49171
|
+
}
|
|
49172
|
+
}, {
|
|
49173
|
+
name: 'RulerOverlay'
|
|
49174
|
+
}, {
|
|
49175
|
+
name: 'ReferenceLines'
|
|
49176
|
+
}, {
|
|
49177
|
+
name: 'CrosshairsMPR'
|
|
49178
|
+
}, {
|
|
49179
|
+
name: 'Overlay'
|
|
49180
|
+
}, {
|
|
49181
|
+
name: 'AIAnalysisOverlay'
|
|
49182
|
+
}, {
|
|
49183
|
+
name: 'ReferencePosition',
|
|
49184
|
+
mouseButtonMasks: [1]
|
|
49185
|
+
}]
|
|
49186
|
+
};
|
|
48815
49187
|
|
|
48816
|
-
function
|
|
49188
|
+
function getCustomAvailableTools(data) {
|
|
49189
|
+
var panMask = [1, 4];
|
|
49190
|
+
var zoomMask = [1];
|
|
49191
|
+
var wwwcMask = [1];
|
|
49192
|
+
var stackScrollMask = [1];
|
|
49193
|
+
|
|
49194
|
+
if (data && data.rightMouseTool) {
|
|
49195
|
+
if (data.rightMouseTool === 'Pan') {
|
|
49196
|
+
panMask = [1, 2, 4];
|
|
49197
|
+
} else if (data.rightMouseTool === 'Wwwc') {
|
|
49198
|
+
wwwcMask = [1, 2];
|
|
49199
|
+
} else if (data.rightMouseTool === 'StackScroll') {
|
|
49200
|
+
stackScrollMask = [1, 2];
|
|
49201
|
+
} else {
|
|
49202
|
+
zoomMask = [1, 2];
|
|
49203
|
+
}
|
|
49204
|
+
} else {
|
|
49205
|
+
zoomMask = [1, 2];
|
|
49206
|
+
}
|
|
48817
49207
|
|
|
48818
|
-
|
|
49208
|
+
return [{
|
|
49209
|
+
name: 'Pan',
|
|
49210
|
+
mouseButtonMasks: panMask
|
|
49211
|
+
}, {
|
|
49212
|
+
name: 'Zoom',
|
|
49213
|
+
props: {
|
|
49214
|
+
configuration: {
|
|
49215
|
+
minScale: 0.01,
|
|
49216
|
+
maxScale: 30,
|
|
49217
|
+
preventZoomOutsideImage: true
|
|
49218
|
+
}
|
|
49219
|
+
},
|
|
49220
|
+
mouseButtonMasks: zoomMask
|
|
49221
|
+
}, {
|
|
49222
|
+
name: 'Wwwc',
|
|
49223
|
+
mouseButtonMasks: wwwcMask
|
|
49224
|
+
}, {
|
|
49225
|
+
name: 'StackScroll',
|
|
49226
|
+
props: {
|
|
49227
|
+
configuration: {
|
|
49228
|
+
loop: true,
|
|
49229
|
+
allowSkipping: true
|
|
49230
|
+
}
|
|
49231
|
+
},
|
|
49232
|
+
mouseButtonMasks: stackScrollMask
|
|
49233
|
+
}, {
|
|
49234
|
+
name: 'Length',
|
|
49235
|
+
mouseButtonMasks: [1]
|
|
49236
|
+
}, {
|
|
49237
|
+
name: 'ArrowAnnotate',
|
|
49238
|
+
mouseButtonMasks: [1]
|
|
49239
|
+
}, {
|
|
49240
|
+
name: 'RectangleRoi',
|
|
49241
|
+
mouseButtonMasks: [1]
|
|
49242
|
+
}, {
|
|
49243
|
+
name: 'EllipticalRoi',
|
|
49244
|
+
mouseButtonMasks: [1]
|
|
49245
|
+
}, {
|
|
49246
|
+
name: 'Angle',
|
|
49247
|
+
mouseButtonMasks: [1]
|
|
49248
|
+
}, {
|
|
49249
|
+
name: 'CobbAngle',
|
|
49250
|
+
mouseButtonMasks: [1]
|
|
49251
|
+
}, {
|
|
49252
|
+
name: 'Polygon',
|
|
49253
|
+
mouseButtonMasks: [1]
|
|
49254
|
+
}, {
|
|
49255
|
+
name: 'Probe',
|
|
49256
|
+
mouseButtonMasks: [1]
|
|
49257
|
+
}, {
|
|
49258
|
+
name: 'CTR',
|
|
49259
|
+
mouseButtonMasks: [1]
|
|
49260
|
+
}, {
|
|
49261
|
+
name: 'PanMultiTouch'
|
|
49262
|
+
}, {
|
|
49263
|
+
name: 'ZoomTouchPinch'
|
|
49264
|
+
}, {
|
|
49265
|
+
name: 'StackScrollMouseWheel',
|
|
49266
|
+
props: {
|
|
49267
|
+
configuration: {
|
|
49268
|
+
loop: true,
|
|
49269
|
+
allowSkipping: true
|
|
49270
|
+
}
|
|
49271
|
+
}
|
|
49272
|
+
}, {
|
|
49273
|
+
name: 'StackScrollMultiTouch'
|
|
49274
|
+
}, {
|
|
49275
|
+
name: 'OrientationMarkers',
|
|
49276
|
+
props: {
|
|
49277
|
+
color: "#faa80a"
|
|
49278
|
+
}
|
|
49279
|
+
}, {
|
|
49280
|
+
name: 'RulerOverlay'
|
|
49281
|
+
}, {
|
|
49282
|
+
name: 'ReferenceLines'
|
|
49283
|
+
}, {
|
|
49284
|
+
name: 'CrosshairsMPR'
|
|
49285
|
+
}, {
|
|
49286
|
+
name: 'Overlay'
|
|
49287
|
+
}, {
|
|
49288
|
+
name: 'AIAnalysisOverlay'
|
|
49289
|
+
}, {
|
|
49290
|
+
name: 'ReferencePosition',
|
|
49291
|
+
mouseButtonMasks: [1]
|
|
49292
|
+
}];
|
|
49293
|
+
}
|
|
48819
49294
|
|
|
48820
|
-
function
|
|
49295
|
+
function ownKeys$K(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; }
|
|
49296
|
+
|
|
49297
|
+
function _objectSpread$L(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$K(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$K(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
49298
|
+
|
|
49299
|
+
function _createSuper$1u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1u(); 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); }; }
|
|
49300
|
+
|
|
49301
|
+
function _isNativeReflectConstruct$1u() { 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; } }
|
|
48821
49302
|
var EVENT_RESIZE = 'resize';
|
|
48822
49303
|
var loadIndicatorDelay$1 = 300;
|
|
48823
49304
|
var loadHandlerManager$1 = cornerstoneTools.loadHandlerManager;
|
|
@@ -48857,7 +49338,7 @@ function initializeTools$1(cornerstoneTools, tools, element) {
|
|
|
48857
49338
|
var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
48858
49339
|
inherits(DicomViewport, _Component);
|
|
48859
49340
|
|
|
48860
|
-
var _super = _createSuper$
|
|
49341
|
+
var _super = _createSuper$1u(DicomViewport);
|
|
48861
49342
|
|
|
48862
49343
|
function DicomViewport(_props) {
|
|
48863
49344
|
var _this;
|
|
@@ -49942,7 +50423,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
49942
50423
|
nextViewport.colormap = undefined;
|
|
49943
50424
|
}
|
|
49944
50425
|
|
|
49945
|
-
cornerstone.setViewport(this.element, _objectSpread$
|
|
50426
|
+
cornerstone.setViewport(this.element, _objectSpread$L(_objectSpread$L({}, nextViewport), {}, {
|
|
49946
50427
|
displayedArea: defaultViewport.displayedArea
|
|
49947
50428
|
}));
|
|
49948
50429
|
this.setState({
|
|
@@ -50522,93 +51003,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
50522
51003
|
return DicomViewport;
|
|
50523
51004
|
}(React.Component);
|
|
50524
51005
|
|
|
50525
|
-
defineProperty(DicomViewport, "defaultProps",
|
|
50526
|
-
activeTool: 'Wwwc',
|
|
50527
|
-
availableTools: [{
|
|
50528
|
-
name: 'Pan',
|
|
50529
|
-
mouseButtonMasks: [1, 4]
|
|
50530
|
-
}, {
|
|
50531
|
-
name: 'Zoom',
|
|
50532
|
-
props: {
|
|
50533
|
-
configuration: {
|
|
50534
|
-
minScale: 0.01,
|
|
50535
|
-
maxScale: 30,
|
|
50536
|
-
preventZoomOutsideImage: true
|
|
50537
|
-
}
|
|
50538
|
-
},
|
|
50539
|
-
mouseButtonMasks: [1, 2]
|
|
50540
|
-
}, {
|
|
50541
|
-
name: 'Wwwc',
|
|
50542
|
-
mouseButtonMasks: [1]
|
|
50543
|
-
}, {
|
|
50544
|
-
name: 'Length',
|
|
50545
|
-
mouseButtonMasks: [1]
|
|
50546
|
-
}, {
|
|
50547
|
-
name: 'ArrowAnnotate',
|
|
50548
|
-
mouseButtonMasks: [1]
|
|
50549
|
-
}, {
|
|
50550
|
-
name: 'RectangleRoi',
|
|
50551
|
-
mouseButtonMasks: [1]
|
|
50552
|
-
}, {
|
|
50553
|
-
name: 'EllipticalRoi',
|
|
50554
|
-
mouseButtonMasks: [1]
|
|
50555
|
-
}, {
|
|
50556
|
-
name: 'Angle',
|
|
50557
|
-
mouseButtonMasks: [1]
|
|
50558
|
-
}, {
|
|
50559
|
-
name: 'CobbAngle',
|
|
50560
|
-
mouseButtonMasks: [1]
|
|
50561
|
-
}, {
|
|
50562
|
-
name: 'Polygon',
|
|
50563
|
-
mouseButtonMasks: [1]
|
|
50564
|
-
}, {
|
|
50565
|
-
name: 'Probe',
|
|
50566
|
-
mouseButtonMasks: [1]
|
|
50567
|
-
}, {
|
|
50568
|
-
name: 'CTR',
|
|
50569
|
-
mouseButtonMasks: [1]
|
|
50570
|
-
}, {
|
|
50571
|
-
name: 'PanMultiTouch'
|
|
50572
|
-
}, {
|
|
50573
|
-
name: 'ZoomTouchPinch'
|
|
50574
|
-
}, {
|
|
50575
|
-
name: 'StackScrollMouseWheel',
|
|
50576
|
-
props: {
|
|
50577
|
-
configuration: {
|
|
50578
|
-
loop: true,
|
|
50579
|
-
allowSkipping: true
|
|
50580
|
-
}
|
|
50581
|
-
}
|
|
50582
|
-
}, {
|
|
50583
|
-
name: 'StackScroll',
|
|
50584
|
-
props: {
|
|
50585
|
-
configuration: {
|
|
50586
|
-
loop: true,
|
|
50587
|
-
allowSkipping: true
|
|
50588
|
-
}
|
|
50589
|
-
}
|
|
50590
|
-
}, {
|
|
50591
|
-
name: 'StackScrollMultiTouch'
|
|
50592
|
-
}, {
|
|
50593
|
-
name: 'OrientationMarkers',
|
|
50594
|
-
props: {
|
|
50595
|
-
color: "#faa80a"
|
|
50596
|
-
}
|
|
50597
|
-
}, {
|
|
50598
|
-
name: 'RulerOverlay'
|
|
50599
|
-
}, {
|
|
50600
|
-
name: 'ReferenceLines'
|
|
50601
|
-
}, {
|
|
50602
|
-
name: 'CrosshairsMPR'
|
|
50603
|
-
}, {
|
|
50604
|
-
name: 'Overlay'
|
|
50605
|
-
}, {
|
|
50606
|
-
name: 'AIAnalysisOverlay'
|
|
50607
|
-
}, {
|
|
50608
|
-
name: 'ReferencePosition',
|
|
50609
|
-
mouseButtonMasks: [1]
|
|
50610
|
-
}]
|
|
50611
|
-
});
|
|
51006
|
+
defineProperty(DicomViewport, "defaultProps", dicomToolDefaultProps);
|
|
50612
51007
|
|
|
50613
51008
|
var mapStateToProps$l = function mapStateToProps(state) {
|
|
50614
51009
|
var _state$paladin$tools$ = state.paladin.tools.action,
|
|
@@ -50667,8 +51062,8 @@ var ConnectedDicomViewport = reactRedux.connect(mapStateToProps$l, {
|
|
|
50667
51062
|
setSeriesCurrentIndex: setSeriesCurrentIndex
|
|
50668
51063
|
})(DicomViewport);
|
|
50669
51064
|
|
|
50670
|
-
var css_248z$
|
|
50671
|
-
styleInject$1(css_248z$
|
|
51065
|
+
var css_248z$z = ".paladin-dicom-scroll {\n display: flex;\n width: 16px;\n height: 100%;\n flex-shrink: 0;\n background: #333333;\n}\n";
|
|
51066
|
+
styleInject$1(css_248z$z);
|
|
50672
51067
|
|
|
50673
51068
|
var DicomLayoutContainer = function DicomLayoutContainer(props) {
|
|
50674
51069
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -50683,9 +51078,9 @@ function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o
|
|
|
50683
51078
|
|
|
50684
51079
|
function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
50685
51080
|
|
|
50686
|
-
function _createSuper$
|
|
51081
|
+
function _createSuper$1v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1v(); 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); }; }
|
|
50687
51082
|
|
|
50688
|
-
function _isNativeReflectConstruct$
|
|
51083
|
+
function _isNativeReflectConstruct$1v() { 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; } }
|
|
50689
51084
|
|
|
50690
51085
|
var EmptyElement = function EmptyElement(_ref) {
|
|
50691
51086
|
var col = _ref.col;
|
|
@@ -50702,7 +51097,7 @@ var isMobile$4 = ua.isDeviceTypeMobile();
|
|
|
50702
51097
|
var DicomLayout = /*#__PURE__*/function (_Component) {
|
|
50703
51098
|
inherits(DicomLayout, _Component);
|
|
50704
51099
|
|
|
50705
|
-
var _super = _createSuper$
|
|
51100
|
+
var _super = _createSuper$1v(DicomLayout);
|
|
50706
51101
|
|
|
50707
51102
|
function DicomLayout(props) {
|
|
50708
51103
|
var _this;
|
|
@@ -50850,7 +51245,9 @@ var DicomLayout = /*#__PURE__*/function (_Component) {
|
|
|
50850
51245
|
window.addEventListener('resize', _this.debouncedResize);
|
|
50851
51246
|
_this.state = {
|
|
50852
51247
|
resize: 0
|
|
50853
|
-
};
|
|
51248
|
+
}; // 自定义功能设置中的左右键,右键需要改变availableTools
|
|
51249
|
+
|
|
51250
|
+
_this.availableTools = getCustomAvailableTools(customDicomSetting);
|
|
50854
51251
|
return _this;
|
|
50855
51252
|
}
|
|
50856
51253
|
|
|
@@ -50959,7 +51356,8 @@ var DicomLayout = /*#__PURE__*/function (_Component) {
|
|
|
50959
51356
|
showSimpleAIResult: _this2.props.showSimpleAIResult,
|
|
50960
51357
|
onResizeEmit: _this2.props.onResizeEmit,
|
|
50961
51358
|
onClickDomErrorReRenderButton: _this2.props.onClickDomErrorReRenderButton,
|
|
50962
|
-
aiResult: _this2.props.aiResult
|
|
51359
|
+
aiResult: _this2.props.aiResult,
|
|
51360
|
+
availableTools: _this2.availableTools
|
|
50963
51361
|
});
|
|
50964
51362
|
}));
|
|
50965
51363
|
})), showVerticalScroll && /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -51001,9 +51399,9 @@ defineProperty(DicomLayout, "propTypes", {
|
|
|
51001
51399
|
|
|
51002
51400
|
});
|
|
51003
51401
|
|
|
51004
|
-
function ownKeys$
|
|
51402
|
+
function ownKeys$L(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; }
|
|
51005
51403
|
|
|
51006
|
-
function _objectSpread$
|
|
51404
|
+
function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$L(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$L(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
51007
51405
|
/**
|
|
51008
51406
|
* 序列模式
|
|
51009
51407
|
*
|
|
@@ -51073,7 +51471,7 @@ var mergeProps$l = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
51073
51471
|
var startIndex = col * currentScrollLine;
|
|
51074
51472
|
var endIndex = startIndex + col * row;
|
|
51075
51473
|
var currentLayoutSeries = series.slice(startIndex, endIndex);
|
|
51076
|
-
return _objectSpread$
|
|
51474
|
+
return _objectSpread$M(_objectSpread$M(_objectSpread$M(_objectSpread$M({}, ownProps), propsFromState), propsFromDispatch), {}, {
|
|
51077
51475
|
series: currentLayoutSeries,
|
|
51078
51476
|
seriesTotalCount: series.length,
|
|
51079
51477
|
row: row,
|
|
@@ -51356,9 +51754,9 @@ var ConnectedDicomLayout = reactRedux.connect(mapStateToProps$m, {
|
|
|
51356
51754
|
setCineFps: setCineFps
|
|
51357
51755
|
}, mergeProps$l)(DicomLayout);
|
|
51358
51756
|
|
|
51359
|
-
function ownKeys$
|
|
51757
|
+
function ownKeys$M(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; }
|
|
51360
51758
|
|
|
51361
|
-
function _objectSpread$
|
|
51759
|
+
function _objectSpread$N(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$M(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$M(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
51362
51760
|
/**
|
|
51363
51761
|
* 图像模式
|
|
51364
51762
|
*
|
|
@@ -51464,7 +51862,7 @@ var mergeProps$m = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
51464
51862
|
};
|
|
51465
51863
|
});
|
|
51466
51864
|
var showVerticalScroll = series && series.length / col > row;
|
|
51467
|
-
return _objectSpread$
|
|
51865
|
+
return _objectSpread$N(_objectSpread$N(_objectSpread$N(_objectSpread$N({}, ownProps), propsFromState), propsFromDispatch), {}, {
|
|
51468
51866
|
currentScrollLine: currentScrollLineImage,
|
|
51469
51867
|
series: series,
|
|
51470
51868
|
activeIndex: imageActiveIndex,
|
|
@@ -51596,17 +51994,17 @@ var mergeProps$m = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
51596
51994
|
|
|
51597
51995
|
var ConnectedDicomImageModeLayout = reactRedux.connect(mapStateToProps$n, mapDispatchToProps$4, mergeProps$m)(DicomLayout);
|
|
51598
51996
|
|
|
51599
|
-
var css_248z$
|
|
51600
|
-
styleInject$1(css_248z$
|
|
51997
|
+
var css_248z$A = ".paladin-dicom-layout {\n display: flex;\n flex-wrap: wrap;\n height: 100%;\n flex: 1;\n}\n.paladin-dicom-layout-warp {\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n";
|
|
51998
|
+
styleInject$1(css_248z$A);
|
|
51601
51999
|
|
|
51602
|
-
function _createSuper$
|
|
52000
|
+
function _createSuper$1w(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1w(); 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); }; }
|
|
51603
52001
|
|
|
51604
|
-
function _isNativeReflectConstruct$
|
|
52002
|
+
function _isNativeReflectConstruct$1w() { 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; } }
|
|
51605
52003
|
|
|
51606
52004
|
var SurgeryLayout = /*#__PURE__*/function (_Component) {
|
|
51607
52005
|
inherits(SurgeryLayout, _Component);
|
|
51608
52006
|
|
|
51609
|
-
var _super = _createSuper$
|
|
52007
|
+
var _super = _createSuper$1w(SurgeryLayout);
|
|
51610
52008
|
|
|
51611
52009
|
function SurgeryLayout(props) {
|
|
51612
52010
|
var _this;
|
|
@@ -52263,9 +52661,9 @@ var SurgeryLayout = /*#__PURE__*/function (_Component) {
|
|
|
52263
52661
|
|
|
52264
52662
|
defineProperty(SurgeryLayout, "propTypes", {});
|
|
52265
52663
|
|
|
52266
|
-
function ownKeys$
|
|
52664
|
+
function ownKeys$N(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; }
|
|
52267
52665
|
|
|
52268
|
-
function _objectSpread$
|
|
52666
|
+
function _objectSpread$O(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$N(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
52269
52667
|
|
|
52270
52668
|
var mapStateToProps$o = function mapStateToProps(state) {
|
|
52271
52669
|
var _state$paladin$viewpo = state.paladin.viewport,
|
|
@@ -52284,7 +52682,7 @@ var mapStateToProps$o = function mapStateToProps(state) {
|
|
|
52284
52682
|
};
|
|
52285
52683
|
|
|
52286
52684
|
var mergeProps$n = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
52287
|
-
return _objectSpread$
|
|
52685
|
+
return _objectSpread$O(_objectSpread$O(_objectSpread$O({}, propsFromState), ownProps), {}, {
|
|
52288
52686
|
onViewPortCellClick: function onViewPortCellClick() {
|
|
52289
52687
|
propsFromDispatch.setSurgeryActiveIndex.apply(propsFromDispatch, arguments);
|
|
52290
52688
|
},
|
|
@@ -52307,17 +52705,17 @@ var ConnectedSurgeryLayout = reactRedux.connect(mapStateToProps$o, {
|
|
|
52307
52705
|
setSurgeryActiveIndex: setSurgeryActiveIndex
|
|
52308
52706
|
}, mergeProps$n)(SurgeryLayout);
|
|
52309
52707
|
|
|
52310
|
-
var css_248z$
|
|
52311
|
-
styleInject$1(css_248z$
|
|
52708
|
+
var css_248z$B = ".paladin-dicom-layout {\n display: flex;\n flex-wrap: wrap;\n height: 100%;\n flex: 1;\n}\n.paladin-dicom-layout-warp {\n display: flex;\n flex: 1;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n";
|
|
52709
|
+
styleInject$1(css_248z$B);
|
|
52312
52710
|
|
|
52313
|
-
function _createSuper$
|
|
52711
|
+
function _createSuper$1x(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1x(); 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); }; }
|
|
52314
52712
|
|
|
52315
|
-
function _isNativeReflectConstruct$
|
|
52713
|
+
function _isNativeReflectConstruct$1x() { 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; } }
|
|
52316
52714
|
|
|
52317
52715
|
var CPRLayout = /*#__PURE__*/function (_Component) {
|
|
52318
52716
|
inherits(CPRLayout, _Component);
|
|
52319
52717
|
|
|
52320
|
-
var _super = _createSuper$
|
|
52718
|
+
var _super = _createSuper$1x(CPRLayout);
|
|
52321
52719
|
|
|
52322
52720
|
function CPRLayout(props) {
|
|
52323
52721
|
var _this;
|
|
@@ -52605,9 +53003,9 @@ var CPRLayout = /*#__PURE__*/function (_Component) {
|
|
|
52605
53003
|
|
|
52606
53004
|
defineProperty(CPRLayout, "propTypes", {});
|
|
52607
53005
|
|
|
52608
|
-
function ownKeys$
|
|
53006
|
+
function ownKeys$O(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; }
|
|
52609
53007
|
|
|
52610
|
-
function _objectSpread$
|
|
53008
|
+
function _objectSpread$P(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$O(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$O(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
52611
53009
|
|
|
52612
53010
|
var mapStateToProps$p = function mapStateToProps(state) {
|
|
52613
53011
|
var _state$paladin$viewpo = state.paladin.viewport,
|
|
@@ -52624,7 +53022,7 @@ var mapStateToProps$p = function mapStateToProps(state) {
|
|
|
52624
53022
|
};
|
|
52625
53023
|
|
|
52626
53024
|
var mergeProps$o = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
52627
|
-
return _objectSpread$
|
|
53025
|
+
return _objectSpread$P(_objectSpread$P(_objectSpread$P({}, propsFromState), ownProps), {}, {
|
|
52628
53026
|
onViewPortCellClick: function onViewPortCellClick() {
|
|
52629
53027
|
propsFromDispatch.setSurgeryActiveIndex.apply(propsFromDispatch, arguments);
|
|
52630
53028
|
},
|
|
@@ -52641,20 +53039,20 @@ var ConnectedCPRLayout = reactRedux.connect(mapStateToProps$p, {
|
|
|
52641
53039
|
setSurgeryActiveIndex: setSurgeryActiveIndex
|
|
52642
53040
|
}, mergeProps$o)(CPRLayout);
|
|
52643
53041
|
|
|
52644
|
-
var css_248z$
|
|
52645
|
-
styleInject$1(css_248z$B);
|
|
52646
|
-
|
|
52647
|
-
var css_248z$C = ".image-processing-container {\n position: absolute;\n width: 100%;\n height: 100%;\n text-align: center;\n background: black;\n display: flex;\n align-items: center;\n justify-content: space-around;\n flex-direction: column;\n z-index: 999;\n}\n.image-processing-container-content {\n cursor: pointer;\n}\n.image-processing-container-content svg {\n width: 50px;\n height: 50px;\n display: block;\n margin: 15px auto 0 auto;\n color: #999;\n}\n.paladin-three-wrapper {\n width: 100%;\n height: 100%;\n color: white;\n display: flex;\n}\n.paladin-three-horizontal-left {\n width: 66.6%;\n height: 100%;\n}\n.paladin-three-horizontal-right {\n width: 33.4%;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-three-vertical-top {\n width: 100%;\n height: 66.6%;\n flex-direction: row;\n}\n.paladin-three-vertical-bottom {\n width: 100%;\n height: 33.4%;\n display: flex;\n flex-direction: row;\n}\n.paladin-three-height-55 {\n width: 100%;\n height: 55%;\n}\n.paladin-three-height-45 {\n width: 100%;\n height: 45%;\n}\n.paladin-three-height-50 {\n width: 100%;\n height: 50%;\n}\n.paladin-three-width-50 {\n width: 50%;\n height: 100%;\n}\n.paladin-three-height-33 {\n width: 100%;\n height: 33.333%;\n}\n.paladin-three-width-33 {\n height: 100%;\n width: 33.333%;\n}\n.paladin-three-relative {\n position: relative;\n}\n.mip-wwwc {\n position: absolute;\n bottom: 15px;\n left: 15px;\n}\n.mip-wwwc p {\n color: #ffffff;\n margin: 0;\n text-align: right;\n}\n";
|
|
53042
|
+
var css_248z$C = ".paladin-main-wrapper svg {\n width: 100%;\n height: 100%;\n}\n.paladin-main-wrapper span,\n.paladin-main-wrapper div {\n user-select: none;\n}\n.paladin-main-wrapper .paladin-dicomView-dicomToolWrapper {\n background-color: #353535;\n z-index: 2;\n}\n.paladin-main-wrapper .paladin-dicomView-dicomThumbnailWrapper {\n background-color: #353535;\n border: 1px solid #727882;\n}\n.paladin-main-wrapper .paladin-dicomView-mobileWrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 0;\n background: #1D1D1D;\n padding-bottom: env(safe-area-inset-bottom);\n}\n.paladin-main-wrapper .paladin-dicomView-pcmobileWrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 0;\n}\nbutton:focus {\n outline: none;\n}\n.paladin-flex {\n display: flex;\n}\n.paladin-flex-row {\n display: flex;\n box-sizing: border-box;\n flex-direction: row;\n flex-wrap: wrap;\n flex: 0 1 auto;\n}\n.paladin-flex-col {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n flex: 0 0 auto;\n}\n.paladin-flex-center {\n justify-content: center;\n align-items: center;\n}\n.paladin-flex-end {\n justify-content: flex-end;\n}\n.paladin-flex-1 {\n flex: 1;\n}\n.paladin-full-content {\n width: 100%;\n height: 100%;\n}\n.paladin-full-height {\n height: 100%;\n}\n.paladin-full-width {\n width: 100%;\n}\n.paladin-text-center {\n text-align: center;\n}\n.paladin-global-loading {\n position: absolute;\n z-index: 9999;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.55);\n color: #fff;\n text-align: center;\n font-size: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paladin-global-loading .paladin-global-loading-close {\n position: absolute;\n z-index: 19999;\n top: 10px;\n right: 10px;\n width: 40px;\n height: 40px;\n cursor: pointer;\n}\n.paladin-global-loading .paladin-global-loading-text {\n margin-bottom: 100px;\n}\n";
|
|
52648
53043
|
styleInject$1(css_248z$C);
|
|
52649
53044
|
|
|
52650
|
-
|
|
53045
|
+
var css_248z$D = ".image-processing-container {\n position: absolute;\n width: 100%;\n height: 100%;\n text-align: center;\n background: black;\n display: flex;\n align-items: center;\n justify-content: space-around;\n flex-direction: column;\n z-index: 999;\n}\n.image-processing-container-content {\n cursor: pointer;\n}\n.image-processing-container-content svg {\n width: 50px;\n height: 50px;\n display: block;\n margin: 15px auto 0 auto;\n color: #999;\n}\n.paladin-three-wrapper {\n width: 100%;\n height: 100%;\n color: white;\n display: flex;\n}\n.paladin-three-horizontal-left {\n width: 66.6%;\n height: 100%;\n}\n.paladin-three-horizontal-right {\n width: 33.4%;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.paladin-three-vertical-top {\n width: 100%;\n height: 66.6%;\n flex-direction: row;\n}\n.paladin-three-vertical-bottom {\n width: 100%;\n height: 33.4%;\n display: flex;\n flex-direction: row;\n}\n.paladin-three-height-55 {\n width: 100%;\n height: 55%;\n}\n.paladin-three-height-45 {\n width: 100%;\n height: 45%;\n}\n.paladin-three-height-50 {\n width: 100%;\n height: 50%;\n}\n.paladin-three-width-50 {\n width: 50%;\n height: 100%;\n}\n.paladin-three-height-33 {\n width: 100%;\n height: 33.333%;\n}\n.paladin-three-width-33 {\n height: 100%;\n width: 33.333%;\n}\n.paladin-three-relative {\n position: relative;\n}\n.mip-wwwc {\n position: absolute;\n bottom: 15px;\n left: 15px;\n}\n.mip-wwwc p {\n color: #ffffff;\n margin: 0;\n text-align: right;\n}\n";
|
|
53046
|
+
styleInject$1(css_248z$D);
|
|
52651
53047
|
|
|
52652
|
-
function
|
|
53048
|
+
function _createSuper$1y(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1y(); 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); }; }
|
|
53049
|
+
|
|
53050
|
+
function _isNativeReflectConstruct$1y() { 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; } }
|
|
52653
53051
|
|
|
52654
53052
|
var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
52655
53053
|
inherits(ThreeDLayout, _Component);
|
|
52656
53054
|
|
|
52657
|
-
var _super = _createSuper$
|
|
53055
|
+
var _super = _createSuper$1y(ThreeDLayout);
|
|
52658
53056
|
|
|
52659
53057
|
function ThreeDLayout(props) {
|
|
52660
53058
|
var _this;
|
|
@@ -53063,9 +53461,9 @@ var ThreeDLayout = /*#__PURE__*/function (_Component) {
|
|
|
53063
53461
|
|
|
53064
53462
|
defineProperty(ThreeDLayout, "propTypes", {});
|
|
53065
53463
|
|
|
53066
|
-
function ownKeys$
|
|
53464
|
+
function ownKeys$P(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; }
|
|
53067
53465
|
|
|
53068
|
-
function _objectSpread$
|
|
53466
|
+
function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$P(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$P(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
53069
53467
|
|
|
53070
53468
|
var mapStateToProps$q = function mapStateToProps(state) {
|
|
53071
53469
|
var _state$paladin$viewpo = state.paladin.viewport,
|
|
@@ -53084,7 +53482,7 @@ var mapStateToProps$q = function mapStateToProps(state) {
|
|
|
53084
53482
|
};
|
|
53085
53483
|
|
|
53086
53484
|
var mergeProps$p = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
53087
|
-
return _objectSpread$
|
|
53485
|
+
return _objectSpread$Q(_objectSpread$Q(_objectSpread$Q({}, propsFromState), ownProps), {}, {
|
|
53088
53486
|
onViewPortCellClick: function onViewPortCellClick() {
|
|
53089
53487
|
propsFromDispatch.setMprActiveIndex.apply(propsFromDispatch, arguments);
|
|
53090
53488
|
},
|
|
@@ -53110,14 +53508,14 @@ function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o
|
|
|
53110
53508
|
|
|
53111
53509
|
function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
53112
53510
|
|
|
53113
|
-
function _createSuper$
|
|
53511
|
+
function _createSuper$1z(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1z(); 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); }; }
|
|
53114
53512
|
|
|
53115
|
-
function _isNativeReflectConstruct$
|
|
53513
|
+
function _isNativeReflectConstruct$1z() { 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; } }
|
|
53116
53514
|
|
|
53117
53515
|
var ThreeDLayout$1 = /*#__PURE__*/function (_Component) {
|
|
53118
53516
|
inherits(ThreeDLayout, _Component);
|
|
53119
53517
|
|
|
53120
|
-
var _super = _createSuper$
|
|
53518
|
+
var _super = _createSuper$1z(ThreeDLayout);
|
|
53121
53519
|
|
|
53122
53520
|
function ThreeDLayout(props) {
|
|
53123
53521
|
var _this;
|
|
@@ -53387,9 +53785,9 @@ var ThreeDLayout$1 = /*#__PURE__*/function (_Component) {
|
|
|
53387
53785
|
|
|
53388
53786
|
defineProperty(ThreeDLayout$1, "propTypes", {});
|
|
53389
53787
|
|
|
53390
|
-
function ownKeys$
|
|
53788
|
+
function ownKeys$Q(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; }
|
|
53391
53789
|
|
|
53392
|
-
function _objectSpread$
|
|
53790
|
+
function _objectSpread$R(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$Q(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$Q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
53393
53791
|
|
|
53394
53792
|
var mapStateToProps$r = function mapStateToProps(state) {
|
|
53395
53793
|
var currentSeries = state.paladin.viewport.currentSeries;
|
|
@@ -53399,19 +53797,19 @@ var mapStateToProps$r = function mapStateToProps(state) {
|
|
|
53399
53797
|
};
|
|
53400
53798
|
|
|
53401
53799
|
var mergeProps$q = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
53402
|
-
return _objectSpread$
|
|
53800
|
+
return _objectSpread$R(_objectSpread$R({}, propsFromState), ownProps);
|
|
53403
53801
|
};
|
|
53404
53802
|
|
|
53405
53803
|
var ConnectedVR = reactRedux.connect(mapStateToProps$r, {}, mergeProps$q)(ThreeDLayout$1);
|
|
53406
53804
|
|
|
53407
|
-
function _createSuper$
|
|
53805
|
+
function _createSuper$1A(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1A(); 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); }; }
|
|
53408
53806
|
|
|
53409
|
-
function _isNativeReflectConstruct$
|
|
53807
|
+
function _isNativeReflectConstruct$1A() { 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; } }
|
|
53410
53808
|
|
|
53411
53809
|
var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
53412
53810
|
inherits(MIPLayout, _Component);
|
|
53413
53811
|
|
|
53414
|
-
var _super = _createSuper$
|
|
53812
|
+
var _super = _createSuper$1A(MIPLayout);
|
|
53415
53813
|
|
|
53416
53814
|
function MIPLayout(props) {
|
|
53417
53815
|
var _this;
|
|
@@ -53629,9 +54027,9 @@ var MIPLayout = /*#__PURE__*/function (_Component) {
|
|
|
53629
54027
|
|
|
53630
54028
|
defineProperty(MIPLayout, "propTypes", {});
|
|
53631
54029
|
|
|
53632
|
-
function ownKeys$
|
|
54030
|
+
function ownKeys$R(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; }
|
|
53633
54031
|
|
|
53634
|
-
function _objectSpread$
|
|
54032
|
+
function _objectSpread$S(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$R(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$R(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
53635
54033
|
|
|
53636
54034
|
var mapStateToProps$s = function mapStateToProps(state) {
|
|
53637
54035
|
var currentSeries = state.paladin.viewport.currentSeries;
|
|
@@ -53641,7 +54039,7 @@ var mapStateToProps$s = function mapStateToProps(state) {
|
|
|
53641
54039
|
};
|
|
53642
54040
|
|
|
53643
54041
|
var mergeProps$r = function mergeProps(propsFromState, propsFromDispatch, ownProps) {
|
|
53644
|
-
return _objectSpread$
|
|
54042
|
+
return _objectSpread$S(_objectSpread$S(_objectSpread$S({}, propsFromState), propsFromDispatch), ownProps);
|
|
53645
54043
|
};
|
|
53646
54044
|
|
|
53647
54045
|
var ConnectedMIP = reactRedux.connect(mapStateToProps$s, {
|
|
@@ -53661,9 +54059,9 @@ function colorMapFix(viewportData) {
|
|
|
53661
54059
|
return viewportData;
|
|
53662
54060
|
}
|
|
53663
54061
|
|
|
53664
|
-
function ownKeys$
|
|
54062
|
+
function ownKeys$S(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; }
|
|
53665
54063
|
|
|
53666
|
-
function _objectSpread$
|
|
54064
|
+
function _objectSpread$T(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$S(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$S(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
53667
54065
|
/**
|
|
53668
54066
|
* 全部模式
|
|
53669
54067
|
*
|
|
@@ -53767,7 +54165,7 @@ var mergeProps$s = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
53767
54165
|
var endIndex = startIndex + onePageCount;
|
|
53768
54166
|
var series = allSeries.slice(startIndex, endIndex);
|
|
53769
54167
|
var showVerticalScroll = series && series.length / col > row;
|
|
53770
|
-
return _objectSpread$
|
|
54168
|
+
return _objectSpread$T(_objectSpread$T(_objectSpread$T(_objectSpread$T({}, ownProps), propsFromState), propsFromDispatch), {}, {
|
|
53771
54169
|
currentScrollLine: currentScrollLineImage,
|
|
53772
54170
|
series: series,
|
|
53773
54171
|
activeIndex: imageActiveIndex,
|
|
@@ -53883,9 +54281,9 @@ var mergeProps$s = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
53883
54281
|
|
|
53884
54282
|
var ConnectedDicomAllImageModeLayout = reactRedux.connect(mapStateToProps$t, mapDispatchToProps$5, mergeProps$s)(DicomLayout);
|
|
53885
54283
|
|
|
53886
|
-
function ownKeys$
|
|
54284
|
+
function ownKeys$T(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; }
|
|
53887
54285
|
|
|
53888
|
-
function _objectSpread$
|
|
54286
|
+
function _objectSpread$U(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$T(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$T(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
53889
54287
|
/**
|
|
53890
54288
|
* 一些情况下传入paladin的numberOfSeriesRelatedInstances不是实际的序列图像数量
|
|
53891
54289
|
* 所以在study传入的时候需进行修正
|
|
@@ -53896,9 +54294,9 @@ function studySeriesDataCheck (studies) {
|
|
|
53896
54294
|
if (study.checked) {
|
|
53897
54295
|
return study;
|
|
53898
54296
|
} else {
|
|
53899
|
-
return _objectSpread$
|
|
54297
|
+
return _objectSpread$U(_objectSpread$U({}, study), {}, {
|
|
53900
54298
|
series: lodash$1.map(study.series, function (series) {
|
|
53901
|
-
return _objectSpread$
|
|
54299
|
+
return _objectSpread$U(_objectSpread$U({}, series), {}, {
|
|
53902
54300
|
numberOfSeriesRelatedInstances: series.imageIds.length || 0
|
|
53903
54301
|
});
|
|
53904
54302
|
}),
|
|
@@ -53914,9 +54312,9 @@ function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o
|
|
|
53914
54312
|
|
|
53915
54313
|
function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
53916
54314
|
|
|
53917
|
-
function _createSuper$
|
|
54315
|
+
function _createSuper$1B(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1B(); 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); }; }
|
|
53918
54316
|
|
|
53919
|
-
function _isNativeReflectConstruct$
|
|
54317
|
+
function _isNativeReflectConstruct$1B() { 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; } }
|
|
53920
54318
|
|
|
53921
54319
|
var DicomLayoutContainerWrap = function DicomLayoutContainerWrap(props) {
|
|
53922
54320
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -53957,14 +54355,25 @@ index$2.configure({
|
|
|
53957
54355
|
107: 'key-add',
|
|
53958
54356
|
187: 'key-add',
|
|
53959
54357
|
109: 'key-minus',
|
|
53960
|
-
189: 'key-minus'
|
|
54358
|
+
189: 'key-minus',
|
|
54359
|
+
81: 'key-q',
|
|
54360
|
+
87: 'key-w',
|
|
54361
|
+
69: 'key-e',
|
|
54362
|
+
82: 'key-r',
|
|
54363
|
+
84: 'key-t',
|
|
54364
|
+
65: 'key-a',
|
|
54365
|
+
83: 'key-s',
|
|
54366
|
+
68: 'key-d',
|
|
54367
|
+
70: 'key-f',
|
|
54368
|
+
71: 'key-g',
|
|
54369
|
+
90: 'key-z'
|
|
53961
54370
|
}
|
|
53962
54371
|
});
|
|
53963
54372
|
|
|
53964
54373
|
var DicomView = /*#__PURE__*/function (_Component) {
|
|
53965
54374
|
inherits(DicomView, _Component);
|
|
53966
54375
|
|
|
53967
|
-
var _super = _createSuper$
|
|
54376
|
+
var _super = _createSuper$1B(DicomView);
|
|
53968
54377
|
|
|
53969
54378
|
function DicomView(props) {
|
|
53970
54379
|
var _this;
|
|
@@ -54059,7 +54468,9 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54059
54468
|
}
|
|
54060
54469
|
}); // 自定义窗值设置
|
|
54061
54470
|
|
|
54062
|
-
this.props.windowSetting && saveWwwcCustomDic(this.props.windowSetting);
|
|
54471
|
+
this.props.windowSetting && saveWwwcCustomDic(this.props.windowSetting); // 自定义的功能设置初始值
|
|
54472
|
+
|
|
54473
|
+
this.props.dicomSetting && saveCustomDicomSetting(this.props.dicomSetting);
|
|
54063
54474
|
}
|
|
54064
54475
|
}, {
|
|
54065
54476
|
key: "componentWillReceiveProps",
|
|
@@ -54460,7 +54871,8 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
54460
54871
|
study: originStudy,
|
|
54461
54872
|
windowLayoutType: this.state.windowLayoutType,
|
|
54462
54873
|
setCustomWindowLayoutType: this.setCustomWindowLayoutType,
|
|
54463
|
-
operateKeyImages: this.props.operateKeyImages
|
|
54874
|
+
operateKeyImages: this.props.operateKeyImages,
|
|
54875
|
+
dicomSettingChange: this.props.dicomSettingChange
|
|
54464
54876
|
}));
|
|
54465
54877
|
var DicomLayout = /*#__PURE__*/React__default.createElement(DicomLayoutContainerWrap, null, viewMode === '2D' && this.props.mode === 'seriesMode' && /*#__PURE__*/React__default.createElement(ConnectedDicomLayout, {
|
|
54466
54878
|
series: this.props.series,
|
|
@@ -54547,9 +54959,9 @@ function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o
|
|
|
54547
54959
|
|
|
54548
54960
|
function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
54549
54961
|
|
|
54550
|
-
function ownKeys$
|
|
54962
|
+
function ownKeys$U(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; }
|
|
54551
54963
|
|
|
54552
|
-
function _objectSpread$
|
|
54964
|
+
function _objectSpread$V(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$U(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$U(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
54553
54965
|
var throttle$9 = cornerstoneTools.importInternal('util/throttle');
|
|
54554
54966
|
var NO_CHECK_MULTI_FRAME_MODALITIES = ['DR', 'CR', 'DX', 'MG'];
|
|
54555
54967
|
|
|
@@ -54718,7 +55130,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
54718
55130
|
*
|
|
54719
55131
|
*/
|
|
54720
55132
|
|
|
54721
|
-
return _objectSpread$
|
|
55133
|
+
return _objectSpread$V(_objectSpread$V(_objectSpread$V({}, ownProps), propsFromState), {}, {
|
|
54722
55134
|
showDicomThumbnail: showDicomThumbnail,
|
|
54723
55135
|
viewMode: viewMode,
|
|
54724
55136
|
keyMap: {
|
|
@@ -54742,7 +55154,18 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
54742
55154
|
WWWC8: ['key-8'],
|
|
54743
55155
|
WWWC9: ['key-9'],
|
|
54744
55156
|
PAUSE: "space",
|
|
54745
|
-
ESC: "esc"
|
|
55157
|
+
ESC: "esc",
|
|
55158
|
+
KEYQ: ['key-q'],
|
|
55159
|
+
KEYW: ['key-w'],
|
|
55160
|
+
KEYE: ['key-e'],
|
|
55161
|
+
KEYR: ['key-r'],
|
|
55162
|
+
KEYT: ['key-t'],
|
|
55163
|
+
KEYA: ['key-a'],
|
|
55164
|
+
KEYS: ['key-s'],
|
|
55165
|
+
KEYD: ['key-d'],
|
|
55166
|
+
KEYF: ['key-f'],
|
|
55167
|
+
KEYG: ['key-g'],
|
|
55168
|
+
KEYZ: ['key-z']
|
|
54746
55169
|
},
|
|
54747
55170
|
handlers: {
|
|
54748
55171
|
PAUSE: function PAUSE() {
|
|
@@ -55015,6 +55438,48 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55015
55438
|
var activeElement = getCurrentElement();
|
|
55016
55439
|
if (!activeElement) return;
|
|
55017
55440
|
setWwwc(activeElement, wwwcCustomDic[9].ww, wwwcCustomDic[9].wc);
|
|
55441
|
+
},
|
|
55442
|
+
KEYQ: function KEYQ() {
|
|
55443
|
+
propsFromDispatch.setActiveTool('Wwwc');
|
|
55444
|
+
},
|
|
55445
|
+
KEYW: function KEYW() {
|
|
55446
|
+
propsFromDispatch.setActiveTool('StackScroll');
|
|
55447
|
+
},
|
|
55448
|
+
KEYE: function KEYE() {
|
|
55449
|
+
propsFromDispatch.setActiveTool('Zoom');
|
|
55450
|
+
},
|
|
55451
|
+
KEYR: function KEYR() {
|
|
55452
|
+
propsFromDispatch.setActiveTool('Pan');
|
|
55453
|
+
},
|
|
55454
|
+
KEYT: function KEYT() {
|
|
55455
|
+
// 反色
|
|
55456
|
+
var activeElement = getCurrentElement();
|
|
55457
|
+
if (!activeElement) return;
|
|
55458
|
+
setInvert(activeElement);
|
|
55459
|
+
},
|
|
55460
|
+
KEYA: function KEYA() {
|
|
55461
|
+
// 直线测量
|
|
55462
|
+
propsFromDispatch.setActiveTool('Length');
|
|
55463
|
+
},
|
|
55464
|
+
KEYS: function KEYS() {
|
|
55465
|
+
// 矩形测量
|
|
55466
|
+
propsFromDispatch.setActiveTool('RectangleRoi');
|
|
55467
|
+
},
|
|
55468
|
+
KEYD: function KEYD() {
|
|
55469
|
+
// CT值测量
|
|
55470
|
+
propsFromDispatch.setActiveTool('Probe');
|
|
55471
|
+
},
|
|
55472
|
+
KEYF: function KEYF() {
|
|
55473
|
+
// 连续测量切换
|
|
55474
|
+
propsFromDispatch.toggleMeasure();
|
|
55475
|
+
},
|
|
55476
|
+
KEYG: function KEYG() {
|
|
55477
|
+
// 扫描定位线
|
|
55478
|
+
propsFromDispatch.activeDicomFunction('ReferenceLines');
|
|
55479
|
+
},
|
|
55480
|
+
KEYZ: function KEYZ() {
|
|
55481
|
+
// 显示隐藏图像信息
|
|
55482
|
+
propsFromDispatch.toggleOverlayText();
|
|
55018
55483
|
}
|
|
55019
55484
|
},
|
|
55020
55485
|
getCurrentElement: getCurrentElement,
|
|
@@ -55063,7 +55528,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55063
55528
|
},
|
|
55064
55529
|
initSeries: function () {
|
|
55065
55530
|
var _initSeries2 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(changeStudy, callback) {
|
|
55066
|
-
var data, synchronizer, linkSynchronizer, linkImageModeSynchronizer, linkScrollSynchronizer, options, _study, series, needCheckMultiFrame, hasMultiFrame, modalitiesInStudy, i, item, wado, url, dataSet, numFrames, imageIds, _i, imageId, seriesCurrentIndex, firstReady, maxRequest, retry, clearCacheEveryLoad, dicom, frameTime, linkToolLocalDefaultState, realActiveIndex, continuousMeasureLocalDefaultState;
|
|
55531
|
+
var data, resetToolMergeState, synchronizer, linkSynchronizer, linkImageModeSynchronizer, linkScrollSynchronizer, options, _study, series, needCheckMultiFrame, hasMultiFrame, modalitiesInStudy, i, item, wado, url, dataSet, numFrames, imageIds, _i, imageId, seriesCurrentIndex, firstReady, maxRequest, retry, clearCacheEveryLoad, dicom, frameTime, linkToolLocalDefaultState, realActiveIndex, continuousMeasureLocalDefaultState;
|
|
55067
55532
|
|
|
55068
55533
|
return regenerator.wrap(function _callee$(_context) {
|
|
55069
55534
|
while (1) {
|
|
@@ -55071,6 +55536,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55071
55536
|
case 0:
|
|
55072
55537
|
/**
|
|
55073
55538
|
* 初始化study
|
|
55539
|
+
* - 是否是匿名显示
|
|
55074
55540
|
* - 初始化 cornerstoneWADOImageLoader token
|
|
55075
55541
|
* - 初始化 global toolState (study中存在serverToolState的情况)
|
|
55076
55542
|
* - 初始化 手术路径规划的缓存数据 (study中是否存在centesisPath)
|
|
@@ -55086,6 +55552,13 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55086
55552
|
* 检查io是否为true是的话打开同屏开关
|
|
55087
55553
|
*/
|
|
55088
55554
|
console.log('[paladin] - init series');
|
|
55555
|
+
|
|
55556
|
+
if (ownProps.anonymous && ownProps.anonymous === true) {
|
|
55557
|
+
setInfoAnonymous();
|
|
55558
|
+
} else {
|
|
55559
|
+
setNotAnonymous();
|
|
55560
|
+
}
|
|
55561
|
+
|
|
55089
55562
|
cornerstoneWADOImageLoader.configure({
|
|
55090
55563
|
beforeSend: function beforeSend(xhr) {
|
|
55091
55564
|
xhr.setRequestHeader('Authorization', "bearer ".concat(ownProps.token));
|
|
@@ -55109,7 +55582,16 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55109
55582
|
|
|
55110
55583
|
propsFromDispatch.resetViewPort(); // 4.重置工具栏状态
|
|
55111
55584
|
|
|
55112
|
-
|
|
55585
|
+
resetToolMergeState = {};
|
|
55586
|
+
|
|
55587
|
+
if (ownProps.dicomSetting && ownProps.dicomSetting.leftMouseTool) {
|
|
55588
|
+
if (lodash$1.includes(dicomSettingLeftMouseTools, ownProps.dicomSetting.leftMouseTool)) {
|
|
55589
|
+
resetToolMergeState.activeTool = ownProps.dicomSetting.leftMouseTool;
|
|
55590
|
+
resetToolMergeState.originActiveTool = ownProps.dicomSetting.leftMouseTool;
|
|
55591
|
+
}
|
|
55592
|
+
}
|
|
55593
|
+
|
|
55594
|
+
propsFromDispatch.resetToolsState(resetToolMergeState); // 5.重置loaded(预加载关联进度条的数据)
|
|
55113
55595
|
|
|
55114
55596
|
propsFromDispatch.clearSeriesLoaded(); // 6.重置所有sync element
|
|
55115
55597
|
|
|
@@ -55161,32 +55643,32 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55161
55643
|
});
|
|
55162
55644
|
|
|
55163
55645
|
if (!needCheckMultiFrame) {
|
|
55164
|
-
_context.next =
|
|
55646
|
+
_context.next = 47;
|
|
55165
55647
|
break;
|
|
55166
55648
|
}
|
|
55167
55649
|
|
|
55168
55650
|
i = 0;
|
|
55169
55651
|
|
|
55170
|
-
case
|
|
55652
|
+
case 31:
|
|
55171
55653
|
if (!(i < series.length)) {
|
|
55172
|
-
_context.next =
|
|
55654
|
+
_context.next = 47;
|
|
55173
55655
|
break;
|
|
55174
55656
|
}
|
|
55175
55657
|
|
|
55176
55658
|
item = series[i];
|
|
55177
55659
|
|
|
55178
55660
|
if (!(item.numberOfSeriesRelatedInstances && item.numberOfSeriesRelatedInstances === 1)) {
|
|
55179
|
-
_context.next =
|
|
55661
|
+
_context.next = 44;
|
|
55180
55662
|
break;
|
|
55181
55663
|
}
|
|
55182
55664
|
|
|
55183
55665
|
wado = lodash$1.cloneDeep(item.imageIds[0].split(':'));
|
|
55184
55666
|
wado.shift();
|
|
55185
55667
|
url = wado.join(':');
|
|
55186
|
-
_context.next =
|
|
55668
|
+
_context.next = 39;
|
|
55187
55669
|
return cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.load(url, cornerstoneWADOImageLoader.internal.xhrRequest);
|
|
55188
55670
|
|
|
55189
|
-
case
|
|
55671
|
+
case 39:
|
|
55190
55672
|
dataSet = _context.sent;
|
|
55191
55673
|
// 这边如果加载了的话 进度条也需要匹配上
|
|
55192
55674
|
propsFromDispatch.setSeriesLoaded(item.seriesInstanceUID);
|
|
@@ -55201,7 +55683,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55201
55683
|
imageIds.push(imageId);
|
|
55202
55684
|
}
|
|
55203
55685
|
|
|
55204
|
-
series[i] = _objectSpread$
|
|
55686
|
+
series[i] = _objectSpread$V(_objectSpread$V({}, item), {}, {
|
|
55205
55687
|
imageIds: imageIds,
|
|
55206
55688
|
numberOfSeriesRelatedInstances: numFrames,
|
|
55207
55689
|
isMultiFrame: true
|
|
@@ -55210,12 +55692,12 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55210
55692
|
|
|
55211
55693
|
cornerstoneWADOImageLoader.wadouri.dataSetCacheManager.purge();
|
|
55212
55694
|
|
|
55213
|
-
case
|
|
55695
|
+
case 44:
|
|
55214
55696
|
i++;
|
|
55215
|
-
_context.next =
|
|
55697
|
+
_context.next = 31;
|
|
55216
55698
|
break;
|
|
55217
55699
|
|
|
55218
|
-
case
|
|
55700
|
+
case 47:
|
|
55219
55701
|
// 初始化seriesCurrentIndex
|
|
55220
55702
|
seriesCurrentIndex = Array.apply(null, Array(series.length)).map(function () {
|
|
55221
55703
|
return 0;
|
|
@@ -55266,15 +55748,15 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55266
55748
|
|
|
55267
55749
|
callback && callback({
|
|
55268
55750
|
hasChange: hasMultiFrame,
|
|
55269
|
-
study: [_objectSpread$
|
|
55751
|
+
study: [_objectSpread$V(_objectSpread$V({}, _study[0]), {}, {
|
|
55270
55752
|
series: series
|
|
55271
55753
|
})]
|
|
55272
55754
|
}); // 如果有frameTime的话设置fps
|
|
55273
55755
|
|
|
55274
|
-
_context.next =
|
|
55756
|
+
_context.next = 62;
|
|
55275
55757
|
return loadAndCacheDicom(series[0].imageIds[0]);
|
|
55276
55758
|
|
|
55277
|
-
case
|
|
55759
|
+
case 62:
|
|
55278
55760
|
dicom = _context.sent;
|
|
55279
55761
|
|
|
55280
55762
|
if (dicom && dicom.FrameTime && dicom.FrameTime.value) {
|
|
@@ -55308,7 +55790,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
55308
55790
|
propsFromDispatch.setMeasure(false);
|
|
55309
55791
|
}
|
|
55310
55792
|
|
|
55311
|
-
case
|
|
55793
|
+
case 68:
|
|
55312
55794
|
case "end":
|
|
55313
55795
|
return _context.stop();
|
|
55314
55796
|
}
|
|
@@ -55411,7 +55893,9 @@ var ConnectedDicomView = reactRedux.connect(mapStateToProps$u, {
|
|
|
55411
55893
|
setSeriesCurrentIndex: setSeriesCurrentIndex,
|
|
55412
55894
|
setSeries: setSeries,
|
|
55413
55895
|
setLinkSeries: setLinkSeries,
|
|
55414
|
-
setMeasure: setMeasure
|
|
55896
|
+
setMeasure: setMeasure,
|
|
55897
|
+
toggleMeasure: toggleMeasure,
|
|
55898
|
+
toggleOverlayText: toggleOverlayText
|
|
55415
55899
|
}, mergeProps$t, withRef())(DicomView);
|
|
55416
55900
|
|
|
55417
55901
|
function withRef() {
|