UNPKG

@nebulaglitch/gcode

Version:
25 lines (20 loc) 717 B
'use strict'; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); const command = require('../command.cjs'); const argument = require('../argument.cjs'); class SetLocalCoordinates extends command.default { constructor(x = null, y = null, z = null){ super('G', 92); if (x !== null) { this.args.push(new argument.default('X', x)); } if (y !== null) { this.args.push(new argument.default('Y', y)); } if (z !== null) { this.args.push(new argument.default('Z', z)); } } } exports.default = SetLocalCoordinates; //# sourceMappingURL=setlocalcoordinates.cjs.map