Reference · Stroke order from KanjiVG: draw it, and find a kanji by drawing it
DrawingMatchtype
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 it
import type { DrawingMatch } from "@johnmorrisdotca/jisho/strokes";
Definition
type DrawingMatch = {
readonly kanji: string;
readonly distance: number;
};
Members
| Name | Type | Description |
|---|---|---|
kanji | string | |
distance | number |
Examples
import type { DrawingMatch } from "@johnmorrisdotca/jisho/strokes";
const match: DrawingMatch = { kanji: "一", distance: 0.05 };
console.log(match.kanji);一What it prints (run when this page was built)