Browse Source

rename sketch file to doodle3d

pull/6/head
Casper Lamboo 4 years ago
parent
commit
c55750613f
  1. 2
      index.js
  2. 1
      src/components/App.js
  3. 2
      webpack.config.js

2
index.js

@ -41,7 +41,7 @@ window.downloadSketch = () => {
const state = getState();
const json = sketchDataToJSON(state.sketcher.present);
const blob = JSONToBlob(json);
saveAsLib(blob, 'doodle.d3sketch');
saveAsLib(blob, 'doodle.doodle3d');
});
};

1
src/components/App.js

@ -110,6 +110,7 @@ class App extends React.Component {
const extentions = file.name.split('.').pop();
switch (extentions.toUpperCase()) {
case 'DOODLE3D':
case 'D3SKETCH':
case 'JSON':
const url = URL.createObjectURL(file);

2
webpack.config.js

@ -64,7 +64,7 @@ module.exports = {
loader: 'url-loader?name=images/[name].[ext]'
}
}, {
test: /\.(svg|glsl|d3sketch)$/,
test: /\.(svg|glsl|d3sketch|doodle3d)$/,
use: {
loader: 'raw-loader'
}

Loading…
Cancel
Save