Reference·JavaScript · @bimworks/viewercommonJavaScript

DrawingScaleResult

Interface in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Interface

TypeScript#
interface DrawingScaleResult

A drawing's alignment with a new scale (docs/drawing-scale-design.md §3)

Members#

Member Kind Description
factor Property How much larger the drawing is shown than with the alignment it had
matrix Property The new alignment: 16 numbers, column-major, mm (what SetAlignment and setModelAlignment take)
scale Property The uniform scale of the new alignment

factor#

TypeScript#
factor: number

How much larger the drawing is shown than with the alignment it had

matrix#

TypeScript#
matrix: (number)[]

The new alignment: 16 numbers, column-major, mm (what SetAlignment and setModelAlignment take)

scale#

TypeScript#
scale: number

The uniform scale of the new alignment