mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
27 lines
542 B
JavaScript
27 lines
542 B
JavaScript
/**
|
|
* @provide pskl.tools.drawing.Eraser
|
|
*
|
|
* @require Constants
|
|
* @require pskl.utils
|
|
*/
|
|
(function() {
|
|
var ns = $.namespace('pskl.tools.drawing');
|
|
|
|
ns.Eraser = function() {
|
|
this.superclass.constructor.call(this);
|
|
|
|
this.toolId = 'tool-eraser';
|
|
this.helpText = 'Eraser tool';
|
|
this.shortcut = pskl.service.keyboard.Shortcuts.TOOL.ERASER;
|
|
};
|
|
|
|
pskl.utils.inherit(ns.Eraser, ns.SimplePen);
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
ns.Eraser.prototype.getToolColor = function() {
|
|
return Constants.TRANSPARENT_COLOR;
|
|
};
|
|
})();
|