hellfire 0.18.3 → 0.19.0
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 +43 -27
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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.19.0](http://10.16.100.57/diffusion/115/paladin/compare/v0.18.3...v0.19.0) (2022-02-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
5
9
|
## [0.18.3](http://10.16.100.57/diffusion/115/paladin/compare/v0.18.2...v0.18.3) (2022-01-29)
|
|
6
10
|
|
|
7
11
|
|
package/dist/index.js
CHANGED
|
@@ -10871,7 +10871,6 @@ var triggerEvent$2 = cornerstoneTools.importInternal('util/triggerEvent');
|
|
|
10871
10871
|
var external$9 = cornerstoneTools.external,
|
|
10872
10872
|
getToolState$5 = cornerstoneTools.getToolState,
|
|
10873
10873
|
loadHandlerManager = cornerstoneTools.loadHandlerManager,
|
|
10874
|
-
requestPoolManager = cornerstoneTools.requestPoolManager,
|
|
10875
10874
|
EVENTS$2 = cornerstoneTools.EVENTS;
|
|
10876
10875
|
/**
|
|
10877
10876
|
* Scrolls through the stack to the image index requested.
|
|
@@ -11005,9 +11004,7 @@ var _default$h = function _default(element, newImageIdIndex, options, callback)
|
|
|
11005
11004
|
imagePromise = loadAndCacheImagePlus(newImageId);
|
|
11006
11005
|
}
|
|
11007
11006
|
|
|
11008
|
-
imagePromise.then(doneCallback, failCallback);
|
|
11009
|
-
|
|
11010
|
-
requestPoolManager.startGrabbing();
|
|
11007
|
+
imagePromise.then(doneCallback, failCallback);
|
|
11011
11008
|
|
|
11012
11009
|
if (_options.eventTrigger) {
|
|
11013
11010
|
triggerEvent$2(element, EVENTS$2.STACK_SCROLL, eventData);
|
|
@@ -11025,7 +11022,6 @@ var _default$h = function _default(element, newImageIdIndex, options, callback)
|
|
|
11025
11022
|
reactHotLoader.register(external$9, "external", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11026
11023
|
reactHotLoader.register(getToolState$5, "getToolState", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11027
11024
|
reactHotLoader.register(loadHandlerManager, "loadHandlerManager", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11028
|
-
reactHotLoader.register(requestPoolManager, "requestPoolManager", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11029
11025
|
reactHotLoader.register(EVENTS$2, "EVENTS", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11030
11026
|
reactHotLoader.register(_default$h, "default", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/scrollToIndex.js");
|
|
11031
11027
|
})();
|
|
@@ -23503,24 +23499,24 @@ var __signature__$1q = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoa
|
|
|
23503
23499
|
|
|
23504
23500
|
var elementToolOptions = {};
|
|
23505
23501
|
/**
|
|
23506
|
-
* Retrieve the options object associated with a particular
|
|
23502
|
+
* Retrieve the options object associated with a particular toolName and element
|
|
23507
23503
|
* @export
|
|
23508
23504
|
* @public
|
|
23509
23505
|
* @method
|
|
23510
23506
|
* @name getToolOptions
|
|
23511
23507
|
*
|
|
23512
|
-
* @param {string}
|
|
23508
|
+
* @param {string} toolName Tool name identifier of the target options object
|
|
23513
23509
|
* @param {HTMLElement} element Element of the target options object
|
|
23514
23510
|
*
|
|
23515
23511
|
* @returns {Object} Target options object (empty if not yet set)
|
|
23516
23512
|
*/
|
|
23517
23513
|
|
|
23518
|
-
function getToolOptions(
|
|
23519
|
-
if (!elementToolOptions[
|
|
23514
|
+
function getToolOptions(toolName, element) {
|
|
23515
|
+
if (!elementToolOptions[toolName]) {
|
|
23520
23516
|
return {};
|
|
23521
23517
|
}
|
|
23522
23518
|
|
|
23523
|
-
var toolOptions = elementToolOptions[
|
|
23519
|
+
var toolOptions = elementToolOptions[toolName];
|
|
23524
23520
|
var optionsObject = toolOptions.find(function (toolOptionObject) {
|
|
23525
23521
|
return toolOptionObject.element === element;
|
|
23526
23522
|
});
|
|
@@ -23532,67 +23528,71 @@ function getToolOptions(toolType, element) {
|
|
|
23532
23528
|
return optionsObject.options;
|
|
23533
23529
|
}
|
|
23534
23530
|
/**
|
|
23535
|
-
* Set the options object associated with a particular
|
|
23531
|
+
* Set the options object associated with a particular toolName and element.
|
|
23536
23532
|
* @export
|
|
23537
23533
|
* @public
|
|
23538
23534
|
* @method
|
|
23539
23535
|
* @name setToolOptions
|
|
23540
23536
|
*
|
|
23541
|
-
* @param {string}
|
|
23537
|
+
* @param {string} toolName Tool name identifier of the target options object.
|
|
23542
23538
|
* @param {HTMLElement} element Element of the target options object.
|
|
23543
23539
|
* @param {Object} options Options object to store at target.
|
|
23544
23540
|
* @returns {void}
|
|
23545
23541
|
*/
|
|
23546
23542
|
|
|
23547
23543
|
|
|
23548
|
-
function setToolOptions(
|
|
23549
|
-
if (!elementToolOptions[
|
|
23550
|
-
elementToolOptions[
|
|
23544
|
+
function setToolOptions(toolName, element, options) {
|
|
23545
|
+
if (!elementToolOptions[toolName]) {
|
|
23546
|
+
elementToolOptions[toolName] = [{
|
|
23551
23547
|
element: element,
|
|
23552
23548
|
options: options
|
|
23553
23549
|
}];
|
|
23554
23550
|
return;
|
|
23555
23551
|
}
|
|
23556
23552
|
|
|
23557
|
-
var toolOptions = elementToolOptions[
|
|
23553
|
+
var toolOptions = elementToolOptions[toolName];
|
|
23558
23554
|
var index = toolOptions.findIndex(function (toolOptionObject) {
|
|
23559
23555
|
return toolOptionObject.element === element;
|
|
23560
23556
|
});
|
|
23561
23557
|
|
|
23562
23558
|
if (index === -1) {
|
|
23563
|
-
elementToolOptions[
|
|
23559
|
+
elementToolOptions[toolName].push({
|
|
23564
23560
|
element: element,
|
|
23565
23561
|
options: options
|
|
23566
23562
|
});
|
|
23567
23563
|
} else {
|
|
23568
|
-
var elementOptions = elementToolOptions[
|
|
23569
|
-
elementToolOptions[
|
|
23564
|
+
var elementOptions = elementToolOptions[toolName][index].options || {};
|
|
23565
|
+
elementToolOptions[toolName][index].options = Object.assign(elementOptions, options);
|
|
23570
23566
|
}
|
|
23571
23567
|
}
|
|
23572
23568
|
/**
|
|
23573
|
-
* Clear the options object associated with a particular
|
|
23569
|
+
* Clear the options object associated with a particular toolName and element.
|
|
23574
23570
|
* @export
|
|
23575
23571
|
* @public
|
|
23576
23572
|
* @method
|
|
23577
23573
|
* @name clearToolOptions
|
|
23578
23574
|
*
|
|
23579
|
-
* @param {string}
|
|
23575
|
+
* @param {string} toolName Tool name identifier of the target options object.
|
|
23580
23576
|
* @param {HTMLElement} element Element of the target options object.
|
|
23581
23577
|
* @returns {void}
|
|
23582
23578
|
*/
|
|
23583
23579
|
|
|
23584
23580
|
|
|
23585
|
-
function clearToolOptions(
|
|
23586
|
-
var toolOptions = elementToolOptions[
|
|
23581
|
+
function clearToolOptions(toolName, element) {
|
|
23582
|
+
var toolOptions = elementToolOptions[toolName];
|
|
23587
23583
|
|
|
23588
23584
|
if (toolOptions) {
|
|
23589
|
-
elementToolOptions[
|
|
23585
|
+
elementToolOptions[toolName] = toolOptions.filter(function (toolOptionObject) {
|
|
23590
23586
|
return toolOptionObject.element !== element;
|
|
23591
23587
|
});
|
|
23592
23588
|
}
|
|
23593
23589
|
}
|
|
23594
23590
|
/**
|
|
23595
23591
|
* Clear the options objects associated with a particular toolType.
|
|
23592
|
+
*
|
|
23593
|
+
* Deprecation notice: use clearToolOptionsByToolName instead
|
|
23594
|
+
* @deprecated
|
|
23595
|
+
*
|
|
23596
23596
|
* @export
|
|
23597
23597
|
* @public
|
|
23598
23598
|
* @method
|
|
@@ -23604,7 +23604,22 @@ function clearToolOptions(toolType, element) {
|
|
|
23604
23604
|
|
|
23605
23605
|
|
|
23606
23606
|
function clearToolOptionsByToolType(toolType) {
|
|
23607
|
-
|
|
23607
|
+
return clearToolOptionsByToolName(toolType);
|
|
23608
|
+
}
|
|
23609
|
+
/**
|
|
23610
|
+
* Clear the options objects associated with a particular toolName.
|
|
23611
|
+
* @export
|
|
23612
|
+
* @public
|
|
23613
|
+
* @method
|
|
23614
|
+
* @name clearToolOptionsByToolName
|
|
23615
|
+
*
|
|
23616
|
+
* @param {string} toolName Tool name identifier of the target options objects.
|
|
23617
|
+
* @returns {void}
|
|
23618
|
+
*/
|
|
23619
|
+
|
|
23620
|
+
|
|
23621
|
+
function clearToolOptionsByToolName(toolName) {
|
|
23622
|
+
delete elementToolOptions[toolName];
|
|
23608
23623
|
}
|
|
23609
23624
|
/**
|
|
23610
23625
|
* Clear the options objects associated with a particular element.
|
|
@@ -23619,8 +23634,8 @@ function clearToolOptionsByToolType(toolType) {
|
|
|
23619
23634
|
|
|
23620
23635
|
|
|
23621
23636
|
function clearToolOptionsByElement(element) {
|
|
23622
|
-
for (var
|
|
23623
|
-
elementToolOptions[
|
|
23637
|
+
for (var toolName in elementToolOptions) {
|
|
23638
|
+
elementToolOptions[toolName] = elementToolOptions[toolName].filter(function (toolOptionObject) {
|
|
23624
23639
|
return toolOptionObject.element !== element;
|
|
23625
23640
|
});
|
|
23626
23641
|
}
|
|
@@ -23638,6 +23653,7 @@ function clearToolOptionsByElement(element) {
|
|
|
23638
23653
|
reactHotLoader.register(setToolOptions, "setToolOptions", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/toolOptions.js");
|
|
23639
23654
|
reactHotLoader.register(clearToolOptions, "clearToolOptions", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/toolOptions.js");
|
|
23640
23655
|
reactHotLoader.register(clearToolOptionsByToolType, "clearToolOptionsByToolType", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/toolOptions.js");
|
|
23656
|
+
reactHotLoader.register(clearToolOptionsByToolName, "clearToolOptionsByToolName", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/toolOptions.js");
|
|
23641
23657
|
reactHotLoader.register(clearToolOptionsByElement, "clearToolOptionsByElement", "/Users/huyeqing/workspace/chainz/paladin/src/cornerstone-plus/cornerstone-tools-plus/util/toolOptions.js");
|
|
23642
23658
|
})();
|
|
23643
23659
|
|