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 · Cuboid elements

defineCuboidfunction

Register <kyuubu-cuboid>, 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 { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";

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

Definition

function defineCuboid(name?: string): void

Parameters

NameTypeDescription
name (optional)string

The custom-element name to register.

Examples

import { defineCuboid } from "@johnmorrisdotca/kyuubu/cuboid/element";

defineCuboid();
console.log(customElements.get("kyuubu-cuboid") !== undefined);

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