Frontend changes to accommodate curv deploy
This commit is contained in:
@@ -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: '',
|
||||||
@@ -54,7 +54,7 @@ const CadPackage = ({
|
|||||||
<ButtonOrDiv
|
<ButtonOrDiv
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={
|
className={
|
||||||
`grid grid-flow-col-dense items-center gap-2 text-gray-100 bg-opacity-30
|
`grid grid-flow-col-dense items-center gap-2 text-gray-100 bg-opacity-30
|
||||||
${cadPackageConfig?.buttonClasses} ` + className
|
${cadPackageConfig?.buttonClasses} ` + className
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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. It’s 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user