@nebulaglitch/gcode
Version:
A library to generate gcode output
21 lines (18 loc) • 528 B
JavaScript
import Command from '../command.js';
import Argument from '../argument.js';
class ClockwiseArc extends Command {
constructor(x = null, y = null, r = null){
super('G', 2);
if (x !== null) {
this.args.push(new Argument('X', x));
}
if (y !== null) {
this.args.push(new Argument('Y', y));
}
if (r !== null) {
this.args.push(new Argument('R', r));
}
}
}
export { ClockwiseArc as default };
//# sourceMappingURL=clockwisearc.js.map