diff --git a/.vscode/settings.json b/.vscode/settings.json index d71538b..e9d5f61 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "Customizer", "Hutten", "cadquery", "jscad", diff --git a/app/web/src/components/Customizer/Customizer.tsx b/app/web/src/components/Customizer/Customizer.tsx new file mode 100644 index 0000000..e89633d --- /dev/null +++ b/app/web/src/components/Customizer/Customizer.tsx @@ -0,0 +1,68 @@ +import { useRender } from 'src/components/IdeWrapper/useRender' + +const Customizer = () => { + const [open, setOpen] = React.useState(true) + const ref = React.useRef() + const jsCadCustomizerElement = ref.current + React.useEffect(() => { + console.log(jsCadCustomizerElement) + if (jsCadCustomizerElement) { + jsCadCustomizerElement.innerHTML = `
hi there
` + } + }, [jsCadCustomizerElement]) + const handleRender = useRender() + return ( +
+
+
+ +
Parameters
+
+ +
+
+
+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+

lots of lines should cause scroll

+
+
+
+ ) +} + +export default Customizer diff --git a/app/web/src/components/IdeViewer/IdeViewer.tsx b/app/web/src/components/IdeViewer/IdeViewer.tsx index 8930b9f..0ac5421 100644 --- a/app/web/src/components/IdeViewer/IdeViewer.tsx +++ b/app/web/src/components/IdeViewer/IdeViewer.tsx @@ -6,6 +6,7 @@ import { Vector3 } from 'three' import { requestRender } from 'src/helpers/hooks/useIdeState' import texture from './dullFrontLitMetal.png' import { TextureLoader } from 'three/src/loaders/TextureLoader' +import Customizer from 'src/components/Customizer/Customizer' const loader = new TextureLoader() const colorMap = loader.load(texture) @@ -243,6 +244,7 @@ const IdeViewer = ({ Loading }) => {
)} + ) }