hellfire 0.27.9 → 0.27.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.27.10](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.9...v0.27.10) (2024-04-08)
6
+
7
+
8
+
5
9
  ## [0.27.9](http://10.16.100.57/diffusion/115/paladin/compare/v0.27.8...v0.27.9) (2024-01-02)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -45550,6 +45550,117 @@ function getMinMaxPixelData(pixels) {
45550
45550
  return [minPixelValue, maxPixelValue];
45551
45551
  }
45552
45552
 
45553
+ var scrollToIndex$3 = cornerstoneTools.scrollToIndex;
45554
+ /**
45555
+ * 过滤出要联动的element:
45556
+ * 1.numberOfSeriesRelatedInstances相同
45557
+ * 2.两个层平行
45558
+ * 过滤后:
45559
+ * 1.手动同步一次当前instance索引
45560
+ * 2.同步links到redux
45561
+ * 3.同步links到Synchronizer
45562
+ */
45563
+
45564
+ function openAutoLink (_x) {
45565
+ return _ref$1m.apply(this, arguments);
45566
+ }
45567
+
45568
+ function _ref$1m() {
45569
+ _ref$1m = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(props) {
45570
+ var col, row, currentScrollLine, activeIndex, seriesCurrentIndex, series, setLinkSeries, linkSynchronizer, linkScrollSynchronizer, realActiveIndex, realSeriesIndex, _currentImageIdIndex, _currentSeries, currentImageId, currentDicom, currentPos, links, startIndex, endIndex, currentLayoutSeries, _series, i, seriesItem, imageId, dicom, comparePos, angle, activeElement;
45571
+
45572
+ return regenerator.wrap(function _callee$(_context) {
45573
+ while (1) {
45574
+ switch (_context.prev = _context.next) {
45575
+ case 0:
45576
+ col = props.col, row = props.row, currentScrollLine = props.currentScrollLine, activeIndex = props.activeIndex, seriesCurrentIndex = props.seriesCurrentIndex, series = props.series, setLinkSeries = props.setLinkSeries, linkSynchronizer = props.linkSynchronizer, linkScrollSynchronizer = props.linkScrollSynchronizer, realActiveIndex = props.realActiveIndex;
45577
+ realSeriesIndex = col * currentScrollLine + activeIndex;
45578
+ _currentImageIdIndex = seriesCurrentIndex[realSeriesIndex];
45579
+ _currentSeries = series[realSeriesIndex];
45580
+ currentImageId = _currentSeries.imageIds[_currentImageIdIndex];
45581
+ _context.next = 7;
45582
+ return loadAndCacheDicom(currentImageId);
45583
+
45584
+ case 7:
45585
+ currentDicom = _context.sent;
45586
+ currentPos = getPosFromDicom(currentDicom);
45587
+ links = [];
45588
+
45589
+ if (!currentPos) {
45590
+ _context.next = 28;
45591
+ break;
45592
+ }
45593
+
45594
+ // 当前layout中的series集合
45595
+ startIndex = col * currentScrollLine;
45596
+ endIndex = startIndex + col * row;
45597
+ currentLayoutSeries = series.slice(startIndex, endIndex);
45598
+ _series = lodash$1.cloneDeep(currentLayoutSeries);
45599
+ i = 0;
45600
+
45601
+ case 16:
45602
+ if (!(i < _series.length)) {
45603
+ _context.next = 28;
45604
+ break;
45605
+ }
45606
+
45607
+ seriesItem = _series[i];
45608
+
45609
+ if (!(seriesItem.seriesInstanceUID !== _currentSeries.seriesInstanceUID && seriesItem.numberOfSeriesRelatedInstances === _currentSeries.numberOfSeriesRelatedInstances)) {
45610
+ _context.next = 25;
45611
+ break;
45612
+ }
45613
+
45614
+ imageId = seriesItem.imageIds[_currentImageIdIndex];
45615
+ _context.next = 22;
45616
+ return loadAndCacheDicom(imageId);
45617
+
45618
+ case 22:
45619
+ dicom = _context.sent;
45620
+ comparePos = getPosFromDicom(dicom);
45621
+
45622
+ if (comparePos) {
45623
+ angle = comparePosSameLayer(currentPos, comparePos);
45624
+
45625
+ if (angle === 0) {
45626
+ links.push(i);
45627
+ }
45628
+ }
45629
+
45630
+ case 25:
45631
+ i++;
45632
+ _context.next = 16;
45633
+ break;
45634
+
45635
+ case 28:
45636
+ if (links && links.length > 0) {
45637
+ lodash$1.forEach(links, function (link) {
45638
+ scrollToIndex$3(getElement(link), _currentImageIdIndex);
45639
+ });
45640
+ }
45641
+
45642
+ setLinkSeries(links);
45643
+ activeElement = getElement(realActiveIndex);
45644
+
45645
+ if (links && links.length > 0) {
45646
+ lodash$1.forEach(links, function (link) {
45647
+ linkSynchronizer.add(getElement(link));
45648
+ linkScrollSynchronizer.add(getElement(link));
45649
+ });
45650
+ linkSynchronizer.add(activeElement);
45651
+ linkScrollSynchronizer.add(activeElement);
45652
+ }
45653
+
45654
+ case 32:
45655
+ case "end":
45656
+ return _context.stop();
45657
+ }
45658
+ }
45659
+ }, _callee);
45660
+ }));
45661
+ return _ref$1m.apply(this, arguments);
45662
+ }
45663
+
45553
45664
  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; } } }; }
