WalkableSurfacesViewHandle
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
TypeScript#
interface WalkableSurfacesViewHandleMembers#
| Member | Kind | Description |
|---|---|---|
| ready | Property | Resolves when the view of the current models and options is drawn |
| addBuildListener | Method | listener() after every build: the first, and each after models were added or removed or options changed |
| addClickListener | Method | |
| destroy | Method | |
| isLayerVisible | Method | |
| removeBuildListener | Method | |
| removeClickListener | Method | |
| setLayerVisible | Method | |
| statistics | Method | m² per state over all loaded models (unknown overlaps the floor states it outlines) |
| update | Method | New options; a change of layers only switches them, any other change builds the view again |
ready#
TypeScript#
readonly ready: Promise<void>Resolves when the view of the current models and options is drawn
addBuildListener#
TypeScript#
addBuildListener(listener: () => void): voidlistener() after every build: the first, and each after models were added or removed or options changed
Parameters#
| Name | Type | Description |
|---|---|---|
listener |
() => void |
addClickListener#
TypeScript#
addClickListener(listener: (span: WalkableSurfacesSpan) => void): voidParameters#
| Name | Type | Description |
|---|---|---|
listener |
(span: WalkableSurfacesSpan) => void |
destroy#
TypeScript#
destroy(): voidisLayerVisible#
TypeScript#
isLayerVisible(layer: WalkableSurfacesLayer): booleanParameters#
| Name | Type | Description |
|---|---|---|
layer |
WalkableSurfacesLayer |
removeBuildListener#
TypeScript#
removeBuildListener(listener: () => void): voidParameters#
| Name | Type | Description |
|---|---|---|
listener |
() => void |
removeClickListener#
TypeScript#
removeClickListener(listener: (span: WalkableSurfacesSpan) => void): voidParameters#
| Name | Type | Description |
|---|---|---|
listener |
(span: WalkableSurfacesSpan) => void |
setLayerVisible#
TypeScript#
setLayerVisible(layer: WalkableSurfacesLayer, visible: boolean): voidParameters#
| Name | Type | Description |
|---|---|---|
layer |
WalkableSurfacesLayer | |
visible |
boolean |
statistics#
TypeScript#
statistics(): Partial<Record<WalkableSurfacesState, number>>m² per state over all loaded models (unknown overlaps the floor states it outlines)
update#
TypeScript#
update(options: WalkableSurfacesViewOptions): Promise<void>New options; a change of layers only switches them, any other change builds the view again
Parameters#
| Name | Type | Description |
|---|---|---|
options |
WalkableSurfacesViewOptions |