After using FitToView, the distance between the page and the component is too close. Is there any good method to control this distance?enter image description here
you could get the boundingbox of the object (components) and scale up/down with the box to make an appropriate box and call fitBounds
getBoundingbox: Forge Viewer API: Bounding box for a specific element
fitBounds: Autodesk forge viewer zooming to bounding box
1.4m articles
1.4m replys
5 comments
57.0k users