put gz back to github

master
howard 2021-04-23 17:44:21 -07:00
parent 77d364dfed
commit 46f24e6f97
8 changed files with 13 additions and 13 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/
dist/
stats.json
stats.json
demo_parts/*.json

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -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

View File

@ -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 })

View File

@ -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'],
]

View File

@ -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/

View File

@ -6,7 +6,7 @@ import { MdVisibilityOff, MdVisibility, MdDelete } from 'react-icons/md'
import { FaCube, FaEdit } from 'react-icons/fa'
import {sce} from './app'
import { sce } from './app'
export const Tree = () => {
const treeEntries = useSelector(state => state.treeEntries)
@ -114,8 +114,8 @@ const TreeEntry = ({ entId }) => {
sce.render()
}}
tooltip= {obj3d.name[0] !='(' && "double click to edit"}
// tooltip= {obj3d.userData.name}
tooltip={obj3d.name[0] != '(' ? "double click to edit" : undefined}
// tooltip= {obj3d.userData.name}
>
<Icon className='h-full w-auto p-1.5' />