imagemagick-async
Version:
An API for Image Magick commands.
51 lines (42 loc) • 885 B
JavaScript
let LayerBaseClass = require('imagemagick-async/layerbaseclass').LayerBaseClass;
//-----------------------------
class MaskBaseClass extends LayerBaseClass {
constructor() {
super();
}
/**
* @returns {Array<string|number>} Returns an array of arguments.
*/
Args() {
// Override
}
/**
* @override
* @returns {string} Returns a string of the command used to render the mod.
*/
Command() {
return 'convert';
}
/**
* @returns {number} Returns the number of source inputs.
*/
NumberOfSources() {
return 1;
}
/**
* Replace current source with new source.
*/
UpdateSource(newSrc) {
this.src_ = newSrc;
}
/**
* @override
* @returns {string} Returns a string of the type name.
*/
Type() {
return 'mod';
}
}
//--------------------------------
// EXPORTS
exports.MaskBaseClass = MaskBaseClass;