Reference · Surface recipe readers
solidLevelNumberOffunction
The place (from 1) a recipe has among the levels of a solid at a size, or null when it is not one of them.
Import it
import { solidLevelNumberOf } from "@johnmorrisdotca/meikyuu/3d/levels/recipes";
Definition
function solidLevelNumberOf(kind: string, size: string, code: string): number | null
Parameters
| Name | Type | Description |
|---|---|---|
kind | string | The native puzzle family or surface shape specified by this signature. |
size | string | The named level size, or numeric tall width specified by this signature. |
code | string | The native encoded recipe or saved run. |
Returns
number | null
The place (from 1) a recipe has among the levels of a solid at a size, or null when it is not one of them.
Examples
import { solidLevelNumberOf, solidRecipesOf } from "@johnmorrisdotca/meikyuu/3d/levels/recipes";
console.log(solidLevelNumberOf("cube","small",solidRecipesOf("cube","small")[0]));1What it prints (run when this page was built)