CUBE_THEMES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Looks that come with the package. standard is the cube as it is sold;
paper is the quieter one the demo site wears, made to sit on warm paper
and green felt; stickerless has colour to the edge of every piece.
インポート
import { CUBE_THEMES } from "@johnmorrisdotca/kyuubu";
定義
const CUBE_THEMES: { readonly standard: { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#111"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }; readonly paper: { readonly colours: { readonly U: "#fffdf7"; readonly R: "#b5452c"; readonly F: "#2f7a4f"; readonly D: "#e0b43b"; readonly L: "#d97a2b"; readonly B: "#2b5f8f"; }; readonly plastic: "#1f2320"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }; readonly stickerless: { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#2a2a2a"; readonly stickerInset: "1.5%"; readonly stickerRadius: "10%"; }; } = {
standard: { colours: { ...DEFAULT_COLOURS }, plastic: DEFAULT_PLASTIC, stickerInset: "6%", stickerRadius: "14%" },
paper: {
colours: { U: "#fffdf7", R: "#b5452c", F: "#2f7a4f", D: "#e0b43b", L: "#d97a2b", B: "#2b5f8f" },
plastic: "#1f2320",
stickerInset: "6%",
stickerRadius: "14%",
},
stickerless: { colours: { ...DEFAULT_COLOURS }, plastic: "#2a2a2a", stickerInset: "1.5%", stickerRadius: "10%" },
} as const satisfies Record<string, CubeTheme>
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
standard | { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#111"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; } | |
paper | { readonly colours: { readonly U: "#fffdf7"; readonly R: "#b5452c"; readonly F: "#2f7a4f"; readonly D: "#e0b43b"; readonly L: "#d97a2b"; readonly B: "#2b5f8f"; }; readonly plastic: "#1f2320"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; } | |
stickerless | { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#2a2a2a"; readonly stickerInset: "1.5%"; readonly stickerRadius: "10%"; } |
例
import { CUBE_THEMES } from "@johnmorrisdotca/kyuubu";
console.log(Object.keys(CUBE_THEMES).slice(0, 8));[ 'standard', 'paper', 'stickerless' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。