Frontend changes to accommodate curv deploy

This commit is contained in:
Kurt Hutten
2021-11-30 11:57:29 +11:00
parent e8ae6193e4
commit d4999d8f63
5 changed files with 17 additions and 11 deletions

View File

@@ -25,8 +25,8 @@ export const cadPackageConfigs: { [key in CadPackageType]: CadPackageConfig } =
}, },
curv: { curv: {
label: 'Curv', label: 'Curv',
buttonClasses: 'bg-ch-purple-500', buttonClasses: 'bg-blue-600',
dotClasses: 'bg-yellow-300', dotClasses: 'bg-green-500',
}, },
INIT: { INIT: {
label: '', label: '',

View File

@@ -34,7 +34,7 @@ const CaptureButtonViewer = ({
} }
const onCameraChange = (camera, isFirstCameraChange) => { const onCameraChange = (camera, isFirstCameraChange) => {
const renderPromise = const renderPromise =
state.ideType === 'openscad' && (state.ideType === 'openscad' || state.ideType === 'curv') &&
requestRenderStateless({ requestRenderStateless({
state, state,
camera, camera,

View File

@@ -348,10 +348,10 @@ function ChooseYourCharacter() {
cadPackage: 'jscad', cadPackage: 'jscad',
desc: 'A JavaScript Code-CAD library that will feel familiar to web developers, based on the same tech as OpenSCAD.', desc: 'A JavaScript Code-CAD library that will feel familiar to web developers, based on the same tech as OpenSCAD.',
}, },
// { // TODO add curv to this list. {
// cadPackage: 'curv', cadPackage: 'curv',
// desc: 'A language for creating 3D art', desc: "Curv is a programming language for creating art using mathematics. It's a 2D and 3D geometric modelling tool.",
// } }
].map( ].map(
({ ({
cadPackage, cadPackage,

View File

@@ -98,8 +98,8 @@ const menuOptions: {
{ {
name: 'Curv', name: 'Curv',
sub: 'alpha ', sub: 'alpha ',
bgClasses: 'bg-ch-blue-700', bgClasses: 'bg-blue-600',
dotClasses: 'bg-blue-800', dotClasses: 'bg-green-500',
ideType: 'curv', ideType: 'curv',
}, },
] ]

View File

@@ -6,4 +6,10 @@ Maintained by: [Doug Moen and contributors](https://github.com/curv/curv/graphs/
Documentation: [curv3d.org](https://curv3d.org) Documentation: [curv3d.org](https://curv3d.org)
--- ---
Curv is a programming language for creating art using mathematics. Its a 2D and 3D geometric modelling tool that supports full colour, animation and 3D printing. Curv is a programming language for creating art using mathematics. It's a 2D and 3D geometric modelling tool that supports full colour, animation and 3D printing.
### [Examples](https://github.com/curv3d/curv/tree/master/examples)
- [Flog spiral](https://619b5e6c6689420008eedfe5--cadhubxyz.netlify.app/draft/curv#fetch_text_v1=https%3A%2F%2Fraw.githubusercontent.com%2Fcurv3d%2Fcurv%2Fmaster%2Fexamples%2Flog_spiral.curv)
- [Shreks donut](https://619b5e6c6689420008eedfe5--cadhubxyz.netlify.app/draft/curv#fetch_text_v1=https%3A%2F%2Fraw.githubusercontent.com%2Fcurv3d%2Fcurv%2Fmaster%2Fexamples%2Fshreks_donut.curv)
- [Wood grain](https://619b5e6c6689420008eedfe5--cadhubxyz.netlify.app/draft/curv#fetch_text_v1=https%3A%2F%2Fraw.githubusercontent.com%2Fcurv3d%2Fcurv%2Fmaster%2Fexamples%2Ffinial.curv)