45554
45665
 
45555
45666
  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); }
@@ -45559,7 +45670,7 @@ function _arrayLikeToArray$b(arr, len) { if (len == null || len > arr.length) le
45559
45670
  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; }
45560
45671
 
45561
45672
  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; }
45562
- var scrollToIndex$3 = cornerstoneTools.scrollToIndex;
45673
+ var scrollToIndex$4 = cornerstoneTools.scrollToIndex;
45563
45674
 
45564
45675
  var mapStateToProps$j = function mapStateToProps(state) {
45565
45676
  var _state$paladin$tools$ = state.paladin.tools.customization,
@@ -45846,7 +45957,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
45846
45957
  prevIndex = maxIndex;
45847
45958
  }
45848
45959
 
45849
- scrollToIndex$3(activeElement, prevIndex);
45960
+ scrollToIndex$4(activeElement, prevIndex);
45850
45961
  },
45851
45962
  nextImage: function nextImage() {
45852
45963
  // 下一张
@@ -45870,7 +45981,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
45870
45981
  nextIndex = 0;
45871
45982
  }
45872
45983
 
45873
- scrollToIndex$3(activeElement, nextIndex);
45984
+ scrollToIndex$4(activeElement, nextIndex);
45874
45985
  },
45875
45986
  // 切换模式
45876
45987
  // key: 1.SeriesMode返回序列模式 2.ImageMode进入图像模式
@@ -45952,8 +46063,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
45952
46063
  },
