put gz back to github
parent
77d364dfed
commit
46f24e6f97
|
@ -1,3 +1,4 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/
|
dist/
|
||||||
stats.json
|
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 sce
|
||||||
// export let fs
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', async () => {
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
|
@ -47,8 +46,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
ReactDOM.render(<App store={store} />, document.getElementById('react'));
|
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 = () => {
|
const sketchCancel = () => {
|
||||||
if (!sce.activeSketch.hasChanged
|
console.log(sce.activeSketch.hasChanged)
|
||||||
&& sce.activeSketch.idOnActivate == id
|
if (sce.activeSketch.hasChanged
|
||||||
&& sce.activeSketch.c_idOnActivate == sce.activeSketch.c_id
|
|| sce.activeSketch.idOnActivate != id
|
||||||
|
|| sce.activeSketch.c_idOnActivate != sce.activeSketch.c_id
|
||||||
) {
|
) {
|
||||||
if (sce.newSketch) {
|
if (sce.newSketch) {
|
||||||
dispatch({ type: 'delete-node', id: sce.activeSketch.obj3d.name })
|
dispatch({ type: 'delete-node', id: sce.activeSketch.obj3d.name })
|
||||||
|
|
|
@ -10,7 +10,8 @@ const utf8decoder = new TextDecoder();
|
||||||
|
|
||||||
export const DropDown = () => {
|
export const DropDown = () => {
|
||||||
const arr = [
|
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'],
|
// ['headphone-stand.json.gz', 'headphone-stand'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
fileSave,
|
fileSave,
|
||||||
} from 'browser-fs-access';
|
} from 'browser-fs-access';
|
||||||
|
|
||||||
import {sce, fs} from './app'
|
import {sce} from './app'
|
||||||
|
|
||||||
// https://web.dev/file-system-access/
|
// https://web.dev/file-system-access/
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { MdVisibilityOff, MdVisibility, MdDelete } from 'react-icons/md'
|
||||||
|
|
||||||
import { FaCube, FaEdit } from 'react-icons/fa'
|
import { FaCube, FaEdit } from 'react-icons/fa'
|
||||||
|
|
||||||
import {sce} from './app'
|
import { sce } from './app'
|
||||||
|
|
||||||
export const Tree = () => {
|
export const Tree = () => {
|
||||||
const treeEntries = useSelector(state => state.treeEntries)
|
const treeEntries = useSelector(state => state.treeEntries)
|
||||||
|
@ -114,8 +114,8 @@ const TreeEntry = ({ entId }) => {
|
||||||
sce.render()
|
sce.render()
|
||||||
}}
|
}}
|
||||||
|
|
||||||
tooltip= {obj3d.name[0] !='(' && "double click to edit"}
|
tooltip={obj3d.name[0] != '(' ? "double click to edit" : undefined}
|
||||||
// tooltip= {obj3d.userData.name}
|
// tooltip= {obj3d.userData.name}
|
||||||
|
|
||||||
>
|
>
|
||||||
<Icon className='h-full w-auto p-1.5' />
|
<Icon className='h-full w-auto p-1.5' />
|
||||||
|
|
Loading…
Reference in New Issue