@nebulaglitch/gcode
Version:
A library to generate gcode output
1 lines • 1.31 kB
Source Map (JSON)
{"version":3,"file":"clockwisearc.cjs","sources":["../../src/commands/clockwisearc.ts"],"sourcesContent":["'use strict';\n\nimport Command from '../command';\nimport Argument from '../argument';\n\nclass ClockwiseArc extends Command {\n constructor(x: number | null = null, y: number | null = null, r: number | null = null) {\n super('G', 2);\n if (x !== null) {\n this.args.push(new Argument('X', x));\n }\n if (y !== null) {\n this.args.push(new Argument('Y', y));\n }\n if (r !== null) {\n this.args.push(new Argument('R', r));\n }\n }\n}\n\nexport default ClockwiseArc;\n"],"names":["ClockwiseArc","Command","constructor","x","y","r","args","push","Argument"],"mappings":";;;;;;;AAKA,MAAMA,YAAqBC,SAAAA,eAAAA,CAAAA;IACvBC,WAAYC,CAAAA,CAAAA,GAAmB,IAAI,EAAEC,CAAAA,GAAmB,IAAI,EAAEC,CAAAA,GAAmB,IAAI,CAAE;AACnF,QAAA,KAAK,CAAC,GAAK,EAAA,CAAA,CAAA;AACX,QAAA,IAAIF,MAAM,IAAM,EAAA;AACZ,YAAA,IAAI,CAACG,IAAI,CAACC,IAAI,CAAC,IAAIC,iBAAS,GAAKL,EAAAA,CAAAA,CAAAA,CAAAA;AACrC;AACA,QAAA,IAAIC,MAAM,IAAM,EAAA;AACZ,YAAA,IAAI,CAACE,IAAI,CAACC,IAAI,CAAC,IAAIC,iBAAS,GAAKJ,EAAAA,CAAAA,CAAAA,CAAAA;AACrC;AACA,QAAA,IAAIC,MAAM,IAAM,EAAA;AACZ,YAAA,IAAI,CAACC,IAAI,CAACC,IAAI,CAAC,IAAIC,iBAAS,GAAKH,EAAAA,CAAAA,CAAAA,CAAAA;AACrC;AACJ;AACJ;;;;"}