45953
46064
  autoLink: function () {
45954
46065
  var _autoLink = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(refresh) {
45955
- var setLinkSeries, realSeriesIndex, _currentImageIdIndex, _currentSeries, currentImageId, currentDicom, currentPos, links, startIndex, endIndex, currentLayoutSeries, _series, i, seriesItem, imageId, dicom, comparePos, angle, activeElement;
45956
-
46066
+ var setLinkSeries;
45957
46067
  return regenerator.wrap(function _callee$(_context) {
45958
46068
  while (1) {
45959
46069
  switch (_context.prev = _context.next) {
@@ -45963,106 +46073,30 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
45963
46073
  linkSynchronizer.destroy();
45964
46074
  linkScrollSynchronizer.destroy();
45965
46075
 
45966
- if (!(Link && !refresh)) {
45967
- _context.next = 7;
45968
- break;
45969
- }
45970
-
45971
- // 关闭
45972
- setLinkSeries([]);
45973
- _context.next = 38;
45974
- break;
45975
-
45976
- case 7:
45977
- // 开启 or 刷新
45978
-
45979
- /**
45980
- * 过滤出要联动的element:
45981
- * 1.numberOfSeriesRelatedInstances相同
45982
- * 2.两个层平行
45983
- * 过滤后:
45984
- * 1.手动同步一次当前instance索引
45985
- * 2.同步links到redux
45986
- * 3.同步links到Synchronizer
45987
- */
45988
- realSeriesIndex = col * currentScrollLine + activeIndex;
45989
- _currentImageIdIndex = seriesCurrentIndex[realSeriesIndex];
45990
- _currentSeries = series[realSeriesIndex];
45991
- currentImageId = _currentSeries.imageIds[_currentImageIdIndex];
45992
- _context.next = 13;
45993
- return loadAndCacheDicom(currentImageId);
45994
-
45995
- case 13:
45996
- currentDicom = _context.sent;
45997
- currentPos = getPosFromDicom(currentDicom);
45998
- links = [];
45999
-
46000
- if (!currentPos) {
46001
- _context.next = 34;
46002
- break;
46003
- }
46004
-
46005
- // 当前layout中的series集合
46006
- startIndex = col * currentScrollLine;
46007
- endIndex = startIndex + col * row;
46008
- currentLayoutSeries = series.slice(startIndex, endIndex);
46009
- _series = lodash$1.cloneDeep(currentLayoutSeries);
46010
- i = 0;
46011
-
46012
- case 22:
46013
- if (!(i < _series.length)) {
46014
- _context.next = 34;
46015
- break;
46016
- }
46017
-
46018
- seriesItem = _series[i];
46019
-
46020
- if (!(seriesItem.seriesInstanceUID !== _currentSeries.seriesInstanceUID && seriesItem.numberOfSeriesRelatedInstances === _currentSeries.numberOfSeriesRelatedInstances)) {
46021
- _context.next = 31;
46022
- break;
46023
- }
46024
-
46025
- imageId = seriesItem.imageIds[_currentImageIdIndex];
46026
- _context.next = 28;
46027
- return loadAndCacheDicom(imageId);
46028
-
46029
- case 28:
46030
- dicom = _context.sent;
46031
- comparePos = getPosFromDicom(dicom);
46032
-
46033
- if (comparePos) {
46034
- angle = comparePosSameLayer(currentPos, comparePos);
46035
-
46036
- if (angle === 0) {
46037
- links.push(i);
46038
- }
46039
- }
46040
-
46041
- case 31:
46042
- i++;
46043
- _context.next = 22;
46044
- break;
46045
-
46046
- case 34:
46047
- if (links && links.length > 0) {
46048
- lodash$1.forEach(links, function (link) {
46049
- scrollToIndex$3(getElement(link), _currentImageIdIndex);
46050
- });
46051
- }
46052
-
46053
- setLinkSeries(links);
46054
- activeElement = getElement(realActiveIndex);
46055
-
46056
- if (links && links.length > 0) {
46057
- lodash$1.forEach(links, function (link) {
46058
- linkSynchronizer.add(getElement(link));
46059
- linkScrollSynchronizer.add(getElement(link));
46076
+ if (Link && !refresh) {
46077
+ // 关闭
46078
+ window.localStorage.setItem('hellfire-link-tool-default-state', 'close');
46079
+ setLinkSeries([]);
46080
+ } else {
46081
+ // 开启 or 刷新
46082
+ // 1.本地记忆联动的初始状态
46083
+ window.localStorage.setItem('hellfire-link-tool-default-state', 'open'); // 2.处理
46084
+
46085
+ openAutoLink({
46086
+ col: col,
46087
+ row: row,
46088
+ currentScrollLine: currentScrollLine,
46089
+ activeIndex: activeIndex,
46090
+ seriesCurrentIndex: seriesCurrentIndex,
46091
+ series: series,
46092
+ setLinkSeries: setLinkSeries,
46093
+ linkSynchronizer: linkSynchronizer,
46094
+ linkScrollSynchronizer: linkScrollSynchronizer,
46095
+ realActiveIndex: realActiveIndex
46060
46096
  });
46061
- linkSynchronizer.add(activeElement);
46062
- linkScrollSynchronizer.add(activeElement);
46063
46097
  }
46064
46098
 
46065
- case 38:
46099
+ case 4:
46066
46100
  case "end":
46067
46101
  return _context.stop();
46068
46102
  }
@@ -46841,7 +46875,7 @@ styleInject$1(css_248z$r);
46841
46875
 
46842
46876
  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); }
46843
46877
 
46844
- var _ref$1m = /*#__PURE__*/React__default.createElement("path", {
46878
+ var _ref$1n = /*#__PURE__*/React__default.createElement("path", {
46845
46879
  d: "M3658.026 10.064c5.915-.329 11.359 2.241 14.432 6.357l-5.498 2.292 14.488 7.78 4.678-15.768-5.437 2.266c-4.491-7.516-13.347-12.235-23.194-11.634-12.153.737-22.056 9.888-23.034 21.285l8.693.746c.612-7.121 7.003-12.847 14.872-13.324zM3661.635 45.864c-6.105.345-11.715-2.402-14.729-6.753l4.887-2.037-13.401-7.196-4.324 14.584 4.657-1.941c4.157 7.321 12.398 12.102 21.752 12.102.558 0 1.121-.017 1.687-.051 12.151-.737 22.054-9.888 23.032-21.285l-8.691-.746c-.615 7.12-7.005 12.846-14.87 13.323z"
46846
46880
  });
46847
46881
 
@@ -46850,7 +46884,7 @@ const SvgRefresh$1 = props => /*#__PURE__*/React__default.createElement("svg", _
46850
46884
  height: 56,
46851
46885
  viewBox: "3630 0 60 56",
46852
46886
  fill: "currentColor"
46853
- }, props), _ref$1m);
46887
+ }, props), _ref$1n);
46854
46888
 
46855
46889
  var css_248z$s = ".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";
46856
46890
  styleInject$1(css_248z$s);
@@ -47821,7 +47855,7 @@ styleInject$1(css_248z$u);
47821
47855
 
47822
47856
  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); }
47823
47857
 
47824
- var _ref$1n = /*#__PURE__*/React__default.createElement("path", {
47858
+ var _ref$1o = /*#__PURE__*/React__default.createElement("path", {
47825
47859
  d: "M30.054 23.768l-2.964 2.946q-.339.339-.804.339t-.804-.339L16 17.232l-9.482 9.482q-.339.339-.804.339t-.804-.339l-2.964-2.946q-.339-.339-.339-.813t.339-.813L15.196 8.91q.339-.339.804-.339t.804.339l13.25 13.232q.339.339.339.813t-.339.813z"
47826
47860
  });
47827
47861
 
@@ -47830,11 +47864,11 @@ const SvgChevronUp = props => /*#__PURE__*/React__default.createElement("svg", _
47830
47864
  height: 32,
47831
47865
  viewBox: "0 0 32 32",
47832
47866
  fill: "currentColor"
47833
- }, props), _ref$1n);
47867
+ }, props), _ref$1o);
47834
47868
 
