solidLevelOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The one-based surface level, or null when this entry has no such kind, size or number.
インポート
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/dice";
定義
function solidLevelOf(kind: SolidKind, size: SolidSize, n: number): MeikyuuSolidLevel | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
kind | SolidKind | The native surface kind. |
size | "small" | "medium" | "large" | "huge" | "colossal" | The small, medium, large, huge or colossal collection. |
n | number | The one-based level number. |
戻り値
MeikyuuSolidLevel | null
The one-based surface level, or null when this entry has no such kind, size or number.
例
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/dice";
console.log(solidLevelOf("prism","small",1)?.code);prism:3:wilson:101543354出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。