Reference·JavaScript · @bimworks/viewer3dJavaScript

SectionPlaneWidget

Class in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Class

TypeScript#
class SectionPlaneWidget

Members#

Member Kind Description
constructor Method
activated Method Whether it follows the cursor, waiting for the click that places a plane (armed by a tool, or Ctrl held)
armedByTool Method Whether it was armed by SectionPlanes.startFaceTouchOff (a mode a user interface names), as opposed to the Ctrl preview
deactivate Method Disarm it without placing a plane
onArmedChange Method

constructor#

TypeScript#
constructor()

activated#

TypeScript#
public activated(): boolean

Whether it follows the cursor, waiting for the click that places a plane (armed by a tool, or Ctrl held)

armedByTool#

TypeScript#
public armedByTool(): boolean

Whether it was armed by SectionPlanes.startFaceTouchOff (a mode a user interface names), as opposed to the Ctrl preview

deactivate#

TypeScript#
public deactivate(): void

Disarm it without placing a plane

onArmedChange#

TypeScript#
public onArmedChange(fn: (armed: boolean) => void): () => void

Parameters#

Name Type Description
fn (armed: boolean) => void Called with armedByTool whenever it changes

Returns#

The unsubscribe