2013-09-28 23:10:12 +04:00
|
|
|
/**
|
2012-08-31 12:45:07 +04:00
|
|
|
* @provide pskl.drawingtools.Eraser
|
|
|
|
*
|
|
|
|
* @require Constants
|
|
|
|
* @require pskl.utils
|
|
|
|
*/
|
2013-08-10 14:11:16 +04:00
|
|
|
(function() {
|
|
|
|
var ns = $.namespace("pskl.drawingtools");
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
ns.Eraser = function() {
|
|
|
|
this.toolId = "tool-eraser";
|
|
|
|
this.helpText = "Eraser tool";
|
|
|
|
};
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
2012-08-31 12:45:07 +04:00
|
|
|
|
2013-08-10 14:11:16 +04:00
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
ns.Eraser.prototype.applyToolAt = function(col, row, color, frame, overlay) {
|
|
|
|
this.superclass.applyToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay);
|
|
|
|
};
|
2012-08-31 12:45:07 +04:00
|
|
|
})();
|