Reference · Rockets, variants, parts and the fit check
scaleReportfunction
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 it
import { scaleReport } from "@johnmorrisdotca/uchusen-rockets";
Definition
function scaleReport(report: FitReport, k: number): FitReport
Parameters
| Name | Type | Description |
|---|---|---|
report | FitReport | The fit report of the concept at its full size. |
k | number | The factor, 0.6 to 1. |
Returns
FitReport
A report like it with every length scaled; the same report when k is 1.
Examples
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.8What it prints (run when this page was built)