hellfire 0.17.11 → 0.17.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.17.12](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.11...v0.17.12) (2022-01-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.17.11](http://10.16.100.57/diffusion/115/paladin/compare/v0.17.10...v0.17.11) (2021-12-30)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -29044,12 +29044,13 @@ var __signature__$1W = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoa
|
|
|
29044
29044
|
return a;
|
|
29045
29045
|
};
|
|
29046
29046
|
|
|
29047
|
-
|
|
29047
|
+
function handleCornerstoneImageCache() {
|
|
29048
|
+
var isMobileTablet = _default$D.isDeviceTypeMobileOrTablet();
|
|
29048
29049
|
|
|
29049
|
-
if (!isMobileTablet) {
|
|
29050
|
-
|
|
29050
|
+
if (!isMobileTablet) {
|
|
29051
|
+
cornerstone.imageCache.setMaximumSizeBytes(1024 * 1024 * 1024 * 4);
|
|
29052
|
+
}
|
|
29051
29053
|
}
|
|
29052
|
-
|
|
29053
29054
|
_default$E.external.cornerstone = cornerstone;
|
|
29054
29055
|
_default$E.external.Hammer = Hammer;
|
|
29055
29056
|
_default$E.external.cornerstoneMath = cornerstoneMath;
|
|
@@ -29145,7 +29146,7 @@ cornerstone.registerImageLoader('centesis', _default$G);
|
|
|
29145
29146
|
return;
|
|
29146
29147
|
}
|
|
29147
29148
|
|
|
29148
|
-
reactHotLoader.register(
|
|
29149
|
+
reactHotLoader.register(handleCornerstoneImageCache, "handleCornerstoneImageCache", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/initCornerstone.js");
|
|
29149
29150
|
reactHotLoader.register(pixelRatio, "pixelRatio", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/initCornerstone.js");
|
|
29150
29151
|
reactHotLoader.register(config, "config", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/initCornerstone.js");
|
|
29151
29152
|
reactHotLoader.register(synchronizer, "synchronizer", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomView/initCornerstone.js");
|
|
@@ -52615,6 +52616,7 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
52615
52616
|
initSeries: function initSeries(changeStudy) {
|
|
52616
52617
|
/**
|
|
52617
52618
|
* 初始化study
|
|
52619
|
+
* - 重置一下image cache 以防内存溢出
|
|
52618
52620
|
* - 初始化 cornerstoneWADOImageLoader token
|
|
52619
52621
|
* - 初始化 global toolState (study中存在serverToolState的情况)
|
|
52620
52622
|
* - 初始化 手术路径规划的缓存数据 (study中是否存在centesisPath)
|
|
@@ -52627,6 +52629,8 @@ var mergeProps$j = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
52627
52629
|
*
|
|
52628
52630
|
* 检查io是否为true是的话打开同屏开关
|
|
52629
52631
|
*/
|
|
52632
|
+
console.log('[paladin] - init series');
|
|
52633
|
+
handleCornerstoneImageCache();
|
|
52630
52634
|
cornerstoneWADOImageLoader.configure({
|
|
52631
52635
|
beforeSend: function beforeSend(xhr) {
|
|
52632
52636
|
xhr.setRequestHeader('Authorization', "bearer ".concat(ownProps.token));
|