Integrate JSCad

I've recently migrate away from my very emacsy setup of my website to a bunch of javascript that I mainly prompted.

In teory the worse of the worse, on the other hands works and over time will improve, I am satisfy that what I am writing today is a fully functional website that runs on my local and builds super fast, has hot-reload and at this time deploys within 36~40 seconds.

Now what I want to do is sketch a website with whiteboard, let's see if I can manage with this setup.

import jscad from '@jscad/modeling';

const { union } = jscad.booleans
const { translate } = jscad.transforms
const { extrudeLinear } = jscad.extrusions
const { roundedCuboid, roundedRectangle } = jscad.primitives

const caseBodyRounded = roundedCuboid({ size: [300, 210, 7], roundRadius: 3, segments: 32 });
const caseBodySquareBase = translate([0, 0, -3.5], extrudeLinear({ height: 3 }, roundedRectangle({ size: [300, 210], roundRadius: 3 })));

export default [translate([0,0,3.5], union(caseBodyRounded, caseBodySquareBase))];