Basic lasso tool

This commit is contained in:
Vince
2012-09-14 20:12:21 +02:00
parent e85fe32f02
commit 841885939d
11 changed files with 302 additions and 154 deletions

View File

@@ -4,6 +4,7 @@
ns.SelectionManager = function (overlayFrame) {
this.framesheet = framesheet;
this.overlayFrame = overlayFrame;
this.currentSelection = null;
@@ -48,7 +49,8 @@
* @private
*/
ns.SelectionManager.prototype.onToolSelected_ = function(evt, tool) {
if(!(tool instanceof pskl.drawingtools.Select)) {
var isSelectionTool = (tool instanceof pskl.drawingtools.RectangleSelect) || (tool instanceof pskl.drawingtools.ShapeSelect);
if(!isSelectionTool) {
this.cleanSelection_();
}
};