@hrgdavor This is the best idea. Treat jscad as a modeling library, and the model can work on other rendering engines.
I recently tried to add the function of dimensioning to the two-dimensional model. After encapsulating the function, I can input the starting point, the end point and the type of the label to draw the label.
This is the input parameter of the dimension marker.
It works fine, but i cannot select points with the mouse