mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
remove line breaks
This commit is contained in:
parent
0d4f6fbe5b
commit
47e5090444
@ -2,27 +2,23 @@ export default class {
|
||||
constructor() {
|
||||
this.config = {};
|
||||
}
|
||||
|
||||
updateConfig(config) {
|
||||
for (var i in config) {
|
||||
for (const i in config) {
|
||||
this.config[i] = config[i];
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
startCode() {
|
||||
const { startCode } = this.config;
|
||||
const gcode = this._subsituteVariables(startCode);
|
||||
return gcode;
|
||||
}
|
||||
|
||||
endCode() {
|
||||
const { endCode } = this.config;
|
||||
const gcode = this._subsituteVariables(endCode);
|
||||
return gcode;
|
||||
}
|
||||
|
||||
_subsituteVariables(gcode) {
|
||||
let {
|
||||
temperature,
|
||||
|
Loading…
Reference in New Issue
Block a user