UNPKG

@nebulaglitch/gcode

Version:
1 lines 940 B
{"version":3,"file":"question.cjs","sources":["../../src/commands/question.ts"],"sourcesContent":["'use strict';\n\nimport Command from '../command';\nimport Argument from '../argument';\n\nclass Question extends Command {\n constructor(text: string | null = null) {\n super('G', 5);\n this.args.push(new Argument('T', 0));\n if (text !== null) {\n this.args.push(new Argument('m', ' \"' + text + '\"'));\n }\n }\n}\n\nexport default Question;\n"],"names":["Question","Command","constructor","text","args","push","Argument"],"mappings":";;;;;;;AAKA,MAAMA,QAAiBC,SAAAA,eAAAA,CAAAA;IACnBC,WAAYC,CAAAA,IAAAA,GAAsB,IAAI,CAAE;AACpC,QAAA,KAAK,CAAC,GAAK,EAAA,CAAA,CAAA;AACX,QAAA,IAAI,CAACC,IAAI,CAACC,IAAI,CAAC,IAAIC,iBAAS,GAAK,EAAA,CAAA,CAAA,CAAA;AACjC,QAAA,IAAIH,SAAS,IAAM,EAAA;YACf,IAAI,CAACC,IAAI,CAACC,IAAI,CAAC,IAAIC,gBAAAA,CAAS,GAAK,EAAA,IAAA,GAAOH,IAAO,GAAA,GAAA,CAAA,CAAA;AACnD;AACJ;AACJ;;;;"}