mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
rename sketch file to doodle3d
This commit is contained in:
parent
853d8a5c7e
commit
c55750613f
2
index.js
2
index.js
@ -41,7 +41,7 @@ window.downloadSketch = () => {
|
|||||||
const state = getState();
|
const state = getState();
|
||||||
const json = sketchDataToJSON(state.sketcher.present);
|
const json = sketchDataToJSON(state.sketcher.present);
|
||||||
const blob = JSONToBlob(json);
|
const blob = JSONToBlob(json);
|
||||||
saveAsLib(blob, 'doodle.d3sketch');
|
saveAsLib(blob, 'doodle.doodle3d');
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -110,6 +110,7 @@ class App extends React.Component {
|
|||||||
const extentions = file.name.split('.').pop();
|
const extentions = file.name.split('.').pop();
|
||||||
|
|
||||||
switch (extentions.toUpperCase()) {
|
switch (extentions.toUpperCase()) {
|
||||||
|
case 'DOODLE3D':
|
||||||
case 'D3SKETCH':
|
case 'D3SKETCH':
|
||||||
case 'JSON':
|
case 'JSON':
|
||||||
const url = URL.createObjectURL(file);
|
const url = URL.createObjectURL(file);
|
||||||
|
@ -64,7 +64,7 @@ module.exports = {
|
|||||||
loader: 'url-loader?name=images/[name].[ext]'
|
loader: 'url-loader?name=images/[name].[ext]'
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
test: /\.(svg|glsl|d3sketch)$/,
|
test: /\.(svg|glsl|d3sketch|doodle3d)$/,
|
||||||
use: {
|
use: {
|
||||||
loader: 'raw-loader'
|
loader: 'raw-loader'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user