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() {
|
2014-04-24 01:47:23 +04:00
|
|
|
this.superclass.constructor.call(this);
|
2013-08-10 14:11:16 +04:00
|
|
|
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
|
|
|
|
*/
|
2013-12-06 01:12:48 +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-08-10 14:11:16 +04:00
|
|
|
};
|
2014-05-17 00:40:09 +04:00
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
|
|
|
ns.Eraser.prototype.releaseToolAt = function(col, row, color, frame, overlay, event) {
|
|
|
|
this.superclass.releaseToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay, event);
|
|
|
|
};
|
2012-08-31 12:45:07 +04:00
|
|
|
})();
|