put gz back to github
parent
77d364dfed
commit
46f24e6f97
|
@ -1,3 +1,4 @@
|
|||
node_modules/
|
||||
dist/
|
||||
stats.json
|
||||
demo_parts/*.json
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -37,7 +37,6 @@ const App = ({ store }) => {
|
|||
}
|
||||
|
||||
export let sce
|
||||
// export let fs
|
||||
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
|
||||
|
@ -47,8 +46,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
|
||||
ReactDOM.render(<App store={store} />, document.getElementById('react'));
|
||||
|
||||
// fs = await import ('../../node_modules/browser-fs-access/dist/index')
|
||||
|
||||
});
|
||||
|
||||
// window.store = store
|
||||
window.store = store
|
|
@ -76,9 +76,10 @@ export const Dialog = () => {
|
|||
}
|
||||
|
||||
const sketchCancel = () => {
|
||||
if (!sce.activeSketch.hasChanged
|
||||
&& sce.activeSketch.idOnActivate == id
|
||||
&& sce.activeSketch.c_idOnActivate == sce.activeSketch.c_id
|
||||
console.log(sce.activeSketch.hasChanged)
|
||||
if (sce.activeSketch.hasChanged
|
||||
|| sce.activeSketch.idOnActivate != id
|
||||
|| sce.activeSketch.c_idOnActivate != sce.activeSketch.c_id
|
||||
) {
|
||||
if (sce.newSketch) {
|
||||
dispatch({ type: 'delete-node', id: sce.activeSketch.obj3d.name })
|
||||
|
|
|
@ -10,7 +10,8 @@ const utf8decoder = new TextDecoder();
|
|||
|
||||
export const DropDown = () => {
|
||||
const arr = [
|
||||
['https://howardhwang.s3-us-west-1.amazonaws.com/headphone-stand.json.gz', 'headphone-stand'],
|
||||
// ['https://howardhwang.s3-us-west-1.amazonaws.com/headphone-stand.json.gz', 'headphone-stand'],
|
||||
['https://raw.githubusercontent.com/twpride/threeCAD/master/demo_parts/headphone-stand.json.gz', 'headphone-stand'],
|
||||
// ['headphone-stand.json.gz', 'headphone-stand'],
|
||||
]
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
fileSave,
|
||||
} from 'browser-fs-access';
|
||||
|
||||
import {sce, fs} from './app'
|
||||
import {sce} from './app'
|
||||
|
||||
// https://web.dev/file-system-access/
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ const TreeEntry = ({ entId }) => {
|
|||
sce.render()
|
||||
}}
|
||||
|
||||
tooltip= {obj3d.name[0] !='(' && "double click to edit"}
|
||||
tooltip={obj3d.name[0] != '(' ? "double click to edit" : undefined}
|
||||
// tooltip= {obj3d.userData.name}
|
||||
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue