本文へ移動

Kyuubuキューブ

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

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

目次

リファレンス · キューブのエンジンと表示

mountMoveList関数

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

A list of moves drawn in an element.

インポート

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

定義

function mountMoveList(host: HTMLElement, options: MoveListOptions): MoveListHandle

引数

名前型説明
hostHTMLElement

The DOM element that receives the view and controls.

optionsMoveListOptions

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

戻り値

MoveListHandle

A list of moves drawn in an element.

例

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

const host = document.createElement("div");
document.body.append(host);
const list = mountMoveList(host, { groups: [{ label: "Solve", items: ["R", "R'"] }], current: 0 });
console.log(list.element.tagName);
// Call list.destroy() when removing the list.

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

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