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
2.1m questions
2.1m answers
60 comments
57.0k users