From 2ae038020b494cba49aa256d739715d174cf65e1 Mon Sep 17 00:00:00 2001 From: ochafik Date: Mon, 27 Mar 2023 01:08:45 +0100 Subject: [PATCH] color picker floating above viewer --- README.md | 2 ++ src/components/Footer.tsx | 2 +- src/components/PanelSwitcher.tsx | 1 - src/components/ViewerPanel.tsx | 24 +++++++++++++++++++----- src/state/app-state.ts | 3 ++- src/state/fragment-state.ts | 2 ++ src/state/initial-state.ts | 6 +++++- src/state/model.ts | 8 ++++++++ src/utils.ts | 4 ++-- 9 files changed, 41 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 81d5950..7d4d1ec 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,14 @@ Licenses: see [LICENSES](./LICENSE). ## Roadmap - Add tests! +- Better names for downloads (matching source) - Model /home fs in shared state. have two clear paths: /libraries for builtins, and /home for user data. State pointing to /libraries paths needs not store the data except if there's overrides (flagged as modifications in the file picker) - Setup [OPENSCADPATH](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries#Setting_OPENSCADPATH) env var w/ Emscripten to ensure examples will run fine. - Bundle some official demos and more examples from each library! - Ask users to contribute recipes to include more libraries, and cool examples that work in the environment - Drag and drop of files (SCAD, STL, etc) and Zip archives. For assets, auto insert the corresponding import. - Proper PWA w/ File opening / association to *.scad files +- Animation rendering (And other formats than STL) - Compress URL fragment - Customizer support. Probably by adding --export-json or --export-format=customizer-json to OpenSCAD. - Mobile (iOS) editing support: switch to https://www.npmjs.com/package/react-codemirror ? diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 0fad6a5..f0aa477 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -113,7 +113,7 @@ export default function Footer({style}: {style?: CSSProperties}) { {state.output && (