lookAttributesfunction
The attributes (as text) that make an element a Meikyuu drawing: its class, its look, and its custom properties.
Import it
import { lookAttributes } from "@johnmorrisdotca/meikyuu/draw";
Definition
function lookAttributes(look: MazeLook): string
Parameters
| Name | Type | Description |
|---|---|---|
look | MazeLook | Native board, trail, wall and line appearance choices. |
Returns
string
The attributes (as text) that make an element a Meikyuu drawing: its class, its look, and its custom properties.
Examples
import { lookAttributes } from "@johnmorrisdotca/meikyuu/draw";
console.log(lookAttributes({board:"paper",trail:"green"}));class="meikyuu" data-board="paper" data-trail="green"What it prints (run when this page was built)