本文へ移動

Kyuubuキューブ

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

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

目次

リファレンス · Reactコンポーネント

KyuubuMoves関数

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

THE MOVES AS A REACT COMPONENT: a thin wrapper round mountMoveList. Give it the runs of moves and the one just made, and it marks that one and scrolls it into view; onPick hears a press or a key. The runs are drawn again only when what they say changes.

インポート

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

定義

function KyuubuMoves({ ref, className, style, groups, current, locale, label, onPick, }: KyuubuMovesProps): React.JSX.Element

引数

名前型説明
optionsKyuubuMovesProps

Options for this call; omitted fields retain their documented defaults.

戻り値

React.JSX.Element

A React host element that mounts and maintains the move list in the browser.

例

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

import { createElement } from "react";
console.log(createElement(KyuubuMoves, { groups: [{ label: "Solve", items: ["R", "R'"] }], current: 0 }).props.current);
0

出力(このページを作ったときに実行した結果)

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

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