---
title: ObjectDistanceMode
summary: Type alias in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# ObjectDistanceMode

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Type alias

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
type ObjectDistanceMode = "shortest" | "vertical" | "horizontal";
````

Which distance an object distance measurement reports: "shortest" the 3D distance between the surfaces; "vertical" the shortest
segment parallel to Z (the footprints of the objects must overlap, otherwise there is no result); "horizontal" the shortest segment
parallel to the XY plane (the height ranges must overlap)
