Exporting Drawings to JavaScript paper.js or pixi.js

I was looking for a way to export drawings into a JavaScript framework like paper.js or pixi.js. Not sure if SVG would be the best format or if we should use some of the native features in paper.js. I saw that their were a couple of SVG export plugins in Food-4-Rhino.

The end goal would be to create construction drawings that can be easily displayed online. For some reason PDF has become the default export method for viewing online but this has none of the responsive features that is typical of modern websites making it difficult to view construction drawings in different sized screens. We would also like to have access to the data insides of those drawings so that selecting a 2D element will bring up BIM data.

We looked at other viewers out their and their doesn’t seem to be any 2D viewer out their that is not PDF based . We are looking to plot out views and then use flexbox to scale and arrange drawing dynamically in a page and create hyperlinks between elements.

In the future we would like to integrate 2D and 3D views so that users could see a 2D section transform into a 3D model.