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