SectionPlaneWidget
Class in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Class
TypeScript#
class SectionPlaneWidgetMembers#
| 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(): booleanWhether it follows the cursor, waiting for the click that places a plane (armed by a tool, or Ctrl held)
armedByTool#
TypeScript#
public armedByTool(): booleanWhether it was armed by SectionPlanes.startFaceTouchOff (a mode a user interface names), as opposed to the Ctrl preview
deactivate#
TypeScript#
public deactivate(): voidDisarm it without placing a plane
onArmedChange#
TypeScript#
public onArmedChange(fn: (armed: boolean) => void): () => voidParameters#
| Name | Type | Description |
|---|---|---|
fn |
(armed: boolean) => void |
Called with armedByTool whenever it changes |
Returns#
The unsubscribe