@nebulaglitch/gcode
Version:
A library to generate gcode output
31 lines (26 loc) • 891 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const command = require('../command.cjs');
const argument = require('../argument.cjs');
class FeedMove extends command.default {
constructor(x = null, y = null, z = null, w = null, f = null){
super('G', 1);
if (x !== null) {
this.args.push(new argument.default('X', x));
}
if (y !== null) {
this.args.push(new argument.default('Y', y));
}
if (z !== null) {
this.args.push(new argument.default('Z', z));
}
if (w !== null) {
this.args.push(new argument.default('W', w));
}
if (f !== null) {
this.args.push(new argument.default('F', f));
}
}
}
exports.default = FeedMove;
//# sourceMappingURL=feedmove.cjs.map