From 234ce115be9f0244ae2dc21a1f584cffb3dc2dc1 Mon Sep 17 00:00:00 2001 From: bakedpotatolord Date: Thu, 22 May 2025 12:32:28 -0600 Subject: [PATCH] add jsDoc --- src/kiri-mode/cam/export.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/kiri-mode/cam/export.js b/src/kiri-mode/cam/export.js index 6f825ab1..1de3989f 100644 --- a/src/kiri-mode/cam/export.js +++ b/src/kiri-mode/cam/export.js @@ -118,6 +118,16 @@ CAM.export = function(print, online) { } } + /** + * Take an array of lines and emit them after: + * - splitting a string into an array + * - stripping comments if !isRML and stripComments + * - applying constant replacements + * - applying Inch/Millimeter conversions if G20 or G21 are found + * + * @param {string|Array} array - an array of lines or a single string + * @param {Object} consts - a dictionary of constants to replace + */ function filterEmit(array, consts) { if (!array) { return;