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 elements

defineCubefunction

Register <kyuubu-cube>, once. Where there is no browser, or the name is already taken, it does nothing. A page that wants another name passes it.

Import it

import { defineCube } from "@johnmorrisdotca/kyuubu/element";

Also exported from: @johnmorrisdotca/kyuubu/element/define

Definition

function defineCube(name?: string): void

Parameters

NameTypeDescription
name (optional)string

The custom tag name; omitted to use the package default.

Examples

import { defineCube } from "@johnmorrisdotca/kyuubu/element";
defineCube();
console.log(typeof defineCube); // function
function

What it prints (run when this page was built)

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