mountMeikyuufunction
Draw a puzzle into host and play it. Returns the handle that drives it, or null for a level or recipe that is none.
Import it
import { mountMeikyuu } from "@johnmorrisdotca/meikyuu/play";
Definition
function mountMeikyuu(host: HTMLElement, options?: MeikyuuMountOptions): MeikyuuMount | null
Parameters
| Name | Type | Description |
|---|---|---|
host | HTMLElement | The HTMLElement that owns the native interface. |
options (optional) | MeikyuuMountOptions | Native settings and callbacks for this mounted interface. |
Returns
MeikyuuMount | null
The native mounted handle, or null for unsupported settings.
Examples
import { mountMeikyuu } from "@johnmorrisdotca/meikyuu/play";
const show = (host: HTMLElement, options: Parameters<typeof mountMeikyuu>[1]) => mountMeikyuu(host, options);
console.log(typeof show); // functionfunctionWhat it prints (run when this page was built)