リファレンス · KanjiVG由来の筆順:描く、描いた漢字から探す
strokesOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The strokes of a kanji in the order they are written, each as an SVG path.
インポート
import { strokesOf } from "@johnmorrisdotca/jisho/strokes";
定義
function strokesOf(table: PackedStrokes, kanji: string): readonly string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
table | PackedStrokes | What |
kanji | string | One kanji. |
戻り値
readonly string[]
The paths, one for each stroke; none for a kanji the table has no strokes for.
例
import { loadStrokes, strokesOf } from "@johnmorrisdotca/jisho/strokes";
console.log(strokesOf(await loadStrokes("日"), "日").length); // 44出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。