OverlayHandle
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
TypeScript#
interface OverlayHandleMembers#
| 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: stringresolved#
TypeScript#
readonly resolved: booleanThe bound model (or a stand-in version) is loaded and the overlay is drawn
stale#
TypeScript#
readonly stale: booleanisLayerVisible#
TypeScript#
isLayerVisible(layerId: string): booleanParameters#
| Name | Type | Description |
|---|---|---|
layerId |
string |
remove#
TypeScript#
remove(): voidsetLayerVisible#
TypeScript#
setLayerVisible(layerId: string, visible: boolean): voidParameters#
| Name | Type | Description |
|---|---|---|
layerId |
string |
|
visible |
boolean |
update#
TypeScript#
update(item: OverlayItem): booleanReplaces the item with the same id; false when there is none
Parameters#
| Name | Type | Description |
|---|---|---|
item |
OverlayItem |
viewFit#
TypeScript#
viewFit(layerId?: string): booleanFits the camera to the overlay or one layer; false while it is not placed
Parameters#
| Name | Type | Description |
|---|---|---|
layerId |
string |