From f5ba146688d0c0bbd63db1f5ccefff39f1f6984a Mon Sep 17 00:00:00 2001 From: ochafik Date: Sat, 25 Mar 2023 15:56:21 +0000 Subject: [PATCH] fork me on github ribbon + model refactor --- LICENSE.md | 29 ----------------- README.md | 8 +++++ public/index.html | 11 +++++++ src/App.tsx | 22 ++++++++++++- src/actions.ts | 2 +- src/deep-mutate.ts | 3 +- src/model.ts | 80 ++++++++++++++++++---------------------------- tsconfig.json | 2 +- 8 files changed, 75 insertions(+), 82 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 9640524..5625d61 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -14,7 +14,6 @@ Please file an issue if you think a license or credits are missing or misreprese The WASM build was made possible by https://github.com/DSchroer/openscad-wasm. * [Monaco Editor](#monaco-editor) -* [Viewstl Plugin](#viewstl-plugin) * [React Stl Viewer](#react-stl-viewer) * [Three.js](#threejs) * [Boost](#boost) @@ -79,34 +78,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` -## Viewstl Plugin - -https://github.com/omrips/viewstl - -``` -MIT License - -Copyright (c) 2020 omrips - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -``` - ## React STL Viewer https://github.com/gabotechs/react-stl-viewer diff --git a/README.md b/README.md index 8c856cd..19f9fb8 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,13 @@ Prerequisites: * deno ```bash +make clean + +# When doing local development, ensure the import.meta.url is replaced to localhost: +# (otherwise will get cryptic `RangeError: WebAssembly.Table.get(): invalid index 999948 into function table`) +dev=1 make public +npm start + +# When building a release make ``` \ No newline at end of file diff --git a/public/index.html b/public/index.html index e425e0f..6cf9a74 100644 --- a/public/index.html +++ b/public/index.html @@ -10,6 +10,8 @@ + + + + + + Fork me on GitHub + +