API Reference > imodeljs-frontend > Views > ViewRect > inset inset Method Inset this ViewRect by values in the x and y directions. Positive values make the ViewRect smaller, and negative values will make it larger. inset(deltaX: number, deltaY: number): void Parameter Type Description deltaX number The distance to inset the ViewRect in the x direction. deltaY number The distance to inset the ViewRect in the y direction. Returns - void Defined in core/frontend/src/ViewRect.ts Line 93 Last Updated: 11 June, 2024