UNPKG

@nebulaglitch/gcode

Version:
33 lines (28 loc) 890 B
'use strict'; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); const command = require('../command.cjs'); function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } class Mach3Comment extends command.default { toString() { return (this.newline ? '\n' : '') + this.code + ' ' + this.args.join(' ') + ')'; } constructor(content, newline = true){ super('('), _define_property(this, "newline", void 0); this.newline = newline; this.args.push(content.toString()); } } exports.default = Mach3Comment; //# sourceMappingURL=mach3comment.cjs.map