PWV-138: Removing unused flags and function
This commit is contained in:
parent
0888e08536
commit
b17f5040db
@ -659,14 +659,6 @@ function setHandlesPosition(handle, eventData, data) {
|
||||
// Cornerstone Methods
|
||||
//****************************************/
|
||||
|
||||
// Set if the circular handles will be visible or not
|
||||
function setHandlesVisible (handles, isVisibile) {
|
||||
Object.keys(handles).forEach(handleKey => {
|
||||
if (handleKey === 'textBox') return;
|
||||
handles[handleKey].drawnIndependently = !isVisibile;
|
||||
});
|
||||
};
|
||||
|
||||
// Clear the selected state for the given handles object
|
||||
function unselectAllHandles(handles) {
|
||||
let imageNeedsUpdate = false;
|
||||
@ -882,7 +874,6 @@ function mouseDownCallback(e, eventData) {
|
||||
|
||||
$(element).off('CornerstoneToolsMouseMove', mouseMoveCallback);
|
||||
data.active = true;
|
||||
data.selected = true;
|
||||
|
||||
unselectAllHandles(data.handles);
|
||||
handle.moving = true;
|
||||
@ -909,7 +900,6 @@ function mouseDownCallback(e, eventData) {
|
||||
|
||||
$(element).off('CornerstoneToolsMouseMove', mouseMoveCallback);
|
||||
data.active = true;
|
||||
data.selected = true;
|
||||
|
||||
unselectAllHandles(data.handles);
|
||||
Object.keys(data.handles).forEach(handleKey => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user