This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stl uploads, huge preview improvements
- Loading branch information
1 parent
d32b61b
commit 3a3d50f
Showing
15 changed files
with
596 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"origin": ["*"], | ||
"method": ["GET"], | ||
"maxAgeSeconds": 3600 | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { chakra } from '@chakra-ui/react'; | ||
|
||
import { StlViewer } from 'react-stl-viewer'; | ||
|
||
const ChakraSTL = chakra(StlViewer); | ||
|
||
export function STLViewer({ ...props }) { | ||
// i think this is a pretty good color that looks good on both light and dark backgrounds while maintaining shadow visibility for part recognizability | ||
const modelColor = '#746D69'; | ||
|
||
return ( | ||
<ChakraSTL | ||
{...props} | ||
modelProps={{ | ||
color: modelColor, | ||
scale: 1 | ||
}} | ||
shadows | ||
orbitControls | ||
/> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.