API Reference > imodeljs-frontend > Views > Viewport > zoomToElementProps zoomToElementProps Method Zoom the view to a show the tightest box around a given set of ElementProps. Optionally, change view rotation. zoomToElementProps(elementProps: ElementProps[], options?: ViewChangeOptions & ZoomToOptions): void Parameter Type Description elementProps ElementProps[] options ViewChangeOptions & ZoomToOptions options that control how the view change works and whether to change view rotation. Returns - void Defined in core/frontend/src/Viewport.ts Line 1759 Last Updated: 13 June, 2024