mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
30 lines
805 B
JavaScript
30 lines
805 B
JavaScript
/**
|
|
* @provide pskl.drawingtools.Eraser
|
|
*
|
|
* @require Constants
|
|
* @require pskl.utils
|
|
*/
|
|
(function() {
|
|
var ns = $.namespace("pskl.drawingtools");
|
|
|
|
ns.Eraser = function() {
|
|
this.superclass.constructor.call(this);
|
|
this.toolId = "tool-eraser";
|
|
this.helpText = "Eraser tool";
|
|
};
|
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
ns.Eraser.prototype.applyToolAt = function(col, row, color, frame, overlay, event) {
|
|
this.superclass.applyToolAt.call(this, col, row, Constants.TRANSPARENT_COLOR, frame, overlay, event);
|
|
};
|
|
/**
|
|
* @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);
|
|
};
|
|
})(); |