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

ReplayClocktype

The clock a replay runs by; the page's own unless a test gives another.

Import it

import type { ReplayClock } from "@johnmorrisdotca/kyuubu";

Definition

type ReplayClock = {
    set(run: () => void, ms: number): unknown;
    clear(handle: unknown): void;
};

Members

NameTypeDescription
set(run: () => void, ms: number): unknown
clear(handle: unknown): void

Examples

import type { ReplayClock } from "@johnmorrisdotca/kyuubu";


const value: ReplayClock = { set: (run, ms) => setTimeout(run, ms), clear: (handle) => clearTimeout(handle as ReturnType<typeof setTimeout>) };
console.log(typeof value.set);
function

What it prints (run when this page was built)

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