UNPKG

@nebulaglitch/gcode

Version:
1 lines 1.11 kB
{"version":3,"file":"comment.cjs","sources":["../../src/commands/comment.ts"],"sourcesContent":["'use strict';\n\nimport Command from '../command';\n\nclass Comment extends Command {\n private newline: boolean = false;\n\n constructor(content: any, newline = true) {\n super('[');\n this.newline = newline;\n this.args.push(content.toString());\n }\n\n toString() {\n return (this.newline ? '\\n' : '') + this.code + ' ' +\n this.args.join(' ') + ' ]';\n }\n\n}\n\nexport default Comment;\n"],"names":["Comment","Command","toString","newline","code","args","join","constructor","content","push"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA,MAAMA,OAAgBC,SAAAA,eAAAA,CAAAA;IASlBC,QAAW,GAAA;QACP,OAAQ,CAAA,IAAI,CAACC,OAAO,GAAG,IAAA,GAAO,EAAC,IAAK,IAAI,CAACC,IAAI,GAAG,MAClD,IAAI,CAACC,IAAI,CAACC,IAAI,CAAC,GAAO,CAAA,GAAA,IAAA;AACxB;AATAC,IAAAA,WAAAA,CAAYC,OAAY,EAAEL,OAAU,GAAA,IAAI,CAAE;QACtC,KAAK,CAAC,GAHV,CAAA,EAAA,gBAAA,CAAA,IAAA,EAAQA,SAAmB,EAAA,KAAA,CAAA;QAIvB,IAAI,CAACA,OAAO,GAAGA,OAAAA;AACf,QAAA,IAAI,CAACE,IAAI,CAACI,IAAI,CAACD,QAAQN,QAAQ,EAAA,CAAA;AACnC;AAOJ;;;;"}