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

# TransitionStep

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

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
interface TransitionStep
````

One step of `ObjectStateManager.transition`: these changes at once, as the methods of the same meaning
make them. They apply in this order: unghost, visible, show, hide, ghost, the selection keys, the x-ray keys,
resetColors, colors, camera

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-camera-04ebbe930df5|camera]] | Property |  |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-colors-d02533220a53|colors]] | Property | As changeColorMulti: fixed colours (an alpha below 1 makes the objects transparent) and transparency alterations of the objects' own colours. Disposed once i… |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-deselect-13f36f5a3e06|deselect]] | Property | As removeFromSelectionSet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-duration-83b1501cbb00|duration]] | Property | Milliseconds, default 500. A step lasts the longer of this and camera.duration; the next one starts when it ends. A step without changes is a pause. 0: at on… |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-easing-52b32edd1963|easing]] | Property | Default "ease-in-out"; the camera keeps its own smooth curve |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-ghost-543f997d491b|ghost]] | Property | As addToGhostSet, after the visibility keys: ghosting hides what is visible at that point and draws it as a ghost |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-ghosted-92db5550895c|ghosted]] | Property | Exactly these objects ghosts, as setGhostSet: the others leave the set before the visibility keys, these join it after them |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-hide-8246d509e3e2|hide]] | Property | As removeFromVisibleSet; after show, so an object in both ends up hidden |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-resetcolors-dee2b3a0112a|resetColors]] | Property | Back to their own colour, as resetColor; before colors |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-select-f0f6d94ab427|select]] | Property | As addToSelectionSet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-selected-9044a631e46f|selected]] | Property | Exactly these objects selected, as setSelectionSet; after the visibility keys, so it wins over the deselection of hidden objects |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-show-8714d2d7a8a9|show]] | Property | As addToVisibleSet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-unghost-4ee9bf318989|unghost]] | Property | As removeFromGhostSet, before the visibility keys: leaving the set shows what ghosting hid |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-unxray-2960306048cb|unxray]] | Property | As removeFromXRaySet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-visible-e7b6b1759b0b|visible]] | Property | Exactly these objects visible, as setVisibleSet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-xray-cd4091e9afc8|xray]] | Property | As addToXRaySet |
| [[page:reference/javascript/bimworks-viewercommon/transitionstep-a3325838#member-xrayed-b6b7a5c64a78|xrayed]] | Property | Exactly these objects in the x-ray set, as setXRaySet |

## `camera` {#member-camera-04ebbe930df5}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
camera?: TransitionCameraFit | TransitionCameraPose | TransitionCameraProjection
````



## `colors` {#member-colors-d02533220a53}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
colors?: ColorChangeMap
````

As changeColorMulti: fixed colours (an alpha below 1 makes the objects transparent) and transparency
alterations of the objects' own colours. Disposed once its queries have resolved

## `deselect` {#member-deselect-13f36f5a3e06}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
deselect?: string | Iterable<Qid, any, any>
````

As removeFromSelectionSet

## `duration` {#member-duration-83b1501cbb00}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
duration?: number
````

Milliseconds, default 500. A step lasts the longer of this and camera.duration; the next one starts when it
ends. A step without changes is a pause. 0: at once, and a chain of 0 ms steps applies in one go

## `easing` {#member-easing-52b32edd1963}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
easing?: TransitionEasing
````

Default "ease-in-out"; the camera keeps its own smooth curve

## `ghost` {#member-ghost-543f997d491b}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
ghost?: string | Iterable<Qid, any, any>
````

As addToGhostSet, after the visibility keys: ghosting hides what is visible at that point and draws it as a ghost

## `ghosted` {#member-ghosted-92db5550895c}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
ghosted?: string | Iterable<Qid, any, any>
````

Exactly these objects ghosts, as setGhostSet: the others leave the set before the visibility keys, these join it after them

## `hide` {#member-hide-8246d509e3e2}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
hide?: string | Iterable<Qid, any, any>
````

As removeFromVisibleSet; after show, so an object in both ends up hidden

## `resetColors` {#member-resetcolors-dee2b3a0112a}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
resetColors?: string | Iterable<Qid, any, any>
````

Back to their own colour, as resetColor; before colors

## `select` {#member-select-f0f6d94ab427}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
select?: string | Iterable<Qid, any, any>
````

As addToSelectionSet

## `selected` {#member-selected-9044a631e46f}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
selected?: string | Iterable<Qid, any, any>
````

Exactly these objects selected, as setSelectionSet; after the visibility keys, so it wins over the deselection of hidden objects

## `show` {#member-show-8714d2d7a8a9}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
show?: string | Iterable<Qid, any, any>
````

As addToVisibleSet

## `unghost` {#member-unghost-4ee9bf318989}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
unghost?: string | Iterable<Qid, any, any>
````

As removeFromGhostSet, before the visibility keys: leaving the set shows what ghosting hid

## `unxray` {#member-unxray-2960306048cb}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
unxray?: string | Iterable<Qid, any, any>
````

As removeFromXRaySet

## `visible` {#member-visible-e7b6b1759b0b}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
visible?: string | Iterable<Qid, any, any>
````

Exactly these objects visible, as setVisibleSet

## `xray` {#member-xray-cd4091e9afc8}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
xray?: string | Iterable<Qid, any, any>
````

As addToXRaySet

## `xrayed` {#member-xrayed-b6b7a5c64a78}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
xrayed?: string | Iterable<Qid, any, any>
````

Exactly these objects in the x-ray set, as setXRaySet
