@nebulaglitch/gcode
Version:
A library to generate gcode output
24 lines (21 loc) • 643 B
JavaScript
import Command from '../command.js';
import Argument from '../argument.js';
class ArcMove extends Command {
constructor(clockwise = true, x = null, y = null, i = null, j = null){
super('G', clockwise ? 2 : 3);
if (x !== null) {
this.args.push(new Argument('X', x));
}
if (y !== null) {
this.args.push(new Argument('Y', y));
}
if (i !== null) {
this.args.push(new Argument('I', i));
}
if (j !== null) {
this.args.push(new Argument('J', j));
}
}
}
export { ArcMove as default };
//# sourceMappingURL=arcmove.js.map