some more progress with prototype.
-
Loading of folder projects works, it can handle ESM modules, cjs scripts (require) and even typescript projects. Also worker improvements that allow script developers to optimize execution when parameters change and cache expensive operations.
current jscad
https://user-images.githubusercontent.com/2480762/213881095-dcd72bce-881a-463d-a105-c9ad9c0b44bb.mp4
my new prototype is still ugly, but things are progressing bit by bit
It was my mission from the first attempt at making a new jscad prototype to allow script developers to optimize for performance and bling.
in this example I took a complex model and added caching so that model is kept in case only View Options parameters change. Those only affect rotation of the parts.
also I enhanced parameter definition to allow for live updates for any of the parameter (it is not default, but opt-in)
https://user-images.githubusercontent.com/2480762/213881066-e947e0ae-1b80-4a06-8234-fa9b1c974a19.mp4