Skip to the content

Jisho辞書

The words of JMdict looked up by reading, written form, English meaning, a kanji in them or romaji, in small pieces fetched as needed, safe by default or unfiltered with every sense's marks, and the school grades, JLPT levels, readings, meanings and look-alike pairs of 2,999 kanji, each table an entry point of its own.

Jisho is the Japanese word 辞書 for a dictionary: this one holds Japanese words and kanji. About the name

Contents

Reference · Stroke order from KanjiVG: draw it, and find a kanji by drawing it

StrokeOrderOptionstype

How a drawing of the strokes looks and moves.

Import it

import type { StrokeOrderOptions } from "@johnmorrisdotca/jisho/strokes";

Definition

type StrokeOrderOptions = {
    readonly size?: number;
    readonly animate?: boolean;
    readonly numbers?: boolean;
    readonly strokeMs?: number;
    readonly color?: string;
    readonly label?: string;
};

Members

NameTypeDescription
size (optional)number | undefined

The width and height in pixels. 109 unless given.

animate (optional)boolean | undefined

Write the strokes one after the other. On unless false; a reader who asks for less motion sees them all at once.

numbers (optional)boolean | undefined

Draw each stroke's number at its start. Off unless true.

strokeMs (optional)number | undefined

How long one stroke takes to write, in milliseconds. 500 unless given.

color (optional)string | undefined

The colour of the strokes, as CSS has it. currentColor unless given.

label (optional)string | undefined

What the drawing says to a screen reader. "Stroke order" unless given.

Examples

import type { StrokeOrderOptions } from "@johnmorrisdotca/jisho/strokes";

const options: StrokeOrderOptions = { size: 200, numbers: true, strokeMs: 400 };
console.log(options.size);
200

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jisho 2.11.0.