standardScaleNear
Function in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Function
TypeScript#
function standardScaleNearMembers#
| 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 } | nullThe 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 } |