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

ScramblePagetype

The part of a page the loop listens to: a Document is one.

Import it

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

Definition

type ScramblePage = {
    readonly hidden: boolean;
    addEventListener(type: "visibilitychange", listener: () => void): void;
    removeEventListener(type: "visibilitychange", listener: () => void): void;
};

Members

NameTypeDescription
hiddenboolean
addEventListener(type: "visibilitychange", listener: () => void): void
removeEventListener(type: "visibilitychange", listener: () => void): void

Examples

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


const value: ScramblePage = document;
console.log(value.hidden);

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