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

pastCommitfunction

Whether a dragged layer is past the point of no return: letting go now, at rest, makes a move.

Import it

import { pastCommit } from "@johnmorrisdotca/kyuubu";

Definition

function pastCommit(angle: number, commitAngle?: number): boolean

Parameters

NameTypeDescription
anglenumber

The signed drag angle in degrees.

commitAngle (optional)number

The drag angle in degrees at which a resting release commits a turn.

Returns

boolean

Whether a dragged layer is past the point of no return: letting go now, at rest, makes a move.

Examples

import { pastCommit } from "@johnmorrisdotca/kyuubu";

console.log(pastCommit(60));
true

What it prints (run when this page was built)

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