@nebulaglitch/gcode
Version:
A library to generate gcode output
25 lines (20 loc) • 695 B
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
const command = require('../command.cjs');
const argument = require('../argument.cjs');
class ClockwiseArc extends command.default {
constructor(x = null, y = null, r = null){
super('G', 2);
if (x !== null) {
this.args.push(new argument.default('X', x));
}
if (y !== null) {
this.args.push(new argument.default('Y', y));
}
if (r !== null) {
this.args.push(new argument.default('R', r));
}
}
}
exports.default = ClockwiseArc;
//# sourceMappingURL=clockwisearc.cjs.map