-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tool to remove regions from optimal ww/wc calculation (#326)
* update version * wwwcremoveregion * Update docs * removing listener when tool is already up * Update docs * removing a log * removing logs compiled * Update docs --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9e67874
commit f92a363
Showing
9 changed files
with
798 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/** | ||
* @public | ||
* @class WwwcRemoveRegionTool | ||
* @memberof Tools | ||
* | ||
* @classdesc Tool for setting wwwc based on a rectangular region. | ||
* @extends Tools.Base.BaseTool | ||
*/ | ||
export default class WwwcRemoveRegionTool { | ||
constructor(props?: {}); | ||
dataHandles: any[]; | ||
_drawingMouseUpCallback: (evt: any) => void; | ||
_editMouseUpCallback: (evt: any) => void; | ||
throttledUpdateCachedStats: any; | ||
createNewMeasurement(eventData: any): { | ||
computeMeasurements: any; | ||
visible: boolean; | ||
active: boolean; | ||
color: undefined; | ||
invalidated: boolean; | ||
handles: { | ||
start: { | ||
x: any; | ||
y: any; | ||
highlight: boolean; | ||
active: boolean; | ||
}; | ||
end: { | ||
x: any; | ||
y: any; | ||
highlight: boolean; | ||
active: boolean; | ||
}; | ||
initialRotation: any; | ||
textBox: { | ||
active: boolean; | ||
hasMoved: boolean; | ||
movesIndependently: boolean; | ||
drawnIndependently: boolean; | ||
allowedOutsideImage: boolean; | ||
hasBoundingBox: boolean; | ||
}; | ||
}; | ||
} | undefined; | ||
pointNearTool(element: any, data: any, coords: any, interactionType: any): boolean; | ||
updateCachedStats(image: any, element: any, data: any): void; | ||
renderToolData(evt: any): void; | ||
/** | ||
* Event handler for MOUSE_UP/TOUCH_END during handle drag event loop. | ||
* | ||
* @private | ||
* @method _applyStrategy | ||
* @param {(CornerstoneTools.event#MOUSE_UP|CornerstoneTools.event#TOUCH_END)} evt Interaction event emitted by an enabledElement | ||
* @returns {void} | ||
*/ | ||
private _applyStrategy; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.