2013-11-25 22:00:19 +04:00
|
|
|
/**
|
2012-08-31 12:45:07 +04:00
|
|
|
* @provide pskl.drawingtools.Eraser
|
|
|
|
*
|
|
|
|
* @require Constants
|
|
|
|
* @require pskl.utils
|
|
|
|
*/
|
2013-11-25 22:00:19 +04:00
|
|
|
(function() {
|
|
|
|
var ns = $.namespace("pskl.drawingtools");
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-11-25 22:00:19 +04:00
|
|
|
ns.Eraser = function() {
|
|
|
|
this.toolId = "tool-eraser";
|
|
|
|
this.helpText = "Eraser tool";
|
|
|
|
};
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-11-25 22:00:19 +04:00
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-11-25 22:00:19 +04:00
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2014-03-30 05:12:56 +04:00
|
|
|
ns.Eraser.prototype.applyToolAt = function(col, row, color, frame, overlay, event) {
|
|
|
|
this.superclass.applyToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay, event);
|
2013-11-25 22:00:19 +04:00
|
|
|
};
|
2012-08-31 12:45:07 +04:00
|
|
|
})();
|