hellfire 0.23.2 → 0.23.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 +4 -0
- package/dist/index.js +55 -22
- 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.23.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.23.2...v0.23.3) (2022-08-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.23.2](http://10.16.100.57/diffusion/115/paladin/compare/v0.23.1...v0.23.2) (2022-08-11)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -30542,7 +30542,6 @@ var _default$x = function _default(element) {
|
|
|
30542
30542
|
var __signature__$1N = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
30543
30543
|
return a;
|
|
30544
30544
|
};
|
|
30545
|
-
var scrollToIndex$1 = cornerstoneTools.importInternal('util/scrollToIndex');
|
|
30546
30545
|
var getToolState$f = cornerstoneTools.getToolState;
|
|
30547
30546
|
var globalCineTimer;
|
|
30548
30547
|
|
|
@@ -30576,7 +30575,7 @@ function startAutoCine(activeElement, options) {
|
|
|
30576
30575
|
newImageIndex = max;
|
|
30577
30576
|
}
|
|
30578
30577
|
|
|
30579
|
-
scrollToIndex
|
|
30578
|
+
cornerstoneTools.scrollToIndex(activeElement, newImageIndex);
|
|
30580
30579
|
}, timeStap);
|
|
30581
30580
|
}
|
|
30582
30581
|
|
|
@@ -30599,7 +30598,6 @@ var _default$y = {
|
|
|
30599
30598
|
return;
|
|
30600
30599
|
}
|
|
30601
30600
|
|
|
30602
|
-
reactHotLoader.register(scrollToIndex$1, "scrollToIndex", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/custom/autoCine.js");
|
|
30603
30601
|
reactHotLoader.register(getToolState$f, "getToolState", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/custom/autoCine.js");
|
|
30604
30602
|
reactHotLoader.register(globalCineTimer, "globalCineTimer", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/custom/autoCine.js");
|
|
30605
30603
|
reactHotLoader.register(startAutoCine, "startAutoCine", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/custom/autoCine.js");
|
|
@@ -43725,7 +43723,9 @@ var __signature__$2z = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoa
|
|
|
43725
43723
|
};
|
|
43726
43724
|
|
|
43727
43725
|
var mapStateToProps$6 = function mapStateToProps(state) {
|
|
43728
|
-
var
|
|
43726
|
+
var _state$paladin$viewpo = state.paladin.viewport,
|
|
43727
|
+
activeIndex = _state$paladin$viewpo.activeIndex,
|
|
43728
|
+
currentSeries = _state$paladin$viewpo.currentSeries;
|
|
43729
43729
|
var _state$paladin$tools$ = state.paladin.tools.action,
|
|
43730
43730
|
cineFps = _state$paladin$tools$.cineFps,
|
|
43731
43731
|
Cine = _state$paladin$tools$.Cine,
|
|
@@ -43734,7 +43734,8 @@ var mapStateToProps$6 = function mapStateToProps(state) {
|
|
|
43734
43734
|
activeElement: getElement(activeIndex),
|
|
43735
43735
|
cineFps: cineFps,
|
|
43736
43736
|
Cine: Cine,
|
|
43737
|
-
cineDireaction: cineDireaction
|
|
43737
|
+
cineDireaction: cineDireaction,
|
|
43738
|
+
currentSeries: currentSeries
|
|
43738
43739
|
};
|
|
43739
43740
|
};
|
|
43740
43741
|
|
|
@@ -43742,7 +43743,8 @@ var mergeProps$6 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
43742
43743
|
var activeElement = propsFromState.activeElement,
|
|
43743
43744
|
cineFps = propsFromState.cineFps,
|
|
43744
43745
|
Cine = propsFromState.Cine,
|
|
43745
|
-
cineDireaction = propsFromState.cineDireaction
|
|
43746
|
+
cineDireaction = propsFromState.cineDireaction,
|
|
43747
|
+
currentSeries = propsFromState.currentSeries;
|
|
43746
43748
|
var setCineFps = propsFromDispatch.setCineFps,
|
|
43747
43749
|
setCineDireaction = propsFromDispatch.setCineDireaction,
|
|
43748
43750
|
activeDicomFunction = propsFromDispatch.activeDicomFunction;
|
|
@@ -43763,9 +43765,16 @@ var mergeProps$6 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
43763
43765
|
break;
|
|
43764
43766
|
|
|
43765
43767
|
case 'forward':
|
|
43768
|
+
var _cineFps = cineFps;
|
|
43769
|
+
|
|
43770
|
+
if (currentSeries.frameFps) {
|
|
43771
|
+
setCineFps(currentSeries.frameFps);
|
|
43772
|
+
_cineFps = currentSeries.frameFps;
|
|
43773
|
+
}
|
|
43774
|
+
|
|
43766
43775
|
_default$E.autoCine.startAutoCine(activeElement, {
|
|
43767
43776
|
direction: -1,
|
|
43768
|
-
fps:
|
|
43777
|
+
fps: _cineFps
|
|
43769
43778
|
});
|
|
43770
43779
|
setCineDireaction(-1);
|
|
43771
43780
|
|
|
@@ -43776,9 +43785,16 @@ var mergeProps$6 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
43776
43785
|
break;
|
|
43777
43786
|
|
|
43778
43787
|
case 'backward':
|
|
43788
|
+
var __cineFps = cineFps;
|
|
43789
|
+
|
|
43790
|
+
if (currentSeries.frameFps) {
|
|
43791
|
+
setCineFps(currentSeries.frameFps);
|
|
43792
|
+
__cineFps = currentSeries.frameFps;
|
|
43793
|
+
}
|
|
43794
|
+
|
|
43779
43795
|
_default$E.autoCine.startAutoCine(activeElement, {
|
|
43780
43796
|
direction: 1,
|
|
43781
|
-
fps:
|
|
43797
|
+
fps: __cineFps
|
|
43782
43798
|
});
|
|
43783
43799
|
setCineDireaction(1);
|
|
43784
43800
|
|
|
@@ -44377,7 +44393,8 @@ var mapStateToProps$9 = function mapStateToProps(state) {
|
|
|
44377
44393
|
activeElement: activeElement,
|
|
44378
44394
|
MPR: MPR,
|
|
44379
44395
|
mode: mode,
|
|
44380
|
-
Surgery: Surgery
|
|
44396
|
+
Surgery: Surgery,
|
|
44397
|
+
CPR: CPR
|
|
44381
44398
|
};
|
|
44382
44399
|
};
|
|
44383
44400
|
|
|
@@ -44389,7 +44406,8 @@ var mergeProps$9 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
44389
44406
|
var activeElement = propsFromState.activeElement,
|
|
44390
44407
|
MPR = propsFromState.MPR,
|
|
44391
44408
|
mode = propsFromState.mode,
|
|
44392
|
-
Surgery = propsFromState.Surgery
|
|
44409
|
+
Surgery = propsFromState.Surgery,
|
|
44410
|
+
CPR = propsFromState.CPR;
|
|
44393
44411
|
return _objectSpread$t(_objectSpread$t({}, ownProps), {}, {
|
|
44394
44412
|
onRowClick: function onRowClick(key) {
|
|
44395
44413
|
switch (key) {
|
|
@@ -44399,6 +44417,11 @@ var mergeProps$9 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
44399
44417
|
|
|
44400
44418
|
case 'zoom':
|
|
44401
44419
|
resetZoom(activeElement, MPR);
|
|
44420
|
+
|
|
44421
|
+
if (MPR || Surgery || CPR) {
|
|
44422
|
+
set('scale')(activeElement, 0);
|
|
44423
|
+
}
|
|
44424
|
+
|
|
44402
44425
|
break;
|
|
44403
44426
|
|
|
44404
44427
|
case 'pan':
|
|
@@ -44416,7 +44439,7 @@ var mergeProps$9 = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
44416
44439
|
case 'all':
|
|
44417
44440
|
reset$1(activeElement, mode);
|
|
44418
44441
|
|
|
44419
|
-
if (MPR || Surgery) {
|
|
44442
|
+
if (MPR || Surgery || CPR) {
|
|
44420
44443
|
set('scale')(activeElement, 0);
|
|
44421
44444
|
}
|
|
44422
44445
|
|
|
@@ -50262,7 +50285,7 @@ function _objectSpread$B(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
50262
50285
|
var __signature__$2$ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
50263
50286
|
return a;
|
|
50264
50287
|
};
|
|
50265
|
-
var scrollToIndex$
|
|
50288
|
+
var scrollToIndex$1 = _default$E.scrollToIndex;
|
|
50266
50289
|
|
|
50267
50290
|
var mapStateToProps$e = function mapStateToProps(state) {
|
|
50268
50291
|
var _state$paladin$tools$ = state.paladin.tools.customization,
|
|
@@ -50453,11 +50476,10 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50453
50476
|
reset: function reset() {
|
|
50454
50477
|
// 重置
|
|
50455
50478
|
var activeElement = getElement(realActiveIndex);
|
|
50456
|
-
console.log('activeElement', activeElement);
|
|
50457
50479
|
|
|
50458
50480
|
reset$1(activeElement, mode);
|
|
50459
50481
|
|
|
50460
|
-
if (MPR || Surgery) {
|
|
50482
|
+
if (MPR || Surgery || CPR) {
|
|
50461
50483
|
set('scale')(activeElement, 0);
|
|
50462
50484
|
}
|
|
50463
50485
|
},
|
|
@@ -50486,7 +50508,7 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50486
50508
|
prevIndex = maxIndex;
|
|
50487
50509
|
}
|
|
50488
50510
|
|
|
50489
|
-
scrollToIndex$
|
|
50511
|
+
scrollToIndex$1(activeElement, prevIndex);
|
|
50490
50512
|
},
|
|
50491
50513
|
nextImage: function nextImage() {
|
|
50492
50514
|
// 下一张
|
|
@@ -50510,7 +50532,7 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50510
50532
|
nextIndex = 0;
|
|
50511
50533
|
}
|
|
50512
50534
|
|
|
50513
|
-
scrollToIndex$
|
|
50535
|
+
scrollToIndex$1(activeElement, nextIndex);
|
|
50514
50536
|
},
|
|
50515
50537
|
// 切换模式
|
|
50516
50538
|
// key: 1.SeriesMode返回序列模式 2.ImageMode进入图像模式
|
|
@@ -50686,7 +50708,7 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50686
50708
|
case 34:
|
|
50687
50709
|
if (links && links.length > 0) {
|
|
50688
50710
|
lodash$1.forEach(links, function (link) {
|
|
50689
|
-
scrollToIndex$
|
|
50711
|
+
scrollToIndex$1(getElement(link), _currentImageIdIndex);
|
|
50690
50712
|
});
|
|
50691
50713
|
}
|
|
50692
50714
|
|
|
@@ -50732,9 +50754,16 @@ var mergeProps$e = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
50732
50754
|
if (Cine) {
|
|
50733
50755
|
_default$E.autoCine.stopAutoCine();
|
|
50734
50756
|
} else {
|
|
50757
|
+
var _cineFps = cineFps;
|
|
50758
|
+
|
|
50759
|
+
if (currentSeries.frameFps) {
|
|
50760
|
+
propsFromDispatch.setCineFps(currentSeries.frameFps);
|
|
50761
|
+
_cineFps = currentSeries.frameFps;
|
|
50762
|
+
}
|
|
50763
|
+
|
|
50735
50764
|
_default$E.autoCine.startAutoCine(activeElement, {
|
|
50736
50765
|
direction: 1,
|
|
50737
|
-
fps:
|
|
50766
|
+
fps: _cineFps
|
|
50738
50767
|
});
|
|
50739
50768
|
propsFromDispatch.setCineDireaction(1);
|
|
50740
50769
|
}
|
|
@@ -51282,7 +51311,8 @@ var ConnectedDicomTool = reactRedux.connect(mapStateToProps$e, {
|
|
|
51282
51311
|
closeOnePickLayout: closeOnePickLayout,
|
|
51283
51312
|
setActiveIndex: setActiveIndex,
|
|
51284
51313
|
setLayout: setLayout,
|
|
51285
|
-
setLastLayout: setLastLayout
|
|
51314
|
+
setLastLayout: setLastLayout,
|
|
51315
|
+
setCineFps: setCineFps
|
|
51286
51316
|
}, mergeProps$e)(DicomTool);
|
|
51287
51317
|
var _default$11 = ConnectedDicomTool;
|
|
51288
51318
|
|
|
@@ -51293,7 +51323,7 @@ var _default$11 = ConnectedDicomTool;
|
|
|
51293
51323
|
return;
|
|
51294
51324
|
}
|
|
51295
51325
|
|
|
51296
|
-
reactHotLoader.register(scrollToIndex$
|
|
51326
|
+
reactHotLoader.register(scrollToIndex$1, "scrollToIndex", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomTool/ConnectedDicomTool.js");
|
|
51297
51327
|
reactHotLoader.register(mapStateToProps$e, "mapStateToProps", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomTool/ConnectedDicomTool.js");
|
|
51298
51328
|
reactHotLoader.register(mergeProps$e, "mergeProps", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomTool/ConnectedDicomTool.js");
|
|
51299
51329
|
reactHotLoader.register(ConnectedDicomTool, "ConnectedDicomTool", "/Users/huyeqing/workspace/chainz/paladin/src/Viewer/DicomTool/ConnectedDicomTool.js");
|
|
@@ -60085,7 +60115,7 @@ var mergeProps$o = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
60085
60115
|
},
|
|
60086
60116
|
initSeries: function () {
|
|
60087
60117
|
var _initSeries2 = asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(changeStudy, callback) {
|
|
60088
|
-
var data, synchronizer, linkSynchronizer, linkImageModeSynchronizer, linkScrollSynchronizer, options, _study, series, needCheckMultiFrame, hasMultiFrame, i, item, wado, url, dataSet, numFrames, imageIds, _i, imageId, seriesCurrentIndex, firstReady, maxRequest, retry, clearCacheEveryLoad;
|
|
60118
|
+
var data, synchronizer, linkSynchronizer, linkImageModeSynchronizer, linkScrollSynchronizer, options, _study, series, needCheckMultiFrame, hasMultiFrame, i, item, wado, url, dataSet, numFrames, imageIds, _i, imageId, frameTime, fps, seriesCurrentIndex, firstReady, maxRequest, retry, clearCacheEveryLoad;
|
|
60089
60119
|
|
|
60090
60120
|
return regenerator.wrap(function _callee$(_context) {
|
|
60091
60121
|
while (1) {
|
|
@@ -60210,10 +60240,13 @@ var mergeProps$o = function mergeProps(propsFromState, propsFromDispatch, ownPro
|
|
|
60210
60240
|
imageIds.push(imageId);
|
|
60211
60241
|
}
|
|
60212
60242
|
|
|
60243
|
+
frameTime = dataSet.intString('x00181063');
|
|
60244
|
+
fps = parseInt(1000 / frameTime, 10) || 3;
|
|
60213
60245
|
series[i] = _objectSpread$M(_objectSpread$M({}, item), {}, {
|
|
60214
60246
|
imageIds: imageIds,
|
|
60215
60247
|
numberOfSeriesRelatedInstances: numFrames,
|
|
60216
|
-
isMultiFrame: true
|
|
60248
|
+
isMultiFrame: true,
|
|
60249
|
+
frameFps: fps
|
|
60217
60250
|
});
|
|
60218
60251
|
}
|
|
60219
60252
|
|