UNPKG

imagemagick-async

Version:
51 lines (42 loc) 865 B
let LayerBaseClass = require('./layerbaseclass.js').LayerBaseClass; //----------------------------- class FxBaseClass 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 'fx'; } } //-------------------------------- // EXPORTS exports.FxBaseClass = FxBaseClass;