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

paceFromAttributefunction

A pace from an attribute: a name, or seconds. Anything else is left to the default.

Import it

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

Definition

function paceFromAttribute(value: string | null): number | ScramblePace | undefined

Parameters

NameTypeDescription
valuestring | null

The attribute or candidate value to validate.

Returns

number | "fast" | "normal" | "slow" | undefined

The pace name or positive seconds value, or undefined to use the default pace.

Examples

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

console.log(paceFromAttribute("slow"));
slow

What it prints (run when this page was built)

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