リファレンス · KanjiVG由来の筆順:描く、描いた漢字から探す
DrawingMatch型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What findByDrawing gives for a kanji: the kanji, and how far its strokes are from the drawn ones (0 is the same, and about 0.1 a careful hand).
インポート
import type { DrawingMatch } from "@johnmorrisdotca/jisho/strokes";
定義
type DrawingMatch = {
readonly kanji: string;
readonly distance: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kanji | string | |
distance | number |
例
import type { DrawingMatch } from "@johnmorrisdotca/jisho/strokes";
const match: DrawingMatch = { kanji: "一", distance: 0.05 };
console.log(match.kanji);一出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。