remove spaces

comply with linter
This commit is contained in:
casperlamboo 2016-07-19 14:28:03 +02:00
parent b6350871be
commit b8d567aabe
2 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@ const POSITION_Y = 'Y';
const POSITION_Z = 'Z'; const POSITION_Z = 'Z';
export default class { export default class {
constructor (settings) { constructor(settings) {
this.gcode = ''; this.gcode = '';
this.current = {}; this.current = {};
@ -25,7 +25,7 @@ export default class {
} }
} }
_addGCode (command) { _addGCode(command) {
let str = ''; let str = '';
let first = true; let first = true;
@ -46,13 +46,13 @@ export default class {
this.gcode += `${str}\n`; this.gcode += `${str}\n`;
} }
setSettings (settings) { setSettings(settings) {
this.settings = settings; this.settings = settings;
return this; return this;
} }
turnFanOn (fanSpeed) { turnFanOn(fanSpeed) {
this.isFanOn = true; this.isFanOn = true;
const gcode = { [M_COMMAND]: 106 } const gcode = { [M_COMMAND]: 106 }
@ -63,7 +63,7 @@ export default class {
return this; return this;
} }
turnFanOff () { turnFanOff() {
this.isFanOn = false; this.isFanOn = false;
this._addGCode({ [M_COMMAND]: 107 }); this._addGCode({ [M_COMMAND]: 107 });
@ -71,7 +71,7 @@ export default class {
return this; return this;
} }
moveTo (x, y, layer) { moveTo(x, y, layer) {
const { const {
layerHeight, layerHeight,
travelSpeed travelSpeed
@ -93,7 +93,7 @@ export default class {
return this; return this;
} }
lineTo (x, y, layer, type) { lineTo(x, y, layer, type) {
const newNozzlePosition = new THREE.Vector2(x, y); const newNozzlePosition = new THREE.Vector2(x, y);
const { const {
@ -132,7 +132,7 @@ export default class {
return this; return this;
} }
unRetract () { unRetract() {
const { const {
retractionEnabled, retractionEnabled,
retractionMinDistance, retractionMinDistance,
@ -156,7 +156,7 @@ export default class {
return this; return this;
} }
retract () { retract() {
const { const {
retractionAmount, retractionAmount,
retractionEnabled, retractionEnabled,
@ -181,7 +181,7 @@ export default class {
return this; return this;
} }
getGCode () { getGCode() {
return this.settings.startCode() + this.gcode + this.settings.endCode(); 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'; import removePrecision from './sliceActions/removePrecision.js';
export default class extends EventDispatcher { export default class extends EventDispatcher {
setMesh (mesh) { setMesh(mesh) {
mesh.updateMatrix(); mesh.updateMatrix();
this.setGeometry(mesh.geometry, mesh.matrix); this.setGeometry(mesh.geometry, mesh.matrix);
return this; return this;
} }
setGeometry (geometry, matrix) { setGeometry(geometry, matrix) {
if (geometry instanceof THREE.BufferGeometry) { if (geometry instanceof THREE.BufferGeometry) {
geometry = new THREE.Geometry().fromBufferGeometry(geometry); geometry = new THREE.Geometry().fromBufferGeometry(geometry);
} else if (geometry instanceof THREE.Geometry) { } else if (geometry instanceof THREE.Geometry) {
@ -41,7 +41,7 @@ export default class extends EventDispatcher {
return this; return this;
} }
slice (settings) { slice(settings) {
// get unique lines from geometry; // get unique lines from geometry;
const lines = createLines(this.geometry, settings); const lines = createLines(this.geometry, settings);