add control over decimal rounding with SCALE gcode header directive

This commit is contained in:
Stewart Allen 2022-11-08 22:16:42 -05:00
commit ebd4de2a5a

View file

@ -332,6 +332,7 @@ CAM.export = function(print, online) {
if (map.X) scale.x = map.X;
if (map.Y) scale.y = map.Y;
if (map.Z) scale.z = map.Z;
if (map.DEC !== undefined) decimals = parseInt(map.DEC);
console.log('scaling axes', scale);
} catch (e) {
console.log('malformed scale directive', line);