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

# ObjectTransformOptions

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

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
interface ObjectTransformOptions
````

Options of `Viewer3d.startObjectTransform`

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-fillings-841fd7ddfcb0|fillings]] | Property | Doors or windows are among the objects: their openings move with them (BUL TRANSFORM's default), and the mode bar offers to keep them (`result.openings` fals… |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-host-8983cfa0ca42|host]] | Property | The wall all of the objects (doors, windows) sit in: the move keeps them in it (along it and up and down, stopping at its ends; turns of 180° only), and the … |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-lengthunit-6c42621cf807|lengthUnit]] | Property | The unit of a length typed without one, default "mm" (Viewer3D-Next) |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-mode-7c94f229de64|mode]] | Property | What a bare typed number means first (a length or an angle) and the hint; M and R switch while the tool runs |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-model-a6688a49658e|model]] | Property | The objects are a whole model (Manual alignment): one change for all of it, "the model" in the title; the new alignment is the stored one times `models[0].de… |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-oncancel-225327afcc4c|onCancel]] | Property | Escape |
| [[page:reference/javascript/bimworks-viewer3d/objecttransformoptions-894a1e71#member-oncommit-fb0df3010c6e|onCommit]] | Property | Enter: the accumulated transformation |

## `fillings` {#member-fillings-841fd7ddfcb0}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
fillings?: boolean
````

Doors or windows are among the objects: their openings move with them (BUL TRANSFORM's default), and the mode bar
offers to keep them (`result.openings` false: WITHOUT OPENINGS). Viewer3D-Next

## `host` {#member-host-8983cfa0ca42}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
host?: Iterable<Qid, any, any>
````

The wall all of the objects (doors, windows) sit in: the move keeps them in it (along it and up and down, stopping at
its ends; turns of 180° only), and the wall is drawn see-through while a gesture runs. Viewer3D-Next

## `lengthUnit` {#member-lengthunit-6c42621cf807}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
lengthUnit?: string
````

The unit of a length typed without one, default "mm" (Viewer3D-Next)

## `mode` {#member-mode-7c94f229de64}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
mode: "rotate" | "move"
````

What a bare typed number means first (a length or an angle) and the hint; M and R switch while the tool runs

## `model` {#member-model-a6688a49658e}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
model?: boolean
````

The objects are a whole model (Manual alignment): one change for all of it, "the model" in the title; the new
alignment is the stored one times `models[0].delta`. Viewer3D-Next

## `onCancel` {#member-oncancel-225327afcc4c}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
onCancel?: () => void
````

Escape

## `onCommit` {#member-oncommit-fb0df3010c6e}

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
onCommit?: (result: ObjectTransformResult) => void
````

Enter: the accumulated transformation
