2012-08-31 08:45:07 +00: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 18:25:45 +00:00
|
|
|
this.helpText = "Eraser tool";
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|
|
|
|
|
2012-09-03 20:22:24 +00:00
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
2012-08-31 08:45:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2012-09-10 21:26:12 +00: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 08:45:07 +00:00
|
|
|
};
|
|
|
|
})();
|