mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
remove save code
This commit is contained in:
parent
6c02343da3
commit
db0d82c396
6
index.js
6
index.js
@ -3,7 +3,6 @@ import { JSONLoader } from 'three/src/loaders/JSONLoader.js';
|
|||||||
import { Interface } from 'doodle3d-slicer';
|
import { Interface } from 'doodle3d-slicer';
|
||||||
import fileURL from '!url-loader!./models/shape.json';
|
import fileURL from '!url-loader!./models/shape.json';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import fileSaver from 'file-saver';
|
|
||||||
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
|
||||||
import injectTapEventPlugin from 'react-tap-event-plugin';
|
import injectTapEventPlugin from 'react-tap-event-plugin';
|
||||||
import jss from 'jss';
|
import jss from 'jss';
|
||||||
@ -23,11 +22,6 @@ jss.createStyleSheet({
|
|||||||
}
|
}
|
||||||
}).attach();
|
}).attach();
|
||||||
|
|
||||||
const downloadGCode = ({ gcode: { gcode } }) => {
|
|
||||||
const file = new File([gcode], 'gcode.gcode', { type: 'text/plain' });
|
|
||||||
fileSaver.saveAs(file);
|
|
||||||
};
|
|
||||||
|
|
||||||
const jsonLoader = new JSONLoader();
|
const jsonLoader = new JSONLoader();
|
||||||
jsonLoader.load(fileURL, geometry => {
|
jsonLoader.load(fileURL, geometry => {
|
||||||
render((
|
render((
|
||||||
|
Loading…
Reference in New Issue
Block a user