Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

Reference · Cube engine and views

mountMoveListfunction

A list of moves drawn in an element.

Import it

import { mountMoveList } from "@johnmorrisdotca/kyuubu";

Definition

function mountMoveList(host: HTMLElement, options: MoveListOptions): MoveListHandle

Parameters

NameTypeDescription
hostHTMLElement

The DOM element that receives the view and controls.

optionsMoveListOptions

Options for this call; omitted fields retain their documented defaults.

Returns

MoveListHandle

A list of moves drawn in an element.

Examples

import { mountMoveList } from "@johnmorrisdotca/kyuubu";

const host = document.createElement("div");
document.body.append(host);
const list = mountMoveList(host, { groups: [{ label: "Solve", items: ["R", "R'"] }], current: 0 });
console.log(list.element.tagName);
// Call list.destroy() when removing the list.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.