Reference · Stroke order from KanjiVG: draw it, and find a kanji by drawing it
PackedStrokestype
The table of the strokes as the data file holds it: where it was made from, the release, and for each kanji its paths, apart by "|".
Import it
import type { PackedStrokes } from "@johnmorrisdotca/jisho/strokes";
Definition
type PackedStrokes = {
readonly source: string;
readonly release: string;
readonly paths: Readonly<Record<string, string>>;
};
Members
| Name | Type | Description |
|---|---|---|
source | string | |
release | string | |
paths | Readonly<Record<string, string>> |
Examples
import type { PackedStrokes } from "@johnmorrisdotca/jisho/strokes";
const table: PackedStrokes = { source: "KanjiVG", release: "r20260714", paths: { 一: "M10,54c10,0,80,0,90,0" } };
console.log(Object.keys(table.paths));[ '一' ]What it prints (run when this page was built)