PlacementTool
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface PlacementToolThe move/rotate tool while it runs (Viewer3d.startObjectTransform; ActiveTool.measurement for "move" and
"rotate"): what the mode bar shows and switches. The members marked Viewer3D-Next are absent in Viewer3D
Members#
| Member | Kind | Description |
|---|---|---|
| canEach | Property | Whether the objects can turn each in place: 2 to 48 objects of the models (Viewer3D-Next) |
| canRedo | Property | |
| canUndo | Property | Steps back and forward, as Ctrl+Z and Ctrl+Y (Viewer3D-Next) |
| canUseObjectFrame | Property | Whether the objects have axes of their own: they stand upright (their heading), or are tilted, such as a roof pitch (their box's three axes, Z the normal of … |
| change | Property | The accumulated change so far, render frame |
| each | Property | Whether every turn turns each object about its own pivot instead of all about one (Viewer3D-Next) |
| fillings | Property | Doors or windows are among the objects (Viewer3D-Next) |
| frameKind | Property | The axes of the arrows, the locks and typed x/y: the objects' own or the world's (Viewer3D-Next) |
| hint | Property | What to do now, for the mode bar (Viewer3D-Next) |
| mode | Property | |
| openingsAlong | Property | Whether their openings go along; off, they move in them (Viewer3D-Next) |
| readout | Property | The change as text: "Δ 600 mm · ↻ 90°", and what snaps (Viewer3D-Next) |
| snapStep | Property | The step snapping moves in: mm for a move, degrees for a turn |
| stepLabel | Property | "100 mm" or "15°" (Viewer3D-Next) |
| stepSnapping | Property | Whether lengths go in zoom-aware steps and turns in 15° (Viewer3D: the Shift steps) |
| surfaces | Property | On surfaces: a floor drag puts the objects on the face under the cursor (Viewer3D-Next) |
| title | Property | "Move · 3 objects" (Viewer3D-Next) |
| redo | Method | |
| setEach | Method | Each in place on or off; false when it cannot (not enough room to draw each object on its own) (Viewer3D-Next) |
| setFrame | Method | |
| setOpeningsAlong | Method | |
| setStepSnapping | Method | Switch the steps (Viewer3D-Next) |
| setSurfaces | Method | |
| undo | Method |
canEach#
readonly canEach?: booleanWhether the objects can turn each in place: 2 to 48 objects of the models (Viewer3D-Next)
canRedo#
readonly canRedo?: booleancanUndo#
readonly canUndo?: booleanSteps back and forward, as Ctrl+Z and Ctrl+Y (Viewer3D-Next)
canUseObjectFrame#
readonly canUseObjectFrame?: booleanWhether the objects have axes of their own: they stand upright (their heading), or are tilted, such as a roof pitch (their box's three axes, Z the normal of a plate) (Viewer3D-Next)
change#
readonly change: { moveMm: (number)[]; rotate: { angleDeg: number; axis: (number)[] } | null }The accumulated change so far, render frame
each#
readonly each?: booleanWhether every turn turns each object about its own pivot instead of all about one (Viewer3D-Next)
fillings#
readonly fillings?: booleanDoors or windows are among the objects (Viewer3D-Next)
frameKind#
readonly frameKind?: "object" | "world"The axes of the arrows, the locks and typed x/y: the objects' own or the world's (Viewer3D-Next)
hint#
readonly hint?: stringWhat to do now, for the mode bar (Viewer3D-Next)
mode#
readonly mode: "rotate" | "move"openingsAlong#
readonly openingsAlong?: booleanWhether their openings go along; off, they move in them (Viewer3D-Next)
readout#
readonly readout?: { meta: string; value: string }The change as text: "Δ 600 mm · ↻ 90°", and what snaps (Viewer3D-Next)
snapStep#
readonly snapStep: numberThe step snapping moves in: mm for a move, degrees for a turn
stepLabel#
readonly stepLabel?: string"100 mm" or "15°" (Viewer3D-Next)
stepSnapping#
readonly stepSnapping: booleanWhether lengths go in zoom-aware steps and turns in 15° (Viewer3D: the Shift steps)
surfaces#
readonly surfaces?: booleanOn surfaces: a floor drag puts the objects on the face under the cursor (Viewer3D-Next)
title#
readonly title?: string"Move · 3 objects" (Viewer3D-Next)
redo#
redo?(): booleansetEach#
setEach?(on: boolean): booleanEach in place on or off; false when it cannot (not enough room to draw each object on its own) (Viewer3D-Next)
Parameters#
| Name | Type | Description |
|---|---|---|
on |
boolean |
setFrame#
setFrame?(kind: "object" | "world"): voidParameters#
| Name | Type | Description |
|---|---|---|
kind |
"object" | "world" |
setOpeningsAlong#
setOpeningsAlong?(on: boolean): voidParameters#
| Name | Type | Description |
|---|---|---|
on |
boolean |
setStepSnapping#
setStepSnapping?(on: boolean): voidSwitch the steps (Viewer3D-Next)
Parameters#
| Name | Type | Description |
|---|---|---|
on |
boolean |
setSurfaces#
setSurfaces?(on: boolean): voidParameters#
| Name | Type | Description |
|---|---|---|
on |
boolean |
undo#
undo?(): boolean