Reference · Cube engine and views
CUBE_SCALE_PXconstant
How wide each is, in pixels: a cube is as tall as it is wide.
Import it
import { CUBE_SCALE_PX } from "@johnmorrisdotca/kyuubu";
Definition
const CUBE_SCALE_PX: Readonly<Record<"small" | "medium" | "large", number>> = { small: 72, medium: 160, large: 300 }
Members
| Name | Type | Description |
|---|---|---|
small | number | |
medium | number | |
large | number |
Examples
import { CUBE_SCALE_PX } from "@johnmorrisdotca/kyuubu";
console.log(CUBE_SCALE_PX);{ small: 72, medium: 160, large: 300 }What it prints (run when this page was built)