Reference·JavaScript · @bimworks/viewercommonJavaScript

TransitionStep

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
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
camera Property
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…
deselect Property As removeFromSelectionSet
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…
easing Property Default "ease-in-out"; the camera keeps its own smooth curve
ghost Property As addToGhostSet, after the visibility keys: ghosting hides what is visible at that point and draws it as a ghost
ghosted Property Exactly these objects ghosts, as setGhostSet: the others leave the set before the visibility keys, these join it after them
hide Property As removeFromVisibleSet; after show, so an object in both ends up hidden
resetColors Property Back to their own colour, as resetColor; before colors
select Property As addToSelectionSet
selected Property Exactly these objects selected, as setSelectionSet; after the visibility keys, so it wins over the deselection of hidden objects
show Property As addToVisibleSet
unghost Property As removeFromGhostSet, before the visibility keys: leaving the set shows what ghosting hid
unxray Property As removeFromXRaySet
visible Property Exactly these objects visible, as setVisibleSet
xray Property As addToXRaySet
xrayed Property Exactly these objects in the x-ray set, as setXRaySet

camera#

colors#

TypeScript#
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#

TypeScript#
deselect?: string | Iterable<Qid, any, any>

As removeFromSelectionSet

duration#

TypeScript#
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#

TypeScript#
easing?: TransitionEasing

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

ghost#

TypeScript#
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#

TypeScript#
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#

TypeScript#
hide?: string | Iterable<Qid, any, any>

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

resetColors#

TypeScript#
resetColors?: string | Iterable<Qid, any, any>

Back to their own colour, as resetColor; before colors

select#

TypeScript#
select?: string | Iterable<Qid, any, any>

As addToSelectionSet

selected#

TypeScript#
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#

TypeScript#
show?: string | Iterable<Qid, any, any>

As addToVisibleSet

unghost#

TypeScript#
unghost?: string | Iterable<Qid, any, any>

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

unxray#

TypeScript#
unxray?: string | Iterable<Qid, any, any>

As removeFromXRaySet

visible#

TypeScript#
visible?: string | Iterable<Qid, any, any>

Exactly these objects visible, as setVisibleSet

xray#

TypeScript#
xray?: string | Iterable<Qid, any, any>

As addToXRaySet

xrayed#

TypeScript#
xrayed?: string | Iterable<Qid, any, any>

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