@nebulaglitch/gcode
Version:
A library to generate gcode output
28 lines (23 loc) • 790 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const command = require('../command.cjs');
const argument = require('../argument.cjs');
class RapidMove extends command.default {
constructor(x = null, y = null, z = null, w = null){
super('G', 0);
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));
}
}
}
exports.default = RapidMove;
//# sourceMappingURL=rapidmove.cjs.map