hellfire 0.17.2 → 0.17.3

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.17.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.2...v0.17.3) (2021-12-15)
6
+
7
+
8
+
5
9
  ## [0.17.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.1...v0.17.2) (2021-12-14)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -51576,6 +51576,43 @@ var _default$18 = ConnectedVR;
51576
51576
  enterModule && enterModule(module);
51577
51577
  })();
51578
51578
 
51579
+ var __signature__$3c = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
51580
+ return a;
51581
+ };
51582
+
51583
+ function colorMapFix(viewportData) {
51584
+ viewportData.imageViewports = lodash$1.map(viewportData.imageViewports, function (seriesViewportArr) {
51585
+ return lodash$1.map(seriesViewportArr, function (item) {
51586
+ if (item.colorMapId) {
51587
+ item.colormap = cornerstone.colors.getColormap(item.colorMapId);
51588
+ }
51589
+
51590
+ return item;
51591
+ });
51592
+ });
51593
+ return viewportData;
51594
+ }
51595
+
51596
+ (function () {
51597
+ var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
51598
+
51599
+ if (!reactHotLoader) {
51600
+ return;
51601
+ }
51602
+
51603
+ reactHotLoader.register(colorMapFix, "colorMapFix", "/Users/huyeqing/workspace/chainz/paladin/src/utils/colorMapMethod.js");
51604
+ })();
51605
+
51606
+ (function () {
51607
+ var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
51608
+ leaveModule && leaveModule(module);
51609
+ })();
51610
+
51611
+ (function () {
51612
+ var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
51613
+ enterModule && enterModule(module);
51614
+ })();
51615
+
51579
51616
  function _createForOfIteratorHelper$d(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$f(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; } } }; }
51580
51617
 
51581
51618
  function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(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$f(o, minLen); }
@@ -51586,7 +51623,7 @@ function _createSuper$1i(Derived) { var hasNativeReflectConstruct = _isNativeRef
51586
51623
 
51587
51624
  function _isNativeReflectConstruct$1i() { 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; } }
51588
51625
 
51589
- var __signature__$3c = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
51626
+ var __signature__$3d = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
51590
51627
  return a;
51591
51628
  };
51592
51629
 
@@ -51838,7 +51875,7 @@ var DicomView = /*#__PURE__*/function (_Component) {
51838
51875
  if (value.cornerstoneState) {
51839
51876
  // 从server获取当前viewport数据 更新element 然后重新渲染
51840
51877
  // 序列模式 图像模式
51841
- var cornerstoneState = value.cornerstoneState;
51878
+ var cornerstoneState = colorMapFix(value.cornerstoneState);
51842
51879
  set$1('all', cornerstoneState);
51843
51880
  var imageViewports = cornerstoneState.imageViewports;
51844
51881
 
@@ -51969,7 +52006,9 @@ var DicomView = /*#__PURE__*/function (_Component) {
51969
52006
  break;
51970
52007
 
51971
52008
  case "cornerstone_state_change":
51972
- set$1('all', data);
52009
+ var _data = colorMapFix(data);
52010
+
52011
+ set$1('all', _data);
51973
52012
  break;
51974
52013
 
51975
52014
  case "cornerstone_measurement_reset":
@@ -52157,7 +52196,7 @@ function ownKeys$E(object, enumerableOnly) { var keys = Object.keys(object); if
52157
52196
 
52158
52197
  function _objectSpread$F(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$E(Object(source), true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$E(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
52159
52198
 
52160
- var __signature__$3d = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
52199
+ var __signature__$3e = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
52161
52200
  return a;
52162
52201
  };
52163
52202
  var scroll = _default$E.importInternal('util/scroll');
@@ -52717,7 +52756,7 @@ var _default$19 = ConnectedDicomView;
52717
52756
  enterModule && enterModule(module);
52718
52757
  })();
52719
52758
 
52720
- var __signature__$3e = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
52759
+ var __signature__$3f = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
52721
52760
  return a;
52722
52761
  };
52723
52762
  var _default$1a = _default$19;