Reference · Cube engine and views
FACE_PROPERTIESconstant
The CSS custom property that colours each face, where no colour is given in code: set it on the cube's element or any ancestor.
Import it
import { FACE_PROPERTIES } from "@johnmorrisdotca/kyuubu";
Definition
const FACE_PROPERTIES: Readonly<Record<"U" | "R" | "F" | "D" | "L" | "B", string>> = {
U: "--kyuubu-up",
R: "--kyuubu-right",
F: "--kyuubu-front",
D: "--kyuubu-down",
L: "--kyuubu-left",
B: "--kyuubu-back",
}
Members
| Name | Type | Description |
|---|---|---|
U | string | |
R | string | |
F | string | |
D | string | |
L | string | |
B | string |
Examples
import { FACE_PROPERTIES } from "@johnmorrisdotca/kyuubu";
console.log(FACE_PROPERTIES);{
U: '--kyuubu-up',
R: '--kyuubu-right',
F: '--kyuubu-front',
D: '--kyuubu-down',
L: '--kyuubu-left',
B: '--kyuubu-back'
}What it prints (run when this page was built)