本文へ移動

Kyuubuキューブ

CSS 3Dのキューブをタッチ、キー、回転記号で回します。シードでスクランブルを再現し、名前付きの手順で解き方を追えます。

「キューブ」は、英語のcubeを表す日本語の表記です。 名前について(英語)

目次

リファレンス

Reactコンポーネント

import { … } from "@johnmorrisdotca/kyuubu/react";

最小化と gzip 圧縮をしたサイズは 29.4 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
Kyuubu関数THE CUBE AS A REACT COMPONENT: a thin wrapper round CubeView, which does the work.
KyuubuHandle型What a parent can ask of the cube on the screen.
KyuubuMoves関数THE MOVES AS A REACT COMPONENT: a thin wrapper round mountMoveList.
KyuubuMovesProps型The props of KyuubuMoves: every option of the list, and the box's className and style.
KyuubuProps型The component's props: every option of CubeView, a state the parent may keep, and the box's className, style and data-*.

ソースを見るGitHub で編集@johnmorrisdotca/kyuubu 1.14.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。