remove spaces

comply with linter
This commit is contained in:
casperlamboo 2016-07-19 14:28:03 +02:00 committed by Simon Voordouw
parent 35a50f222e
commit b3b03df255
2 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@ const POSITION_Y = 'Y';
const POSITION_Z = 'Z';
export default class {
constructor (settings) {
constructor(settings) {
this.gcode = '';
this.current = {};
@ -25,7 +25,7 @@ export default class {
}
}
_addGCode (command) {
_addGCode(command) {
let str = '';
let first = true;
@ -46,13 +46,13 @@ export default class {
this.gcode += `${str}\n`;
}
setSettings (settings) {
setSettings(settings) {
this.settings = settings;
return this;
}
turnFanOn (fanSpeed) {
turnFanOn(fanSpeed) {
this.isFanOn = true;
const gcode = { [M_COMMAND]: 106 }
@ -63,7 +63,7 @@ export default class {
return this;
}
turnFanOff () {
turnFanOff() {
this.isFanOn = false;
this._addGCode({ [M_COMMAND]: 107 });
@ -71,7 +71,7 @@ export default class {
return this;
}
moveTo (x, y, layer) {
moveTo(x, y, layer) {
const {
layerHeight,
travelSpeed
@ -93,7 +93,7 @@ export default class {
return this;
}
lineTo (x, y, layer, type) {
lineTo(x, y, layer, type) {
const newNozzlePosition = new THREE.Vector2(x, y);
const {
@ -132,7 +132,7 @@ export default class {
return this;
}
unRetract () {
unRetract() {
const {
retractionEnabled,
retractionMinDistance,
@ -156,7 +156,7 @@ export default class {
return this;
}
retract () {
retract() {
const {
retractionAmount,
retractionEnabled,
@ -181,7 +181,7 @@ export default class {
return this;
}
getGCode () {
getGCode() {
return this.settings.startCode() + this.gcode + this.settings.endCode();
}
}

View File

@ -14,14 +14,14 @@ import applyPrecision from './sliceActions/applyPrecision.js';
import removePrecision from './sliceActions/removePrecision.js';
export default class extends EventDispatcher {
setMesh (mesh) {
setMesh(mesh) {
mesh.updateMatrix();
this.setGeometry(mesh.geometry, mesh.matrix);
return this;
}
setGeometry (geometry, matrix) {
setGeometry(geometry, matrix) {
if (geometry instanceof THREE.BufferGeometry) {
geometry = new THREE.Geometry().fromBufferGeometry(geometry);
} else if (geometry instanceof THREE.Geometry) {
@ -41,7 +41,7 @@ export default class extends EventDispatcher {
return this;
}
slice (settings) {
slice(settings) {
// get unique lines from geometry;
const lines = createLines(this.geometry, settings);