Reference·JavaScript · @bimworks/viewercommonJavaScript

standardScaleNear

Function in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Function

TypeScript#
function standardScaleNear

Members#

Member Kind Description
standardScaleNear Method The standard sheet scale nearest to 1:n within options.tolerance (relative, default 0.02), metric unless options.system is "imperial"; null when none is that…

standardScaleNear#

TypeScript#
standardScaleNear(n: number, options?: { system?: "metric" | "imperial"; tolerance?: number }): { label: string; n: number; offPercent: number } | null

The standard sheet scale nearest to 1:n within options.tolerance (relative, default 0.02), metric unless options.system is "imperial"; null when none is that close

Parameters#

Name Type Description
n number
options { system?: "metric" | "imperial"; tolerance?: number }