47835
47869
  function _extends$1q() { _extends$1q = 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$1q.apply(this, arguments); }
47836
47870
 
47837
- var _ref$1o = /*#__PURE__*/React__default.createElement("path", {
47871
+ var _ref$1p = /*#__PURE__*/React__default.createElement("path", {
47838
47872
  d: "M30.054 14.429l-13.25 13.232Q16.465 28 16 28t-.804-.339L1.946 14.429q-.339-.339-.339-.813t.339-.813L4.91 9.857q.339-.339.804-.339t.804.339L16 19.339l9.482-9.482q.339-.339.804-.339t.804.339l2.964 2.946q.339.339.339.813t-.339.813z"
47839
47873
  });
47840
47874
 
@@ -47843,7 +47877,7 @@ const SvgChevronDown = props => /*#__PURE__*/React__default.createElement("svg",
47843
47877
  height: 32,
47844
47878
  viewBox: "0 0 32 32",
47845
47879
  fill: "currentColor"
47846
- }, props), _ref$1o);
47880
+ }, props), _ref$1p);
47847
47881
 
47848
47882
  var css_248z$v = ".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";
47849
47883
  styleInject$1(css_248z$v);
@@ -54614,6 +54648,10 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
54614
54648
  var getCurrentElement = function getCurrentElement() {
54615
54649
  return getActiveElement(mode, activeIndex, imageActiveIndex, threeDMode, mprActiveIndex, Surgery, surgeryActiveIndex, CPR);
54616
54650
  };
