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

defineScramblefunction

Register <kyuubu-scramble>, once. Where there is no browser, or the name is already taken, it does nothing.

Import it

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

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

Definition

function defineScramble(name?: string): void

Parameters

NameTypeDescription
name (optional)string

The custom-element name to register.

Examples

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

defineScramble();
console.log(customElements.get("kyuubu-scramble") !== undefined);

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