本文へ移動

Kazu数

検証済みの数独や論理パズルを作り、標準の規則とヒントを読み、盤を描いたり埋め込んだりできます。

「数」は数字を表す言葉です。 名前について(英語)

目次

リファレンス · 遊べる数字の盤

ensureKazuPlayStyle関数

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

Put the style in the page once: in the document's head, or in the shadow root the host is in.

インポート

import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";

定義

function ensureKazuPlayStyle(host: Element): void

引数

名前型説明
hostElement

The DOM element receiving scoped styles or the native player.

例

import { ensureKazuPlayStyle } from "@johnmorrisdotca/kazu/play";

const host = document.createElement("div");
ensureKazuPlayStyle(host);
console.log(host.tagName);

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

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