Reference · Stroke order from KanjiVG: draw it, and find a kanji by drawing it
loadAllStrokesfunction
The strokes of every kanji the table has, about 1.1 MB gzipped in 57 pieces, as a search by drawing needs them.
Import it
import { loadAllStrokes } from "@johnmorrisdotca/jisho/strokes";
Definition
function loadAllStrokes(): Promise<PackedStrokes>
Returns
Promise<PackedStrokes>
The table.
Examples
import { loadAllStrokes } from "@johnmorrisdotca/jisho/strokes";
console.log(Object.keys((await loadAllStrokes()).paths).length); // about 2,9672967What it prints (run when this page was built)