Closed bernhard-42 closed 2 years ago
ah, nope. reset
doesn't help.
This is a bug in three-cad-viewer. I did only test it with width:height
ratios of about 4:3 ...
See https://github.com/bernhard-42/three-cad-viewer/issues/5
@roipoussiere v1.5.9 fixes it. Now wide cad view with low height are supported as initial zoom and for viewer.reset()
The last version is based on three-cad-viewer v1.5.9.
I still need to update the viewer size according to the panel size, but the camera seems good.
yes, works now
Before
Then I move the CAD tab:
So the bottom view is empty now If I save again, it appears:
While the cad adapts to the size of the tab, the objects camera view is sub optimal. Maybe you could reset the camera? Can be done by calling
viewer.reset()
.