hellfire 0.17.4 → 0.17.5

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.5](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.4...v0.17.5) (2021-12-27)
6
+
7
+
8
+
5
9
  ## [0.17.4](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.3...v0.17.4) (2021-12-22)
6
10
 
7
11
 
package/dist/index.js CHANGED
@@ -49480,10 +49480,13 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
49480
49480
  currentScrollLine = propsFromState.currentScrollLine,
49481
49481
  lastActiveIndex = propsFromState.lastActiveIndex; // 此处open/close onepickmode里包含scrollLine的设置是为了避免重复的render
49482
49482
 
49483
+ var resizeIndex = 0;
49484
+
49483
49485
  if (onePickMode) {
49484
49486
  // 当前是op 即将进入custom 回到lastScrollLine
49485
49487
  propsFromDispatch.closeOnePickLayout(lastScrollLine);
49486
49488
  propsFromDispatch.setActiveIndex(lastActiveIndex);
49489
+ resizeIndex = lastActiveIndex;
49487
49490
  } else {
49488
49491
  // 当前是custom 即将进入op
49489
49492
  // 自定义布局为1*1时不触发
@@ -49500,6 +49503,15 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
49500
49503
  linkSynchronizer.destroy();
49501
49504
  linkScrollSynchronizer.destroy();
49502
49505
  }
49506
+
49507
+ setTimeout(function () {
49508
+ try {
49509
+ var element = getElement(resizeIndex);
49510
+ cornerstone.resize(element, true);
49511
+ } catch (e) {
49512
+ console.log('ignore element not enabled event');
49513
+ }
49514
+ });
49503
49515
  },
49504
49516
  // 首次加载把激活状态的element添加到sync中
49505
49517
  onImageFirstRender: function onImageFirstRender(index) {