scaleReport関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The report of a fit checked at a size: every part's height, diameter and place, the whole size and the viewer's labels, k times what they are at full size.
インポート
import { scaleReport } from "@johnmorrisdotca/uchusen-rockets";
定義
function scaleReport(report: FitReport, k: number): FitReport
引数
| 名前 | 型 | 説明 |
|---|---|---|
report | FitReport | The fit report of the concept at its full size. |
k | number | The factor, 0.6 to 1. |
戻り値
FitReport
A report like it with every length scaled; the same report when k is 1.
例
import { check, scaleReport } from "@johnmorrisdotca/uchusen-rockets";
const full = check({ rocket: "fleet-kaminari", variant: "fleet-kaminari" });
console.log(scaleReport(full, 0.6).size?.height);1090.8出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。