Reference · Playable number grid
mountKazufunction
Draw a puzzle into host and play it. Returns the handle that drives it, or null for givens that are not a puzzle of that kind and side.
Import it
import { mountKazu } from "@johnmorrisdotca/kazu/play";
Definition
function mountKazu(host: HTMLElement, options: KazuMountOptions): KazuMount | null
Parameters
| Name | Type | Description |
|---|---|---|
host | HTMLElement | The HTMLElement that owns the native interface. |
options | KazuMountOptions | Native settings and callbacks for this mounted interface. |
Returns
KazuMount | null
The native mounted handle, or null for unsupported settings.
Examples
import { mountKazu } from "@johnmorrisdotca/kazu/play";
const show = (host: HTMLElement, options: Parameters<typeof mountKazu>[1]) => mountKazu(host, options);
console.log(typeof show); // functionfunctionWhat it prints (run when this page was built)