In a 2-tier approach you would leave the interactive generation of 2D parametric shapes in Makerjs. Then export the shape in a format that’s supported by Three.js for extrusion, like svg or stl. Save the exported code to a file.
Load that file into a customised three.js viewer and interactively extrude it.
Various examples exist for file loading into three.js, and subsequent extrusion of 2D shapes:
Every example page has a little “<>” button in its lower right corner. When you click that, the source code of that demo is shown in a separate browser tab.