2012-08-31 12:45:07 +04:00
|
|
|
/*
|
|
|
|
* @provide pskl.drawingtools.Eraser
|
|
|
|
*
|
|
|
|
* @require Constants
|
|
|
|
* @require pskl.utils
|
|
|
|
*/
|
|
|
|
(function() {
|
|
|
|
var ns = $.namespace("pskl.drawingtools");
|
|
|
|
|
|
|
|
ns.Eraser = function() {
|
|
|
|
this.toolId = "tool-eraser";
|
2012-09-15 22:25:45 +04:00
|
|
|
this.helpText = "Eraser tool";
|
2012-08-31 12:45:07 +04:00
|
|
|
};
|
|
|
|
|
2012-09-04 00:22:24 +04:00
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
2012-08-31 12:45:07 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2012-09-11 01:26:12 +04:00
|
|
|
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
|
|
|
};
|
|
|
|
})();
|