imagemagick-async
Version:
An API for Image Magick commands.
37 lines (31 loc) • 669 B
JavaScript
//---------------------------------
// PRIMITIVE (Base class)
class PrimitiveBaseClass {
constructor() {
this.xOffset_ = 0;
this.yOffset_ = 0;
}
/**
* @returns {Array<string|number>} Returns an array of arguments needed for drawing the primitive.
*/
Args() {
// Override
}
/**
* @override
* @returns {string} Returns a string of the type name.
*/
Type() {
return 'primitive';
}
/**
* @override
* @returns {string} Returns a string of the command used to render the primitive.
*/
Command() {
return null;
}
}
//---------------------------
// EXPORTS
exports.PrimitiveBaseClass = PrimitiveBaseClass;