Reference·JavaScript · @bimworks/viewercommonJavaScript

BvlProcessOptions

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
interface BvlProcessOptions

Members#

Member Kind Description
addedAnnotations Property Receives every annotation and annotation layer added, so they can be taken away again
keepMeasurements Property Leave the measurements alone (a pick)
reset Property First take away the previous result (Viewer3d.resetResults); default true
resultColorOf Property The "#rrggbb" colour of an object's check result, for COLOR RESULT n%; without it those objects keep their colour
transition Property The visibility, selection, colours and VIEWFIT as one ObjectStateManager.transition step: its duration (default 500 ms) and easing, the schedule and onStop o…

addedAnnotations#

TypeScript#
addedAnnotations?: (unknown)[] | null

Receives every annotation and annotation layer added, so they can be taken away again

keepMeasurements#

TypeScript#
keepMeasurements?: boolean

Leave the measurements alone (a pick)

reset#

TypeScript#
reset?: boolean

First take away the previous result (Viewer3d.resetResults); default true

resultColorOf#

TypeScript#
resultColorOf?: (qid: string) => string | null | null

The "#rrggbb" colour of an object's check result, for COLOR RESULT n%; without it those objects keep their colour

transition#

TypeScript#
transition?: false | { duration?: number; easing?: TransitionEasing } & TransitionOptions | null

The visibility, selection, colours and VIEWFIT as one ObjectStateManager.transition step: its duration (default 500 ms) and easing, the schedule and onStop of TransitionOptions, each key over the script's TRANSITION header; either one makes it a transition. false applies at once whatever the script says. The flags, wireframes, labels and annotations apply at once either way (docs/viewer-state-transitions-design.md §8.2)