DOT_LIMITSconstant
The smallest and largest radius, in millimetres, a dot of a sheet can have: the floor still prints and can be seen, the ceiling is what the brightest star gets when nothing is near it. A dot is also never larger than a third of the distance to its nearest neighbour on the page (down to the floor), so close dots stay apart.
Import it
import { DOT_LIMITS } from "@johnmorrisdotca/hoshi-stars/sheets";
Definition
const DOT_LIMITS: Readonly<Record<"kid" | "normal", { floor: number; ceiling: number; }>> = {
kid: { floor: 1, ceiling: 5 },
normal: { floor: 0.6, ceiling: 2 },
}
Members
| Name | Type | Description |
|---|---|---|
kid | { floor: number; ceiling: number; } | |
normal | { floor: number; ceiling: number; } |
Examples
import { DOT_LIMITS } from "@johnmorrisdotca/hoshi-stars/sheets";
console.log(DOT_LIMITS.kid.floor, DOT_LIMITS.kid.ceiling);1 5What it prints (run when this page was built)