Reference·JavaScript · @bimworks/viewer3dJavaScript

OverlayHandle

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface OverlayHandle

Members#

Member Kind Description
id Property
resolved Property The bound model (or a stand-in version) is loaded and the overlay is drawn
stale Property
isLayerVisible Method
remove Method
setLayerVisible Method
update Method Replaces the item with the same id; false when there is none
viewFit Method Fits the camera to the overlay or one layer; false while it is not placed

id#

TypeScript#
readonly id: string

resolved#

TypeScript#
readonly resolved: boolean

The bound model (or a stand-in version) is loaded and the overlay is drawn

stale#

TypeScript#
readonly stale: boolean

isLayerVisible#

TypeScript#
isLayerVisible(layerId: string): boolean

Parameters#

Name Type Description
layerId string

remove#

TypeScript#
remove(): void

setLayerVisible#

TypeScript#
setLayerVisible(layerId: string, visible: boolean): void

Parameters#

Name Type Description
layerId string
visible boolean

update#

TypeScript#
update(item: OverlayItem): boolean

Replaces the item with the same id; false when there is none

Parameters#

Name Type Description
item OverlayItem

viewFit#

TypeScript#
viewFit(layerId?: string): boolean

Fits the camera to the overlay or one layer; false while it is not placed

Parameters#

Name Type Description
layerId string