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

React components

import { … } from "@johnmorrisdotca/kyuubu/react";

29.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
KyuubufunctionTHE CUBE AS A REACT COMPONENT: a thin wrapper round CubeView, which does the work.
KyuubuHandletypeWhat a parent can ask of the cube on the screen.
KyuubuMovesfunctionTHE MOVES AS A REACT COMPONENT: a thin wrapper round mountMoveList.
KyuubuMovesPropstypeThe props of KyuubuMoves: every option of the list, and the box's className and style.
KyuubuPropstypeThe component's props: every option of CubeView, a state the parent may keep, and the box's className, style and data-*.

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