Added default line to gcode

This commit is contained in:
casperlamboo 2018-01-15 15:43:58 +01:00
parent 700b27e6e0
commit da3ab2b0e6
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1,2 @@
export const PRECISION = 0.01;
export const VERSION = '0.0.18';

View File

@ -1,5 +1,5 @@
import { Vector2 } from 'three/src/math/Vector2.js';
import { PRECISION } from '../../constants.js';
import { PRECISION, VERSION } from '../../constants.js';
export const MOVE = 'G';
export const M_COMMAND = 'M';
@ -14,7 +14,7 @@ export default class {
constructor(nozzleToFilamentRatio) {
this._nozzleToFilamentRatio = nozzleToFilamentRatio;
this._gcode = [];
this._gcode = [`; Generated with Doodle3D Slicer V${VERSION}`];
this._currentValues = {};
this._nozzlePosition = new Vector2(0, 0);
this._extruder = 0.0;