Reference · Rockets, variants, parts and the fit check
LegendSymboltype
A symbol of the legend: its id, its name, what it means on a sheet, and a small drawing as an SVG path in a 24 by 24 box.
Import it
import type { LegendSymbol } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface LegendSymbol {
id: string;
name: string;
means: string;
path: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
means | string | |
path | string |
Examples
import { LEGEND, type LegendSymbol } from "@johnmorrisdotca/uchusen-rockets";
const symbol: LegendSymbol = LEGEND[0];
console.log(symbol.name, symbol.path);Hatch M4 4h16v16H4z M4 20L20 4What it prints (run when this page was built)