@nebulaglitch/gcode
Version:
A library to generate gcode output
21 lines (18 loc) • 550 B
JavaScript
import Command from '../command.js';
import Argument from '../argument.js';
class SetLocalCoordinates extends Command {
constructor(x = null, y = null, z = null){
super('G', 92);
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));
}
}
}
export { SetLocalCoordinates as default };
//# sourceMappingURL=setlocalcoordinates.js.map