hellfire 0.28.6 → 0.28.7
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 +27 -52
- 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.28.7](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.6...v0.28.7) (2024-11-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.28.6](http://10.16.100.57/diffusion/115/paladin/compare/v0.28.5...v0.28.6) (2024-09-29)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -47958,7 +47958,7 @@ var ConnectedDicomTool = reactRedux.connect(mapStateToProps$k, {
|
|
|
47958
47958
|
closeGlobalLoading: closeGlobalLoading
|
|
47959
47959
|
}, mergeProps$k)(DicomTool);
|
|
47960
47960
|
|
|
47961
|
-
var css_248z$t = ".paladin-thumb-content {\n position: relative;\n height: 66px;\n width: 66px;\n border-width: 1px;\n border-style: solid;\n cursor: pointer;\n}\n.paladin-thumb-content .paladin-thumb-bottom {\n white-space: nowrap;\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n color: #faa80a;\n text-align: center;\n font-size: 14px;\n z-index: 2;\n}\n.paladin-thumb-content .paladin-thumb-bottom-mobile {\n font-size: 10px;\n}\n.paladin-thumb-content .paladin-thumb-mask {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1;\n}\n.paladin-thumb-content .paladin-thumb-process {\n position: absolute;\n z-index: 1;\n top: 0;\n height: 4px;\n width: 100%;\n background: #ffffff;\n overflow: hidden;\n}\n.paladin-thumb-content .paladin-thumb-process .paladin-thumb-process-inner {\n background: #faa80a;\n height: 100%;\n}\n.mobile-thumb {\n width: 50px;\n height: 50px;\n}\n.paladin-thumb-svg {\n cursor: pointer;\n justify-content: center;\n}\n.paladin-thumb-svg svg {\n fill: #fff;\n}\n.paladin-thumb-svg:hover {\n background-color: #616772;\n}\n.paladin-thumb-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 15px;\n}\n.paladin-thumb-button svg {\n fill: #fff;\n}\n.paladin-thumb-button:hover {\n background-color: #616772;\n}\n.paladin-thumb-button svg {\n width: 11px !important;\n}\n.paladin-fresh-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 25px;\n}\n.paladin-fresh-button svg {\n fill: #fff;\n}\n.paladin-fresh-button:hover {\n background-color: #616772;\n}\n.paladin-fresh-button svg {\n width: 15px !important;\n}\n.paladin-thumb-study {\n cursor: pointer;\n font-size: 14px;\n line-height: 40px;\n padding: 0 12px;\n color: #ffffff;\n}\n.paladin-thumb-viewport {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.paladin-thumb-viewport h4,\n.paladin-thumb-viewport p {\n font-size: 10px;\n}\n.paladin-thumb-study-wrapper {\n border-bottom: 1px solid #727882;\n}\n.paladin-thumb-context-wrapper {\n padding: 4px 2px;\n}\n";
|
|
47961
|
+
var css_248z$t = ".paladin-thumb-content {\n position: relative;\n height: 66px;\n width: 66px;\n border-width: 1px;\n border-style: solid;\n cursor: pointer;\n}\n.paladin-thumb-content .paladin-thumb-bottom {\n white-space: nowrap;\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n color: #faa80a;\n text-align: center;\n font-size: 14px;\n z-index: 2;\n}\n.paladin-thumb-content .paladin-thumb-bottom-mobile,\n.paladin-thumb-content .paladin-thumb-top-mobile {\n font-size: 10px;\n}\n.paladin-thumb-content .paladin-thumb-top {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n color: yellow;\n font-size: 14px;\n z-index: 2;\n}\n.paladin-thumb-content .paladin-thumb-mask {\n position: absolute;\n width: 100%;\n height: 100%;\n z-index: 1;\n}\n.paladin-thumb-content .paladin-thumb-process {\n position: absolute;\n z-index: 1;\n top: 0;\n height: 4px;\n width: 100%;\n background: #ffffff;\n overflow: hidden;\n}\n.paladin-thumb-content .paladin-thumb-process .paladin-thumb-process-inner {\n background: #faa80a;\n height: 100%;\n}\n.mobile-thumb {\n width: 50px;\n height: 50px;\n}\n.paladin-thumb-svg {\n cursor: pointer;\n justify-content: center;\n}\n.paladin-thumb-svg svg {\n fill: #fff;\n}\n.paladin-thumb-svg:hover {\n background-color: #616772;\n}\n.paladin-thumb-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 15px;\n}\n.paladin-thumb-button svg {\n fill: #fff;\n}\n.paladin-thumb-button:hover {\n background-color: #616772;\n}\n.paladin-thumb-button svg {\n width: 11px !important;\n}\n.paladin-fresh-button {\n cursor: pointer;\n justify-content: center;\n padding: 0 25px;\n}\n.paladin-fresh-button svg {\n fill: #fff;\n}\n.paladin-fresh-button:hover {\n background-color: #616772;\n}\n.paladin-fresh-button svg {\n width: 15px !important;\n}\n.paladin-thumb-study {\n cursor: pointer;\n font-size: 14px;\n line-height: 40px;\n padding: 0 12px;\n color: #ffffff;\n}\n.paladin-thumb-viewport {\n width: 100%;\n height: 100%;\n position: relative;\n overflow: hidden;\n}\n.paladin-thumb-viewport h4,\n.paladin-thumb-viewport p {\n font-size: 10px;\n}\n.paladin-thumb-study-wrapper {\n border-bottom: 1px solid #727882;\n}\n.paladin-thumb-context-wrapper {\n padding: 4px 2px;\n}\n";
|
|
47962
47962
|
styleInject$1(css_248z$t);
|
|
47963
47963
|
|
|
47964
47964
|
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); }
|
|
@@ -48056,26 +48056,6 @@ function _isNativeReflectConstruct$1p() { if (typeof Reflect === "undefined" ||
|
|
|
48056
48056
|
var loadIndicatorDelay = 300;
|
|
48057
48057
|
var isMobile$2 = ua.isDeviceTypeMobile();
|
|
48058
48058
|
|
|
48059
|
-
function capitalizeFirstLetter(string) {
|
|
48060
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
48061
|
-
}
|
|
48062
|
-
|
|
48063
|
-
function initializeTools(cornerstoneTools, tools, element) {
|
|
48064
|
-
Array.from(tools).forEach(function (tool) {
|
|
48065
|
-
var apiTool = cornerstoneTools["".concat(tool.name, "Tool")] || tool.apiTool;
|
|
48066
|
-
|
|
48067
|
-
if (apiTool) {
|
|
48068
|
-
cornerstoneTools.addToolForElement(element, apiTool, tool.props);
|
|
48069
|
-
} else {
|
|
48070
|
-
throw new Error("Tool not found: ".concat(tool.name, "Tool"));
|
|
48071
|
-
}
|
|
48072
|
-
|
|
48073
|
-
if (tool.mode) {
|
|
48074
|
-
cornerstoneTools["setTool".concat(capitalizeFirstLetter(tool.mode), "ForElement")](element, tool.name);
|
|
48075
|
-
}
|
|
48076
|
-
});
|
|
48077
|
-
}
|
|
48078
|
-
|
|
48079
48059
|
var ThumbnailViewport = /*#__PURE__*/function (_Component) {
|
|
48080
48060
|
inherits(ThumbnailViewport, _Component);
|
|
48081
48061
|
|
|
@@ -48129,7 +48109,6 @@ var ThumbnailViewport = /*#__PURE__*/function (_Component) {
|
|
|
48129
48109
|
|
|
48130
48110
|
if (_this.element) {
|
|
48131
48111
|
cornerstone.displayImage(_this.element, image);
|
|
48132
|
-
cornerstoneTools.setToolActiveForElement(_this.element, 'OrientationMarkers');
|
|
48133
48112
|
}
|
|
48134
48113
|
}, function (error) {
|
|
48135
48114
|
_this.clearLoadHandler();
|
|
@@ -48160,9 +48139,7 @@ var ThumbnailViewport = /*#__PURE__*/function (_Component) {
|
|
|
48160
48139
|
cornerstone.getEnabledElement(this.element).canvas.width = size;
|
|
48161
48140
|
cornerstone.getEnabledElement(this.element).canvas.height = size;
|
|
48162
48141
|
this.addEventListener();
|
|
48163
|
-
unusedSynchronizer.add(this.element);
|
|
48164
|
-
|
|
48165
|
-
initializeTools(cornerstoneTools, this.props.availableTools, this.element);
|
|
48142
|
+
unusedSynchronizer.add(this.element);
|
|
48166
48143
|
this.loadImage();
|
|
48167
48144
|
}
|
|
48168
48145
|
}, {
|
|
@@ -48222,20 +48199,6 @@ var ThumbnailViewport = /*#__PURE__*/function (_Component) {
|
|
|
48222
48199
|
return ThumbnailViewport;
|
|
48223
48200
|
}(React.Component);
|
|
48224
48201
|
|
|
48225
|
-
defineProperty(ThumbnailViewport, "defaultProps", {
|
|
48226
|
-
availableTools: [{
|
|
48227
|
-
name: 'OrientationMarkers',
|
|
48228
|
-
props: {
|
|
48229
|
-
color: "yellow",
|
|
48230
|
-
paddingRight: isMobile$2 ? 5 : 3,
|
|
48231
|
-
paddingLeft: isMobile$2 ? 2 : 1,
|
|
48232
|
-
paddingBottom: isMobile$2 ? 6 : 2,
|
|
48233
|
-
paddingTop: 0,
|
|
48234
|
-
fontSize: isMobile$2 ? 9 : 11
|
|
48235
|
-
}
|
|
48236
|
-
}]
|
|
48237
|
-
});
|
|
48238
|
-
|
|
48239
48202
|
function _createSuper$1q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1q(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); }; }
|
|
48240
48203
|
|
|
48241
48204
|
function _isNativeReflectConstruct$1q() { 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; } }
|
|
@@ -48243,7 +48206,8 @@ var isMobile$3 = ua.isDeviceTypeMobile();
|
|
|
48243
48206
|
|
|
48244
48207
|
var ThumbContent = function ThumbContent(props) {
|
|
48245
48208
|
var series = props.series,
|
|
48246
|
-
loaded = props.loaded
|
|
48209
|
+
loaded = props.loaded,
|
|
48210
|
+
hasAI = props.hasAI;
|
|
48247
48211
|
var loadedCount = loaded && loaded[series.seriesInstanceUID];
|
|
48248
48212
|
var totalCount = series && series.numberOfSeriesRelatedInstances;
|
|
48249
48213
|
var width = 0;
|
|
@@ -48271,7 +48235,9 @@ var ThumbContent = function ThumbContent(props) {
|
|
|
48271
48235
|
style: {
|
|
48272
48236
|
'width': "".concat(width * 100, "%")
|
|
48273
48237
|
}
|
|
48274
|
-
})), /*#__PURE__*/React__default.createElement(
|
|
48238
|
+
})), hasAI && /*#__PURE__*/React__default.createElement("div", {
|
|
48239
|
+
className: isMobile$3 ? "paladin-thumb-top paladin-thumb-top-mobile" : "paladin-thumb-top"
|
|
48240
|
+
}, "AI"), /*#__PURE__*/React__default.createElement(ThumbnailViewport, {
|
|
48275
48241
|
imageId: series.imageIds[0]
|
|
48276
48242
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
48277
48243
|
className: isMobile$3 ? "paladin-thumb-bottom paladin-thumb-bottom-mobile" : "paladin-thumb-bottom"
|
|
@@ -48357,7 +48323,8 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
|
48357
48323
|
var _this$props = this.props,
|
|
48358
48324
|
currentSeriesUID = _this$props.currentSeriesUID,
|
|
48359
48325
|
study = _this$props.study,
|
|
48360
|
-
loaded = _this$props.loaded
|
|
48326
|
+
loaded = _this$props.loaded,
|
|
48327
|
+
aiResult = _this$props.aiResult;
|
|
48361
48328
|
var _this$state2 = this.state,
|
|
48362
48329
|
currentStudy = _this$state2.currentStudy,
|
|
48363
48330
|
thumbnailLoaded = _this$state2.thumbnailLoaded;
|
|
@@ -48403,6 +48370,12 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
|
48403
48370
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
48404
48371
|
className: "paladin-flex"
|
|
48405
48372
|
}, studyItem.series && studyItem.series.map(function (series, i) {
|
|
48373
|
+
var hasAI = false;
|
|
48374
|
+
|
|
48375
|
+
if (aiResult && aiResult.seriesUID === series.seriesInstanceUID) {
|
|
48376
|
+
hasAI = true;
|
|
48377
|
+
}
|
|
48378
|
+
|
|
48406
48379
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
48407
48380
|
className: "paladin-thumb-context-wrapper",
|
|
48408
48381
|
style: {
|
|
@@ -48422,7 +48395,8 @@ var DicomThumbnailLayout = /*#__PURE__*/function (_Component) {
|
|
|
48422
48395
|
}, /*#__PURE__*/React__default.createElement(ThumbContent, {
|
|
48423
48396
|
series: series,
|
|
48424
48397
|
loaded: loaded,
|
|
48425
|
-
currentSeriesUID: currentSeriesUID
|
|
48398
|
+
currentSeriesUID: currentSeriesUID,
|
|
48399
|
+
hasAI: hasAI
|
|
48426
48400
|
})));
|
|
48427
48401
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
48428
48402
|
className: "paladin-fresh-button paladin-flex-col",
|
|
@@ -50162,11 +50136,11 @@ function setToolsPassiveForElement(cornerstoneTools, tools, element) {
|
|
|
50162
50136
|
});
|
|
50163
50137
|
}
|
|
50164
50138
|
|
|
50165
|
-
function capitalizeFirstLetter
|
|
50139
|
+
function capitalizeFirstLetter(string) {
|
|
50166
50140
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
50167
50141
|
}
|
|
50168
50142
|
|
|
50169
|
-
function initializeTools
|
|
50143
|
+
function initializeTools(cornerstoneTools, tools, element) {
|
|
50170
50144
|
Array.from(tools).forEach(function (tool) {
|
|
50171
50145
|
var apiTool = cornerstoneTools["".concat(tool.name, "Tool")] || tool.apiTool;
|
|
50172
50146
|
|
|
@@ -50177,7 +50151,7 @@ function initializeTools$1(cornerstoneTools, tools, element) {
|
|
|
50177
50151
|
}
|
|
50178
50152
|
|
|
50179
50153
|
if (tool.mode) {
|
|
50180
|
-
cornerstoneTools["setTool".concat(capitalizeFirstLetter
|
|
50154
|
+
cornerstoneTools["setTool".concat(capitalizeFirstLetter(tool.mode), "ForElement")](element, tool.name);
|
|
50181
50155
|
}
|
|
50182
50156
|
});
|
|
50183
50157
|
}
|
|
@@ -51616,7 +51590,7 @@ var DicomViewport = /*#__PURE__*/function (_Component) {
|
|
|
51616
51590
|
|
|
51617
51591
|
this.addEventListener(); // 初始化工具
|
|
51618
51592
|
|
|
51619
|
-
initializeTools
|
|
51593
|
+
initializeTools(cornerstoneTools, this.availableTools, element);
|
|
51620
51594
|
|
|
51621
51595
|
if (this.props.mpr && this.props.mpr === ImagePlanDirection.CPR) {
|
|
51622
51596
|
return;
|
|
@@ -67410,7 +67384,7 @@ function _createSuper$1K(Derived) { var hasNativeReflectConstruct = _isNativeRef
|
|
|
67410
67384
|
function _isNativeReflectConstruct$1K() { 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; } }
|
|
67411
67385
|
var loadIndicatorDelay$2 = 300;
|
|
67412
67386
|
|
|
67413
|
-
function capitalizeFirstLetter$
|
|
67387
|
+
function capitalizeFirstLetter$1(string) {
|
|
67414
67388
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
67415
67389
|
}
|
|
67416
67390
|
|
|
@@ -67420,7 +67394,7 @@ function setToolsPassiveForElement$1(cornerstoneTools, tools, element) {
|
|
|
67420
67394
|
});
|
|
67421
67395
|
}
|
|
67422
67396
|
|
|
67423
|
-
function initializeTools$
|
|
67397
|
+
function initializeTools$1(cornerstoneTools, tools, element) {
|
|
67424
67398
|
Array.from(tools).forEach(function (tool) {
|
|
67425
67399
|
var apiTool = cornerstoneTools["".concat(tool.name, "Tool")] || tool.apiTool;
|
|
67426
67400
|
|
|
@@ -67431,7 +67405,7 @@ function initializeTools$2(cornerstoneTools, tools, element) {
|
|
|
67431
67405
|
}
|
|
67432
67406
|
|
|
67433
67407
|
if (tool.mode) {
|
|
67434
|
-
cornerstoneTools["setTool".concat(capitalizeFirstLetter$
|
|
67408
|
+
cornerstoneTools["setTool".concat(capitalizeFirstLetter$1(tool.mode), "ForElement")](element, tool.name);
|
|
67435
67409
|
}
|
|
67436
67410
|
});
|
|
67437
67411
|
}
|
|
@@ -67638,7 +67612,7 @@ var FilmViewport = /*#__PURE__*/function (_Component) {
|
|
|
67638
67612
|
var element = this.element;
|
|
67639
67613
|
cornerstone.enable(element, {});
|
|
67640
67614
|
this.addEventListener();
|
|
67641
|
-
initializeTools$
|
|
67615
|
+
initializeTools$1(cornerstoneTools, this.props.availableTools, element);
|
|
67642
67616
|
this.loadImage();
|
|
67643
67617
|
unusedSynchronizer.add(this.element);
|
|
67644
67618
|
}
|
|
@@ -68762,7 +68736,8 @@ var DicomView = /*#__PURE__*/function (_Component) {
|
|
|
68762
68736
|
className: "paladin-dicomView-dicomThumbnailWrapper"
|
|
68763
68737
|
}, /*#__PURE__*/React__default.createElement(ConnectedDicomThumbnail, {
|
|
68764
68738
|
study: originStudy,
|
|
68765
|
-
onRefresh: onRefresh
|
|
68739
|
+
onRefresh: onRefresh,
|
|
68740
|
+
aiResult: this.props.aiResult
|
|
68766
68741
|
}));
|
|
68767
68742
|
var GlobalLoading = /*#__PURE__*/React__default.createElement("div", {
|
|
68768
68743
|
className: "paladin-global-loading"
|