Reference · Rockets, variants, parts and the fit check
assetPathOffunction
The shipped picture of these options, under the package's dist/assets/: starship-v3.svg, falcon-9-block-5-apart.thick.svg. These are drawn from the default view, with no flames. Null for a custom build, which has no file, or a variant, part or look that does not exist.
Import it
import { assetPathOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function assetPathOf(options: RocketOptions): string | null
Parameters
| Name | Type | Description |
|---|---|---|
options | RocketOptions | The rocket, variant, look, view and what to show. |
Returns
string | null
The path of the shipped picture under dist/assets/, or null when none is shipped for those options.
Examples
import { assetPathOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(assetPathOf({ rocket: "starship", variant: "v3" }));starship-v3.svgWhat it prints (run when this page was built)