Reference·JavaScript · @bimworks/viewer3dJavaScript

PlacementTool

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface PlacementTool

The 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#

TypeScript#
readonly canEach?: boolean

Whether the objects can turn each in place: 2 to 48 objects of the models (Viewer3D-Next)

canRedo#

TypeScript#
readonly canRedo?: boolean

canUndo#

TypeScript#
readonly canUndo?: boolean

Steps back and forward, as Ctrl+Z and Ctrl+Y (Viewer3D-Next)

canUseObjectFrame#

TypeScript#
readonly canUseObjectFrame?: boolean

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 a plate) (Viewer3D-Next)

change#

TypeScript#
readonly change: { moveMm: (number)[]; rotate: { angleDeg: number; axis: (number)[] } | null }

The accumulated change so far, render frame

each#

TypeScript#
readonly each?: boolean

Whether every turn turns each object about its own pivot instead of all about one (Viewer3D-Next)

fillings#

TypeScript#
readonly fillings?: boolean

Doors or windows are among the objects (Viewer3D-Next)

frameKind#

TypeScript#
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#

TypeScript#
readonly hint?: string

What to do now, for the mode bar (Viewer3D-Next)

mode#

TypeScript#
readonly mode: "rotate" | "move"

openingsAlong#

TypeScript#
readonly openingsAlong?: boolean

Whether their openings go along; off, they move in them (Viewer3D-Next)

readout#

TypeScript#
readonly readout?: { meta: string; value: string }

The change as text: "Δ 600 mm · ↻ 90°", and what snaps (Viewer3D-Next)

snapStep#

TypeScript#
readonly snapStep: number

The step snapping moves in: mm for a move, degrees for a turn

stepLabel#

TypeScript#
readonly stepLabel?: string

"100 mm" or "15°" (Viewer3D-Next)

stepSnapping#

TypeScript#
readonly stepSnapping: boolean

Whether lengths go in zoom-aware steps and turns in 15° (Viewer3D: the Shift steps)

surfaces#

TypeScript#
readonly surfaces?: boolean

On surfaces: a floor drag puts the objects on the face under the cursor (Viewer3D-Next)

title#

TypeScript#
readonly title?: string

"Move · 3 objects" (Viewer3D-Next)

redo#

TypeScript#
redo?(): boolean

setEach#

TypeScript#
setEach?(on: boolean): boolean

Each 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#

TypeScript#
setFrame?(kind: "object" | "world"): void

Parameters#

Name Type Description
kind "object" | "world"

setOpeningsAlong#

TypeScript#
setOpeningsAlong?(on: boolean): void

Parameters#

Name Type Description
on boolean

setStepSnapping#

TypeScript#
setStepSnapping?(on: boolean): void

Switch the steps (Viewer3D-Next)

Parameters#

Name Type Description
on boolean

setSurfaces#

TypeScript#
setSurfaces?(on: boolean): void

Parameters#

Name Type Description
on boolean

undo#

TypeScript#
undo?(): boolean