I recently attempted to incorporate an stl-viewer into my Angular project using the npm package angular-stl-model-viewer and managed to install all necessary dependencies without any issues. However, I encountered a problem where the viewer is not displaying the content properly. You can find more information about the package here: https://github.com/tevim/angular-stl-model-viewer
Upon inspecting the HTML source code, I discovered that the angular-stl-viewer I added to my page using the tag <stl-viewer>
generates a div element and a canvas element, but the width and height attributes of the canvas are set to zero. This appears to be causing the issue. Interestingly, I was able to successfully render my sample stl file "HalfDonut.stl" using an online stl-viewer.
I also compared the HTML source code from the demo page, and it seems to be identical except for the width and height values of the canvas element.
You can view the demo page here: