Reference · Facts, line drawings and positions
StarParttype
One part of a star's picture and how well it is known, with a sentence for a page to show in English and Japanese.
Import it
import type { StarPart } from "@johnmorrisdotca/wakusei-planets";
Definition
interface StarPart {
part: "temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow";
status: StarStatus;
note: {
en: string;
ja: string;
};
}
Members
| Name | Type | Description |
|---|---|---|
part | "temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow" | |
status | StarStatus | |
note | { en: string; ja: string; } |
Examples
import { starLook, type StarPart } from "@johnmorrisdotca/wakusei-planets";
const parts: readonly StarPart[] = starLook({ temperatureK: 5772, radiusSun: 1 }).parts;
console.log(parts.map((part) => `${part.part}: ${part.status}`).join(", "));temperature: measured, colour: derived, size: measured, edge: derived, surface: illustrative, spots: illustrative, rotation: illustrative, prominences: illustrative, glow: illustrativeWhat it prints (run when this page was built)