UNPKG

imagemagick-async

Version:
51 lines (42 loc) 888 B
let LayerBaseClass = require('./layerbaseclass.js').LayerBaseClass; //----------------------------------- class TransformBaseClass 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.TransformBaseClass = TransformBaseClass;