UNPKG
@urpflanze/gcode-exporter
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Export urpflanze scene to GCODE
github.com/urpflanze-org/gcode-exporter
urpflanze-org/gcode-exporter
@urpflanze/gcode-exporter
/
dist
/
esm
/
utilities.js
8 lines
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
export
const
round
= (
value, decimals
) =>
Math
.
round
(value *
10
** decimals) /
10
** decimals;
export
const
concat
= (
result, data
) => {
if
(
typeof
data ===
'string'
) result.
push
(data);
else
data.
forEach
(
line
=>
result.
push
(line)); };
//# sourceMappingURL=utilities.js.map