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-03 20:22:24 +00:00
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
2012-08-31 08:45:07 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @override
|
|
|
|
*/
|
2012-09-01 22:44:55 +00:00
|
|
|
ns.Eraser.prototype.applyToolAt = function(col, row, frame, color, canvas, dpi) {
|
2012-09-03 20:22:24 +00:00
|
|
|
this.superclass.applyToolAt.call(this, col, row, frame, Constants.TRANSPARENT_COLOR, canvas, dpi);
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|
|
|
|
})();
|