diff --git a/simpleExample/index.js b/simpleExample/index.js index 0c8f366..dc1ad06 100644 --- a/simpleExample/index.js +++ b/simpleExample/index.js @@ -5,6 +5,9 @@ import fileURL from '!url-loader!./models/shape.json'; import { render } from 'react-dom'; import fileSaver from 'file-saver'; +document.body.style.margin = 0; +document.body.style.padding = 0; + const downloadGCode = gcode => { const file = new File([gcode], 'gcode.gcode', { type: 'text/plain' }); fileSaver.saveAs(file); @@ -13,9 +16,11 @@ const downloadGCode = gcode => { const jsonLoader = new THREE.JSONLoader(); jsonLoader.load(fileURL, geometry => { render(( -