Skip to content

Commit

Permalink
ported a number of files to external js files re: #75
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Dec 1, 2017
1 parent 8acaedf commit cf2005d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 3 additions & 1 deletion public/js/tools/addPoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ var ToolAddPoint = { addPoint : (function(){
Microdraw.handle = null;
}
}
})}

return tool;
}())}
4 changes: 3 additions & 1 deletion public/js/tools/addRegion.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ var ToolAddRegion = { addRegion : (function(){
Microdraw.handle = null;
}
}
})}

return tool;
}())}
6 changes: 4 additions & 2 deletions public/js/tools/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ var ToolDelete = { delete : (function(){
Microdraw.cmdDeleteSelected();
Microdraw.backToPreviousTool(prevTool);
}
}
})}
};

return tool;
}())}
9 changes: 6 additions & 3 deletions public/js/tools/deletePoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var ToolDeletePoint = { deletePoint : (function(){

if( hitResult.type === 'segment' ) {
hitResult.segment.remove();
me.commitMouseUndo();
Microdraw.commitMouseUndo();
}
} else {
if( Microdraw.region ){
Expand All @@ -58,5 +58,8 @@ var ToolDeletePoint = { deletePoint : (function(){
Microdraw.navEnabled = false;
Microdraw.handle = null;
}
}
})}
};


return tool;
}())}

0 comments on commit cf2005d

Please sign in to comment.