54651
+
54652
+ var getCurrentRealActiveIndex = function getCurrentRealActiveIndex() {
54653
+ return getRealActiveIndex(mode, activeIndex, imageActiveIndex, MPR, mprActiveIndex, Surgery, surgeryActiveIndex, CPR);
54654
+ };
54617
54655
  /**
54618
54656
  * 前进、后退快捷键,加入频率控制
54619
54657
  * 频率依据序列数量决定
@@ -55005,7 +55043,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
55005
55043
  },
55006
55044
  initSeries: function () {
55007
55045
  var _initSeries2 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(changeStudy, callback) {
55008
- 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;
55046
+ 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, toolLocalDefaultState, realActiveIndex;
55009
55047
 
55010
55048
  return regenerator.wrap(function _callee$(_context) {
55011
55049
  while (1) {
@@ -55023,6 +55061,7 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
55023
55061
  * - 初始化viewport缓存池
55024
55062
  * - 初始化图像预加载
55025
55063
  * - 如果有frameTime的话设置fps
55064
+ * - 初始化本地存储的工具初始状态(目前包含:自动联动)
55026
55065
  *
55027
55066
  * 检查io是否为true是的话打开同屏开关
55028
55067
  */
@@ -55221,9 +55260,29 @@ var mergeProps$t = function mergeProps(propsFromState, propsFromDispatch, ownPro
55221
55260
  if (dicom && dicom.FrameTime && dicom.FrameTime.value) {
55222
55261
  frameTime = dicom.FrameTime.value;
55223
55262
  propsFromDispatch.setCineFps(lodash$1.round(1000 / frameTime, 3) || 3);
55263
+ } // 初始化本地存储的工具初始状态(目前包含:自动联动)
55264
+
55265
+
55266
+ toolLocalDefaultState = window.localStorage.getItem('hellfire-link-tool-default-state');
55267
+
55268
+ if (toolLocalDefaultState && toolLocalDefaultState === 'open') {
55269
+ propsFromDispatch.activeDicomFunction("Link");
55270
+ realActiveIndex = getCurrentRealActiveIndex();
55271
+ openAutoLink({
55272
+ col: col,
55273
+ row: row,
55274
+ currentScrollLine: currentScrollLine,
55275
+ activeIndex: activeIndex,
55276
+ seriesCurrentIndex: seriesCurrentIndex,
55277
+ series: series,
55278
+ setLinkSeries: propsFromDispatch.setLinkSeries,
55279
+ linkSynchronizer: linkSynchronizer,
55280
+ linkScrollSynchronizer: linkScrollSynchronizer,
55281
+ realActiveIndex: realActiveIndex
55282
+ });
55224
55283
  }
55225
55284
 
55226
- case 61:
55285
+ case 63:
55227
55286
  case "end":
55228
55287
  return _context.stop();
55229
55288
  }
@@ -55324,7 +55383,8 @@ var ConnectedDicomView = reactRedux.connect(mapStateToProps$u, {
55324
55383
  setKeyImage: setKeyImage,
55325
55384
  setOriginStudyData: setOriginStudyData,
55326
55385
  setSeriesCurrentIndex: setSeriesCurrentIndex,
55327
- setSeries: setSeries
55386
+ setSeries: setSeries,
55387
+ setLinkSeries: setLinkSeries
55328
55388
  }, mergeProps$t, withRef())(DicomView);
55329
55389
 
55330
55390
  function withRef() {