Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · Printable sheets: connect-the-dots constellations, the constellations for a latitude, a star wheel to cut out and a sky map for each month

dotsSvgfunction

One page of a connect-the-dots sheet as an SVG string measured in millimetres: the dots (and the numbers, unless the level is hard), the words that say what to do, and on an answer page the lines too, 1 mm thick for the kid type (0.4 mm for normal).

Import it

import { dotsSvg } from "@johnmorrisdotca/hoshi-stars/sheets";

Definition

function dotsSvg(text: string, options: { level?: DotLevel; widthMm: number; heightMm: number; lang?: Lang; answer?: boolean; type?: "kid" | "normal"; }): string

Parameters

NameTypeDescription
textstring

The constellation.

options{ level?: DotLevel; widthMm: number; heightMm: number; lang?: Lang; answer?: boolean; type?: "kid" | "normal"; }

level, widthMm and heightMm (the room the page's body has), lang, answer (draw the lines) and type.

Returns

string

The <svg> markup.

Examples

import { dotsSvg } from "@johnmorrisdotca/hoshi-stars/sheets";

const page = dotsSvg("Cas", { level: "easy", widthMm: 184.6, heightMm: 190, lang: "en" });
console.log(page.includes("Join the dots from 1 to"), page.includes("<circle"));
true true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.