UNPKG

@nebulaglitch/gcode

Version:
24 lines (21 loc) 615 B
import Command from '../command.js'; import Argument from '../argument.js'; class RapidMove extends Command { constructor(x = null, y = null, z = null, w = null){ super('G', 0); if (x !== null) { this.args.push(new Argument('X', x)); } if (y !== null) { this.args.push(new Argument('Y', y)); } if (z !== null) { this.args.push(new Argument('Z', z)); } if (w !== null) { this.args.push(new Argument('W', w)); } } } export { RapidMove as default }; //# sourceMappingURL=rapidmove.js.map